Source language: Translate to:

Calling Flash ActionScript Functions

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Postby luishp » Wed Nov 28, 2007 9:20 am

User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby luishp » Wed Nov 28, 2007 10:57 pm

I'm very sorry again. I included a test PUB version and not the final one.
It's updated again, please check it:

http://www.hdezpena.com/archivos/easing/powerflash.zip
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby HPW » Thu Nov 29, 2007 12:11 am

Luishp,

nice impressive demo.
What do you use for flash authoring?
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby luishp » Thu Nov 29, 2007 3:05 am

The demo has been updated with a complete set of drawing functions and an actionscript interpreter.

http://www.hdezpena.com/archivos/easing/powerflash.zip

I'm planning, thanks to Gaev, to develop it more NeoBook friendly using NB functions in the near future. And of course, as freeware.

Although some help to create a plugin would be very appreciated.

HPW, thanks. I use mainly a modified version of SWFQuicker (from Sourcetec), it's modified to allow AS Flash8 Version.
Sometimes i also use KoolMoves.
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby HPW » Thu Nov 29, 2007 3:23 am

Getting more impressive!

Do you think it is possible to create Objects per script which get a callback(OnClick/OnMouseOver) into neobook?
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby luishp » Thu Nov 29, 2007 4:49 am

Updated again with video streaming functions. :D

http://www.hdezpena.com/archivos/easing/powerflash.zip

HPW, that's my next step into this... i hope so.

Gaev is prety sure about it.

I have to investigate the best way to get into it.
I'm working against the clock: tomorrow shoulder surgery for me. :(
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby HPW » Thu Nov 29, 2007 5:25 am

I use mainly a modified version of SWFQuicker (from Sourcetec), it's modified to allow AS Flash8 Version.


So you use ActionScript 2 now?

It is amazing what people do with ActionScript 3 and the new Flash 9 player!

Flash with 3D for eample: http://blog.papervision3d.org/
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby luishp » Thu Nov 29, 2007 6:24 am

Newly updated with callback to NeoBook:

"onclick", "onmouseover" and "onmouseout" events are suported.
But be carefull, it works but after doing the callback and pushing any button the program gets hooked. I can't find the problem.
Any idea?

I'm using this in the ActionScript side:

Code: Select all
getURL("javascript:window.external.nbExecAction('"+nbcommand+"');");


And i've also tried with this:

Code: Select all
getURL("javascript:window.external.nbExecAction('Gosub \""+nbsub+"\"');");


http://www.hdezpena.com/archivos/easing/powerflash.zip

Hans, i agree with you.
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby luishp » Thu Nov 29, 2007 8:36 am

Fixed, finally i used:

Code: Select all
ExternalInterface.call("nbcall",nbcommand);


Now, it is quite functional and complete.

http://www.hdezpena.com/archivos/easing/powerflash.zip

Note: Flash 8 player or later required.
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby HPW » Thu Nov 29, 2007 8:55 am

Great!
This is definatly a huge addition to the neobook toolset.
Of course a SWF-tool will be required.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby luishp » Thu Nov 29, 2007 9:11 am

No Hans, any SWF-tools required. That's the point!

Just powerflash.swf and powerflash.html are required to create anything.

And finally, if Dave makes a direct bridge to call AS functions from NeoBook there will be no need for HTML.
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby luishp » Thu Nov 29, 2007 10:49 pm

Updated again with an interactive drawing example

http://www.hdezpena.com/archivos/easing/powerflash.zip

Please check. All comments are wellcome.
User avatar
luishp
 
Posts: 357
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Postby HPW » Fri Nov 30, 2007 12:31 am

Luishp,

getting better every day! Great work.

Just powerflash.swf and powerflash.html are required to create anything.


I can see the power on the script level.
But maybe someone would like to combine interactive and scripting flash work.
So at least it is an option to do it.

And finally, if Dave makes a direct bridge to call AS functions from NeoBook there will be no need for HTML.


Yes, that would be a dream-team, without wasting resources with the IE-layer.
(Not sure how much effort this would be and if it could happen in the next maintainance release.)
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Gaev » Fri Nov 30, 2007 8:37 am

Great stuff Santa ... err, I mean Luis ... each demo is more impressive than the previous ... lots of ideas about possible applications with this facility.

Wish you a speedy recovery/return from your shoulder surgery.
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Postby HPW » Sat Dec 01, 2007 1:07 am

Luishp,

So you use ActionScript 2 now?


You do not answer this.
(SWF Quicker and SwishMax seems currently only support AS2.)
It would be nice to know what version to investigate and to learn.

http://www.adobe.com/devnet/actionscrip ... rview.html

I wonder how the flash player know the difference between the 2 flavours of Actionscript (1+2+3).
Is the version of the SWF used to switch to the different script-engines?
So does a SWF saved from adobe's Flash CS3 automaticly use Actionscript3?
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

PreviousNext

Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest