Getting properties from loaded swf

hi there,
I am loading different swfs into my loader object "loader"
and I also have a description of each swf below it ("desc"
"desc_back").. Each swf is different in size and i want to move/
scale "desc" and "desc_back" it to fit. This seems to be kind of
working but it changes to fit the loaded swf before the one I want
it to. it is if it is taking the properties of the last loaded swf
instead of the one just loaded...I have tryed using an onload
listener amoung a number of things. my action script is not very
strong so it could be something simple.
thanks :)

you must wait until loading is complete before trying to
access the _width and _height of the about-to-be-loaded swf. ie,
use preloader code or the onLoadInit() method of the
moviecliploader class.

Similar Messages

  • Load and control AS2 interactive SWF in AS3 and get properties of AS2 swf

    Hi,
    Can anyone please tell me how to load AS2 and AS3 swf file in AS3 Loader class.  I have tried "ForcibleLoader.as, AVM1Loader.as, AVM2Loader.as but as of now I have not get successes yet. There are some issue in all library.
    I am looking for below solution.
    1) Load SWF file AS2, AS3 via flashVars params and load it in AS3 player.
    2) After successfully loaded, below properties should be shown -   
         a) totalFrames
         b) currentFrames
         c) FPS of loaded swf file
         d) Should wok play(), stop() properties of loaded swf file.
         e) SWF file should work just like video player application where we can do Play, Pause, Stop, Seek (All properties and methods
            should be supported. )
    3) Player should be capable of loading all swf file regardless of any version AVM1 AVM2 both in AS3 Player.
    4) After loading player should scale external loaded swf file as per Player stage width and height and content should be scale    
        proportionate in 4:3.
    4) AS2 & AS3 action script must be supported in AS3 player. (All interactive swf file should be supported)
    Thanks

    http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html

  • [C4005]: Get properties from packet failed killing my sessions

    I have a broker in a state where 6 messages are delivered which "kill" the first 6 sessions listening on a particular queue (round-robin delivery sorta situation)
    These exceptions are logged only to stderr and no indication is given to my program about them other than the affected sessions never receive another message again, others do.
    When the broker or consumer service is restarted, it happens again.
    If I start the broker with a -reset messages then the problem goes away. I saved the entire broker var folder to try to find a work around to this.
    This is OpenMQ 4.5B29
    I'll include the stack traces below, anyone seen something like this or have suggestions on how to deal with this without resorting to reset of the broker?
    Could not parse properties java.io.UTFDataFormatException: malformed input around byte 11
    Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
    WARNING: [I500]: Caught JVM Exception: java.lang.NullPointerException
    java.io.UTFDataFormatException: malformed input around byte 11
         at java.io.DataInputStream.readUTF(Unknown Source)
         at java.io.DataInputStream.readUTF(Unknown Source)
         at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:178)
         at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
         at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
         at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
         at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
         at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
         at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
         at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
         at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
         at java.lang.Thread.run(Unknown Source)
    Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ConsumerReader run
    WARNING: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
    com.sun.messaging.jms.JMSException: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
         at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:386)
         at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:337)
         at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:604)
         at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
         at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
         at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
         at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
         at java.util.Hashtable.put(Unknown Source)
         at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:193)
         at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
         at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
         at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
         at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
         ... 5 more
    Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
    WARNING: [I500]: Caught JVM Exception: java.io.UTFDataFormatException: malformed input around byte 11
    Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ConsumerReader run
    WARNING: [C4005]: Get properties from packet failed. - cause: java.io.UTFDataFormatException: malformed input around byte 11
    com.sun.messaging.jms.JMSException: [C4005]: Get properties from packet failed. - cause: java.io.UTFDataFormatException: malformed input around byte 11
         at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:386)
         at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:337)
         at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:604)
         at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
         at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
         at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
         at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.UTFDataFormatException: malformed input around byte 11
         at java.io.DataInputStream.readUTF(Unknown Source)
         at java.io.DataInputStream.readUTF(Unknown Source)
         at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:178)
         at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
         at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
         at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
         at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
         ... 5 more
    Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
    WARNING: [I500]: Caught JVM Exception: java.lang.NullPointerException
    Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
    WARNING: [I500]: Caught JVM Exception: java.io.StreamCorruptedException: invalid type code: 00
    Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ConsumerReader run
    WARNING: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
    com.sun.messaging.jms.JMSException: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
         at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:386)
         at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:337)
         at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:604)
         at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
         at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
         at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
         at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
         at java.util.Hashtable.put(Unknown Source)
         at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:193)
         at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
         at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
         at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
         at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
         ... 5 more

    From the stack trace, it looks like there is a problem with one of message's string properties. I can't obviously see what, but this might help you track down the cause of the problem.
    When you've found out what it is about your message that's causing this exception, please log this as a bug.
    Nigel

  • Pass parameters to a function in main class from loaded SWF?

    I've got a main.as that loads SWF to the stage.
    the loaded SWF seppoused to pass a link to the main.as and trigger a javascript function to popUp that photo from that link.
    I know there are two ways:
    ((root as MovieClip).parent.parent as Object).somefunction(parameters);
    and to dispatch an event.
    inorder to pass parameters throug the event i need to extend it with another class.
    isnt the (root as... )  more efficient if all i need is to pass a link?

    when a photo from the gallery is selected a javascript popUp shows it enlarged with additioan editing options (kinda like in facebook).
    in that popUp ther is also a next button so its kinda bidirectional. (the next calling the loaded SWF throug main to get the next link in the photo array)
    the photo is a grandchild of a grandchild of the stage and the loaded swf is a grandchild so using:
    ((root as MovieClip).root as MovieClip).ExternalInterface.call("ShowPic", link);
    is discusting ><

  • Imported swfs getting data from main swf

    Hi everybody,
    I'm struggling shaking my old school AS2 mindset here. I've got a main swf which loads a bunch of subordinate swfs. I need my loaded swfs to see some variables in the main. For instance (example simplified for conversational purposes), let's say I've got a swf loading (we'll say littleSwf), which needs to set its rotation based on a variable (we'll say swfRotation) in the main. The rotation code is inside of the little swf. How does that little swf get told / find out what its rotation number is?
    How would I do that? I've tried everything I can think of and done some digging, but apparently not in the right places.
    Any input appreciated.
    Dan P.

    If you are loading the swf into another, chances are you are using a Loader.  So the Loader becomes the parent of the loaded swf.  And the main swf is the parent of the Loader.  So using the more common AS2 mindset, you would want to get any variable in the main swf by targetng the parent.parent... which in AS3 can be done using... MovieClip(parent.parent).
    A more OOP correct way of getting the rotation value to the child is to assign it to it from the main swf after it has completed loading the child.  To do this you assign a listener to the Loader to determine when the file has been loaded, and then you have the main file target the child thru Loader.content property.  You could then have some function in the child that the main calls and passes the rotation value to as an argument, or just have the main file perform the operation on the child using the rotation value if that is suitable.

  • Invoking class from loaded swf

    I'm working on a project where I'm loading in a video player
    as an external swf to my main movie. I'm not able to get my video
    or the custom player to show up, but sound is there (I've done the
    whole Library>New Video thing, so I have a video object to
    reference).
    My question is: My loaded swf uses #include to include a
    script which imports two classes from a subdirectory, could that be
    causing the problem? My main movie never uses the classes.
    Just want to make sure this isn't my problem before I go
    digging into the script again!

    That is unlikely to be the problem. The .as includes are
    compiled into the
    SWF at publish. Much more likely is that you have
    inappropriate references
    to _root in your loaded movie. As it stands, the scope of
    _root, once you
    load the movie into another, is the _root of the *loading*
    movie. Either
    change these refs, or set the _lockroot property of the mc
    you are loading
    into to true.,
    Remove '_spamkiller_' to mail

  • Calling Flex function from loaded SWF

    Hello,
    I need to load an external SWF file, wity ability to call functions from the base FLEX code script .
    Is that possible ? noting that the loaded SWF can be either in AS2 or AS3
    Thanks in advance ..

    There are some third party ways of talking to an as2 swf.  Google
    as2interface (or maybe as3interface)

  • How can I get properties from my ldap server?

    urgent,I don't know
    how to use the getproperties to get the properties
    from ldap server,anyone help?

    Hi Kevin,
    You could write a portlet that uses the <um:getProfile> and
    <um:getProperty> tag (
    http://edocs.bea.com/wlp/docs40/p13ndev/jsptags.htm#1058056 )
    Or you can do an easier test that requires no coding: If you use the EBCC
    to create metadata about your ldap property set, then you can use the JSP
    portal admin tool to see your LDAP properties for a user. I think if you go
    through the UUP example on dev2dev.bea.com it has instructions for doing
    this with a UUP. Basically, create a property set (a.k.a. "user profile")
    named "ldap" in the EBCC and create properties that match the ones you want
    to retrieve ("telephoneNumber", etc...CASE SENSITIVE). Then access the JSP
    portal admin tool. If you are not using the LDAPRealm as your alternate
    security realm then create a user that you know exists in LDAP and then hit
    the link for the user and search the "ldap" property set and you will see
    their property values. If you are using the LDAPRealm for authentication,
    then this is not a ManageableRealm so you cannot create users (they are
    managed in your LDAP server). So, if you are using the LDAP realm, just
    create the "ldap" property set in the EBCC and go to the user mgmt tools in
    the JSP admin tools and you will see your user. Then search the "ldap"
    property set for your user and you will see the property values.
    Ture Hoefner
    BEA Systems, Inc.
    www.bea.com
    "Kevin" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hello,
    We're trying to retrieve an arbitrary profile and it's attributes from
    a Novell NDS ldap server. I've configured the ldapprofile.jar as
    described in the portal doc:
    http://edocs.bea.com/wlp/docs40/p13ndev/users.htm#1131824
    but the article doesn't go on to describe how to use the configuration
    to actually access the properties.
    I'm unsure as to how to use the com.bea.p13n.usermgmt.profile.ldap
    package to retrieve the information I need.
    Is there some step by step instructions to achieve this as well as
    some sample code to run in a jsp to test this functionality?
    Thanks for any help.
    Kevin
    Ture Hoefner <[email protected]> wrote:
    Hi Eric,
    The LdapPropertyManager handles that for you. All you have to do is
    deploy it. (I'm talking about Portal 4.0). See the docs at "Accessing
    Properties from an LDAP Server" (
    http://edocs.bea.com/wlp/docs40/p13ndev/users.htm#1131824 )
    You will need to deploy the LDAPPropertyManager EJB, located in
    ldapprofile.jar. It is shipped with the product in
    <wlportal4.0-install-dir>/lib/p13n/ejb/ldapprofile.jar.
    Eric Nie wrote:
    urgent,I don't know
    how to use the getproperties to get the properties
    from ldap server,anyone help?--
    Ture Hoefner
    BEA Systems, Inc.
    2590 Pearl St.
    Suite 110
    Boulder, CO 80302
    www.bea.com

  • Control main timeline from loaded swf.

    Hi,
    I'm using a textfield for debug information.
    I'm loading an swf on the main timeline and I'm showing the status in the debug textfield.
    function swfLoaderCompleteHandler(event:Event)
         Debug.text +=  "Swf loaded.";
    That works.
    But,
    I'm loading a png file in the loaded swf. , I'm trying to show the status of the png file as I showed the status of the swf.
    function pngLoaderCompleteHandler(event:Event)
         MovieClip(parent).Debug.text += "Png loaded.";
    I can't control the main swf from inside the loaded swf. Even gotoAndStop or calling a function doesn't work.
    Do I need to add something when I load the swf, saying it's a MovieClip or something?
    Here's a fla too. http://flashfocus.nl/forum/attachment.php?attachmentid=9885&d=1282509233

    Thank you! you're brilliant!
    For people with the same problem:
    If you use CS5 and you have a TLF text on the stage, it doesnt work... I think it's a bug. But when I converted my TLF textfield to classic and everything works fine!

  • How do I stop "Get Glue" from loading at start-up?

    When I start Firefox, it first initializes correctly; and, then I try to start using it when the Firefox force loads your '''Get Glue''' page upon me. I then have to close your '''Get Glue''' program before I can use anything else. Therefore, my question is: "How do I prevent your '''Get Glue '''program from loading when I never ever even asked for ''that'' program,

    That is not part of Firefox, but appears to be an add-on. You appear to have this add-on installed - https://addons.mozilla.org/firefox/addon/3481/
    For details of how to uninstall the add-on see the [[uninstalling add-ons]] article.

  • Accessing AIR API from loaded SWFs

    I am relatively new to AIR development and I can't get my head a round a little issue. I have an AIR application created in Flash CS5 that is just a shell that loads modules on demand, those modules are just SWF.
    I would like to access the AIR API directly from the classes of those SWF but of course they don't compile because in the publish settings they are just exported for Flash player 10 and don't see the AIR API. I tried adding airglobal.swc to the library hoping it would sort out the compiling problem but it doesn't and it generates many errors.
    I use to develop with MDM ZInc and I would just import the MDM SWC in any classes that would want access the MDM API, I am unsure how to proceed with AIR.
    Any help would be appreciated.
    Calwen

    Hi Calwen,
    here is basic sample how you could achieve that. Note: I'm using mxml syntax and components - but the *KEY* is api use of LoaderContext - not what real components are used to model UI.
    Say I have host:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                creationComplete="creationCompleteHandler(event)">
         <fx:Script>
              <![CDATA[
                   import mx.events.FlexEvent;
                   protected function creationCompleteHandler(event:FlexEvent):void
                        var loaderContext:LoaderContext = new LoaderContext();
                        loaderContext.allowCodeImport = true;
                        swfLoader.loaderContext = loaderContext;
                        swfLoader.load("app:/MyLoadedApp.swf");
              ]]>
         </fx:Script>
         <s:SWFLoader id="swfLoader" width="100%" height="100%"/>
    </s:WindowedApplication>
    MyLoadedApp is not created with air SDK at all - it is just flash.display.Sprite movie clip created with any compatible Flash compiler:
    package
         import flash.display.Sprite;
         import flash.events.*;
         import flash.text.TextField;
         import flash.utils.getDefinitionByName;
         public class MyLoadedApp extends Sprite
              public function MyLoadedApp()
                   addEventListener(Event.ADDED_TO_STAGE, initApp);
              protected function initApp(addedToStageEvent:Event):void
                   removeEventListener(Event.ADDED_TO_STAGE, initApp);
                   var clazz:Class = flash.utils.getDefinitionByName("flash.filesystem.File") as Class;
                   if(clazz)
                        // we could read documents directory (File.documentsDirectory) using class access
                        var directory:Object = clazz.documentsDirectory;
                        try
                             // and we could show browse dialog (now we are using instance - not class)
                             directory.addEventListener(Event.SELECT, directorySelectedHandler);
                             directory.browseForDirectory("Please select directory");
                        } catch (error:Error)
                             // handle error
                             var errorText:TextField = new TextField();
                             errorText.autoSize = "left";
                             errorText.text = error.message;
                             addChild(errorText);
              protected function directorySelectedHandler(selectEvent:Event):void
                   var directory:Object = selectEvent.target;
                   var files:Array = directory.getDirectoryListing();
                   var resultsTextField:TextField = new TextField();
                   resultsTextField.autoSize = "left";
                   resultsTextField.multiline = true;
                   resultsTextField.appendText(selectEvent.type+":\n");
                   for(var i:uint = 0; i < files.length; i++)
                        resultsTextField.appendText(files[i].name+"\n");
                   addChild(resultsTextField);
    This is not safe at all and loaded module can do everything I think (we talk about local modules from app storage, like in Zinc, right?)
    kind regards,
    Peter

  • Extract graphics from loaded swf / Big problem

    Hello,
    my English isn't very good, so sorry for mistakes I have swf which consist of many vector graphics.
    You can show it right here: http://www.watchtime24.sisco.pl/moje...orowanka_1.swf
    If I import the swf to the stage, than I can manipulate this graphics. But this is not enough for me. I need to manipulate from Action Script.
    I need to change the colors of this piceses from AS. I tried to use function
    getObjectsUnderPoint(new Point(mouseX, mouseY))
    but it doesn't work. This function doesn't see shapes, graphics or something else.
    Is any solution which can fix my problem ? Has anyone any idea ?

    Hey Mich,
    What you can do is turn eachof the items in your shapes, into a movieClip or sprite or even a bitmap.
    like the boy in the drawing.. take all of thsoe and then convert them into a movieClip.  Then when you do this give them a name and export them for actionscript.  Give this a class Name.
    then when you load the swf, you can actually target those files with this line.
    Say i converted the BOY into a movieClip.
    import flash.system.ApplicationDomain
    import flash.utils.geClasstDefinition
    var myswfHoldingBoy
    var myLoader:URLLoader = new URLLoader()
          myLoader.addEventListener(Event.INIT,onInit)
         var myURLRequest('path to myswfHoldingBoy')
    myLoader.load(myURLRequest)
    privaate function onInit(e:Event){
    //here is where we will extract the boy for the library of the other swf
    var ldrAppdomain= e.target.loaderInfo.applicationDomain
    var boyObject:Class= ldrAppdomain.getByDefinition('class name you gave the boy as i said eralier') as Class
    // now we have boyObject that will be able to be used as a class
    addChild(new boyObject())  // this will addYourBoy movieClip to the stage.  but keep a reference to him so that you can then manipulate him.

  • Creating array of Bitmaps from loaded swf

    so ive got a swf, quite simply it contains an embedded Video
    object, an flv. what i need to do is load it in (done) goto each of
    its frames in turn and convert said frames to Bitmaps, thus
    creating a single, unique Bitmap for each frame of the flv Video.
    crikey, how the hell can i do this? :)

    so i've just discovered that, as someone on some webpage
    somewhere said 'BitmapData is your friend. having discovered this i
    found the answer. the code's a bit rood, just test code crudely
    c&p'ed but heres what seems to be the broad answer to my own
    question:
    private function completeHandler(event:Event):void
    var mc:MovieClip = MovieClip(loader.content);
    mc.gotoAndStop(1);
    var bmd1:BitmapData = new BitmapData(320,240);
    var bm1:Bitmap = new Bitmap(bmd1, "auto", true);
    bmd1.draw(mc);
    mc.gotoAndStop(1000);
    var bmd2:BitmapData = new BitmapData(320,240);
    var bm2:Bitmap = new Bitmap(bmd2, "auto", true);
    bmd2.draw(mc);
    addChild(bm1);
    addChild(bm2);
    bm2.y = 240;
    }

  • How to access properties of symbols in loaded SWF?

    I'm making the migration from Flash to Flex, but I'm running
    into a dead end on one particular area: accessing and manipulating
    properties of symbols in a loaded SWF.
    The SWF is actually a simple library of a detailed parts
    illustration. I would like to load the entire SWF in position, and
    be able to change the attributes (i.e. colors) of individual
    symbols (or parts of the illustration). I can load, display and
    manipulate each symbol separately, but I need the parts to remain
    in place.
    The original art was created in Illustrator and exported as
    SWF using the symbols palette.
    I can always go back to Flash, but I'm forcing myself to move
    forward and do this project in Flex (baptism by fire!!).
    Is there some sort of dot notation to access the symbols from
    within the SWF, without loading them all separately?
    Let me put this another way: it appears that I can load an
    SWF and then instantiate each symbol in that SWF, and then load
    each symbol to the 'stage' (or whatever it's called in Flex)
    separately.
    I can certainly instantiate each symbol separately, and then
    align it on stage, but it seems to me to be bass-ackward to do it
    that way, expecially since I created the original SWF with
    everything in position.
    Is there no way to access the attributes of the individual
    symbols within an SWF without separately instantiating them?
    I'm just having trouble getting my head around this. Any help
    is greatly appreciated.

    Okay, I took a look at this info and it's what I was already
    doing.
    Here's a simplified example of what I'm trying to do, using
    the example in the swf9.pdf file.
    Let's assume I've created a SWF with a "BlueSquare" movieclip
    (in the symbols panel in Flash, exported for AS). In that clip,
    there is another symbol called "Star". I import the SWF and
    BlueSquare symbols in with the following code:
    <mx:Script>
    <![CDATA[
    [Embed(source=”../assets/circlesquare.swf”)]
    [Bindable]
    public var LogoCls:Class;
    [Embed(source=”../assets/circlesquare.swf”,
    symbol=”BlueSquare”)]
    [Bindable]
    public var LogoClsBlueSquare:Class;
    </mx:Script>
    If I instantiate the BlueSquare on stage, it includes the
    Star symbol when previewed, but I can't figure out how to get at
    the Star symbol to change color. If I apply a color change to the
    symbol, it changes the entire BlueSquare symbol.
    If I instantiate the Star symbol separately, I can then
    position it on the stage and make changes, but that requires
    positioning it with actionscript. I'm trying to not have to
    position a sub-element of my actual artwork because of it's
    complexity.
    I'd like to display the main movieclip (or sprite) with the
    ability to access the attributes of a sub-movieclip or
    sprite.

  • Remove event listener from loaded external swf

    I have a main movie timeline that loads an external swf. When I unload the swf from the main timeline I get an error from this:  my_FLVPlybk.addEventListener(VideoEvent.COMPLETE, vidEnd);
    is there any way to remove the event listener from the loaded swf from the main timeline?
    THANKS!

    if you're publishing for fp 10+, use unloadAndStop() applied to your swf's loader.  that has a fair chance of solving the problem.
    if that fails, you should explicitly stop my_FLVPlybk.

Maybe you are looking for

  • How to use Derby database in embedded mode in WebLogic 12c?

    I have a JavaEE-6 application that uses Derby database in embedded mode. It uses JPA for persistence. Everything works fine in Glassfish but now I am trying to port it to WebLogic 12c and having issues setting up Derby database in WLS in embedded mod

  • PO audit report: ASAP

    Hi All, I have a bit of an unusual request. Each month we run an audit report for corporate marketing examining each instance where a PO was created after the invoice date. Now weu2019d like to examine the total # of these violations in comparison to

  • Howto increase log recovery speed?

    We created a copy of our production MaxDB (2,8 TB) to have a shadow database. When I apply the logs (via script) I find out, that the shadow database is not able to "keep up" with the number of logs produced in the production. I figured out so far th

  • Lumix LX100 raw files

    What version of Adobe Camera Raw can process Lumix LX100 .rw2 files?

  • FAQ: AVCHD MTS files

    We have heard from a number of users who have reported an inability to apply markers to AVCHD MTS files because the .mts files were moved out of the folder structure created by the camera. For example in this screenshot I demonstrate an MTS file that