[SWFObject] swfObject + Javascript to Flash communication
Aran Rhee
aran.rhee at qdc.net.au
Thu Aug 10 21:48:45 PDT 2006
Tim.
Geoff has been kind enough to roll a version which integrates the macromedia
javascript integration kit with swfObject.
test page:
<http://blog.deconcept.com/code/intkit/so_integrationkit.html>
http://blog.deconcept.com/code/intkit/so_integrationkit.html
download:
<http://blog.deconcept.com/code/intkit/swfobject_jskit.zip>
http://blog.deconcept.com/code/intkit/swfobject_jskit.zip
I have been using it successfully to read / write data on numerous projects.
BTW - Geoff, I just downloaded the kit on the above link and noticed the
swfObject used is still at version 1.4.1 in there. Can we just do a straight
swap to the latest 1.4.4 on the swfobject.js file, or are there other
modifications needed to bring it inline with the latest build ?
Cheers.
Aran
_____
From: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of ReDrUm
Sent: Friday, 11 August 2006 2:32 PM
To: swfobject at lists.deconcept.com
Subject: [SWFObject] swfObject + Javascript to Flash communication.
Hi Everyone,
Although this is not specifically an swfObject problem (I don't think), I am
trying to incorporate the macromedia Flash JavaScript Integration Kit into
my site using swfObject.
http://weblogs.macromedia.com/flashjavascript/
I've ended up using the method/scripts used here in this tutorial:
http://www.mustardlab.com/developer/flash/jscommunication/
<http://osflash.org/doku.php?id=flashjs>
My aim is to attach and pass variables (containing the source of flv files)
from my thumbnails onClick into my swf containing the FLVPlayBack component.
I have achieved this in IE however it does not work in Firefox nor Opera. I
was wondering if anyone had any ideas/fixes?
The source code inside my swf looks as follows:
Frame 2:
// no upgrade needed, start the movie
stop();
// This is a temporary variable to set an initial video.
vdoVarSource = "media/TNZ-PureNZ.flv";
// This dynamically sets the video source externally through
JavaScriptFlashGateway.
vdoContainer.onEnterFrame = function () {
vdoContainer.contentPath = vdoVarSource;
};
The source for the onclick within my php file is as follows:
<?php
// Where $flv = the source path of the flv file e.g. "media/myVideo.flv"
echo '<img src="'.$thumb.'" width="87" height="55" alt="'.$alt.'"
onclick="setFlashVariables(\'sendmovie\',\'vdoVarSource='.$flv.'\')"
/>'."\n";
?>
You can view what i currently have at www.filmproducer.co.nz/TEMPLATE.php
If anyone knows how to get this working in IE AND Firefox/Opera (and
hopefully Safari) I would greatly appreciate it.
Thanks for your help
--
Tim Keir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060811/5b3b2709/attachment-0005.htm>
More information about the Swfobject
mailing list