Posted on 2009-12-21
Last Modified: 2013-11-11
any reason why i would be getting this as an output...

function clicked(event:MouseEvent):void{
        transLoad( + ".swf");

is what is says when addEventListeners look right..this was working once before and then my computer locked up and i lost what i had i had to start over and i cant get it to work

merchandise.addEventListener(MouseEvent.CLICK, clicked);
merchandise is the name of the swf i am bring to the stage. its in the same folder as the main swf...

i am at a lose
Question by:chefkeifer
    1 Comment
    LVL 19

    Accepted Solution

    "merchandise" is a reference to the object - it's name is instance13 - the "13" means it's the 13th instance instantiated.

    you can have any number of references to an object, for example:

    var sprite:Sprite = new Sprite();
    var firstChild:Sprite = getChildAt(0);
    var lastChild:Sprite = getChildAt(numChildren-1);

    in this case, "sprite", "firstChild", and "lastChild" are all references to the same object, and none are its name (which would be instance1).

    you can assign it's name programmatically = "merchandise"


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now