Load SWF with instances into MC

Hello,
I have a SWF called "player.swf", and it contains instances
like: "head", "body" etc...
I want to load that SWF into another SWF
("display_player.swf"), and to load ANOTHER SWF to replace the
"head" instance, like:
"_root.p" is a transparent red colored movie clip inside
"display_player.swf"
I tried doing this:
_root.p.loadMovie("player.swf");
trace(_root.p.head);
"_root.p" said to be "_level0.p" and is displayed correctly,
but "_root.p.head" said to be undefined (NaN)...
Does anyone has an idea on how to load a SWF inside a movie
clip, and use it's instances?

The point here is to demostrate, or at least determine, what
the problem is. I have stated that it is probably likely that you
are making the call to _root.p.head previous to it being
instatiated on the timeline. you must wait for the swf to load
before the clip within the loaded swf can be made available to
target. A better method would be to use the MovieClipLoader class,
and then use the onLoadInit handler, this handler is displatched
when the swf becomes available to the timeline, then within the
handler you could call your trace, or load into the 'head' instance
at the correct time.
I have made an example to demostrate this, using
representations of you clips and swfs:
HERE
PS. launch the items from within the folder.

Similar Messages

  • Loading SWF with audio playing in it...

    I was loading a SWF file, and noticed that even if I didn't
    add it to the display via addChild() that I can hear the audio
    playing in it. Why is this? And likewise, when I do addChild(), and
    see the SWF, then later use removeChild(), and no longer see it, I
    can still hear it playing.
    I can sort of understand that even though it's not displayed
    until using addChild() that one would HEAR it, because it is loaded
    - correct? But how would I actually get rid of/delete this when I
    no longer want to see/hear it ?

    Thanks to the both of you! I'd like to see the things you do
    to "close up shop" on the loaded SWF.
    I also found something about getting access to your loaded
    SWF here:
    TextAccessing
    document class of an externally loaded swf with AS3
    That blog describes adding a generic object in the complete
    listener:
    var loaderInfo:LoaderInfo = e.target as LoaderInfo;
    var myLoadedSWF:Object = loaderInfo.content;
    You can then target myLoadedSWF and access your SWF. Seems
    pretty different than AS1 & 2, but I suppose that's how it is
    (unless there are better ways).

  • (MX04) Pausing a loaded swf with sound objects within it

    Hi,
    I'm working on a PowerPoint-esque presentation where a user
    watches and listens to a loaded swf in the main movie, clicks the
    next button (which unloads the swf, advances to the next frame and
    loads the next swf), and watches the next one. Lather, rinse,
    repeat. Some of the sections are rather long, and I'd like to give
    the user the ability to pause and play by button click.
    I know how to stop and start the container MC, but that
    doesn't stop the sound object (and the embedded MCs). I also know
    how to pause and start a sound object using the object's instance
    name. Is there a way to pause everything from the main timeline,
    and keep the AS general enough so that any sound object pauses when
    clicked?
    Any help is most appreciated! MX04 and AS2.0.
    Thanks!

    Kglad,
    I tried your code and ran into some problems with stopping
    the mc's, as the embedded mc's within the loaded swf need to stop
    as well. I found the attached code to stop the mc's, but now am
    having trouble with the sound objects.
    Here's the issue, I used this:
    this.soundPosition = currentMovie.loop1.position/1000;
    this.currentMovie.loop1.stop();
    ... for the sound object stop commands and listed a new one
    for each loop I was using. On the play button I started them back
    up again. This all works, but when I start them up again they all
    play, not just the one that is currently paused. Do you mind giving
    me some guidance with the for (obj in mc) loop? My loop experience
    is nil. What I want to do is have the code cycle through all of the
    loops to see which one is playing, then store that information in a
    variable, then pause and play the variable. Does that sound right?
    Thanks again for the help!
    -Sandy

  • Loading SWF giving Instance name as TimeLine

    I'm Loading swf into a movieclip name main_mc. After
    successfully loading it into main_mc. I had written a function to
    get all children present in that movieclip(main_mc). It is getting
    Children present in that, but every time it give [Object
    MainTimeLine] as instance3 or sometime instance10. How can i
    control instance name of maintimeline as it is randomly getting its
    name.... I'm attaching code use in getting child and loading it...
    Plz check if their any problem in code.
    quote:
    Clip=new Loader();
    var urlRequest:URLRequest=new URLRequest("test.swf");
    Clip.contentLoaderInfo.addEventListener(Event.COMPLETE,LoadingDone);
    Clip.load(urlRequest);
    private function LoadingDone(event:Event):void {
    var _mc:MovieClip=event.target.content as MovieClip;
    main_mc.addChildAt(_mc,0);
    //if i trace the name of _mc movieclip... it will instance4
    or instance10 randomly
    trace(_mc.name);
    showChildren(stage,0);
    function showChildren(dispObj, indentLevel:Number):void {
    for (var i:uint = 0; i < dispObj.numChildren; i++) {
    var obj:DisplayObject = dispObj.getChildAt(i);
    if (obj is DisplayObjectContainer) {
    trace(padIndent(indentLevel), obj.name, obj);
    showChildren(obj, indentLevel + 1);
    } else {
    trace(padIndent(indentLevel) + obj);
    function padIndent(indents:int):String {
    var indent:String = "";
    for (var i:uint = 0; i < indents; i++) {
    indent += " ";
    return indent;
    when loading is done suppose test.swf has one_mc movieclip
    Children traced are like that...
    quote:
    main_mc [object MovieClip]
    instance3 [object MainTimeline]
    one_mc [object MovieClip]
    [object Shape]
    Can we solve this problem...

    you can't control the instance name of a main timeline. but
    if you name everything else, the main timeline will be the only
    object whose instance name starts with "instance".

  • Loaded swf with button , not communicating to main timeline

    my main stage/timeline has a UILoader "UILoaderOne" and
    another one "UIloaderTwo".
    i have some buttons on the main stage which pull up some
    images into the UILoaderOne.
    these work fine and look like this.
    //BEGIN BUTTONCODE\\
    //button to load image into loader "loaderOne" x01_btn and
    x01_ldr, thumb image is "x01.jpg and main image is p01.jpg\\
    //crop thumb image to size 50px tall by whatever wide and
    resize loaderButton if needed, main image will resize
    proportionatly\\
    x01_btn.addEventListener(MouseEvent.CLICK, onClick);
    function onClick(event:MouseEvent):void
    //import fl.containers.UILoader;
    import fl.controls.Label;
    import fl.controls.ProgressBar;
    var url:String = "assets/01.jpg";
    //var myUILoader:UILoader //= new UILoader();
    myUILoader.unload();
    myUILoader.autoLoad = false;
    myUILoader.source = url;
    //myUILoader.move(10, 10);
    myUILoader.scaleContent = true;
    myUILoader.load();
    var myProgressBar:ProgressBar = new ProgressBar();
    myProgressBar.source = myUILoader;
    myProgressBar.setSize(100, 10);
    myProgressBar.move(myUILoader.x+340, myUILoader.y+250)
    myProgressBar.addEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    myProgressBar.addEventListener(Event.COMPLETE,
    completeHandler);
    addChild(myProgressBar)
    var myLabel:Label = new Label();
    myLabel.text = ". . . . . X . . . . . ";
    myLabel.autoSize = TextFieldAutoSize.LEFT;
    myLabel.move(myProgressBar.x, myProgressBar.y +
    myProgressBar.height);
    addChild(myLabel);
    function progressHandler(event:ProgressEvent):void {
    //trace("progress:", event.bytesLoaded, event.bytesTotal,
    int(event.currentTarget.percentComplete) + "%");
    //myLabel.text = event.bytesLoaded + " of " +
    event.bytesTotal + " bytes loaded.";
    myLabel.text = ("progress:", event.bytesLoaded,
    event.bytesTotal, int(event.currentTarget.percentComplete) + "%")
    //myLabel.text =
    Math.round((event.bytesLoaded/event.bytesTotal)*100) +"%";
    function completeHandler(event:Event):void {
    trace("complete:");
    myProgressBar.removeEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    myProgressBar.removeEventListener(Event.COMPLETE,
    completeHandler);
    removeChild(myProgressBar);
    removeChild(myLabel);
    //addChild(myUILoader);
    //trace("typeMe");
    //end BUTTONCODE\\
    //end BUTTONCODE\\
    the second Loader "UILoaderTwo" auto loads another swf file
    with the INTENT to load from buttons, images into the ULLoader
    "UILoaderOne" which is on the main timeline.
    this part is failing
    the error i get in Output window is
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at sOne_fla::MainTimeline/onClickz()
    the swf that loads is sOne.swf
    and it has code of this
    z01_btn.addEventListener(MouseEvent.CLICK, onClickz);
    function onClickz(event:MouseEvent):void
    import fl.containers.UILoader;
    import fl.controls.Label;
    import fl.controls.ProgressBar;
    var url:String = "assets/xx.jpg";
    var myUILoader:UILoader //= new UILoader();
    myUILoader.unload();
    myUILoader.autoLoad = false;
    myUILoader.source = url;
    //myUILoader.move(10, 10);
    myUILoader.scaleContent = true;
    myUILoader.load();
    var myProgressBar:ProgressBar = new ProgressBar();
    myProgressBar.source = myUILoader;
    myProgressBar.setSize(100, 10);
    myProgressBar.move(myUILoader.x+340, myUILoader.y+250)
    myProgressBar.addEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    myProgressBar.addEventListener(Event.COMPLETE,
    completeHandler);
    addChild(myProgressBar)
    var myLabel:Label = new Label();
    myLabel.text = ". . . . . X . . . . . ";
    myLabel.autoSize = TextFieldAutoSize.LEFT;
    myLabel.move(myProgressBar.x, myProgressBar.y +
    myProgressBar.height);
    addChild(myLabel);
    function progressHandler(event:ProgressEvent):void {
    //trace("progress:", event.bytesLoaded, event.bytesTotal,
    int(event.currentTarget.percentComplete) + "%");
    //myLabel.text = event.bytesLoaded + " of " +
    event.bytesTotal + " bytes loaded.";
    myLabel.text = ("progress:", event.bytesLoaded,
    event.bytesTotal, int(event.currentTarget.percentComplete) + "%")
    //myLabel.text =
    Math.round((event.bytesLoaded/event.bytesTotal)*100) +"%";
    function completeHandler(event:Event):void {
    trace("complete:");
    myProgressBar.removeEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    myProgressBar.removeEventListener(Event.COMPLETE,
    completeHandler);
    removeChild(myProgressBar);
    removeChild(myLabel);
    //addChild(myUILoader);
    //trace("typeMe");
    //end BUTTONCODE\\
    //end BUTTONCODE\\

    well, I'm such a novice to begin with.
    the loader is actually placed on stage manually, and instance
    named manually so a lot of that code is may not be needed,
    i do a lot of trial and error technique
    it is all personal stuff
    one guess i have is to set up a listner as to when the sOne
    is loaded, and then get a way to communicate to each other?
    how?

  • Deploying swf with resources into a single sis on Nokia

    Hi finally i have my first question on the mobile forum . I am trying to package a sis file which will contain the main swf and a settings text file.
    The problem is the i have to compile them to deliver both together on Nokia device for flash lite 2.1. There is not a single decent packager out there as o see that solves my issue.
    Generally i use Nokia carbide. Here is a glimpse of my PKG file:
    ; Add any installation notes if applicable
    ;"MobiStore.txt"          -"!:\private\E4B653CF\MobiStore.txt"
    ;required for application to be covered by backup/restore facility
    "..\sis\backup_registration.xml"          -"!:\private\E4B653CF\backup_registration.xml"
    ;Add all the files needed by your flash app here. don't forget to set correct folder names!
    "..\data\MobiStore.swf" - "!:\private\E4B653CF\MobiStore.swf"
    "..\data\settings.txt" - "!:\private\E4B653CF\settings.txt"
    Now what happens is that after the application installs on a actual Nokia device It gives error "private\E4B653CF\settings.txt" Not found !!
    I confirm that the file is there manually but the swf cannot find it. In the swf i load the file "settings.txt" using loadvars.load method and providing just the file name "settings.txt",  no sub-folders or anything. So basicaly the file "MobiStore.swf" and "settings.txt" are in same folder but when i run the application it says:
    "private\E4B653CF\settings.txt" Not found !!
    I will really appreciate if some one can help me out with this. How to package a swf with resource files into sis and deploy on a real device.

    Hey,
    i have the same problem. Flash Lite 3.1., N97 The application is published with network only. I have even tried local only with same results.
    When i try to load an image with loadMovie(image.jpg), image is not show. But this only occurs when the application is installed on E:/private/UID/. If i install the application on C:, everything is working ok.
    Also same problem with loading images from http://127.0.0.1:8888/GetImage/image.png. If installed on E:, images are not shown, but if installed on C:, all images are visible. Is this problem with security? My servlet http://127.0.0.1:8888/crossdomain.xml is never called.
    Simon

  • Controling a loaded swf with another loaded swf

    I have a blank stage with only AS that loads an swf
    addChildAt(0) and a second one addChildAt(1). This works. When the
    user interacts with (1) it calls another addChild (not indexed) and
    possibly that one loads another, depending on the choices made by
    the user. How can I get any of these to control that very first
    child that was loaded at (0)? I have run out of ideas.
    Some of the code:
    (on the main swf, nothing on the stage, only code that loads
    the next two)
    addChildAt(pHolder, 0);
    pLoader.load(pURLReq);
    pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    pLoaded);
    and for the second:
    addChildAt(mHolder, 1);
    mLoader.load(mURLReq);
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    mLoaded);
    On the child of childAt(1), I have:
    function replaceSWF(e:MouseEvent):void
    pLoader = new Loader();
    pLoader.load(new URLRequest("p.swf"));
    pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    placeNewClip);
    function placeNewClip(e:Event):void
    removeChildAt(0);
    addChildAt(e.target.content, 0);
    If I use this exact same code from that very first swf, the
    one that loads the first two external swfs, it works, but once I
    put it on one of hte other loadeds and sub loaded swfs, I can't get
    it to work. In the current state (0) it just makes everything on
    the stage disappear, so I figured then using the index of (1) would
    do it, but that or any other number results in absoluly nothing.
    Help! I am really out of ideas here.
    (the stacking looks like this) ---
    sub second loaded SWF <==== needs to tell first loaded SWF
    to unload then load a new swf at same index
    second loaded SWF <==== loads the next one above
    first loaded SWF <=== needs to be removed and another swf
    loaded at the same index
    mainSWF (loads two others) <=== code placed here works for
    first loaded SWF

    Kglad,
    I tried your code and ran into some problems with stopping
    the mc's, as the embedded mc's within the loaded swf need to stop
    as well. I found the attached code to stop the mc's, but now am
    having trouble with the sound objects.
    Here's the issue, I used this:
    this.soundPosition = currentMovie.loop1.position/1000;
    this.currentMovie.loop1.stop();
    ... for the sound object stop commands and listed a new one
    for each loop I was using. On the play button I started them back
    up again. This all works, but when I start them up again they all
    play, not just the one that is currently paused. Do you mind giving
    me some guidance with the for (obj in mc) loop? My loop experience
    is nil. What I want to do is have the code cycle through all of the
    loops to see which one is playing, then store that information in a
    variable, then pause and play the variable. Does that sound right?
    Thanks again for the help!
    -Sandy

  • Load swf-version=17 into swf-version=10  -  VerifyError: Error #1014.......

    Hi Guys,
    I have very interesting situation, and I would like to ask you for any help.
    History: I've started the new project for "one" company (my project is small web game). The first and the main requirement for this project was using Stage3D. The company I'm working for, has it's own "SWF-Container" for all projects (about 1000+ small projects). The second requirement was using this "SWF-Container" to load my project inside.
    Main Issue: "SWF-Container" can't be changed/modified (a lot of functionality + a lot of project already online). "SWF-Container" wroted using Flex SDK 3.6 ("A long time ago in a galaxy far, far away...."  ) -swf-version=10. When I'm trying to load the new project ("-swf-version=17") into this old container - I'm receiving the error:
    [Fault] exception, information=VerifyError: Error #1014: Class flash.display::Stage3D could not be found.
    (and I thing the same will be for all new classes like: JSON, Context3D, etc...)
    No errors if I'm opening my project stand-alone.
    My ideas/suggestions:
    1) Ask for new "SWF-Container" - Failed. No resources to support a few "SWF-Container"s.
    2) Ask for change "SWF-Container" to be "-swf-version=17" - Failed. No simple way to change SWF version using Flex SDK 3.6 + a lot of conflicts with current projects (at least global class "JSON").
    3) Find some solution with loading the new SWF to the old SWF - in progress. Currently - with no success.
    Projects:
    I've created two project that simulate my situation: https://drive.google.com/file/d/0Bw4xj8VbNvNuZ1gybzFYcEpkLVk/edit?usp=sharing
    By using next URL you can find ZIP with two FlashDeveloper projects inside:
    a) OldContainer - project that simulate "SWF-Container" (Flex SDK 3.6)
    b) NewGame - project that simulate my new project (Flex SDK 4.6).
    I will be very grateful for any help in finding a solution for this problem.
    With best regards, Vadym.

    Hi kglad,
    Thank you for good point. But there are no way to change current mehanisms to embed/load "SWF-Container".
    Imaging, that "SWF-Container" is not a simple empty SWF, but it's site core, that display in one time a lot of different widgets - small AS3 projects with really different functionality (one of these widgets should be my small game).
    Thanks, Vadym.

  • How to load file with 500M into noncontiguous memory and visit them

    My data file consist of  a serial of 2d images. Each image is 174*130*2 butes and the total images in the file is up to 11000, which takes almost 500M bytes. I hope to load them into memory in one turn since I need to visit either image many times in random order during the data processing. When I load them into one big 3d array, the error of "out of memory" happended frequenctly.
    First I tried to use QUEUE to load big chunk of data into noncontiguous memory. Queue structure is a good way to load and unload data into noncontiguous memory. But it dosn't fit here since I may need to visit any of the all the images at anytime. And it is not pratical if I dequeue one image and enqueue it into the opposite end, since the image visited may be not in sequential order.
    Another choice is to put the whole file into multiple small arrays. In my case, I may load the data file into 11000 small 2d arrays and each array holds the data of one image. But I don't know how to visit these 2d array and I didn't get any cues in the posters here.
    Any suggestion?
    PC with 4G physical memory, Labview 7.1 and Win XP.
    Thanks.

    I'll try to get the ball rolling here -- hopefully there's some better ideas than mine out there.
    1. I've never used IMAQ, but I suspect that it offers more efficient methods than stuff I dream up in standard LabVIEW.  Of course, maybe you don't use it either -- just sayin'...
    2. Since you can't make a contiguous 11000-image 3D array, and don't know how to manage 11000 individual 2D arrays, how about a compromise?  Like, say, 11 3D arrays holding 1000 images each?   Then you just need ~50 MB chunks of contiguous memory.
    3.  I'm picturing a partially hardcoded solution in which there are a bunch of cloned "functional globals" which each hold 1000 images of data.  This kind of thing can be done using (A) Reentrant vi's or (B) Template vi's.  You may need to use VI Server to instantiate them at run-time.
    4. Then I'd build an "Action Engine" wrapper around that whole bunch of stuff.  It'd have an input for image #, for example, image # 6789.  From there it would do a quotient & remainder with 1000 to split 6789 into a quotient of 6 and remainder of 789.  Then the wrapper would access function global #6 and address image # 789 from it.
    5. Specific details and trade offs depend a lot on the nature of your data processing.  My assumption was that you'd primarily need random access to images 1 or 2 at a time. 
    I hope to learn some better ideas from other posters...
    -Kevin P.
    P.S.  Maybe I can be one of those "other posters" -- I just had another idea that should be much simpler.  Create a typedef custom control out of a cluster which contains a 2D image array.  Now make an 11000 element array of these clusters.  If I recall correctly, LabVIEW will allocate 11000 pointers.  The clusters that they point to will *not* need to be contiguous one after the other.  Now you can retrieve an image by indexing into the array of 11000 clusters and simply unbundling the 2D image data from the cluster element.

  • DMP 4310 load swf with flashvars

    Hi,
    I am using dmp 4310 and i want to load a swf file using flashvars. This swf is loaded through another swf (a wrapper swf) with the "MovieClip Loader Object" (AS2). When i load the swf using http request i do not have any prblems (eg clipLoader.loadMovie("http://10.0.0.1/swfTest.swf?flashVar1=test1")). The problem is that i cannot get the flashvars by loading the same swf file locally (eg clipLoader.loadMovie("file:///tmp/ftproot/usb_1/files/swfTest.swf?flashVar1=test1")). Is there any way to get the flashvar? Also, is there any way to access the swf file (with the flashvars) using the internal http service (eg http://localhost/...swfTest.swf?flasvar1=test1  -- where localhost is the player itself).
    Thank you in advance for your response!

    Suddenly that code in the following gives me some error
    var langPath = root.LoaderInfo.parameters["xmlFilePath"]+root.LoaderInfo.parameters["lang"];
    my_ssp.xmlFilePath = langPath;
    var fileType = root.LoaderInfo.parameters["xmlFileType"];
    my_ssp.xmlFileType = fileType;
    Access of possibly undefined property LoaderInfo through a reference with static type flash.display:DisplayObject.
    The only code snippet works is
    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
    for (var param in paramObj) {
       if (param == "xmlFilePath") {
          my_ssp.xmlFilePath = paramObj[param];
       if (param == "xmlFileType") {
          my_ssp.xmlFileType = paramObj[param];

  • AIR crashes on loading swf with 'Imported for runtime sharing' fonts

    Hello everybody,
    I have a trouble with an AIR application developped with Flex but the error seems to come from the Flash/AIR, after some searches a staff member (Flex harUI) said me that I could find more help for my trouble here.
    I'm developping an AIR application which loads an external swf. This swf contains 'Imported for runtime sharing' fonts from another swf to reduce its size.
    When the AIR application has finished to load (see message below) the whole application crashes without giving any error message except the usual "Process terminated unexpectedly" error message.
    End Loading: [SWF] C:\Users\dev02\myProject\index.swf - 83,930 bytes after decompression
    Error Message:
    Process terminated unexpectedly.
    Launch command details:  "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\bin\adl.exe" -runtime "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\runtimes\air\win" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug\Language_Editor-app.xml" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug"
    I use Flash Builder 4 (build 272416) with sdk 4.6.
    Full discussion here.
    I tried to load the external swf with the most basics codes, it works with a Flash web app but not with a Flex/AIR app or a Flash/AIR app.
    Thanks for the help !

    Thanks for the anwser.
    In fact, I cannot specify a swc because my main application is an editor of sub-applications where each one has its own library.
    The bug remains when sharing a simple MovieClip too.
    Maybe, if I explain my project it will be a little more clear.
    I'm developping a multi-languages module / application.
    For each module, I have an external xml for texts. So in order to add a new language we don't need to recompile, just to change texts in the xml. But, I had to externalize my fonts, (imagine if each swf contains the whole characters set like latin, cyrillic, etc.).
    And then, I have my main text editor application above the module, which loads texts xmls and a preview of the page where we need to change the text. (This is where it crashes, during the process of loading the preview).
    My editor works great for translating, changing texts, modify images but without the preview, what is really frustrating.
    (not so ergonomic, I know...)
    I hope it will help you to understand my trouble.
    regards

  • Loading swf with XML on Click

    Hi all, can anyone help
    can anyone shine a little light onto a little confusion I am having, I have a menu that already loads in images via an XML file on a menu, what I am trying to do is when an image/meni Item is click I would like to load in an swf into the same place as the image Item loads into! am I making any sense.
    on a click event, do I use in the XML file the <link>link to swf</link>   ????
    this is what I have in my xml file that loads in the images so far;
    <image name="image 12" path="img/img12.jpg"
    title="Lorem ipsum 12"
    text="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo 12" />
    what I am getting confused with is what I also put within the AS, I am sure it is not alot but I'm just not sure what needs to go where??
    this is what I have within the AS that loads in XML, I hope its ok to paste this code, never like posting to much code incase is scares people off, I just don't want to leave anything out, hope thats ok with everyone:eek:
    // Use URLLoader to load XML
    xmlLoader = new URLLoader();
    xmlLoader.dataFormat = URLLoaderDataFormat.TEXT;
    // Listen for the complete event
    xmlLoader.addEventListener(Event.COMPLETE, onXMLComplete);
    xmlLoader.load(new URLRequest("data.xml")); 
    stage.addEventListener( MouseEvent.MOUSE_WHEEL, onMouseWheel );
    //———————————————EVENT HANDLERS
    private function onXMLComplete(event:Event):void
    // Create an XML Object from loaded data
    var data:XML = new XML(xmlLoader.data);
    // Now we can parse it
    var images:XMLList = data.image;
    for(var i:int = 0; i < images.length(); i++)
    // Get info from XML node
    var imageName:String = images[i].@name;
    var imagePath:String = images[i].@path;
    var titles:String = images[i].@title;
    var texts:String = images[i].@text;
    // Load images using standard Loader
    var loader:Loader = new Loader();
    // Listen for complete so we can center the image
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImageComplete);
    loader.load(new URLRequest(imagePath));
    // Create a container for the loader (image)
    var holder:MovieClip = new MovieClip();
    holder.addChild(loader);
    var button_main:Button_mr = new Button_mr();   /
    holder.addChild(button_main);               
    var tooltip:ToolTip = new ToolTip();
    tooltip.field.text = titles;  //loads tooltip 1
    tooltip.field2.text = texts;  //loads tool tip 2
    tooltip.x = -350; 
    tooltip.y = 0;   
    holder.addChild(tooltip);
    // Same proceedure as before
    holder.buttonMode = true;
    holder.addEventListener( MouseEvent.CLICK, onMenuItemClick );
    // Add it to the menu
    circleMenu.addChild(holder);
    many thanks for any help!!!!

    1. Be sure in main.swf there is no masking or layering hiding
    the reflection area. A way to test quickly is to load in a plain
    master swf that is much larger than the externals swf.
    2. Know the weakness of loadMovie for timing issues that
    require the external movie to be fully loaded before actions are
    taken on it. I see a bunch of these in the code you posted. Best to
    use
    MovieClipLoader.onLoadInit
    before you attempt to access the external swf properties or code or
    add code.
    3. Be sure the code is firing on load and all objects are
    created. Add some trace statements for those objects.
    4. I noticed you do not use BitmapData so this may not be
    relevant but be sure to add
    System.security.allowDomain("*");
    to the main.swf as well as in external swfs and only if you
    are using the BitmapData class.
    5. As I started to look at the code a bit and noticed this
    item:
    There is no constructor for the Flash MovieClip class. You
    will not see a compiler error message because you do not have the
    code wrapped into a class.
    var home:MovieClip = new MovieClip();
    However it does not have impact on the code.
    better would be
    var home:MovieClip;

  • Load SWF with audio?

    Hello -- newbie problem/question (you can almost smell the
    newbie-ness)
    I am trying to load a SWF file (local file, in the same
    directory as the FLA file) into a new Flash CS3/AS3 file and, after
    a bit of searching, found information that led me to add the script
    shown below. This script seems to do the trick, in that the swf
    plays in the new file when tested/published. However, the original
    SWF includes audio, and when I publish and test this file, there is
    no audio. Can anyone point me in the right direction to load the
    SWF along with the audio, using ActionScript 3? Thanks!

    Thanks again.
    Well, the FLA file that I am creating as well as the
    resulting SWF file are located in the same directory as the SWF
    that I am loading into my new file (test_swf.swf). As I am just
    testing, this directory is simply on my C drive.
    The question that I cannot answer is how test_swf is calling
    the audio. In a nutshell, someone at my company has a small pile of
    SWFs and wants to make EXEs out of them -- none of the FLAs are
    available, so I know none of the details of these files. I am
    creating new FLA files and loading the SWFs, and then planning to
    write out as EXEs. However, I get no audio.
    Let me ask you this....should there be another step involved
    in getting the audio, or should the audio "normally" play when the
    SWF is loaded?

  • Load swf from memory into FlahPlayer ActiveX

    Hello,
    I am developing an application which must load a swf file
    into the
    activex directly from memory. My development is almost
    complete but I
    have a problem with the last part of the implementation.
    I am using an implementation of IBindHost, and passing the
    stream
    trough an IMoniker implementation.
    I don't know if someone here can help me, if so I will
    explain deeply
    my question.
    Thanks,
    Vicente.

    Hello,
    I am developing an application which must load a swf file
    into the
    activex directly from memory. My development is almost
    complete but I
    have a problem with the last part of the implementation.
    I am using an implementation of IBindHost, and passing the
    stream
    trough an IMoniker implementation.
    I don't know if someone here can help me, if so I will
    explain deeply
    my question.
    Thanks,
    Vicente.

  • Load swf from memory into FlashPlayer ActiveX (Visual C++)

    Hello,
    I am developing an application which must load a swf file
    into the
    activex directly from memory. My development is almost
    complete but I
    have a problem with the last part of the implementation.
    I am using an implementation of IBindHost, and passing the
    stream
    trough an IMoniker implementation.
    I don't know if someone here can help me, if so I will
    explain deeply
    my question.
    Thanks,
    Vicente.

    Hello,
    I am developing an application which must load a swf file
    into the
    activex directly from memory. My development is almost
    complete but I
    have a problem with the last part of the implementation.
    I am using an implementation of IBindHost, and passing the
    stream
    trough an IMoniker implementation.
    I don't know if someone here can help me, if so I will
    explain deeply
    my question.
    Thanks,
    Vicente.

Maybe you are looking for

  • How can I clear the data from my iphone without powering it on?

    So, in an attempt to avoid a $50 charge at the apple store, I decided to replace my screen myself. I've done this plenty of times before without any incident, but this time, some how the battery terminal on the logic board came off with the battery h

  • Error while importing data in DTW

    hi,    while importing the data for items in DTW the option for browsing templates differs from normal DTW. "query params" the odd structure displayed in the tree structure when we select the data source file.for items alone i had this type of tree s

  • Error in Consuming Portal Webservice

    Hi , I created a portal web service(RetrieveAndValidateUserService) and then consumed this portal service in an AbstractPortal Component application(RetrieveValidateUserComp). On deploying that application on portal I get the following error - #1.5#0

  • Qosmio G50-12F won't turn on

    I got a Qosmio G50-12f n : PQG55E-04C02YFR The problem is: when I plug on the dc power I got a white light on the dc plug picture and a orange light on the battery picture. When I want to power on the laptop, the white light turn off 1 second (maybe)

  • Bug Report Problem

    I think there's a bug in the "bug report" procedure. Says I'm signed in but on next page says sign-in which takes me in a loop.