I am sorry, I forgot to mention that this is a >>school project<<
So in order to graduate, yes, am More than hellbent on doing this. I know how to do _javascript_ interfacing in actionscript. I don't know how to get the viewport to be seen by swfcombine.
package { import flash.display.MovieClip;
public class Main extends MovieClip { public var viewport:MovieClip;
public function Main() { } } }
Here's where I am. I compile this with as3compile. How do I make the viewport seen by swfcombine? What more needs to be done?
swfcombine -o test.swf Main.swf viewport=LowLatencyData.swf WARNING Didn't find anything named viewport in file. No substitutions will occur.
swfdump on simple_viewer.swf says
[HEADER] File version: 4 [HEADER] File size: 505 [HEADER] Frame rate: 25.000000 [HEADER] Frame count: 1 [HEADER] Movie width: 1024.00 [HEADER] Movie height: 768.00 [009] 3 SETBACKGROUNDCOLOR (ff/ff/ff) [027] 4 DEFINESPRITE defines id 0023 [000] 0 END [01a] 14 PLACEOBJECT2 places id 0023 at depth 0001 name "viewport" [002] 37 DEFINESHAPE defines id 0032 [002] 35 DEFINESHAPE defines id 0033 [002] 37 DEFINESHAPE defines id 0034 [002] 35 DEFINESHAPE defines id 0035 [002] 37 DEFINESHAPE defines id 0036 [002] 35 DEFINESHAPE defines id 0037 [007] 39 DEFINEBUTTON defines id 0030 [007] 39 DEFINEBUTTON defines id 0031 [00c] 39 DOACTION [01a] 5 PLACEOBJECT2 places id 0030 at depth 0003 [01a] 9 PLACEOBJECT2 places id 0031 at depth 0004 [030] 30 DEFINEFONT2 defines id 0118 [025] 41 DEFINEEDITTEXT defines id 0119 variable "/:subtitle" (readonly) [01a] 5 PLACEOBJECT2 places id 0119 at depth 0005 [001] 0 SHOWFRAME 1 (00:00:00,000) [000] 0 END
So something else was done to PLACEOBJECT2 name viewport
Or alternatively, how do I use the actionscript ExternalInterface.addCallback (which exposes the _javascript_ interface) in .sc ? I don't have to force myself to use actionscript 3, I just need to get this thing done.
On Jun 21, 2009 10:44am, Chris Pugh <address@hidden> wrote: > As Ricardo says, maybe it would be easier to adapt an existing application, > > rather than re-invent the wheel? > > > > http://php.opensourcecms.com/scripts/show.php?catid=6&cat=Learning%20Management > > > > If you are hell bent on DIY, then the random link below may possibly assist you? > > > > http://www.expressanimator.com/examples5.php > > > > Best of luck! > > > > Regards, > > > > > > > > Chris. > > 2009/6/20 Onur Tugcu address@hidden>: > > > Hi everyone > > > I'm building a simple virtual class for remote education, and I want the > > > teacher to control student slides using _javascript_. > > > Is it possible to easily create _javascript_ events (eg. for page flipping) > > > for the generated swf? Does the default_viewer.swf support these events? If > > > so, what are the function names? > > > I could not find the information in the faq or on the web or in the manual. > > > Thank you for your time. > > > > > > >