[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] FSCommand problem
From: |
Lists |
Subject: |
Re: [Swftools-common] FSCommand problem |
Date: |
Thu, 23 Aug 2012 21:58:10 +0200 |
> On Wed, 22 Aug 2012 14:11:39 +0530
> Anil Chandra <address@hidden> wrote:
> > Will really appreciate an example. "clicking on the loaded swf
> > should generate some fscommand" is a must.
A little ott maybe ;o), but hopefully will give you some ideas!
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
.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.onPress = function() {
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,
this.getURL("fscommand:abcd","");
in the second 'case false:' statement.
Any probs, or questions, then let me know.
Cheers,
Chris.