PDA

View Full Version : Is it possible to link to an instance that hasn't been created yet?


ian27
07-25-2004, 07:44 PM
Hello. I'm trying to call an instance within a movie clip from the first frame of the root timeline, although obviously it won't recognise it because the instance isn't created until frame 10 of the movie clip. Therefore, I tried to use the linkage identifier which didn't work.

Do you know of any other way to identify an instance using actionscript in this situation? I'm sure that if I add the actions within the MC after the instance has been created it will work fine but I really want to add all of my actions in the first frame of the main timeline so I can keep everything compact and organised.

Any help would be most appreciated.

Ian

speedlemon
07-25-2004, 11:51 PM
I'm sure that if I add the actions within the MC after the instance has been created it will work fine but I really want to add all of my actions in the first frame of the main timeline so I can keep everything compact and organised.
thats so awesome

ian27
07-26-2004, 01:23 AM
Okay, I've just found out this isn't possible and the AS has to be entered into the MC itself.

speedlemon
07-26-2004, 01:46 AM
well at least you can do it still. wouldnt it be cool if you could put the whole thing into one frame? well. now at least you know you cant do it, and you know it.

ian27
07-26-2004, 02:05 AM
Yeah speedlemon, I recently read something that encouraged you to add all of your actionscript into the first frame in order to make modifications etc easier. It stated that it was possible to do this with Flash MX but not with Flash 5?!? Well if this guy was doing it this way, I don't know how he did.

speedlemon
07-26-2004, 02:17 AM
are you using flash mx? because if you are then you should be able to unless the guy lied. or maybe there is a way. im kind of confused. what are you trying to do exactly?

curryjon51
07-26-2004, 05:49 PM
Hi

This is one way of doing it, probably is better ways, but at least it works.

hth