Source language: Translate to:

neobook variable to flash ?

General questions about NeoBook

Moderator: Neosoft Support

neobook variable to flash ?

Postby yanzco » Mon Aug 11, 2014 8:01 am

hello, i cant seem to get the flashgetvar and flashsetvar to work.

i mean, i just dont know where to start..

what do i place in actions (action script 3) in the flash ?

what do i place in neobook actions for it to sync with the flash file..

im using adobe flash pro cs6..


what i was trying to do is just, have the flash display some text with the neobook variable in it..
hello [name]

anyone got idea how to do this?
yanzco
 
Posts: 175
Joined: Sun Jul 20, 2014 4:07 am

Re: neobook variable to flash ?

Postby Neosoft Support » Mon Aug 11, 2014 10:39 am

Below are two sample pubs from the NeoBook Resource Center that demonstrate how to get and set Flash variables:

http://www.neosoftware.com/neobook/modules/pubs/singlefile.php?cid=10&lid=20

http://www.neosoftware.com/neobook/modules/pubs/singlefile.php?cid=10&lid=36
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5593
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: neobook variable to flash ?

Postby yanzco » Tue Aug 12, 2014 4:08 am

yes, the .fla source that i needed.. thanks! i will be sure to check on that later..
yanzco
 
Posts: 175
Joined: Sun Jul 20, 2014 4:07 am

Re: neobook variable to flash ?

Postby dpayer » Tue Aug 12, 2014 6:48 am

yanzco wrote:yes, the .fla source that i needed.. thanks! i will be sure to check on that later..


I found an issue on certain variables with Flash. In some cases, you need the variable to be provided when the file loads (not afterward) and I could not find a way to do it with Neobook. I did find a way to place the Flash file inside a web browser object and present the variables that way.

Here is something from Adobe: http://helpx.adobe.com/flash/kb/pass-va ... hvars.html
David Payer
Des Moines, Iowa
USA
User avatar
dpayer
 
Posts: 1380
Joined: Mon Apr 11, 2005 5:55 am
Location: Iowa - USA

Re: neobook variable to flash ?

Postby yanzco » Wed Aug 13, 2014 5:39 am

yep, for some reason, it wont work...
when i use the .fla in the sample, it works..

but when i make mine, it wont..
sometimes, its just a few letters.. like a , e etc..
for ex. var is order number is 23

it displays ee
because there are 2 e in the string.. it wont display other letters..

tried to display abcdefghijklmnopqrstuvwxyz

it only displays abheklost



@dpayer

how do i do that?..

i mean, what should i do to make it work.. or procedures...
yanzco
 
Posts: 175
Joined: Sun Jul 20, 2014 4:07 am

Re: neobook variable to flash ?

Postby yanzco » Wed Aug 13, 2014 5:55 am

in flash pro cs6, inside the text are "testtext"

then in neobook, when i flashsetvar.. abcdefghijklmnopqrstuvwxyz
it can display any letter that is inside the first text set.. so it can display letters t, e, s, x..

so i then changed in flash pro cs6 the text to abcdefghijklmnopqrstuvwxyz

then in neobook, flashsetvar to "testing set var12345"

it shows, "testingsetvar"

i guess no space because, there are no "space" in the first text set..
and no numbers because there are no numbers set in the first text

so i changed it again to " abc defghijklmnopqrstuvwxyz123456789"

then flashsetvar to "hello testing 012345"

it displays "hello testing 12345"

i guess i forgot 0..

so, my conclusions..
i can set the variables to any string i want now in neobook, but only if i set the texts of the flash variable to 0123456789 abcdefghijklmnopqrstuvwxyz

and i dont know how or why its like that..

and the flash text is clickable and editable in neobook..
how can i make it not clickable / editable in neobook.. (blinking cursor when clicked)
yanzco
 
Posts: 175
Joined: Sun Jul 20, 2014 4:07 am

Re: neobook variable to flash ?

Postby Gaev » Wed Aug 13, 2014 7:48 am

yanzco:

in flash pro cs6, inside the text are "testtext"

Can you post the source code (action script ?) of your .fla ?

so, my conclusions..
i can set the variables to any string i want now in neobook, but only if i set the texts of the flash variable to 0123456789 abcdefghijklmnopqrstuvwxyz

and the flash text is clickable and editable in neobook..

When you say "flash text", do you mean a TextEntry type object ? ... or a plain variable ?

how can i make it not clickable / editable in neobook.. (blinking cursor when clicked)

Can you post an image of your screen ?

Perhaps can you control the placement of the "flash text" ... x,y location ... or even layer it under another object.
User avatar
Gaev
 
Posts: 3717
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Re: neobook variable to flash ?

Postby yanzco » Wed Aug 13, 2014 4:50 pm

i got it fixed, instead of input text, i changed it to dynamic text, so its unclickable on neobook..

actionscript in .fla .. theres none..

its just a simple rectangle image with just a simple text box, with a variable set on it..

(just for testing out the flashsetvar and flashgetvar)


i think so far, im ok with the abcdefghijklmnopqrstuvwxyz1234567890 starting text
because it would be changed once its on neobook..

not sure why without it, when variable is changed it wont appear.
yanzco
 
Posts: 175
Joined: Sun Jul 20, 2014 4:07 am


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron