Join for FREE | Take the Tour Lost Password?
Shop deviantART for the
holidays and save BIG!
Click here! :holly:
[x]

deviantART

:flirty:
 

Need Help: Flash buttons not working properly on website

[x]  
Shop deviantART for the holidays Click here! :holly:
:iconnoadvos:
Hi,
I am building a website that is all in flash.
In the first frame there are 6 buttons. Each button has a code to go to a different place in the timeline, where something happens. For example, one of the buttons has this code:
on (release) {
gotoAndPlay("web");
}

Another button has this code:
on (release) {
gotoAndPlay("widgets");
}
And so on.
Everything happens on the same timeline.

When I publish the movie to test it (ctrl+enter), everything works great.

The problem happens when I upload the file to my ftp and try to view it online. In that case, when pressing one of the buttons, instead of jumping to the place in the timeline where it should go, it just continues on to the next frame on the timeline. So for example if I press the "web" button, instead of going to the label "web" it just continues on to frame 2 in the timeline, and then 3,4,5 and so on until there is a stop(); in the actionscript.

After the first press though, it goes back to working fine. Meaning, the second time I press the "web" button, it will go to the "web" label, and from the second click onwards everything works great. it's just the first click on ALL the buttons that doesn't work, although it does work locally...

Did this ever happen to any of you? Did you find a solution? Any suggestions are welcome!

Thanks!!
Noa

Devious Comments

love 0 0 joy 0 0 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconwardaya:
mmmm...ok, what i understand from ur problem is that the buttons doesnt work with u,when u test it on the browser
i hope that u solved this problem..
anyway try this code

on (release) {
getURL("[link]");

instead of
on (release) {
gotoAndPlay("widgets");
}

i think that goAndPlay code is for playing frams on the flash it self,not to get url from out side of the swf file
i hope that u understand me,and i'm really sorry about my weak English..
best wishes,bye

--
My Photography Account ~warDaya-i

warDaya is an arabic name of ROSE :rose:
:iconpsykopath:
Change it to the frame numbers and see if that fixes it.

--
overabundance causes confusion of time versus necessity.hurry, only 6 seconds to go.repeat as necessary.
:icondagmar-neo:
Making a website in Flash is 'flashy' but search engines like Google will never find your site.

As for your problem try working in different scenes. Working in one timeline makes most file unsteady. Or like psykopath said; Use numbers. You can't screw up with numbers.

--
:lock: I played this stinking website like a harp from Hell!
:iconkittymadness:
I'm sure you figured it out a looong time ago, but when I had this problem building my site, I used
on (release) {
gotoAndStop("widgets");
}

It stops on the frame you want it to, rather than continuing on to the next frame. :D

Site Map