How to access the variable in the child video clip

I have a flash file that uses php to manipulate a database and returns a variable (data_xml) to document data in XML from the database. In this case, as well as others within the parent company. Now, I have a child movieclip that shows analyzed data, but I'm unable to access the variable from the child movieclip. The code associated with this is:

var myXML:XML = new XML();
var myXML = XML (event.currentTarget.root.data_xml);

and I get the following two errors that point to the second line as the problem:

1151: there is a conflict with definition myXML in the internal namespace.

WARNING: 3596: duplicate variable definition.

I unchecked automatically "declare instances of the scene" because I have seen the one proposed for the 1151: error, but I still have not the same two errors.

Can anyone help? Thank you!

You've declared the variable twice. Variable can be declared only once in any scope. So, your code should be:

var myXML:XML = new XML();
myXML = XML (event.currentTarget.root.data_xml); Note there is no before var

Tags: Adobe Animate

Similar Questions

  • How to access the child object of a movieclip

    Hi, I made the pictures dynamically and I access Bastien is child movieclip

    var totalThumbs:Array = new Array()

    var ThumbMC:MovieClip()

    var childThumb:MovieClip()

    var xpos:Number = 10

    for (var i: Number = 0; i < 10; i ++) {}

    ThumbMC = new thumbOb() //thumbOb is the movieclip in the library class

    addChild (ThumbMC)

    ThumbMC.x = xpos

    childThumb = new animationclip() //animationclip is the movieclip in the library class

    ThumbMC.addChild (childThumb)

    ThumbMC.addEventListener (MouseEvent.Click, thumbClick)

    XPos += 100

    }

    function thumbClick(event:MouseEvent):void {}

    event.target.childThumb.gotoAndPlay ("clicked") < < THIS ERROR SHOWING

    }

    There are a number of errors in what you show so I have to imagine that you are not in strict mode minimum of coding.  You should avoid using event.target and event.currentTarget are using, otherwise you are likely to find the target, it's not what you expect it to be.  currentTarget is always linked to the object that has the assigned listening port, not children of that object (using target may end up doing).

    When you add dynamically content, targeting usual syntax parent.child does not work.  You start to use other means of access to the child.  One way is to store the child in another reference (like a table) and directly target.  Another way would be to use the getChildByName() method... Here is an example of using this approach...

    var xpos:Number = 10;

    for (var i: Number = 0; i<10;>
       
    var ThumbMC = new thumbOb();  thumbOb is the class movieclip in the library
    ThumbMC.num = i;
    addChild (ThumbMC)
    ThumbMC.x = xpos
       
    var childThumb = new animationclip() //animationclip is the movieclip in the library class
    childThumb.name = "childThumb" + String (i)";
    ThumbMC.addChild (childThumb)
       
    ThumbMC.addEventListener (MouseEvent.CLICK, thumbClick)
    XPos += 100
    }

    function thumbClick(event:MouseEvent):void {}
    var childThumb is MovieClip (event.currentTarget) .getChildByName ("childThumb" + String (event.currentTarget.num));.
    childThumb.gotoAndPlay ("clicked");
    }

  • How to access the child of the view object that is defined via the display link?

    JDeveloper 11.1.1.2 using:

    I defined the purpose of view 2 (ParentVO and ChildVO) and 1 notice link to specify the relationship between them.
    In the definition of link to view, I exposed the view of child object in the parent object from view with the name of the accessor "childlist is."

    In my module of the application, the data model contains the instances of the objects two view. The child view object instance has been added to the parent object instance see through display link

    I install the ParentVO to create both ViewImpl and ViewRowImpl classes and expose all accessor methods.
    But I can't find a get of the ViewRowImpl class method to access the ChildVO of the ParentVO.

    What is the right way to access the instance of ChildVO of ParentVO line line instance IE. ParentVORowImpl class?

    You should have a getEmployeesView method in the departmentsViewRowImpl class.

    You can try it with the HR schema and dept/emp tables to see if it works for you?

  • How to download the latest video clips of iphone4

    I have an iphone4 and whenever I connect it to the computer to download my video clips it downloads the entire lot that is more than 1,000 at present! How to download only the latest clips, rather than the entire library on my phone? Thank you

    Hi RobChisholm,
     

    Here are some links that will guide you to manually manage the synchronization or the IPhone to computer transfer:

    Managing content manually on iPhone, iPad and iPod
    http://support.Apple.com/kb/ht1535
     
    IPad, iPhone or iPod touch with iTunes synchronization
    http://support.Apple.com/kb/HT1386
     

    Copy of personal photos and videos on iPhone, iPad, or iPod touch to your computer
    http://support.Apple.com/kb/HT4083 

  • How to make the 'visible' video clips (as in Adobe first CS 6) in the chronology of the AP 7 CC?

    Video clips appear as the solid colors in the timeline of the AP 7 dnuee, while AP CS6, you could actually see the clip as a 'photo' or a photo. Actually 'see' the clip in the timeline panel

    is very useful when editing.  Has that changed or did I miss something?  Help and thanks flavamarv

    Are your minimized tracks - that is to say at their minimum height by default? If Yes, then you need to increase the height of the track that pictures are not displayed on the small tracks.

    There are several ways to adjust the height of the track: a double-click, mouse wheel, click-and - drag the upper part of a video track or down audio track. You perform all these actions in the track "headers" to the left of the editing area. Learn more here on this page for help. Search for "the track display.

  • How to access the child of the Loader object

    It's a very simple thing I have a swf file try.swf and he have a little animation, I stop it's animation on frame of scenario 1

    and I use this code to load try.swf into another flash file...

    import flash.display.Loader
    import flash.net.URLRequest

    var ld:Loader = new Loader()
    var rq:URLRequest = new URLRequest ("try.swf")

    LD. Load (RQ)
    addChild (ld)

    now I try.swf load hv in ld Loader now I want when it loaded then try.swf well gotoAndPlay frame 2 and start showing animation... that's all...

    You'll need assign an event listener for the property contentLoaderInfo the loader to determine when the file is completely loaded.

    var ld:Loader = new Loader();
    var rq:URLRequest = new URLRequest ("try.swf");

    ld.contentLoaderInfo.addEventListener (Event.INIT, animateTry);

    LD. Load (RQ);
    addChild (ld);

    function animateTry(evt:Event):void {}

    MovieClip (evt.target.content) .gotoAndPlay (2);

    }

  • How to access the parent mc data

    I load an xml file in the parent movieclip.

    How can I access this variable in its child movieclip?

    Is there a way to define a public property in flash as in flex?

    One way is to target the parent, with something to the effect of: MovieClip (parent) .that_variable

  • How to access the url of the page referred by using script Idoc?

    How to access the url of the page mentioned by using Idoc script...

    For example

    If the following url (http://myhost/mysite) is called by the end-user, it redirects to the UCM login page.

    The page of connection, so I want to get their hands on the referring here (http://myhost/mysite). To do this, I followed the following documentation.

    I put IdcAuthExtraRequestParams = referer in

    /base_domain/UCM/CS/bin/intradoc.cfg and

    /base_domain/UCM/CS/config/config.cfg

    UCM server restarted and Http server.

    Used < $HTTP_REFERER$ > in my htm file. It does not display anything.

    Can I know what went wrong? Is there an alternative way to get this?

    @Jon, I saw some variables such as ssOrignialUrl have the information in the console, but they are lost when its consultation: in page.

    I pulled out the tracedump to the page itself, which gave me a new variable<$AUTH_TARGET_URL$> that contains this value.

    Thanks Jon at made me think so

  • How to access the BPM 11 g load useful or process varibles in the workflow of ADF

    I'm trying to view/edit the data in a user interface that is linked to a database by using a foreign key, requestId. The foreign key comes from a BPM process where it is spent in the workflow, a human task. The foreign key comes process variables or values of payload. I know that I can simply load the payload in BPM with the data in the tables, but I'm looking for a better solution use the ADF business components to view and edit data directly in the user interface.

    The BPM process uses a web service to start the process. Web services takes a primary key as a parameter to reference a column in the database table. The data is pre-filled with content and a primary key reference. The first activity is an activity of the user. I want the workflow behind the user activity to accept this primary key and use to locate the line in the database, so related views of the database delimited ADF business components can work to present the data in the user interface.

    I tried two approaches to the problem. The first uses the setCurrentRowWithKeyValue operation. The other changes the SQL where clause, used by the ADFbc iterator only returns one row for the given requestId. Both of these approaches fail to work because I don't know how to access the load BPM or variable data entering the workflow. Here is the piece of code that I used to try to define the row using the value of setCurrentRowWithKey:

    public String setRequestId() {}

    FacesContext context = FacesContext.getCurrentInstance ();
    Object requestObj = context.getApplication () .evaluateExpressionGet)
    context, "#{bindings."(, Number.class) RequestId.inputValue "};
    If (requestObj is nothing)
    Returns a null value.
    RequestId number;
    requestId = (number) requestObj;

    ITR DCIteratorBinding = (DCIteratorBinding)

    getBindings () .get ("PatfRequestHdrView1");

    itr.setCurrentRowWithKeyValue (requestId.toString ());

    Returns a null value.

    I didn't get very far with the second approach, change SQL where clause, because I do not know Groovy. I think I need something like:

    adf.object.viewObj.RequestId. but it is not a viewObject associated with BPM data, so I don't know that this particular expression will not work.

    Any help you can give me is greatly appreciated.

    Kind regards
    Mark

    Try this code in your method:

    FacesContext context = FacesContext.getCurrentInstance ();
    String ctx = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistContext}", String.class);
    String tskId = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistTaskId}", String.class);
    IWorkflowServiceClient workflowSvcClient = WorkflowService.getWorkflowServiceClient ();
    ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService ();
    IWorkflowContext wfContext = wfQueryService.getWorkflowContext (ctx);
    Task myTask = wfQueryService.getTaskDetailsById (wfContext, tskId);
    XMLElement xmlPayload = (XMLElement) myTask.getPayloadAsElement ();
    get the payload as a string simple, useful for debugging
    java.io.StringWriter writer = new java.io.StringWriter ();
    xmlPayload.print (writer);
    String payloadAsString = writer.toString ();
    extract payload values: use methods in Oracle XDK

    See also this post:

    The task of reading by program details

  • How to access the info in my iCloud account

    How to access the info in my iCloud account?

    You can access much of the iCloud.com on a computer or through specific applications on your mobile device such as contacts, calendars, iCloud Drive, Photos. What exactly you were looking for and what type of device.

  • How to access the bios?

    I am trying to install a new OS, how to access the bios on my HP Pavilian dv8?

    Hello:

    You should be able to access the BIOS by pressing the F10 key as soon as you see the HP welcome screen.

    Paul

  • How to access the BIOS on a Pavilion Elite e9237c with mouse and keyboard wireless?

    I have a desktop computer Pavilion Elite e9237 with a wireless keyboard and mouse. I tried to access the BIOS by pressing F10 at startup with no luck, and I can't access any of the other menus for the start-up eiither. I don't have a PS/2 port on my computer, so I can't get a wired keyboard and mouse. Does anyone know how to access the BIOS with this configuration?

    I bought a USB keyboard and he answered in the same way... No bios access. I then studied why it did not work and discovered that it was the way in which he has been connected to the computer. I had initially plugged into a USB hub when he was not working and I moved it directly into a USB port and it works! I plugged my keyboard wireless directly into the USB port and it works too! Thanks for your help... I wouldn't have thought of it if it wasn't for to recommend you the USB keyboard.

  • How to access the firefox on laptop Office keeping all the features?

    How to access the firefox on laptop Office keeping all tabs and bookmarks?

    Hello

    You may be able to do this in Firefox Sync configuration on both devices. Please see for detailed instructions.

  • Qosmio G30-126 - how to access the bios!

    I have a laptop Qosmio G30-126 and I don't know the key to enter the bios to change real estate for the HARD drive or something... then how to access the bios? What is the key for the bios?

    Hello

    Try pressing the F2 key by turning on the device.
    The Toshiba notebooks supported the ESC and then F1 button
    If these two options are possible

  • Re: How to access the BIOS on Satellite Pro A120

    Can someone tell me how to access the BIOS on my SAT Pro A120?

    Hello

    You must press ESC and then F1 key immediately after the laptop has been powered!

    The laptop seems to be to use the Toshiba BIOS and ESC key should be the right one!

    Good bye

