Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-26-2004, 09:04 AM   #1
thaumaturgy
Macromedia Mercenary
 
thaumaturgy's Avatar
 
Join Date: Feb 2004
Location: Rose Bowl Country
Posts: 300
Send a message via Yahoo to thaumaturgy
Default Control SWF from outside the Flash environment --> Is it possible?

Hi, haven't been here in a hot minute. I've run into a problem, and have come here seeking wisdom and guidance, and hopefully an answer. I've scoured Google, kirupa, devshed, and flashkit, and have yet to find the answer to my question, which is:

Is it possible to send variables/commands to the timeline of an already-loaded SWF from outside the Flash environment? I've read that JavaScript can supposedly do this (to a limited degree), but I haven't found any tut's that break it down step-by-step; they all talk in generalities. I tried Macromedia, and their last word on the subject was dated 2001.

Any (solid) information for me? Anyone?
thaumaturgy is offline   Reply With Quote
Old 08-26-2004, 10:14 AM   #2
Curly Brace
Rock is alive!
 
Curly Brace's Avatar
 
Join Date: Jun 2004
Location: Russia
Posts: 603
Send a message via ICQ to Curly Brace
Default

This works in IE:
PHP Code:

<HTML>
<
HEAD>
<
TITLE>Movie1</TITLE>

<
script language=javascript>

function 
varSend() {
var 
id=f.variable.value;
movie.SetVariable("varName"id);
}
</script>
</HEAD>
<BODY bgColor=#0000cc><!-- URL's used in the movie--><!-- text used in the movie-->

<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 
codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 
height=200 width=250 name="movie"><PARAM NAME="movie" VALUE="Movie1.swf"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#0000CC">
    <EMBED src="Movie1.swf"  quality=high bgcolor=#0000CC  WIDTH=250 HEIGHT=200 
TYPE="application/x-shockwave-flash" 
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
<form name=f>
<input type=text name=variable>
<input type=button value=Send onClick=varSend();>
</form>
</BODY>
</HTML> 
Curly Brace is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:27 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.