|
-
[RESOLVED] [F8] I don't even know WHAT to title this problem.
Okay- I have a photography website that, upon entering a frame, uses a dynamic text box to display "click the arrows to view the pictures". It should only do that the FIRST time that frame is loaded. I figured the first time it'd run, I'd have it set a variable, then test if that variable was set or not, and if it WASN'T, have it run the code that sets the dynamic text box.
Here's my code that is on my "actions" layer on the corresponding frame.
if(testr == undefined){
onEnterFrame = function() {
textbox="click the arrows to view the pictures";
var testr:String="yes";
trace(testr);
}
}
That code should only be running once, and loading the text once. Then, two buttons are on that frame, and when somebody clicks on one of them, the dynamic text should load to "loading the image..". But the above code resets the "loading image.." code back to "click the arrows to view the pictures", which I don't want it to. Here's my code on the buttons:
on(press)
{
textbox="loading image..";
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|