Timer start at 1000 and a picture is loaded then at 5000 a video
is loaded ? how could i do that ??
is loaded ? how could i do that ??
count = count + 1; if count == 10 then -- LOAD YOUR IMAGE HERE end if count == 50 then -- LOAD YOUR VIDEO HERE end
Page.StartTimer(100);
count = 0;
FadeIn_[18]=1; Page.StartTimer(TriggerTime);
totalImages=19; FadeIn_={}; for count=1,totalImages do FadeIn_[count]=0; end speed=90; TriggerTime=10;
count = 0; Page.StartTimer(3000); Image.SetOpacity("loading", 0); Image.SetOpacity("IM9_A", 100); Image.SetOpacity("IM11_B", 0); etc....
count = count + 1000; if count == 3000 then Page.Jump("SEAR_swf"); else allDone = 1; for x=1,totalImages do if (FadeIn_[x] == 1) then Image.SetOpacity("IM"..x.."_A", Image.GetOpacity("IM"..x.."_A") - speed); Image.SetOpacity("IM"..x.."_B", Image.GetOpacity("IM"..x.."_B") + speed); elseif (FadeIn_[x] == -1) then Image.SetOpacity("IM"..x.."_A", Image.GetOpacity("IM"..x.."_A") + speed); Image.SetOpacity("IM"..x.."_B", Image.GetOpacity("IM"..x.."_B") - speed); end if (Image.GetOpacity("IM"..x.."_A")<100) then allDone=0; else FadeIn_[x] = 0; end end if allDone==1 then end end
count = count + 10; --add up the miliseconds if count == 10000 then --has the timer been running for 10 sec? --jump to page else --do your image opacity fades end if
Comment