swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] FSCommand problem


From: Anil Chandra
Subject: Re: [Swftools-common] FSCommand problem
Date: Fri, 24 Aug 2012 01:35:27 +0530

Dear Chris,

Thanks. I got the idea about how it can be achieved. Let me check this out. 

Thanks again.

Anil C

On Fri, Aug 24, 2012 at 1:28 AM, Lists <address@hidden> wrote:
> 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. {

     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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]