[SWFObject] Getting variables stored in Flash

Aran Rhee aran.rhee at qdc.net.au
Sun Oct 22 17:50:23 PDT 2006


Lee.
 
This is not really an swfObject issue, but below is some info for you.
 
Depending on the flash player version you are targeting, you can use either
the ExternalInterface classes (Flash 8), or the flash javascript integration
kit (F6/7) to talk between javascript and flash.
 
BTW - there is also a special build of swfObject which incorporates the js
integration kit
 
F8 EI -  <http://livedocs.macromedia.com/flash/8/main/00002201.html>
livedoc
F8 EI <http://www.communitymx.com/content/article.cfm?cid=0922A>  - tutorial
F8 EI on  <http://blog.deconcept.com/code/externalinterface.html> deconcept
 
js  <http://weblogs.macromedia.com/flashjavascript/> integration kit - home
js integration  <http://www.communitymx.com/content/article.cfm?cid=D7491>
kit - tut
 
 
Cheers,
Aran
 
 


  _____  

From: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Lee Benson
Sent: Monday, 23 October 2006 12:57 AM
To: swfobject at lists.deconcept.com
Subject: [SWFObject] Getting variables stored in Flash


Hi,
 
Is there any Javascript function available that get at a variable stored
WITHIN
an SWF file?
 
I have a custom made MP3 player that stores a "VarCurrentTime" variable
interally in a Flash movie to track how long the sound has been playing.
 
With a standard <object> implementation, I can get at that usually via a
call to document.getElementbyId("FlashObj").GetVariable("VarCurrentTime")
(although this only works in IE and FireFox-- Safari doesn't seem to like
it, which is why I started hunting for the SWFObject implementation in
the first place).
 
Is there any way to get at those internal variables with SWFObject?
 
Thanks, Lee.

Send instant messages to your online friends http://uk.messenger.yahoo.com 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20061023/53ffd08d/attachment-0005.htm>


More information about the Swfobject mailing list