Movieclip accessibility

HI,
I am facing a problem with accessibility of my application.
I have a movieclip on stage. It's accessibility name is
"movieClip 1" and it has a simpe code on press event of it.
This works fine.
But when I load an image on it:
mc1.loadMovie("cat.jpg");
Browser takes it as unlabeled button.
Can anyone tell me why its taking it as unlabled ?
Thanks...

I’ve duplicated what you are trying to do and have not
found it a problem.
What I think your problem is:
You have not named a movieclip "mc1" in the properties box.
Flash needs to know "what, where and when" when it comes to
importing anything into something.
"Unlabeled" I’ve not come across this myself but I
think that this means the place holder "mc1" does not exists.
That’s what makes me think you have not named the movieclip
you are trying to load the image into.
I hope this helps.

Similar Messages

  • Creating .as class in Flash Builder for movieclip stored in SWC

    I need to use movieclips created in Flash Professional CC in my Flash Builder project. I have exported my .fla file as an .swc and included it in my Flash Builder project. The movieclips for which I DON'T need a custom .as class import without a problem. But the movieclips that need to be linked to an .as class don't appear. I have tried the following, using my ThoughtBubble movieclip as an example:
    1) Giving the .fla with the ThoughtBubble movieclip access to ThoughtBubble.as so that the movieclip doesn't create a dummy ThoughtBubble.as file.
    2) Denying the .fla access to ThoughtBubble.as so that the movieclip is forced to create a dummy ThoughtBubble.as class.
    Either way, the ThoughtBubble movieclip does not appear in the list of movieclips in my swc when imported into my Flash Builder project.
    3) I also tried removing my ThoughtBubble.as file from my FlashBuilder project and THEN importing the swc. The ThoughtBubble movieclip does show up in the list of swc assets--BUT when I try to create a ThoughtBubble.as file, I get the following error: "ThoughtBubble.swc already exists."
    What am I doing wrong? How can I link my ThoughtBubble movieclip with ThoughtBubble.as in Flash Builder?
    Here is a screenshot of my fla publish settings:
    And a screenshot of my ThoughtBubble movieclip properties:
    Thanks in advance!

    flex is not good for games because of performance compared to pure as3

  • Call function, pass value, access variable in movieclip class from main stage

    i am new to flash as.
    I got quite confused on some problems. as the function here
    is quite different from c and asp.net.
    I have a movieClip named MC, and it's enabled with action
    script, with the class name MC_Rectangle
    and a Stage.
    I override the MC_Rectangle class file in a mc_rectangle.as
    external file.
    here is the code:
    package{
    import flash.display.*;
    import flash.events.*;
    public class MC_Rectangle extends MovieClip {
    var sequence:int = new int();
    function setSequence(data:int):void{
    sequence = data;
    function addSequence():void{
    sequence ++;
    I have new a object in the main stage var
    mc_rect:MC_Rectangle = new MC_Rectangle()
    question:
    in main stage:
    1. how can i access the variable "sequence" in "mc_rect"
    2. how can i pass parametre from main stage to mc_rect via
    function setSequence(data:int)?
    3. how can i call the function in addSequence() in mc_rect.
    in asp.net, i usually use mc_rect.sequenct,
    mc_rect.setSequence(data), mc_rect.addSequence() to achieve my
    goals......
    btw, can function in mc_rect return out result to main stage?
    thanks in advance.

    Your as-file must be named MC_Rectangle.as (same upper/lower
    case as in the Class name)
    Ad 1) You have to declare sequence as a public property
    "public var sequence;" or - better - define a getter-function for
    sequence.
    Ad 2) mc_rect.setSequence(8); e. g. (you must write "public"
    in the Class-declaration of setSequence)
    Ad 3) mc_rect.addSequence(); e. g. (you must write "public"
    in the Class-declaration of addSequence)
    ... and yes, your methods can return a value: Replace "void"
    with the proper data type (int, String, ...) and place a "return
    myNumber;" or the like in the method's body.

  • Access movieclip on stage from class?

    Hi all,
    Is it possible to access a movieclip which has been dragged onto the main stage in my FLA from an external class that i've written? Can i create a variable that refers to the object on the stage? Or does it have to be added dynamically to be accessible?
    Many Thanks
    Matt

    Hi Ned, i'm not instantiating it as such i'm just using it to store quite a large method which is being called from the document class.
    I'm trying to break all my code down into chuncks stored in .as files so that i dont have 2,000 lines of code all in frame one of the main timeline : S
    So this is my document class:
    package  {
              import flash.display.MovieClip;
              import loadXML;
              public class mainClass extends MovieClip {
                        public function mainClass () {
                              loadXML.importXML();
    then this is the class being called from the mainClass:
    package  {
              import flash.display.Stage;
              import flash.net.*;
              import flash.events.ProgressEvent
              import flash.events.Event;
              import flash.text.*;
              public class loadXML {
                        private static var myXML:XML;
                        private static var myLoader:URLLoader = new URLLoader();
                        public function loadXML() {
                        public static function importXML():void{
                                       myLoader.load(new URLRequest("pipeLineData.xml"));
                                       myLoader.addEventListener(Event.COMPLETE, processXML);
                        private static function processXML(e:Event):void {
                                       myXML = new XML(e.target.data);
                                       objectOnStage.text = myXML.TEXT[0];
                                       //etc...
                                       //etc...
    Many thanks
    Matt

  • Can't Access MovieClips and Functions in Loaded SWF

    Hi everybody,
    I'm trying to simply access anything inside this loaded SWF and all I get is 'null'.
    I have code in the parent SWF that needs to tell the child SWF movieclip what to do but nothing works. This was a piee of cake in AS2 and I can't seem to get anything to crossover in AS3.
    Here's my code:
    import com.greensock.TweenMax;
    import flash.display.MovieClip;
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest("SWCS_S3_500x250_exp_panel_2.swf"); // in this case both SWFs are in the same folder
    myLoader.load(url);  // load the SWF file
    panel2.addChild(myLoader);   // add that instance to the display list, adding it to the Stage at 0,0
    panel2 = myLoader.content as MovieClip;
    photo_about.alpha = 0;
    photo_downloads.alpha = 0;
    //panel2.content_about.alpha = 0;
    //panel2.content_downloads.alpha = 0;
    function closeSection():void
              panel2.controlsMC.forcePause();
              TweenMax.to(photo_about, .5, {alpha:0});
              TweenMax.to(photo_downloads, .5, {alpha:0});
              TweenMax.to(photo_home, .5, {alpha:0});
              TweenMax.to(panel2.content_about, .5, {alpha:0});
              TweenMax.to(panel2.content_downloads, .5, {alpha:0});
              TweenMax.to(panel2.controlsMC, .5, {autoAlpha:0});
              TweenMax.to(panel2.content_home, .5, {alpha:0});
    panel2 traces null and all the clips loaded within pull up undefined property errors.
    Can somebody please tell me what I'm doing wrong? I'd be stoked to know what I'm missing and feel like this should be a piece of cake.
    Thanks for any help!

    You are not adding the content to the stage at 0,0, you are adding it to panel2 at 0,0.  THen you take panel2 and assign it to be something that likely doesn't exist by the time you assign it.  You need to wait until the loader completes loading before you attempt to do anything with its content, otherwise it has no content (null).  Similarly, you cannot control anything in the loaded swf until it has finished loading.  So assign an event listener to the contentLoaderInfo property of the Loader to determine when loading is complete, and have the event handler function deal with starting the interaction with it.
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest("SWCS_S3_500x250_exp_panel_2.swf");
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, processLoadedSWF);
    myLoader.load(url);
    function processLoadedSWF(evt:Event):void {
        // deal with the loaded swf here
        // but you don't want to be assigning it to the panel2 object that contains the loader
    As far as controlling anything inside the swf you load, is it an AS1/2 or an AS3 swf?

  • Access MovieClip in the stage

    Hello,
    I am using the ActionScript 3 in a aplication and i have
    problem to access the MovieClips that is on the Stage. Let me
    explain.
    I the stage i have two MovieClips, with instance of mc1 and
    mc2. Inside of mc1 i try to access some proprerties from mc2 but
    without success.
    I try using this:
    trace(parent.mc2.width);
    But the Flash return the error 1119, undefined propertie.
    So, how can i access the MovieClips that is on my stage from
    another MovieClip.
    Thanks

    :

  • Access XML array inside MovieClip. How ?!

    Hello,
    Ok, I have a code to load Multiple XML files at once and save it to an array named xmlDocs like this:
    //each xml file to load
    var xmlManifest:Array = new Array();
    //the xml for each file
    var xmlDocs:Array = new Array();
    //the xml file with all the xml files to be loaded.
    var RSSWidgetRequest:URLRequest = new URLRequest("xml/rss-widget.xml");
    var urlLoader:URLLoader = new URLLoader();
    var docsXML:XML = new XML();
    docsXML.ignoreWhitespace = true;
    //when COMPLETE is loaded run function loadDocs
    urlLoader.addEventListener(Event.COMPLETE,loadDocs);
    urlLoader.load(RSSWidgetRequest);
    //load the docs
    function loadDocs(event:Event):void {
    docsXML = XML(event.target.data);
    //m21m is the name space defined in my doc m21m:feed... you don't need one.
    var m21m:Namespace=docsXML.namespace("m21m");
    //get all the feed nodes
    var feeds=docsXML..m21m::feed;
    for (var i:int=0; i < feeds.length(); ++i) {
      //add the feed to the xmlManifest array
      xmlManifest[xmlManifest.length] = feeds[i].attribute("feed");
    //load the xml for each doc
    loadXMLDocs();
    //load all the XML files
    function loadXMLDocs() {
    if (xmlManifest.length>xmlDocs.length) {
      var RSSURL:URLRequest = new URLRequest(xmlManifest[xmlDocs.length]);
      var urlLoader:URLLoader = new URLLoader();
      var xmlDoc:XML = new XML();
      xmlDoc.ignoreWhitespace = true;
      urlLoader.addEventListener(Event.COMPLETE,getDoc);
      urlLoader.load(RSSURL);
      function getDoc(event:Event) {
       xmlDoc = XML(event.target.data);
       //hold all the xml of each doc in an array
       xmlDocs[xmlDocs.length] = xmlDoc;
       loadXMLDocs();
    } else {
      trace(xmlDocs)
      //do something when all xml is loaded
    How i can access xmlDocs array difinte on main timeline from insted MovieClip...?!
    Regards,

    It does not work. I used this code to display the data:
    var xmlList:XMLList;
    var xmlData:XML = new XML(MovieClip(this.parent.parent).xmlDocs[0].data);
    xmlList = xmlData.class10;
    sId10_btn.addEventListener(MouseEvent.CLICK, displayData);
    function displayData(evt:MouseEvent):void
              for each (var grade:XML in xmlList)
                        if (myTextField.text == grade.st_id.text())
                                  content10.sName10.text = grade.st_name;
                                  content10.sQuran10.text = grade.quran;
                                  content10.sIslamic10.text = grade.islamic;
                                  content10.sArabic10.text = grade.arabic;
                                  content10.sEnglish10.text = grade.english;
                                  content10.sMath10.text = grade.math;
                                  content10.sChemistry10.text = grade.chemistry;
                                  content10.sPhysics10.text = grade.physics;
                                  content10.sBiology10.text = grade.biology;
                                  content10.sSocial10.text = grade.social;
                                  content10.sSport10.text = grade.sport;
                                  content10.sComputer10.text = grade.computer;
                                  content10.sNesba10.text = roundNumber(Number(grade.nesba), 2);

  • AS3 sucks !!! Why can't access a simple movieClip ???

    Hi People,
    Please - it's as simple as that:
    I have a stageand there is a movieClip instance called "obiekt" in it. Inside "obiekt" movieClip there are two other clips. One instance is called "z1" and another one is called "z2".
    Presume I have a event listener in "z2" what in case of mouse rollover calls a function what is supposed to set "z1" movieClip 'visible' property to true.
    But why the hell when I code:
    root.obiekt.z1.visible = true;
    I get this error:
    1119: Access of possibly undefined property obiekt through a reference with static type flash.display:DisplayObject.
    Jesus - what's the hell - scripting a simplest thing in AS3 requires definig some bloody classes, extending other, importing whatever packages... Only to accesss a movieclip on the stage!!! If I were to do the thing this way I would rather learn C++ not Flash. Flash was supposed to simplify multimedia not making it worse!
    Can anybody help me here? It's really urgent !!!
    Rgs,
    Ziggi

    Look into event bubbling.
    I posted an example in this thread yesterday:
    http://forums.adobe.com/thread/433959?tstart=0
    http://muzakdeezign.com/cs4/Surrey-florist-gallery3.fla
    Best is to forget about root and trying to access objects in a "parent".
    It's all about event dispatching.

  • Access .swf in MovieClip

    Hi,
    I have to access different frames from swf file in flex.means
    when mouseover on canvas it should load frame 5.I know through
    movie clip i can goToPlay particular frame.But how can I access swf
    through movieclip.
    Thanks,
    Megha

    Store the swf file in the src/mimes/Components directory
    Retrieve the URL of this file using
    WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), YourCompView.FILE_NAME)
    and store this URL in a context attribute
    Bind the IWDIFrame 'source' property with the stored URL context attribute, and set the iFrame's 'lifeCycle' property to 'uielement' in order to prevent refresh of the content during server roundtrips
    Upon clicking the button, you can show/hide the iFrame and thus enabling your swf file

  • Accessing flash movieclips and textfields in flex

    How can I access movieclip and textfields from flash in flex. Suppose I have a dynamic textfield with instance name txt inside a movieclip with instance name mc on stage how can I change the text of the textfield in flex using a swfloader. Has anybody done anything similar.

    Swfloader.content.mc.txt
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Accessing Movieclip from swc file

    Hi,
    i have one swc that have movieclip symbol , but  i cannot  acess that movieclip symbol .
    please help me accessing movieclip symbol from swc .

    Manikandan wrote:
    Hi All,
    I have one .dbf file which is not attached to any database. I have installed and created an Oracle 10g database. How can i attach that .dbf file to a fresh database or can i retrieve data from .dbf file and import into new database?Just one datafile? Well, you can't attach the datafile to a database just like that and start reading it. Oracle is not, as Billy has told you already, is not Access or Excel that you can just start reading its contents. Even if you attach it to some other tablespace, without ensuring that the datafile is self-contained , I doubt it would be much of any use.
    This is just my thought :- can i use HSODBC (I know this is for non-oracle database) in order to retrieve data ... Just askingNo.
    Aman....

  • Accessing Dynamic Movieclip Children

    There is a lot of code that I have but here is snippet to get to the point.  I have created a Movicelip called via actionscript called "McButton".  Then I created 10 MovieClips within that MovieClip ("McDot0", "mcDot1", etc).  I need to know how to access mcButton.mcDot3 to change its color when button3 (mc already on stage) is clicked but can not figure it out.
    I have tried both of these below but it does not work:
    mcButton.mcDot3.transform.colorTransform = cityColor;
    getChildByName("mcButton").getChildByName("mcDot3").transform.colorTransform = cityColor;
    This is the code below that I have used to create the Dynamic Movieclips:
    var button:Container = new Container();
    button.name = "mcButton";
    this.addChild(button);
    for (var a:int = 0; a < 10; a++) {
         var dot:Dot = new Dot();
          dot.name = "mcDot" + a;
        MovieClip(getChildByName("mcButton")).addChild(dot);
    Can someone please help me see the light.
    Thanks

    In order to change a color using color transform, first you must create a new ColorTransform object and than assign it to transform.colorTransform property.
    i,e,
    var cityColor: ColorTransform = new ColorTransform();
    getChildByName("mcButton").getChildByName("mcDot3").transform.colorTransform = cityColor

  • How to access child movieclip info of an object in an array?

    Hi
    I've dynamically created a whole bunch of movieclips.
    I've given each clip a name based on a variable number:
         mc.name = "mc"+i;
    I've also use addChild to add a couple of dynamic text fields to each movieClip, named myText1 and myText2.
    I then push each movieClip object into an array:
         myArray.push(mc);
    When I addChild the movieClips, they display fine, complete with each textField.  And if I use the following loop to trace the name of each clip in the array, I get:
         for(var i=0; i<myArray.length; i++)
                   trace(myArray[i].name);
    output:
         mc1
         mc2
         mc3
         mc4
    etc
    What I want to now is be able to access the text fields within each movieclip in the array.  However, I am getting errors when I try different ways.  For example:
         for(var i=0; i<myArray.length; i++)
                   trace(myArray[i].myText1.text);
    gives the error: A term is undefined and has no properties.
    How do you access the values and contents of the children of movieClip objects that are stored in arrays?
    Thanks
    Shaun

    For whatever reason, dynamically added children cannot be targeted that way.  If you added the textfields dynamically you may need to use getChildByName() to target them.  It partly depends on how you created them and whether or not you have direct access to them.  Aside from that you could also assign the textfields to variables that you create for the mc and target those by their variable names.
    The following demos these two approaches:
    var mc:MovieClip = new MovieClip();
    addChild(mc);
    var tf:TextField = new TextField();
    tf.text = "this is text";
    mc.addChild(tf);
    // first way
    tf.name = "tfield";
    trace(TextField(mc.getChildByName("tfield")).text);
    // second way
    mc.tfid = tf;
    trace(mc.tfid.text);
    You could also store the textfields in arrays as they are created and have direct access to them with out the need to target the mc... the index should be the same as that which you use for the mc anyways.

  • How to access a button inside a MovieClip which is the source of a scrollpane?

    Hi Everyone,
    I have created a crollpane in my flash file and the source of the scrollpane is a movieclip which contains a buttons.
    Now I want to add a gotoAndStop function to that button to link to a frame on the main timeline.
    Could anyone tell me what is the right as3 code to access this button?
    Thank you!

    Hi Ned,
    I'm still getting a error message. This is my code:
    MovieClip(spane8.content).AppsOptimizerBtn.addEventListener(MouseEvent.CLICK, gotoApp1);
    function gotoApp1(event:MouseEvent):void
              gotoAndStop(21);
    This is the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at MyAssests_Scene2_fla::MainTimeline/frame11()
              at flash.display::MovieClip/gotoAndStop()
              at MyAssests_Scene2_fla::MainTimeline/gotoAppStore()
    Frame 11 is where my scrollpane is.
    "gotoAppStore" is a function that I used at frame 1 to link to frame 11.
    Any idea what is wrong?

  • Accessing members of an "attached" movieclip

    Hi,
    I have a movieclip in my Library and at runtime I attached it
    to the stage like so
    var classDefintion:Object =
    getDefinitionByName("pathOption_mc");
    var pathOption:Sprite = new classDefintion();
    pathOption.x=400;
    pathOption.y=200;
    addChild(pathOption);
    Inside the movieclip that I have just attached there is a
    button that I want to attach an event listener to.
    I've tried
    pathOption.continueButton.addEventListener(MouseEvent.CLICK,
    checkAnswer);
    I get errors saying that contineButton is an undefined
    property?
    Can somebody help me out please. I'm still trying to get my
    head around the AS3 equivalent of attachMovieClip. I thought that
    once I had attached the movieclip (like I did above) I should just
    be able to drill down into its members?
    Thanks,
    dub

    Sprite doesn't have a continueButton property -- that's why
    you're getting the error.
    But iuf you cast the sprite to an appropriate dynamic class,
    such as Object, you can access the child objects. i.e.

Maybe you are looking for

  • Why wont new itunes allow me to search podcasts by date/list form anymore?

    One of the best features of itunes podcasts is that you could search a key term and see all the individual podcasts related to it and then sort by date to select the newer ones.  Now it appears with the new upgrade you can't do that, in fact you cann

  • No Boot Disk or Boot Disk Failed error

    I set up a Pavillion 500-c60 today but when I turned it on, I got a "No Boot Disk or Boot Disk Failed" error. Any suggestions?

  • INTERNAL.AE ERROR

    Dear Collegues This is the error we could see in sxmb_moni, <!--  Call Adapter   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">   <SAP:Category>XIServer</SA

  • Register

    Blocked. Cannot register

  • HT5167 downgrade to lion 10.7.4

    Hey everyone and Merry Christmas!! I recently bought a second hand Mac Pro. It had Lion 10.7.4 installed, but I needed to upgrade the hard drive. In doing so, and being new to mac, I lost the recovery HD section (which at the time I didn't even know