Passing Variables to Flash

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:

This interactive content requires the latest Adobe Flash Player!
In my flash I have two variables defined one called entry1 and one called entry2 first I pull them from lectora and set them to javascript varialbes using:var entry1= Varentry1.getValue();then I pass them to flash using:so.addVariable("entry1", entry1);The reason we embed using the swfobject is because this will embed the .swf in IE without making you click on it to activate the content. I hope all of this makes sence. I know I'm doing it a little different but let me know if you have any questions. Oh an to use the swfobject you need to download swfobject.js from the site above and place it in the Lectora published html folderEdited By: Hemingway on 2006-7-20 14:20:45

Discussions have been disabled for this post