Go Back   Northcode Support > SWF Studio V3
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 2012-03-19, 06:42 PM   #1
Garych
gazzer
 
Garych's Avatar
 
Join Date: Jun 2004
Location: New Zealand
Posts: 64
Exclamation How do I.........

Under "Files" I have another file to view.

I get this by using the following code on a button:-

on (release) {
ssCore.Flash.loadMovie({path:"startdir://propertyExample.swf", resize:"false"});
}

Then, to return to the Main Movie I use:-

on (release) {
ssCore.Flash.loadMovie({path:"startdir://mainMovie.swf",resize:"false"});
}

What do I add to the Main Movie code to get the return code to select a certain page in the mainMovie...for instance (page4).

Thank you
__________________
GC
Garych is offline   Reply With Quote
Old 2012-03-19, 10:46 PM   #2
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
Quote:
What do I add to the Main Movie code to get the return code to select a certain page in the mainMovie...for instance (page4).
You can use Flash.setFlashVars to communicate with Flash movies you are loading but I'm not sure if Flash.loadMovie wipes out the FlashVars or not (I suspect it does). Flash.setFlashVars was designed for us with "normal" SWF loading mechanisms that are built into Flash.
northcode is offline   Reply With Quote
Old 2012-03-20, 12:47 AM   #3
Garych
gazzer
 
Garych's Avatar
 
Join Date: Jun 2004
Location: New Zealand
Posts: 64
Didn't seem to do a thing Tim.
__________________
GC
Garych is offline   Reply With Quote
Old 2012-03-20, 01:29 AM   #4
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
It's not going to automatically go to "page 4" for you because you set the FlashVars

You set the FlashVars in your main SWf and then you have to look at the FlashVars in the child SWF and take some action based on the contents of the FlashVars.

As I said, Flash.loadMovie is a special command that bypasses normal SWF loading so the FlashVars probably won't survive that. You're going to have to use a native Flash method of loading your SWFs to use this feature.

Your only other alternative is to write to a registry entry or file or some other external source in the main SWF, before you load the child SWF. The child SWF then has to check that source to see what it should do when it starts.
northcode is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes