PDA

View Full Version : 2 Scenes Cant Tell Target Now


TheDoc
01-26-2002, 05:30 PM
I created a movie with multi movie symbols on the main time line. At the end of each movie symbol I placed:

tellTarget ("../") {
gotoAndPlay (whatever frame # for next sym);
}
stop ();

I do this to make sure that this sym is fully done before the next one starts. Once I was done with this movie I went back to create a preloader scene. After I completed this task I went to play the movie and it looped on the first movie symbol.

I know that the ../ tells it to back to root but once I moved scenes around and put the preloader scene first that becomes the main time line and ../ well tell it to go back to the preloader scene.

I tired a few _root.scene 1.instantace name but I got errors :/

I need to know how to tell the tell target to change scenes or a different way of doing things, I have looked over tons of flash sites for help on this and nobody that I found tells you the trick :)

So now I haev

Scene 1 (preloader)
Scene 2 (main movie with multi movie sym on the main time line)
My movie sym's jump back to ../ which is the preloader and I get a loop from that point.

Hope I gave enough information. Would love any advice for a solution or a better way of doing things.

Thanks,
TheDoc

Billy T
01-27-2002, 02:06 AM
I would recommend you dont use scenes at all - they can cause problems when actionscripting. Instead just lay all your parts out in one timeline and use frame labels.

are you using flash 4 or 5? I assume 5 because you have tried _root etc but I think a lot of what you are using is flash 4 syntax - ../ etc

lose the ../ and change em to _root

can lose the tell targets also if you wish - just change em to

_root.gotoAndPlay(whatever);

I didnt understand why the main timeline was jumping back to the preloader - might wanna run that by me again

cheers

TheDoc
01-27-2002, 02:44 AM
Hello again :)

Can drop the preloader scene, was just doing what the tutorial said :) Hope isn't to hard to do a preloader with out a scene but whateva.

I removed the preloader and added _root.gotoAndPlay("two")
to my action layer and it worked, seeming you make this sound to be better code I will change to this format instead of the ../ tell target format.

Question though, is this how I should do my main time line?
I have multi symbols placed on the main time line and setup
like the picture below. Should I just insert a frame and carry it down to the completed state or should I do this so that each frame is done playing before the next starts? If I needed multi effects at the same time I created it in the same symbol. I was
told tihs saved file space and being only a week into flash (5) I
figured he knew more than me :) So far my saving file space isnt going to well :)

http://www.largecash.com/1.jpg

Billy T
01-27-2002, 02:59 AM
I'm not exactly sure what you are saying

its sounds like to are doing a straight animation where you want a bunch of things to happen in sequence. If this is the case then probably the easiest thing to do is just animate it all in the main timeline rather than inside mc's. That way you can easily see when things start and stop etc. It really all depends on what you are trying to do though...