Welcome to Dream.In.Code
Become an Expert!

Join 136,901 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,742 people online right now. 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
31 Jul, 2008 - 03: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
+Quote Post

theRemix
RE: How To Pass A Variable From Aspx To Flash
31 Jul, 2008 - 03:59 PM
Post #2

D.I.C Regular
***

Joined: 19 Oct, 2005
Posts: 380



Thanked: 2 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
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 09:35PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month