[Xerte] Re: Controlling a Flash .swf from Xerte
kent_chesnut at hotmail.com
Mon Feb 17 22:56:08 GMT 2014
Thanks so much to Dave Burnett!
He provided the following... Sometimes loading the swf into a component icon is better than a graphics icon.
Using the component (right click on your page and select Add Component) worked as I had expected the graphic icon to work.
Have a great evening,
From: kent_chesnut at hotmail.com
To: xerte at lists.nottingham.ac.uk
Date: Mon, 17 Feb 2014 15:28:28 -0600
Subject: [Xerte] Controlling a Flash .swf from Xerte
I'm beating my head on the wall with this one.
For a software simulation I use a graphics icon and loadImage() to load a series of screenshots based on the user's input. However, this causes a flash and a slight lag while transitioning from 1 picture to the next.
I put the screenshots in subsequent frames of a flash app and set the frame action to stop(). I think I should be able to access the flash movieclip object using the Id of a graphics icon. Then I could use IdIcon.gotoAndStop(frame) to control the simulation. This doesn't seem to work.
I've tried compiling the flash for both Actionscript 2.0 and 1.0 with no luck.
I've also tried IdIcon.nextFrame() - but that doesn't do anything either.
When the icon loads, IdIcon._currentframe, _framesloaded, and _totalframes all return 1 even though I added a button on the flash that lets it advance frame by frame (and that works even when pulled up in Xerte).
Any help would be greatly appreciated.
Have a great day,
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
Xerte mailing list
Xerte at lists.nottingham.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xerte