Link to home
Start Free TrialLog in
Avatar of daryn
daryn

asked on

Flash and passing variables to a movie from a php page

heys all.

Right. This is an oldie but a goodie. (well. not really a goodie. more like an out of date cookie with a little mould on it. kinda.)

ahem.

I've got a flash navigation movie (ie a bar with menu options on with a little bar that moves underneath the menu option that corresponds to the current page).

making the bar respond to a mouse rollover of the menu item is working fine.

given a variable in the script
ie
currentpage = 4;
if (currentpage==4)
{
<make bar go to this position>
}

then the bar will obediently go to that position.

However. I cant get this function above to respond correctly when the variable is not defined in the script, but defined by either

1) loadvariables from a php script (the script returns    currentpage=4    )
2) hardcoding the variable into the html object reference.

All this works fine, of course, when placing the variable into a dynamic text box but i cant get this damn thing to work when simply trying to test the damn thing.


Any ideas please?

thanks very much

Daryn
Avatar of negatyve
negatyve

>Any ideas please?

yep, you are using the variable *before* it has been loaded. How are you using it (the script)?
Avatar of daryn

ASKER

definitely using it _after_ i've run the load command.

the load command is based in the first frame of the "first" layer that existed in the animation (ie the bottom layer).

the command to move the bar to the desired position, depending on the condition, is in the actionscript attached to the bar itself.
ASKER CERTIFIED SOLUTION
Avatar of negatyve
negatyve

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of daryn

ASKER

thanks very much