[SWFObject] Adding vars to SWFobject in Flash runtime
Martin Eiler | Cumuli
martin at cumuli.net
Wed Jun 28 04:24:38 PDT 2006
Hi
Thank you Danya for your reply. It was exactly the stuff I was looking for.
I stille have a small problem with the code. I cant get the
ExternalInterface in flash to work.
Basicly I have an instance of the flash video component 8 on my stage called
flv_player.
Previously I used the action: flv_player.contentPath = _root.flv_path; to
set the paht to the flv-file.
So my problem is that I cant figure out what vars I get from the
javascript, and how to handle them inside flash.
Regards Martin
_____
Fra: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] På vegne af Geoff Stearns
Sendt: 27. juni 2006 19:48
Til: swfobject at lists.deconcept.com
Emne: Re: [SWFObject] Adding vars to SWFobject in Flash runtime
if you are using externalinterface, this should work just fine...
just make sure you set up all the functions you need to call in the flash
movie.
On Jun 27, 2006, at 1:13 PM, Danya Henninger wrote:
Okay -- this is my last revision -- sorry for the multiple posts -- trying
to repurpose and slim down my actual code introduced some errors.
The setting of the variable "var flashVideoPlayer" can't occur until the
page loads. So the script should really be something like:
<head>
...
<script type="text/javascript">
var flashVideoPlayer;
function initialize(){
flashVideoPlayer = document.getElementById('video');
}
function callFlashPlayVideo(flv_path) {
flashVideoPlayer.playVideo(flv_path);
}
</script>
...
</head>
<body onload="initialize">
--
Danya Henninger
Imagic | www.imagicdigital.com
danya at imagicdigital.com
--
Danya Henninger
Imagic | www.imagicdigital.com
609.645.7755 tel
866.530.6608 fax
609.289.0411 cell
danya at imagicdigital.com
_______________________________________________
SWFObject mailing list
SWFObject at lists.deconcept.com
http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060628/db0f3487/attachment-0005.htm>
More information about the Swfobject
mailing list