PDA

View Full Version : Help


dnvthv
03-12-2006, 10:44 PM
Hi !!
e.g:
I have file flash(visible = false),button1 and button2. When I press button1, file flash(visible = true) begin to play and button1 hide. After the time is 7 minute 5 second, file flash stop playing and hide, button1 appear again.
If file flash is playing and button1 is hiding, I press button2, file flash stop playing and hide, button1 appear again, and jump the other page. My English is not good. I hope you understand.
Thank you.

playmenow
03-13-2006, 03:47 AM
so, what's wrong? If you need the code, here it is:

BUTTON 1 --> ON CLICK:

-- flash work
Flash.SetVisible("flash1", true);
Flash.Play("flash1");
-- button work
Button.SetEnabled("button1", false);
Button.SetVisible("button1", false);
Button.SetEnabled("button2", true);
Button.SetVisible("button2", true);


BUTTON 2 --> ON CLICK:

-- flash work
Flash.SetVisible("flash1", false);
Flash.Stop("flash1");
-- button work
Button.SetEnabled("button1", true);
Button.SetVisible("button1", true);
Button.SetEnabled("button2", fase);
Button.SetVisible("button2", false);
-- page work
Page.Jump("page2")


PAGE --> ON SHOW:

-- flash work
if Flash.GetState("flash1") == 4 then
Flash.SetVisible("flash1", false);
Flash.SetEnabled("flash1", false);
-- button work
Button.SetEnabled("button2", fase);
Button.SetVisible("button2", false);
Button.SetEnabled("button1", true);
Button.SetVisible("button1", true);
end

I hope this works :)