PDA

View Full Version : Make Flash object work



wrayh
10-14-2009, 03:09 PM
Hello,

Can you give me the steps necessary to run flash files from a menu in Autoplay

When I included that object on a page it does work

Thank

Wrayh

longedge
10-15-2009, 01:21 AM
If you are talking about a menu bar and assuming you have set the menu bar up , you detect an item being selected in the menu by using the page "On Menu" event, the item selected would tell you which flash file you needed to load.

To load and play a flash file in an existing flash object you would use code similar to (the name of the file would be obtained when detecting the menu item selected)-


Flash.Load("Flash1", "AutoPlay\\Flash\\nameoffile.swf", true, false);

longedge
10-15-2009, 04:21 AM
Just had a break for a cup of tea and made you this little example -