flash mx problem
- Started
- Last post
- 20 Responses
- idsgn
_level0.popUp.gotoAndStop(11);
stop();whats wrong with this code? ive tried every variation i can think of, its called from one movieclip, pointing to a second movie clip (popUp), they are both on the main timeline. it stops, but doesnt execute the goto action
ack!
- phirschybar0
do you have the instance named popUp or just the MC?
- ********0
yeah, watch what you name what, it might be that.
- ********0
unfittoprint is the king of such questions. i am in his debt...
- idsgn0
yea all the instances are named correctly, ive double checked that because i've been known to make many silly mistakes like that.
- phirschybar0
try not using the _level0. Instead, if you are only accessing a MC in the same .SWF (level), just use _root
- idsgn0
thats what i was thinking as well, ive tried both _root and _parent with the same results
- heavyt0
in such cases, i try to use "tellTarget"
tellTarget{
(_root.popup){
gotoAnsStop(2);
}
}TR1
- phirschybar0
can you be more specific about the problem?
It could be as simple as popUp (the instance) not existing on the main timeline when the code is called from the other MC instance.
There could also be other actionscript messing up the situation. Please tell us more.
- stewart0
TELL TARGET ??
holymowly
it is 2004 almost, dude / dudette !
- phirschybar0
I agree, telltarget is the old solution, you should go with _root.popUp.gotoAndStop(11);
- stewart0
yup.
- idsgn0
tell target? no thanks.
basically i have 2 movies on the main timeline. popUp and theCity, they both exist at the same point in the timeline and are both on the stage.
popUp is a movie with 2 stop frames, theCity containts the script to tell popUp to gotoAndStop("win");
its that simple. ive tried numbers instead of framelabels , and every combination of _root, _parent what have you
- idsgn0
ive also tried creating a global function and calling it that way too. still doesnt work. baffled
- phirschybar0
... and the MC is stopping but not on the correct frame?
- idsgn0
popUp doesnt do anything,
while theCity clip that calls the function does everything but the gotoandstop
- phirschybar0
how many frames do these MC's span on the main timeline?
- gabriel_pc0
can you post the .fla file?
- idsgn0
the main timeline is stopped, the timeline in the movie clips is about 10 frames each.
if i call the same actionscript from a different MC it works, so im just gonna go with that as an aukward work around i think
- idsgn0
thanks for the help though!
much appreciated
- phirschybar0
weird. Well... hope it all works out