Source language: Translate to:

compiled exe problem?

General questions about NeoBook

Moderator: Neosoft Support

compiled exe problem?

Postby yanzco » Tue Aug 26, 2014 7:26 am

hi.. after a month... my proeject is finally finished..
all i want to do now is compile it to an exe..

but my problem.. is, i made a test exe for using a flash button..
when clicked.. it issues an fscommand

fscommand("NeoBook", "SetVar \"[PageView]\" \"Transaction\"");
fscommand("NeoBook", "GotoPage \"Transaction\"");

sets variable [pageview] to transaction and goes to page transaction..

everything works perfectly in (Run from start)

but when i click the flash button on the compiled exe.. it errors..

"Access violation at address 050848B9. Write address 04B90451."

whats wrong with it?... :(

im downed that it wont work.. i wanted my buttons to animate with flash.. just a simple bouncing icons.. but, it makes my front screen look nice..


anyone can help me with compiling the project?..
yanzco
 
Posts: 178
Joined: Sun Jul 20, 2014 4:07 am

Re: compiled exe problem?

Postby yanzco » Tue Aug 26, 2014 7:33 am

i think its the fscommand..

it doesnt work in the compiled form..but why?..

it works in the (RUN) mode..
so why not in the compiled form..
yanzco
 
Posts: 178
Joined: Sun Jul 20, 2014 4:07 am

Re: compiled exe problem?

Postby Neosoft Support » Tue Aug 26, 2014 10:54 am

Running in test mode also creates an exe so the content should look the same as when doing a full compile. The only difference is that with the compile, all the external files are bundled inside the exe. Some Flash content relies on external files, but NeoBook's compiler has no way to know what external files are required. Check to see if your Flash content requires any external files, and if it does copy them to the same folder as your compiled exe.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: compiled exe problem?

Postby yanzco » Tue Aug 26, 2014 9:19 pm

ok, miraculously , it worked... i guess the flash buttons doesnt work if embedded.. but it worked if i changed the path to [currentdir]flash\button1.swf
and manually pasted the "flash"folder wherever the compiled exe is..

im curious, how do i bundle a folder and its images in the setup ?

i mean, if its installed, it creates a subfolder like, images.. buttons, flash.. txt, mdb..
not embedded inside the exe..
yanzco
 
Posts: 178
Joined: Sun Jul 20, 2014 4:07 am

Re: compiled exe problem?

Postby Tony Kroos » Tue Aug 26, 2014 11:50 pm

I'm not sure if I understand it correctly, but try to check "Embed Flash player" option in Flash Object properties->General
Tony Kroos
 
Posts: 402
Joined: Thu Oct 15, 2009 3:43 pm

Re: compiled exe problem?

Postby HPW » Wed Aug 27, 2014 2:20 am

Hello,

Tony:
I think "Embed Flash player" does only embed the player-activex and not the flash media files.
Otherwise the flash player would need to read the content from a neobook stream other than from disk.

yanzco:
For a more complex setup try installer like 'inno setup' to create a installation.

Regards
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: compiled exe problem?

Postby yanzco » Wed Aug 27, 2014 6:38 am

@Tony
the problem was that the flash button works / animates fine when mouse overed.. but when clicked, issuing the fscommand doesnt work..
but it was fix by changing the directories of the flash files to [pubdir/ currentdir]..

@HPW thanks!, i will check that out tonight..
yanzco
 
Posts: 178
Joined: Sun Jul 20, 2014 4:07 am

Re: compiled exe problem?

Postby Neosoft Support » Wed Aug 27, 2014 11:58 am

NeoBook will embed the Flash swf file into the exe, but it can't embed external files that the Flash movie might require, and even if it could Flash wouldn't be able to access them.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to General NeoBook Discussions

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron