Luke Lutman wrote:
> In your flash 
> movie, try this actionscript on the first frame:
>
> getURL("javascript:$('#FP').doWhatever('abc',123);");
>   
Correct me if I am wrong.. but I *think* you're hinting at altering the 
actual SWF -- which I theoretically could because it's an open source 
project (flowplayer), although haven't setup the development bed yet. I 
do not know if it is necessary? Here is what I am trying to accomplish;

Embed flowplayer in a hidden div (display:none). When you click a 
"trigger", the div is made visible ($(div).show()) & the movie plays. 
Using the "fq" method queueing system I was more or less able to 
accomplish this with code similar to;

MARKUP;
<div style="display:none"><div id="fp"></div></div>

JS;
var fo = new SWFObject("flowplayer/FlowPlayer.swf", "FP", "730", "510");

...
fo.write("fp");
$('div:hidden').show().find('#FP').fq('DoPlay');


NOTE; Flowplayer allows you to interact with the SWF via JS (e.g. the DoPlay() 
method). 

You cannot interact with the movie, however, if it is hidden (display:none). Is 
it *common* behavior to stop a flash movie when its container is hidden? Is 
this cross browser/platform  behavior? 

>  why not use the jQuery Flash 
> plugin (http://jquery.lukelutman.com/plugins/flash)?
>   
The only reason I've used SWFObject is that was what the author's examples 
used. I'll be switching to your jQ Flash plugin as soon as I get this sorted 
out.

Thanks!

~ Brice



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to