Source language: Translate to:

fscommand

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

fscommand

Postby eliaskho » Fri Oct 13, 2006 2:09 pm

Hello,
what is the exact fscommand script in flah to put to let neobook go to - GotoPage "Start" for example?
Thanks
eliaskho
 
Posts: 32
Joined: Tue Aug 30, 2005 9:23 am

Postby Gaev » Fri Oct 13, 2006 3:45 pm

eliaskho:

From the Help file ...
Code: Select all
The Enable FSCommands option allows special NeoBook Action commands embedded inside the Flash file to be executed. The Flash FSCommand feature is an advanced programming tool used by Flash authors to communicate with the host application - in this case NeoBook. Using FSCommand, Flash authors can execute any of NeoBook’s Action commands. Using FSCommand is beyond the scope of this manual, but experienced Flash authors need to direct the command at NeoBook. For example:

 

on (release) {fscommand ("NeoBook", "AlertBox \"A Message From NeoBook!\" \"Hello there,|This is an Alert box From NeoBook.\"");}

 

In addition to NeoBook specific FSCommands, you can manually intercept FSCommands intended for other applications. To do this, define a special subroutine called ObjectName_FSCommand. Replace ObjectName with the name of your Flash Player object. Before calling the subroutine, NeoBook will create two variables called [ObjectName.fsCommand] and [ObjectName.fsArgs] containing the information passed from the SWF file to NeoBook. Again, replace ObjectName with the name of your Flash Player. The contents of these variables can be almost anything, so some knowledge of the SWF file will be helpful when deciding how to interpret this information. The example subroutine below displays an AlertBox in response to FSCommands:

 

:Flash1_FSCommand
  AlertBox "FSCommand" "[Flash1.fsCommand], [Flash1.fsArgs]"
Return

So, for you something like ...
Code: Select all
on (release) {fscommand ("NeoBook", "GotoPage \"Start\"");}
User avatar
Gaev
 
Posts: 3737
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Thanks

Postby eliaskho » Fri Oct 13, 2006 3:52 pm

Thanks a lot...
eliaskho
 
Posts: 32
Joined: Tue Aug 30, 2005 9:23 am


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest