Loading asp variables into Flash

I have a flash menu in an asp page and I’m trying to set a variable via url (www.site.com?variable=page2). I want flash to grab that url and parse the variable.

My main purpose is to get the flash to detect what page was chosen and display the proper submenu. iI want to avoid having to go to multiple pages and flash files.

Any suggestions??

Thanks!
:slight_smile:

Simplest way is to append it to the URL of your swf

e.g.

…/resources/game.swf?luckyNumber=27
…/resources/game.swf?cheese=‘gorgonzola’

this declares a variable on the _level0 timeline

If you’re declaring a string be sure to use single quotes as in ‘gorgonzola’ above