LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-12-2003, 02:34 PM
PUP100 PUP100 is offline
Registered User
 
Join Date: Jan 2003
Location: UK
Posts: 145
Rep Power: 11
PUP100 is on a distinguished road
Problems with "registerClass" function

I have been having some trouble with the “registerClass” function for making homemade objects inherit the properties & methods of movie clips.

Below (verbatim) is the code I have been using from an example in a reference book, which would not appear to work. I have tried placing the code in the first keyframe of the main timeline, in the first keyframe of the symbols timeline & on the symbol itself but with no success.

Just to make sure I have set everything up correctly – I first created a symbol & used the linkage option in that window to set the symbol name & (by default) the linkage identifier to symbolID I chose both the default options for linkage – Export for action script & export in First frame & as mentioned above tried the register class script in a few keyframes. I have tried it with just the symbol on stage & with the symbol + instances on stage but nothing doing.

Any help please.

ORIGINAL CODE

function MyClass(){}
MyClass.prototype= new MovieClip();
MyClass.prototype.onEnterFrame=function() {this_x++;}
Object.registerClass("symbolID",MyClass);

JD
(London)
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Function Consolidation Help SpectacularStuf Flash CS3 / Flash 9 0 09-29-2007 03:20 AM
Slight actionscript forum Agent-VIP Newbies 0 05-08-2007 12:30 AM
Newbie! Cannot access flash.net.FileReference paulr Actionscript 2.0 7 12-21-2006 11:33 AM
Buttons ... damned BUTTONS gooup Flash 8 3 10-15-2006 12:31 AM
Functions ssjskipp Flash MX ActionScript 5 03-22-2005 12:42 AM




All times are GMT. The time now is 03:37 PM.