Hi Alan.

The missing thing is you must let RTE2124BuserName (one of the most horrible class names I have seen so far :-) ) extend MovieClip.
Therefore you have to import the movieclip class
How this is accomplished you can see in the text.

The errormessage tells you that you linked one of the library symbols with your class - what is ok to do so. In the linkage properties you can define a baseclass for your symbol what you could change to "flash.display.Sprite" but in your case its not necessary. To delete all your symbols in the library is definitely not a solution ;-)

As far as I can tell you this is not the last error you get. I highly recommend to read the manual.

Alan Neilsen schrieb:
Thanks for all your help dr.ache. I think I am very close now. I still get a 
number of errors, but I think the underlying problem is this one:
5000: The class 'RTE2124BuserName' must subclass 'flash.display.MovieClip' 
since it is linked to a library symbol of that type.

What is that trying to tell me, and how do I fix it? I tried a number of things (even 
deleting all the Movie Clips from the library), but I still get the same errors. It 
certainly won't let me put one class in another (as one might interpret the term 
"subclass"). When I tried that it told me that classes can't be nested.

package {
                // Import stuff
here goes:
import flash.display.MovieClip;
                import flash.events.EventDispatcher;
                import flash.events.Event;
                import flash.events.MouseEvent;
                import flash.display.*;
                import flash.net.URLRequest;
                import flash.display.Graphics;
                public class RTE2124BuserName {
this one needs to be:
public class RTE2124BuserName extends MovieClip
                                var rect1:Shape = new Shape();
                                rect1.graphics.beginFill(0xFFFFFF);
                                rect1.graphics.drawRect(0, 0, 1966, 660);
                                rect1.endFill();
                                addChild(rect1);
                                var ldr1:Loader = new Loader();
                                ldr1.mask = rect1;
                                var url1:String = "topics/rte2124b_topic1.swf";
                                var urlReq1:URLRequest = new URLRequest(url1);
                                ldr1.load(urlReq1);
                                
ldr1.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler1);
                }
                public function completeHandler1(event:Event):void {
                                MovieClip(event.currentTarget)._parent = this;
                                trace(_parent.ldr1);
                }
}

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal
#####################################################################################
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to