| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jul 2007
Posts: 4
|
I haven't touched Flash since MX 2004 and it's like a whole new learning expirience.
I'm about to stab someone in the eye, so i'd appreciate if someone could help me with the following error: 1119: Access of possibly undefined property onRollOver through a reference with static type flash.display:SimpleButton. I have a button named btMail and made the code (in a frame): Code:
btMail.onRollOver=function(){
// btGlass.x-=100;
gotoAndStop(5);
}
Anyways, can someone please help me find the error in my code? Thanks, -Steve |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Jul 2007
Posts: 4
|
Any takers?
-Steve |
|
|
|
|
|
|
|
|
#3 |
|
Flash Adventurer
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,975
|
You said you're using Flash MX 2004, but because you posted in the Flash 9 forum, I assume you mean Flash CS3. I'm also going to assume that you're trying to use ActionScript 3. I recommend checking your details before posting next time, and please correct me if I've assumed anything wrong.
The problem is that onRollOver no longer exists in ActionScript 3. You need to listen for the ROLL_OVER event and call a seperate function now. ActionScript Code:
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Jul 2007
Posts: 4
|
I said i haven't used it since 2004, and thanks so much for the code but i get this now:
Warning: 1090: Migration issue: The onRollOver event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseOver', callback_handler). I'll see if i can solve it myself, but i doubt it... -Steve |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Jul 2007
Posts: 4
|
Got it.
Thanks so much for the help, just had to rename the function ^_^. -Steve |
|
|
|
|
|
#6 |
|
Flash Adventurer
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,975
|
It was just a warning, not an error. The SWF should have run regardless, but yes, it's smart to rename it to avoid confusion.
|
|
|
|
|
|
#7 | |
|
Registered User
Join Date: Aug 2007
Location: Russia, Kaliningrad
Posts: 2
|
I've a problem too:
I have a class with following code: Code:
private function onClick(evt:MouseEvent) {
root.mc_list.gotoAndPlay(2);
}
Quote:
please help me find the error in my code? Thanks |
|
|
|
|
|
|
#8 |
|
Flash Adventurer
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,975
|
The compiler doesn't know that mc_list is a MovieClip on the root. Try this:
ActionScript Code:
|
|
|
|
|
|
#9 |
|
Registered User
Join Date: Aug 2007
Location: Russia, Kaliningrad
Posts: 2
|
|
|
|
|
|
|
#10 |
|
Registered User
Join Date: Aug 2007
Posts: 1
|
I am not a flash programmer at all - but I found a bit of code that I want to embed on a site that I have a need to lock down.
Action Script: this.onEnterFrame = function(){ System.setClipboard("As long as this page is open your copy/paste functionality has been disabled."); } Error: Warning: 1090: Migration issue: The onEnterFrame is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'enterFrame', callback_handler). What do I need to do and where? TIA! |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Q] Setting up connection between MS Access and PHP... | CyanBlue | Server-Side Scripting | 23 | 05-04-2009 12:05 PM |
| Access collection property in live preview and custom UI | ngchenghow | Components | 1 | 11-29-2006 02:42 PM |
| Access object property with fram label | TheJazzMan | ActionScript 2.0 | 5 | 05-12-2005 06:46 PM |
| can't access property within function | conspirisi | ActionScript 2.0 | 2 | 03-23-2005 12:06 PM |
| access object property dynamically? | kellere | ActionScript 2.0 | 2 | 12-31-2004 03:02 AM |