Extending and MovieClip?

This is really aggravating me. I come from a OOP background
so Java and others are natural to me but ActionScript 2 is really
really unintuitive even thought it tries really hard to be a object
oriented language. So sorry if some of my question comes off as
rant/frustration.
I'm trying to extend the MovieClip class but it seems "class
Test extends MovieClip" isn't actually a MovieClip!!! wtf
[code]
class Test extends MovieClip {
function Test(){
trace("constructor called");
lineStyle(5, 0xFF00FF, 100);
moveTo(200, 200);
lineTo(300, 300);
lineTo(100, 300);
lineTo(200, 200);
On frame 1:
import Test;
stop();
var myMc = new Test();
[/code]
It outputs constructor called, but it doesn't draw anything
and in true Actionscript fashion, outputs no errors or warnings
whatsoever.
It seems that a class that extends a MovieClip isn't actually
a MovieClip. So much for that "is-a" relationship that its supposed
to have. or i guess it gives you access to the MovieClip functions,
but theres no point because theres no MovieClip on the stage...
Sure I suppose I could create an empty movie clip in the
constructor and put things in there, but then whats the point of
extending MovieClip? If Test really is a MovieClip it should be
able to draw on itself.
What am I not getting???

Yes, I believe its more like you're used to in as3.
So in as2 extending a MovieClip is not "as it should be". But
its not too difficult to get used to. If you're just starting with
actionscript coming from another OOP language you may want to start
with as3.
If you're doing it in as2 then cast the return type of
attachMovie to your class.
var mynewThing:Thing = attachMovie("thingClip", "firstThing",
nextdepth)
There are some 'tricks' to avoid using a library symbol:
"an empty movie clip is automatically created for your class
in your library with the linkage id __Packages.[full class name].
So you could just use that without defining any symbols yourself."
-source:
http://board.flashkit.com/board/showthread.php?t=615810
example:

Similar Messages

  • I need help extending the MovieClip class

    I want to add a property to the MovieClip class. I just have a bunch of MovieClips that are placed on the stage by reading an XML file and creating lots of clips according to the information in them. Now, I need to know which MovieClips were created below previous clips, and I figure that the easiest way to do so would be by extending the MovieClip class and add an order property.
    I have some problems though: I don't know how to set or get this order property within the main clip, I don't know how to place this clip within my movie, and I don't know how to create them dynamically (do I just do something like var myNewObjectOfExtendedClass : myExtendedClassName = new myExtendedClassName?)
    This is the code I have on my extended class, called Expando.as:
    class Expando extends MovieClip {
    private var _order:Number;
    public function get order():Number {
    return _order;
    public function set order(nOrder:Number):Void {
    _order = nOrder;

    You mean the Tree component?
    My concern with the Tree component (at least the AS2 version) is that I don't see a way to have each node in the Tree have different hit areas with different outcomes.
    The tree that I build must have up to 7 levels within each main branch, and not all of them behave the same way. In some branches, clicking the icon next to the label will have a completely different outcome than clicking on the label, which may or may not return a function. Each of those sublevels also need to support different icons, depending on what information is represented by it.
    Sample:
    • Reminders
    My Reminders
    Manual Reminders
    Escalated Reminders
    • Cases
    Name Actions < ---- this is where the problem begins. Clicking on the icon where the bullet should be should do something different than clicking on the name, which should do something different than clicking on the word ActionsThis is information about that referral that includes who referred them, the date of the referral, their full address. This information usually takes up 2 lines, sometimes 3
    Assignment   <------- you can only open see these leaves if you click on the bullet icon for the previous node; you can't open this by clicking on the text.
    Eligibility
    Etc., depending on what information has been appended
    • Suppliers
    Anyway, if the Tree Component can indeed support these features, I'd like to know where to find information about it please
    In my search for that information, I concluded that I'd probably be better served by building my own MovieClip that can handle these requirements. I did have a working Tree component pretty quickly as I started this project, but then I got more familiar with the app that I'm building the training for and noticed these requirements.
    Of course, maybe all these features are supported by the AS3 Tree component. The problem is that I'm a lot worse with AS3 than I am with AS2 heh.

  • What is the diffrence between extends and creating new object?

    HI ALL,
    what is the diffrence between extends and creating new object?
    meaning
    class base{
    class derived extends base{
    class base{
    class derived {
    derived(){
    base var = new base();
    can u people tell me diffence from the above examples.
    THANKS.
    ANANDA

    When you create a new object you have to supply the class to which that
    object belongs. A class can extend from another class. If it does so
    explicitly you can define the 'parent' class from which the class extends.
    If you don't explicitly mention anything, the class will implicitly extend
    from the absolute base class named 'Object'.
    Your example is a bit convoluted: when you create a Derived object,
    its constructor creates another object, i.e. an object from the class from
    which the Derived class extends.
    Extending from a class and creating an object don't have much in common.
    kind regards,
    Jos

  • Cisco Jabber for Windows in Extend and Connect mode and making outbound calls

    Hi guys,
    I've set up Cisco Jabber for Windows to use Extend and Connect to control a remote PBX endpoint. I've configured the required CTI-RD device, remote destinations, associated the users to the line and added the devices to end-user controlled device. The extend and connect part is working flawlessly without any issues. I'm able to receive inbound calls on the remote PBX endpoint and control the call (hold, resume, transfer etc.) using the Jabber call window that pops up.
    However, I'm unable to make any outbound calls via the Jabber client when in extend and Connect mode. Reading the Extend and Connect guide, I need to configure Dial Via Office (DVO) Reverse. So when the user initiates a Dial-Via-Office reverse call, CUCM calls and connect to the Extend and Connect device (CTI-RD). CUCM then calls and connects to the number the user dialled and finally connects the two call legs.
    After attempting to configure DVO-R for Jabber for Windows in Extend and Connect mode following the CUCM feature services guide, i'm unable to get any outbound calls working. From RTMT, i am receiving the following Termination Cause Code: (27) Destination out of order. What i also notice is that there is no calling number for that trace either. I would've thought that the calling party would've been the Enterprise Feature Access (EFA) number.
    Has anyone got this working or can provide some guidance?
    Thanks.

    Hi guys,
    I've set up Cisco Jabber for Windows to use Extend and Connect to control a remote PBX endpoint. I've configured the required CTI-RD device, remote destinations, associated the users to the line and added the devices to end-user controlled device. The extend and connect part is working flawlessly without any issues. I'm able to receive inbound calls on the remote PBX endpoint and control the call (hold, resume, transfer etc.) using the Jabber call window that pops up.
    However, I'm unable to make any outbound calls via the Jabber client when in extend and Connect mode. Reading the Extend and Connect guide, I need to configure Dial Via Office (DVO) Reverse. So when the user initiates a Dial-Via-Office reverse call, CUCM calls and connect to the Extend and Connect device (CTI-RD). CUCM then calls and connects to the number the user dialled and finally connects the two call legs.
    After attempting to configure DVO-R for Jabber for Windows in Extend and Connect mode following the CUCM feature services guide, i'm unable to get any outbound calls working. From RTMT, i am receiving the following Termination Cause Code: (27) Destination out of order. What i also notice is that there is no calling number for that trace either. I would've thought that the calling party would've been the Enterprise Feature Access (EFA) number.
    Has anyone got this working or can provide some guidance?
    Thanks.

  • Printing Problem with CS 6 extended and Canon Pro 9500

    My prints are no longer coming out centered. I have the "center" box checked in the CS6 print dialogue box. The prints are not centered left to right or top to bottom.
    This seems to be a problem since I upgraded to CS 6 extended and or newest print driver for my Canon Pro 9500.
    I believe that since I did one or both of these changes there is a border (consitst of slanted hash marks around the perimiter of the print dialogue picture) in the preview of the print.
    The border segments left and right are not equal and are very uneven in width. The top and bottom borders are closer but still not even in width.
    Can anyone help me with this issue?
    Thanks,
    Dennis

    Hi there! Because the forum you originally posted in is for beginners trying to learn the basics of Photoshop, I moved your question to the Photoshop General Discussion forum, where you'll get more specialized help.
    You will be able to continue your current conversation with PECourtejoie without inturruption.

  • Silent install Photoshop CS 6 extended and how do i get it?

    I hva bought a license for Photoshop CS 6 extended, and i need to to get a hold of a .msi (microsoft installer) file for this application, where do i get it?
    I also want to do the silent install for this application, with both installation and registration of the product using my license. I have no internet connection and i am wondering if this i possible?

    Hi There,
    Please go through the doc below to see the workflow to create a .msi.
    http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/AdobeApplication ManagerEnterpriseEditionDeploymentGuide_v_3_1.pdf
    Thanks,
    Ashish

  • Format External Drive Partitioned OSX extended and FAT32

    I am new to the concept of partitioning a drive and have found information mentioning that disk utility has a MS-DOS option for partitioning a drive. I do not have this as a drop down choice in my Disk Utility options. I have read that this is format equivalent to FAT32. I would like to partition this drive half OSX extended and half FAT32. How do I get the drop down choice and is this possible.
    PowerBook G4   Mac OS X (10.3.9)  

    Thank you Limnos for all your help. Last night I tried again and it worked! I’ not totally sure on what I did right but:
    • Both volumes on the new ext. driver were HFS (from my last attempt the other day) so I looked into a simple erase of one partition/volume into a different format, but DU did not offer a way of erasing it into MS-DOS(FAT32). But I think I did a simple HFS erase anyway of the volume I wanted to format to FAT32. There was nothing “in” that volume because this was a new external drive but I figured it could not hurt anything.
    • So then, I think I went back to Partition, locked the partition/volume that I wanted to keep in HFS+ for my Mac files, and (re)partitioned the other just erased volume to MS-DOS. I think I did it under the MBR option.
    • It worked! Not sure why but my Mac recognized both volumes one as HFS, the other as FAT32. Maybe someone will find this useful some day!!
    • Then, I hooked up the drive to my work Dell, the Dell found only the FAT32 drive (as expected), and I executed a short simple easy command I found on ehow.com (search for ‘convert FAT32 to NTFS’) to make that volume NTFS.
    Thanks again Limnos and everyone else!

  • Word, Acrobat 9 Pro Extended and PDF Maker

    I am still using Acrobat 9 Pro Extended and I also have Office 2010 installed on my Windows 7 laptop. Is there a way to get PDF Maker to work in Office? Right now when I open Word for example the PDF tab does not appear anywhere. I tried running the repair feature in Acrobat but nothing has changed.
    I believe Office needs to be installed first then Acrobat so PDF Maker can be installed. I did this intially when I had Office 2007 but then I unintalled it and installed Office 2010 and I'm guessing that is why things aren't working. Am I going to need to reinstall Acrobat 9 Pro Extended?

    Acrobat 9.x is not compatible with MS Office 2010
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html

  • Using Acrobat 9 Pro Extended and Adobe InDesign

    I was wondering if my MB would be capable of running Acrobat 9 Pro Extended and Adobe InDesign. My MB has 4GB of RAM, when in Parallels it I have the RAM allocated to 1GB for XP and 3GB for OS X. Currently, I have 84GB or hard drive remaining. Would these two programs operate okay on my MB? Also, is it possible for me to install them on a separate HD so that it does not hog space on my MB?

    would I be able to install the programs on an external hard drive so it doesn't hog my Mac's hard drive space?
    if buy the whole CS4 design Premium Suite, would I be able to select which components to install?
    You should probably post those questions on the Adobe forums: http://www.adobeforums.com

  • Acrobat 9 pro extended and Powerpoint 2007

    It seems that PPT 2007 and Acrobat 9 has issues with maintaining PPT's
    animations.
    I have "Preserve Slide Transitions" checked in adobe preferences, but the
    transitions do not seem to be preserved.
    Is there a setting I am missing, or is this just a bug between PPT &
    Acrobat?
    I will cross-post this in MS powerpoint newsgroup.
    Thanks

    If I start another trial on another computer in my lan then I can't ? Because Acrobat Extended and Distiller work great but Reviewer 3d never start at all.

  • Acrobat 9 Pro Extended and Adobe 3D Reviewer

    Good day, I just try to download the trial of Acrobat 9 Extended and try to use the new Adobe 3d Reviewer on this computer but after I try 4 time I still never get any success. On another computer he installation process went all ok without problem, on this computer I install all the packages and execute Acrobat Pro and Acrobat Distiller and work, the only things not woking (not even start up) it's the 3d Revieer, what can I try to solve the problem ? Thx in advance and hope in answer that can help me,
    Best regards

    If I start another trial on another computer in my lan then I can't ? Because Acrobat Extended and Distiller work great but Reviewer 3d never start at all.

  • Can I still download Adobe 9 Pro Extended and will it work with Windows 8 64 bit?

    Can I still download Adobe 9 Pro Extended and will it work with Windows 8 64 bit?

    It is not clear what application you mean when you say Adobe 9 Pro Extended, so it ois not certain if it is available for you to download.  If you can diownload it, it will only be valid for a 30 day trial unless you already own it and have a serial number to activate the trial with.
    You can search the following site and see if you can find the trial version to download... this site is the only likely place you might find the software available for download.
    If you find it there, be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site or else the download will not work properly.
    http://prodesigntools.com/tag/ddl

  • In an inbuild example of can .. that CAN transmit periodic vi .. i am unable to understand how the extended and standard frame is set?

    In an inbuild example of can .. that CAN transmit  periodic vi .. i am unable to understand how the extended and standard frame is set?
    plz help me .. stuck up very badly
    thanks
    mahadev
    Solved!
    Go to Solution.

    I suggest this KB which explains usage of Ext IDs with NI-CAN
    http://digital.ni.com/public.nsf/allkb/2FA120A37EDBC51D86256854004FB0C7

  • Problem while extending and modifying the ISA B2B app on SAP J2EE 6.4

    We are facing some problem with extending and modifying the ISA B2B 4.0 application.
    First Let me clarify you the whole scenario.
    Previously we had ISA B2B 4.0 SP03 deployed on SAP J2EE 6.20 Engine.
    We had used eclipse 3.0 to extend and modify the application as NWDS does not support SAP J2EE 6.20.
    We had used ant buildtool to build the modified application which comes along with the ISA Software Archive.
    We had successfully done all the modifications and application was running fine...
    Now we have upgraded the overall J2EE infrastructure and using J2EE 6.4 Engine which supports NWDS.
    We have successfully deployed the ISA B2B  application which comes along with the Support Package.
    We are using Support Package ISAWAC40SP11P_7-20000529.SAR E-Selling 640. The application is working fine after all
    the configuration done in XCM and SAP CRM 4.0 system.
    Now for modification and extension i have created another b2b enterprise archive with name "b2b_client.ear" using ant buildtool.
    I've done the modification and extension .. added some Z classes and JSP pages. Now when i try to deploy the application using
    SDM 6.40, I got an error message stating
    <b>"com.sap.sdm.util.sduread.IllFormattedSduFileException: The archive must be deployed with a 6.20 SDM, which has a SDM-SDA compatible version 1 or greater."</b>
    I think this error is due to the incompatible sda_build.xml used in the build process but we have used the same xml file bundled with the above mentioned ".sar" file..
    Please help or suggest someone who can help me out from this...
    Thanks & Regards.
    Sandeep Solanki

    Hi Alkis.
    First, you need to specify the fully qualified class name of your based-RequestProcessor class in the config.xml file like
    <controller  contentType="text/html;charset=UTF-8"  locale="true"  nocache="true"
      processorClass="com.mycompany.struts.framework.MyRequestProcessor"/>
    If you review the source code of the ActionServlet and RequestProcessor classes, you can see that overwritten methods (by you) are executed every time the client makes a request to the struts based application.
    I hope you can run your approach. And it will be excellent you can shared how you will do it.
    Kindest regards.

  • Using Airport as a range extender and LAN bridge.

    Does the airport express act as a range extender and provide a LAN access bridge at the same time? I want to use it to connect my blu ray player to wifi, but also as a range extender for my google tv.

    The AirPort Express can extend the wireless range of another AirPort: Express, Extreme, or Time Capsule. The Express can also perform as a wireless Ethernet bridge. As an Ethernet bridge, the Express can join another wireless network and its Ethernet port can provide network connectivity for wired clients.

Maybe you are looking for

  • Updates to 10.5 Cause Restart Hang

    Hi, I have a mid-2006 Macbook, the warranty of which expired 7/15/09, a week before the trouble started. The internal drive died, so I removed it, booted from the Install DVD, and installed Leopard to my external drive, which worked fine. The problem

  • Reset dunning level

    Hi, is it possible to reset the dunning levels of the bp? My customer tried the dunning wizard once but now want to reset the dunning levels because the customers 've neve got the dunning letters. Is this possible and how? Best regards Philipp

  • Where can I get new charger for Satellite Pro L500-1D4?

    Hi, I would like to get a new charger for Toshiba. My first charger got lost and the second charger that I bought from ebay 3 months ago for 10,- has stopped working. Where can I get a charger from? I googled and I found couple of wesbites e.g. http:

  • Zen Nano Plus won't fill complet

    I transferred approximately 4.8 MB onto my new Nano plus and it says it has over 5MB of free space but I keep getting an error message that there is insufficient disk space for more music files. I'm converting to WMA & there's lots of room! I'm using

  • I had a fw external hd connected using backup w/umbrella

    and had it set to backup Sun AM at 6. Now, I have time capsule w/time machine running but Sunday mornings the old backup programs still wants to run. How do I stop or remove or whatever since I no longer need?