Maybe you are looking for

  • VDI licensing

    Hello, I recently woke up Windows Server R2 VDI host 2012. I have 5 users test currently, they use Windows 7 Enterprise for each workstation.  They are all access to the VDI server within the company at the present time. With regard to the licenses o

  • My MFP HP Laserjet Pro M225dw stuck on HP «Initializ ing» logo

    I have a HP Laserjet the MFP Pro M225dw, less than a year. After having turned off for two months, he's stuck on the screen "Initializ ing" the HP logo. Can somone advise how to start?

  • Windows Mail error 0x800CCC0B - can receive but have extreme delays in sending emails

    A couple of days, we suddenly started getting the following message when you send mail out using Windows Mail Version 6.0.60000.16386 (Vista OS): "an unknown error has occurred.  «Subject 'test', account: XXXXXXXX, server: 'mail.bellsouth.net', Proto

  • Install Windows 7 on Pavilion dv6000

    I have a HP Pavilion dv6000 laptop with a hard drive is partitioned.  A partition contains the recovery program, which will install Windows XP should I ever need to do.  I recently installed Windows 7 on the other partition and think it would be wise

  • Download Oracle GoldenGate studio 12.2.1?

    Hello worldwhere to download Oracle GoldenGate studio 12.2.1?I try to download in edelivery.com and support but not find.Thank you