Swf crashes when clicked at a certain time

hi if you goto www.dream-odyssey.com

you’ll notice two “eyes”. Once the page has loaded if you click the left eye they lid will close and take you to the home page. Now if you click the eye THEN click again just as the lid is fully closed (may take a few attempts to execute this) Iexplore should crash… (or actually flash.ocx)

the source is too big to attache but cxan be downloaded from www.dream-odyssey.com/Leye.fla

I have no idea why it crashes… I have tried to displace the button far to the left so that when it is clicked the user can’t click it again…

I think it is probably Iexplore trying to fetch 2 url’s at the same…

Any ideas?? This doesn’t happen at all in the Flash MX program :-/

Yup, it made my IE crash too. I don’t know exactly what’s the cause, but maybe you should disable the eye after it’s being clicked to prevent viewers from clickin git multiple times.

yeah. that’s what i tried to do by shifting the actual button area so that once it was clicked the user can’t fetch the url again but i think when the home page loads after being clicked the first time…it loads too quickly so that the user can click it again…

Hmm i dunno! :frowning:

How do i go about completely disabling a MC? is the a standard method for it?

I couldn’t make it crash :frowning::wink:

(MAC OSX, DSL, IE 5.2.3)

I don’t get it though - can’t figure out what is supposed to happen, it just seems to reload the same page (?) and the eyes are black rectangles with an eye within them (not eyelids by themselves, but have a background)

:confused:

Mine didn’t crash either… Win XP, IE 6 SP1

*Originally posted by Baggio *
**How do i go about completely disabling a MC? is the a standard method for it? **

You can use something like this:

on (release){
this.enabled = false;
}

hmm that is strange… RelandR i set wmode = transparent so there should be no black background :frowning:

Thanks thanks electrongeek i thought it would be somethign simple like that i’ll give it a try :wink:

hmm Don’t know why but when i add this.enabled = false the button is still clickable :-/

Try this then, give your button an instance name of something like “blah” and use this:

on (release){
_root.blah.enabled = false;
}

I’ll post a screenshot a lil later on…

nope still does the same… actually it is only dosabled a few milliseconds after the lid is closed, because if i run it in flash and wait for the lid to close only after a few milliseconds can i NOT click it :frowning:

Make sure you apply the instance name and the action to all the instances of that button on your timeline. It’s doing that because you have more than one instance of it on different keyframes.

hmm but the button is just a MC on the main time line occupying only a single frame…

Could you post your FLA so I can see what’s going on?

sure thing just check the link in the first post

the script works, it disabled the button, but then the page reloads the button again so it is enabled again.

yeah… exactly which is how it SHOULD work… but if the user starts clicking it like mad chances are it will crash :-/ and i have no idea why…i think it’s probably IE trying to fetch a URL too quickly but that doesn’t seem likely…

Baggio: You might want to check out this thread for your forward/backward script, it is more efficient than your current method…

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=11427

Yeah thanks…I actually saw that thread before… but my actionscript was a little rusty so i tried the simple approach :wink:

Just offering up alternatives :slight_smile: