all groups > flash actionscript > june 2006 >
You're in the

flash actionscript

group:

swf properties


swf properties phield
6/20/2006 9:11:06 PM
flash actionscript: Hello -- I may have made a mess of things here. I am new to Actionscript.

I have a master SWF ("master.swf") file, and using a MovieClipLoader I have
loaded a few SWFs into the master. One of these SWFs is a main navbar made up
of a series of buttons ("main_nav.swf"), and another is a photo montage, which
cycles through a series of photos using motion tweens ("photo_montage.swf").
These photos are in a movie clip called "photoMontage_mc" within the SWF file.
When "master.swf" loads, both of these other SWFs load on different levels, at
the same time (nav on level 15, montage on level 5).

I want to be able to click one of the buttons in the loaded "main_nav.swf" on
level 15 and control the alpha (set to 40%) the "photo_montage.swf" on level 5.
Also, it would be really excellent to be able to stop the photo montage from
playing (so stop and dim on click of one of the main nav buttons).

Can this be accomplished? I would be most appreciative of any help!

Thanks!
Re: swf properties kglad
6/21/2006 2:12:10 AM
yes, it can be done. from anywhere (including _level15) you can use:



_level5.photoMontage_mc._alpha = 40;
Re: swf properties phield
6/21/2006 2:42:00 PM
Thanks very much for the info!

I can make this work by adding this code to the "main_nav" file, (creating a
function with an onRelease event handler). I am still having trouble, though,
adding this script to the master file (level0), and clicking a button in
"main_nav.swf" (level15) to fade/ & stop "photo_montage.swf" (level5). In
effect, when all swfs load, click a nav button to control the montage, but
place the script in the master file. Is this even possible, or does the code
need to appear in the same fla/swf with the nav buttons?

Thanks again for your info -- very helpful!
AddThis Social Bookmark Button