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 <[email protected]> wrote: > > On Wed, 22 Aug 2012 14:11:39 +0530 > > Anil Chandra <[email protected]> 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. >
--------------- SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an existing subscription, please kindly point your favourite web browser at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>
