|
From: | Anil Chandra |
Subject: | Re: [Swftools-common] FSCommand problem |
Date: | Fri, 24 Aug 2012 01:35:27 +0530 |
> On Wed, 22 Aug 2012 14:11:39 +0530A little ott maybe ;o), but hopefully will give you some ideas!
> Anil Chandra <address@hidden> wrote:
> > Will really appreciate an example. "clicking on the loaded swf
> > should generate some fscommand" is a must.
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
.flash filename="loadswf.swf" bbox=200x200 version=8 fps=60 compress
.box view_frame width=20 height=20 color=green fill=aqua
.box overlay width=20 height=10 color=green fill=aqua
.action:
m1 = createEmptyMovieClip("m1",1001);
m1.attachMovie("view_frame","m1",1001);
m2 = createEmptyMovieClip("m2",1002);
m2.attachMovie("overlay","m2",1002);
m1._width=50;
m1._height=50;
m2._width=50;
m2._height=50;
m2._alpha = 0;
flip = new Boolean;
flip = true;
m2. {
switch (flip) {
case true:
loadMovie("familysearch.jpg",m1);
break;
case false:
loadMovie("snd_play.swf",m1);
break;
default:
dummy = 0; // i.e. do nothing..
}
m1._xScale=2;
m1._yScale=2;
flip = !flip;
};
.end
.end
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
The script above actually flips berween loading two files into a frame,
which has a hidden button movie over the top. Simply place your
fscommand,
in the second 'case false:' statement.
this.getURL("fscommand:abcd","");
Any probs, or questions, then let me know.
Cheers,
Chris.
[Prev in Thread] | Current Thread | [Next in Thread] |