Welcome to Dream.In.Code
Click Here
Getting Help is Easy!

Join 118,588 Programmers for FREE! Ask your question and get quick answers from experts. There are 824 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



How to pass a variable from aspx to flash

 
Reply to this topicStart new topic

How to pass a variable from aspx to flash

vanithiyagu
post 31 Jul, 2008 - 04:25 AM
Post #1


New D.I.C Head

*
Joined: 31 Jul, 2008
Posts: 1

Hi,


How can I pass a variable from aspx to flash .Can u give me an example please?

Thanks!
User is offlineProfile CardPM

Go to the top of the page


theRemix
post 31 Jul, 2008 - 04:59 PM
Post #2


D.I.C Regular

***
Joined: 19 Oct, 2005
Posts: 364



Thanked 1 times
My Contributions


using AS2

when you embed, add the flash vars parameters
http://www.tripleaxis.com/blog/?p=80

CODE
... FlashVars="myVariable=myValue"...

and
CODE
<param name="FlashVars" value="myVariable=myValue" />

(yes you must include the same pair(s) twice for different browsers)

then you can access these variables from inside flash using
CODE
_root.myVariable


hth
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/11/08 07:32PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month