Passing Variables to Flash
July 10, 2006 12:00 AM
Yes, I did get it working... I'm doing it a little differnt though, based on how we are embedding our .swf files. To embed our .swf files we have been using the SWFObject Javascript embed found at: http://blog.deconcept.com/swfobject/Then rather than importing an animation into lectora we just put an external html object on the page. To pass our lectora variables to flash I first create the variables in Lectora - Tools --> Manage Variables - then I added two variables named entry1 and entry2 (I'm passing the contents of two text entry boxes into flash). In Lectora I have placed two text entries on different pages one with the Associated variable name of Entry_0001 and the other with Entry_0002. Then on the page after each entry I have an on show action that sets the contentes of VAR(Entry_0001) to entry1 and the same for entry2. Then on the page with my .swf that I want to pass those variables into I have two on show actions: On Show modify variable entry3 and I sent it's contents to itself VAR(entry3) this just makes it so my variables are accessable via javascript on the page. Then I embed my .swf in an external .html object using the following code:
Discussions have been disabled for this post