|
#1
|
||||
|
||||
|
Freezing
For some reason this is causing my first page some issues. FREEZING :( I Can't go any where.
flash = Folder.DoesExist("C:\\flash"); -- is the flash there? if flash==true then Page.Jump("Page1"); else Page.Jump("Page2"); Folder.Create("C:\\flash"); end Hummmm |
|
#2
|
||||
|
||||
|
Technically, any call to Page.Jump should be your last action. You see, once you jump to another page, you're no longer on the page where your script is executing anymore. The results can be "undefined". In your example, move the
Folder.Create("C:\\flash"); before the Page.Jump("Page2"); as in flash = Folder.DoesExist("C:\\flash"); -- is the flash there? if flash==true then Page.Jump("Page1"); else Folder.Create("C:\\flash"); Page.Jump("Page2"); end |
|
#3
|
||||
|
||||
|
Ahhh... it's still doing it. :confused:
|
|
#4
|
||||
|
||||
|
Hi Bruce, I think you are trying to jump from page1 to page1 maybe? Create a 3 pager and paste this code on Page1, works over here:
flash = Folder.DoesExist("C:\\flash"); if flash then Page.Jump("Page2"); else Folder.Create("C:\\flash"); Page.Jump("Page3"); end Note that you do not have to test the variable for a specific value like if flash==true you just have to see if it's set, i.e. "if flash", easier on the brain... ![]() Corey Milner Creative Director, Indigo Rose Software |
|
#5
|
||||
|
||||
|
Yep, that's what it looks like to me too: jumping to Page1 from Page1.
Since the code on Page1 jumps to Page1...you get stuck in what programmers call an endless loop. |
|
#6
|
||||
|
||||
|
Ok, how would I tell it to just continue to it's own page if i'm already on Page 1?
|
|
#7
|
||||
|
||||
|
Just put this on Page1 OnShow:
flash = Folder.DoesExist("C:\\flash"); if not flash then Folder.Create("C:\\flash"); Page.Jump("Page2"); end Corey Milner Creative Director, Indigo Rose Software |
|
#8
|
||||
|
||||
|
Of course, drop kick the jump to page1 completely. Ok.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT -6. The time now is 07:34 AM.









Linear Mode
