Hi Julie.

So SWFObject is all about getting your flash file(s) onto your page. In
regards to loading, playing and sending events, you will need to do some of
this is Flash and some in Javascript.

If you want to send events back to the page (flash finished loading
/ finished playing), then you can accomplish this with the ExternalINterface
class. This will give you two way communication with your swf. Through
ExternalINterface you can expose some functions you want to be able to call
on the swf (or call js methods on the page). There are a bunch of tutorials
out there which deal with this.

Here is an example page which shows some swfobject markup and
externalinterface being used together:
http://learnswfobject.com/advanced-topics/external-interface/

The important thing to note is that you need to give your swf an id/name
through the attributes object in order to talk to it. Also, if you want
content to appear above your swf, then you will want to make sure to set the
wmode parameter to opaque so that it will layer correctly.


Cheers,
Aran




On Wed, Feb 9, 2011 at 6:31 PM, julie <[email protected]> wrote:

> I just found SWFObject and think it is an AWESOME tool to accomplish
> what I'm trying to do. I am loading a flash movie as a background on
> my home page, then loading content on top. I do not want to play the
> movie automatically -- I need to be able to verify:1) if the movie has
> finished loading, then; 2) play the movie, and then; 3) check to see
> if it has finished playing to load my page content. I previously have
> been able to do this via javascript, but since switching to SWFObject,
> I don't know how to do this. I've tried adding ID as an attribute so I
> can do a getElementByID but so far I'm out of luck. I'd appreciate any
> help you can give me about what I am doing wrong/need to do right!
>
> --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to