With the help of external swf twice

Hello..

How to use the same external swf with its vars in two clips?

var icon1_mc:MovieClip = new MovieClip();

var icon2_mc:MovieClip = new MovieClip();

var iconsLoader:Loader = new Loader();

iconsLoader.load (new URLRequest("data/icons.swf"));

iconsLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, iconsLoaded);

function iconsLoaded(event:Event):void

{

Here, I want to add (iconsLoader.contentLoaderInfo.content) for icon1_mc & icon2_mc

}

Thank you

Thank you again... 'S done it with greensock SWFLoader class

com.greensock.loading import. *;

import com.greensock.events.LoaderEvent;

var icon1_mc:MovieClip = new MovieClip();

var icon2_mc:MovieClip = new MovieClip();

var iconsSWF:SWFLoader = new SWFLoader ("data / icons.swf", {onComplete:completeHandler});})

function completeHandler(e:LoaderEvent):void {}

var _icons: Class = e.target.getClass("icons"); "icons" is a class of symbol in library

icon1_mc = new _icons();

icon1_mc.x = 10;

addChild (icon1_mc)

icon2_mc = new _icons();

icon2_mc.x = 135;

addChild (icon2_mc)

}

iconsSWF.load ();

Tags: Adobe Animate

Similar Questions

  • With the help of external source paths

    Hello world

    I'm quite new to Flash Builder. I created an ActionScript project and added a folder on my hard drive as a source path. This file is external to the project. It creates a folder in the Explorer window package with the small arrow showing it's related... but also, it seems to copy all subfolders and classes in my output folder... that I named dist... Why does do this and y at - it a way to not do? It does not seem to make sense to me.

    Thank you

    Kyle

    Try this:

    (1) project > properties > Flex Compiler

    (2) uncheck "copy embedded files in the output folder.

    Jason San Jose

    Software engineer, Flash Builder

  • With the help of external Tables

    HELO - I have a few questions regarding the use of external tables, as I have not worked with them before.

    From what I read, looks like they are more intended instead of SQL Loader, to simply load the data. But I was wondering if they are also used for queries. I ask because we usually create temporary tables to load the data provided by the company and we then attach this information to our main tables. The file that we just received is more 3 million lines, so I was wondering if it might be appropriate to use an external table and also, I can query this external table directly or will it still my temporary table as well.

    In addition, it's the syntax that I found to create an external table and I was wondering if something escapes me.
    SQL> create table xtern_empl_rpt
      2      ( empl_id varchar2(3),
      3        last_name varchar2(50),
      4        first_name varchar2(50),
      5        ssn varchar2(9),
      6       email_addr varchar2(100),
      7        years_of_service number(2,0)
      8      )
      9      organization external
     10      ( default directory xtern_data_dir
     11        access parameters
     12        ( records delimited by newline
     13          fields terminated by ','
     14        )
     15        location ('employee_report.csv')  
     16    );
    I appreciate all the comments...

    Thank you!
    Christine

    Hello

    Based on what I read

    It would be good to know what you have read sofar and where...

    I can query this external table directly

    Yes, once you have created.
    An external table allows to process a file as if it were a table.
    Don't forget that you can query only, you can not the update/delete/insert in an external table.

    You can find many examples by searching on this forum,
    or http://asktom.oracle.com
    (for example: http://asktom.oracle.com/pls/asktom/f?p=100:11:0:::P11_QUESTION_ID:6611962171229))
    or http://www.oracle-base.com/articles/9i/ExternalTables9i.php
    or the Oracle Documentation @ http://tahiti.oracle.com

  • With the help of external excitation of load cell 9219

    I want to use 9219 to assess the load cells.

    Internal excitement for 9219 is not sufficient for my application, this device can be used with an external excitation source?

    If Yes is it as simple as cross the bridge of load cell using the external voltage and the output of the bridge on the 9219?

    Power max would be approximately 20 mV.

    Then the 9237 is probably your best choice. For this voltage, you will need to use an external source.

  • With the help of external speakers to watch Netflix

    I'm able to use my external speakers when listening to TV, but when I want to watch internet content like Netflix I get no sound in my external speakers, only through the TV speakers.   I have an audio cable that connects the TV to my receiver but no luck.

    Help!

    Hello elipman, thank you very much for the completion of the previous procedure. I am delighted that your units are working successfully.

    If the full position resolved your concerns, please let us know by accepting this post as a solution.

  • get a dotted line around .swf files in my flash site now. This is new from Firefox 3. With the help of 4 on a MacBookPro. tried the fix "style no outline. does not work. any help?

    Question
    get a dotted line around .swf files in my flash site now. This is new from Firefox 3. With the help of 4 on a MacBookPro. tried the fix "style no outline. does not work. any help?

    Ah, quite understand now that I added to my doc html

    < style type = "text/css" >
    {body
    background-color: #FFF;
    }
    "'object {outline: none ;}"} '

    < / style >

  • I need help with the control of two .swf in third.

    Hi, thanks for reading!

    I need help with the control of two .swf in third.

    I have a problem when I need to use a .swf in a digital signage solution, but were advised by the Legal Department, it cannot be changed in any way, I can not also have the source file blah blah blah. I pulled the .swfs on their site and I decompiled to see what I was up against.

    The main SWF that I need control is HCIC.swf and the problem is that it starts with a preloader, which, after the loading stops on a framework that requires user input to (button) on a play button, until the film will proceed and replay.

    What I've done so far is to create a SWF container, HCIC_container.swf, which will serve as a target for the HCIC.swf and I would like to send actionscript in the file, I am not allowed to edit.

    I managed to get done with help from someone on another forum. It is my hope that the following script just start HCIC.swf a framework after the preloader and button play and just play through.

    var container: MovieClip = createEmptyMovieClip ("container", getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener (this);
    mcLoader.loadClip ("MCIC.swf", container);

    function onLoadInit(mc:MovieClip) {}
    mc.gotoAndPlay (14);
    }

    But unfortunately it does not solve my problem. Because there is a media - controller.swf, which is charged by HCIC.swf who has orders, including the play button to start HCIC.swf.

    Here is a link to a .zip with all 3 files .swf file and all 3 .fla files.

    http://www.axiscc.com/temp/HCIC.zip

    What I have to do is to automatically start the HCIC.swf file, bypassing the pre-loader and play button without having to edit it or in the media - controller.swf in any case. Thus, all scripts must be done in HCIC_container.swf.

    I know it is confusing and it is difficult to explain, but if you look at the files it must make sense.

    ActionScripting is far from my point hard, so I'm definitely over my head here.

    Thanks for your help.

    Got my solution on another forum.

    http://www.ActionScript.org/forums/showthread.php3?t=146827

  • How to create the ISO image of windows 8 with the help of boot, efi, sources, and support files

    Hello
    I followed folders in my USB key:

    Boot
    EFI
    Sources
    Support,

    and the following files:

    Setup
    Bootmgr.EFI
    Bootmgr

    How can I create an ISO image of windows 8 with the help of these files and folders. I even installed ADK, but I couldn't keep up with it.
    I would be very grateful if someone could help me out here.

    Secondly, I would also like to know how to create a system image of WINDOWS 8, where the hard drive breaks down.

    Concerning
    MAK

    If you have the upgrade key, go here

    http://Windows.Microsoft.com/en-us/Windows-8/create-reset-refresh-media

    You can go for the use of win8 / win7 / vista to match highlights you want - and download the win8 installation and run the installation with your key to download you need to install windows from that.  Will allow you to have an iso bootable.

    Make a picture of the control panel system / Windows 7 file recovery / system Image.  I certainly wouldn't put it on dvd.  It will be too.   Find an old preference portable hard drive and buy a $ 20 usb box, get an external hard drive.

  • With the help of PSE v14 when PSE v10 is still in my iMac with iPhoto and when I click on a photo and click on change, he wants to keep opening PSE v10.  I just installed a temporary version of PSE v14 and would really like to use to see want I can do.

    With the help of PSE v14 when PSE v10 is still in my iMac with iPhoto and when I click on a photo and click on change, he wants to keep opening PSE v10.  I just installed a temporary version of PSE v14 and would really like to use to see want I can do.

    You open iPhoto or organizer? If the latter; Check your configuration. During your installation, make sure you select the application, and not an alias (shortcut). Go to this link.

    PSE14 as an external editor

  • My AirPort Extreme end not implemented with the help of AirPort Utility

    Bought a used AirPort Extreme (Genesis 4) of a person who showed me that he worked at home. When I try to set up as a Wireless extender to my last existing AirPort Extreme, he will not carry out synchronization upward with AirPort Utility. It appears as a new extreme, but get a message 'unexpected error' before or after the name. Have you tried to reset the two while it is powered and turning the as explained in the help.

    When I try to set up as a Wireless extender...

    Gen 4 airport will connect to your existing AirPort Extreme wireless... or... it will connect using wired Ethernet wired, Permanent?

    .. .it will not accomplish the synchronization upward with AirPort Utility.

    Which version of AirPort Utility?  If it's on your Mac... and you don't know what version you have...

    Open AirPort Utility

    Click the AirPort Utility menu in the upper left corner of the screen

    Click on about AirPort Utility

    Report on the version number you see here

    You have an iPhone or a handy iPad that could be used to implement the 4th Gen airport if the problems continue with the help of your Mac?

  • With the help of iPhone 6 s. try to copy the text message with a tap double and get a bubble with icons. How can I copy the message to paste in another?

    Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.

    maryml wrote:

    Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.

    Press and hold on the text and wait for the copy/more pop up.

  • With the help of Club running on the Nike watch +.

    Hello

    This is something I have tried to work for a while and have not yet been able to find an answer. At the moment I use Nike + management club on my iPhone to follow the tracks that I find that gps is better than just using the application of the workout on my watch. However, something that really bothers me is that I start the race on my phone, but I can't then view my stats while running without having to press on and tap the watch and wait for the application to load, very irritating to race. I want to be able to lift my wrist and live stats are there to watch me, not listening and not get my phone out of my pocket. Surely this is something that can make the original watch?

    As a separate issue with the new app, Nike +, it does not recognize the songs I downloaded on my phone of Apple music in my playlists, then I have to play the separatelay of music through the application of music as opposed to go with Nike +? The ides on how to fix or is this a known problem with the latest Nike + app?

    Hello

    You may find it useful to consult the support resources of Nike and/or contact Nike for assistance with the help of their application:

    More information:

    https://iTunes.Apple.com/us/app/Nike+-run-Club/id387771637?Mt=8

  • With the help of old gear series noon on El Capitan

    I have a Vox Tonelab SE effects audio Board (around 2004), there the old serial midi on the back ports. I hung with the help of a USB MIDI interface cable. While the USB Midi interface to the show in Audio / Midi set upward and also in the profile system for USB port it does not detect the Vox Tonelab so no communication lunch.

    There is a POWERPC application called ToneLabSE SoundEditor which I downloaded and installed in the hope he would install a driver but I guess that this obviously doesn't work on INTEL in any case. Using Wine I can run the PC version, but still no communication via midi.

    Someone at - it ideas, would like to get this Panel communicating effects via MIDI.

    Thank you

    Solved! Using the WINE app I've run the version of the PC of ToneLab SE editor application. So pretty unintuitively by changing the serial midi to USB, SERIAL interface cables that went to the and out on the Tonelab SE. Now of the Se ToneLab editor I can write banks of programs to hardware Tonelab, but unable to empty the banks since the material Tonelab to software. My main desire was to use Expression pedals on the Tonelab as Midi Ableton controllers and some of the switches to the control of the Looper stomp. Now I can do it all. Hooray!

  • With the help of Yosemite, I like Photos app in general; have big Aperture library, although I use rarely opening Tools. Advantages, disadvantages and pitfalls related to the migration of Photos?

    With the help of Yosemite, I like Photos app in general; have big Aperture library, although I use rarely opening Tools. Advantages, disadvantages and pitfalls related to the migration of Photos?

    Opening was a pro the Pro amateur-oriented or serious app, usually shooting Raw, probably on a digital SLR.

    If that's you then pictures will miss a lot for you.

    If this isn't the case, then opening was probably overkill for your needs.

    If you like the pictures then this is the way to go.

  • Thunderbird will only connect if stop then reopened. (With the help of Mac 10.9.4)

    With the help of Mac 10.9.4
    If I open Thunderbird, I can connect to my e-mail address and download the messages. If I select "Get Mail" once again, Thunderbird crashes and fails to connect to my emails. If I then close Thunderbird and re-open it, I'm able to immediately connect to my mail.

    It seems to have sorted itself after a few days. (Fingers crossed). Until today it worked properly. Will keep an eye on things for the next week and the report does so again.

Maybe you are looking for