Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 15th, 2003, 06:46 AM
StealthElephant's Avatar
StealthElephant StealthElephant is offline
Shes dancing (obviously)
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2002
Location: the far side
Posts: 517 StealthElephant User rank is Corporal (100 - 500 Reputation Level)StealthElephant User rank is Corporal (100 - 500 Reputation Level)StealthElephant User rank is Corporal (100 - 500 Reputation Level)StealthElephant User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 45 m 57 sec
Reputation Power: 7
paths

hello everyone, im new to flash but not a computer newbie, i already do development and decided to give flash a whirl and so far i like

but one thing is really getting on my nerves. I have come to the stage where i am starting to break up my files into multiple swf docs and loading them thro the loadmovie action and get a bit of fancy preloading happening.
BUT when i load a mc into the main time line, none of my buttons on the main time line work. i know i have to fix the paths but i thought i had.
what i had b4 was:
movie clip called content, when buttons got clicked they went to different labels in the content instance of the clip.
now when i load in the movie clip into an empty mc called content1,
content1.loadmovie("content.swf") my content1.gotoandStop("whatever") doesnt work. so i tried _root.content1.gotoandstop("whatever"); still nothing, and loads more...
i have tried loads of things and am almost out of patience. can anyone give me pointers in the right direction? even a decent tutorial anywhere that explains loading mc and using them with actionscript would be cool
__________________

microsofts butterfly is their way off telling u their systems have a **** load of buggs
Advocating Linux Guide
Lesbian Linux
Great & Practical Computer Books

like the links?

Last edited by StealthElephant : May 15th, 2003 at 06:57 AM.

Reply With Quote
  #2  
Old May 15th, 2003, 10:44 AM
mbritton72 mbritton72 is offline
Shrill Digital God
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Raleigh, NC
Posts: 64 mbritton72 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m
Reputation Power: 7
Something I noticed:

gotoAndStop("yourLabel"); // you had gotoandStop

Also, instead of labels, try frame numbers and see if that works.

hth,

Mike
__________________
I'm not impatient, I just have a low tolerance for boredom.

Reply With Quote
  #3  
Old May 17th, 2003, 05:15 PM
clam61 clam61 is offline
Senior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 151 clam61 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 21 sec
Reputation Power: 0
ok, i get it.
at first it was a bit confusing because your terminology is a bit off (or maybe mine is outdated). when you load whatever.swf, it's a "movie" not a "movie clip". im not being anal but movie clip refers to that specific object, and it can confuse people. anwyays with that said i am pretty sure i know what the problem is. i was obsessed with flash 5 but it has been about a year since i did anything major.

i have not tried this exact endeavor but similar things and i know
when you call content1.gotoandStoP() you are telling content1 to go to a specific frame. however what you really want to go to a specific frame is the content.swf you loaded into content1, right?

so i dont know if there is an identifier for a movie inside a movie clip, but if it were "foo" then you it would be content1.foo.gotoAndStop().

alternatively if it is not necessary to load the movie into the MC, simply load the movie into _level1 (or is it level_1 i forgot)

you're main movie is in _level0 so content.swf will be on TOP of it. then to reference this movie change your paths to _level1.gotoAndStop().

good times.

Reply With Quote
  #4  
Old May 18th, 2003, 11:59 AM
mbritton72 mbritton72 is offline
Shrill Digital God
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Raleigh, NC
Posts: 64 mbritton72 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m
Reputation Power: 7
Yeah, the terminology for loading a swf as opposed to loading a movieclip, say from the library, is ambiguous. When you load a swf into a target, that swf effectively becomes part of that target, and the movieclips contained in the swf can be targeted as if they were part of the "host" mc. This also goes for loading into _level0 or whatever. Personally, I like to set a counter to load swfs into their levels, and increment the counter before I load them. I also find it easier in most cases to create a target before I load a swf. This allows you to dynamically name the host clip, as well as apply other actions you may not want to apply to _level0.

Code:
var counter = 0;
createEmptyMovieClip("contentTarget", counter); 
counter++;
contentTarget.attachMovie("theMovie", "movie1", counter)
// Or...
contentTarget.loadMovie("something.swf", counter);

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > paths


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway