Hmm,
Seems my problem is't solved...
Since Rob says it's not a bug, but to use the "Show slide" function..(when using slideshows and menu instead of buttons) it is still not working.
When using a menu and "show slide", it will not change the "slide" variable(always loads slide 1 again)...
When using buttons and "let" action (in the new 4.81) it still doesn't work on export...
I might know why menus are different and act this way... menu might be separate "movie" so it does not see main movie variables straight away. For example, if I try to use script action to change editbox text -> slide = "abcdef"
Nothing happens.. but if I use root.slide = "abcdef" then it works.
So, menu action with variables kinda work, they might be just separate movies from main movie.
edit: my_6th_sense, if using menu, change syntax a little -> Let root.slide="Slide x"; (earlier: Let slide="Slide x")
Damn... I tested my buttonbug test movie in both preview and Flashplayer.. it works, but then I tested my door_effect movie and it too shows always first slide
I'll look into it and try to find out what goes wrong.
It's working!!!!
Rob helped me out on this one...
He didn't know why your method is not working, but it is working when changing the call function into an instruction.
==> element ("Slide show 1").showSlide (root.slide);
From my experience root functions can be called from children but it's a matter of timing. You need to know when in the startup process the root functions are available. I have enclosed a movie which may help explain what I mean. As you will see 3DFA's preview startup is different than flash's which explains why it may work in 1 and not the other.
Classic gotcha for me.... function calls are usually ok (see ppedz reply)
My whole function problem (and so on my_6th_sense's, with my example) was caused by using a function name showSlide(), in preview ok, but Flash did not like it because it is SAME name what slideshow uses to change slide.
Feel kind of stupid now
I'll clean up previous replies to not create unneeded confusion to others..
Classic gotcha for me.... function calls are usually ok (see ppedz reply)
My whole function problem (and so on my_6th_sense's, with my example) was caused by using a function name showSlide(), in preview ok, but Flash did not like it because it is SAME name what slideshow uses to change slide.
Feel kind of stupid now
I'll clean up previous replies to not create unneeded confusion to others..
Ok, Maybe I'm not so stupid after all
When you sent me your file I was wondering if the showslide() was referring to the showslide() of 3DFA or not...Aparently it was not