Mx.controls.loader

Hi,
I'm new-ish to Flash and am having the hardest time figuring
out what I need to do to get this right. I've made a main swf file
with the main buttons and a MX.controls.loader, when you click on a
main button it loads a swf file in the loader, works great.
The problem is when I click on a buttons inside the loader
the file opens in a new page not inside the loader. Can anyone
help.
Is the loader the right way to do this or is it the button
script different?
Thanks

>>Of course If I setInterval and wait a bit it works
fine
>>The above code is in a movieclip
So the loader is nested in a movieclip that is nested or
attached and you have all code on frame 1... meaning there is no
alternative to using the setInterval to wait for the methods and
properties of the loader component to become available.

Similar Messages

  • How can Image sliding work in flash cs4 on mac using mx.controls.loader

    Hi i started working in flash after a long time. i am creating a virtual catalogue DVD for my client. to work on it quickly, i used mx.controls.loader component to call jpg images in my movie.i just gave contect path in component inspector. my working OS platform is windows xp. and everything is working perfectly fine. i used actionscripting on buttons to slide images left and right. when my client opened it in mac everything else was fine but images were not loading. although the directory path everything is right and working here but not in mac.

    Hi Mate - I'm using CS4 Extended Ps v11.0.2, according to the Adobe site photoshop instals a 32 bit version only. How can I find out exactly by checking out preferences etc? I'll have to go hunt out the box.
    Thanks for the reply.

  • Control load order of third-party menulets / menu extras at startup

    Does anyone know how to control or adjust the load order of third-party menulets / menu extras at startup? I am using the latest update to Tiger.

    There are two types of third-party menulets: those that use Apple's sanctioned "NSStatusItem" (which is not as full featured as Apple's menulets) and those that use the reversed-engineered (and unpublished) "NSMenuExtra" which is exactly what Apple's menulets use. The method for arranging these in your menubar depend on the type:
    1) Apple and "NSMenuExtra" menulets: hold down the command key (and keep it down) and you can click and drag these in the order your like.
    2) "NSStatusItem" menulets: these are added to left side of the the other menulets in the order they are launched. If these applications are in your "Login Items" then OS X launches these simultaneously, which means those that launched "quicker" will end up towards the right, and others will end up towards the left. The only real solution to controlling this order is to control the launch order by writing an AppleScript for each one that puts in an artificial delay before launch. Then, use these AppleScripts as your Login Items instead.

  • (AS3) Controlling Loaded SWF

    I am trying to control a loaded .swf with the parent .swf. I
    do not know how to call the loaded .swf. I know how to control the
    parent with the child, but not the other way around. any
    suggestions would be great. thanks!

    call on the Loader object where the movie is being held.
    You'll need to typecast like this....
    MovieClip(Loader.contentLoaderInfo.content). My recommendation is
    to store that path to a variable
    var myLoadedMovie:MovieClip = MovieClip(
    varNameOfMyLoader.contentLoaderInfo.content);
    change out the varNameOfMyLoader with the proper variable
    name and you should be able to target the movieclip as you would
    have done in AS2.

  • How to control loaded AS2 files

    Hi guys,
    I managed to develop one interface where I could load the AS2 version of files within my AIR application. So far the application is working great, now the next enhancement for the product is to control the loaded swf files from the AIR environment. Since these are AVM1Movie it is not stright forward and I have no idea how to achieve this.
    Appreciate if you guys can help me on this. Thanks!

    Does this help at all?
    http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html

  • Controlling loaded swf from main timeline

    Hello,
    I'm working on loading external swf files for ios. I am able to load the swf files and set them to visible or invisible in different frames. I am having trouble controlling the loaded swf files from the main timeline. Specifically, I would like to have a button on the main timeline, that when clicked will move a loaded swf to frame 1.
    Here is a code that loads one swf file:
    var myLoader1:Loader;
    var loaderContext1:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
    if(myLoader1 == null)
              myLoader1 = new Loader();
              addChild(myLoader1);
    myLoader1.load(new URLRequest("folder/file1.swf"),loaderContext1);
    myLoader1.visible = true;
    backbutton.addEventListener(MouseEvent.MOUSE_DOWN, backbutton1);
    function backbutton1(myEvent:MouseEvent):void {???????????? myLoader1.gotoAndStop(1);}  (this line does not work)
    (Once I load file1.swf, within the file1.swf I click a forward button to move to different frames. My question is: how do I code the 'backbutton' on the main timeline so that it causes the loaded file1.swf to go to frame 1?)
    Thank you for your help.

    sure.
    if the movieclip on the loaded swf's main timeline has reference mc, you would use:
    MovieClip(myLoader.content).mc.gotoAndStop(1);
    p.s.  you might find the following helpful,  http://kb2.adobe.com/community/publishing/918/cpsid_91887.html

  • Remote Control - Loading an Image

    Hi,
    I'm using the Web Publishing Tool to try to web enable a application I've written.  I wrote the application in LV7.
    Anyway the application needs to load a large blank .jpg image ( about
    24000x4000 pixels which is about 624KB).  When I try to load the
    image I get a "The connection with the server has been broken"
    error.  I tried loading a smaller image and this loaded
    fine.  I also tried loading this in LV8 and it just seemed to
    freeze up.  Is there a limit on what size of image can be loaded?
    Would anyone have any ideas on this as I'm new to all this remote control stuff.
    Thanks,
    Eoin

    Eoin,
    I have never read from a limit with regard to data amount. I think, you
    should try to increase the timeout of the webserver
    (Tools-Options-WebServer Configuration).
    Possibly that eliminates your problem...
    The following document lists all limitations of remote panels:
    http://digital.ni.com/public.nsf/allkb/21B9A9C913F54F918625703D004D6FD9
    Regards,
    ThSa
    http://www.newgistics.com

  • [AS2] Controlling loaded FLV sound??

    While I haven't any hints in the documentation on how to
    control a dynamically loaded FLV's sound(volume), everywhere I read
    that you create a Sound object on the parent MovieClip. This isn't
    working
    var nc = new NetConnection();
    nc.connect(null);
    var ns = new NetStream(nc);
    mc.vid.attachVideo(ns); // MovieClip on stage with Video
    instance named "vid"
    ns.play('TestVideo.flv'); // this all works, video loads and
    plays full volume
    function onMouseUp(){
    var snd = new Sound(mc);
    snd.setVolume(25);
    What am I doing wrong?

    I seriously spent 2 hours trying to figure this out and got
    no where. I posted this question literally a minute ago, and have
    just figured it out:
    mc.attachAudio(ns);
    I should have posted this question two hours ago ;-)

  • Controlling loaded swf rewind?

    Hi there, I need to bring the playhead to the begining (rewind) each time the onsound button is clicked. But a loadimage function was used to load the swf. Any ideas?

    Hi there! here is the script as is...I picked the project up from another coder and am still learning AS3 but think the loadimage function might be hindering the video control?
    import flash.events.Event;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.media.SoundMixer;
    SoundMixer.soundTransform = new SoundTransform(1, -1);
    var imageLoader:Loader;
    function loadImage(url:String):void {
        // Show Preloader
        preloader.visible = true;
        // Set properties on my Loader object
        imageLoader = new Loader();
        imageLoader.load(new URLRequest(url));
        imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
        imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
    loadImage("trailer_02.swf");
    function imageLoaded(e:Event):void {
        // Load Image
        imageLoadArea.addChild(imageLoader);
        var myTransform:SoundTransform=SoundMixer.soundTransform;
            myTransform.volume=0;
            SoundMixer.soundTransform=myTransform;
        // Hide Preloader
        preloader.visible = false;
        mc_Title.visible = false;
        mc_frame.mc_vignette.visible = false;   
        btn_OFF.visible = true;
    function imageLoading(e:ProgressEvent):void {
        // Get current download progress
        var loaded:Number = e.bytesLoaded / e.bytesTotal;
        // Send progress info to "preloader" movie clip
        preloader.SetProgress(loaded);
    ///////////// BUTTON FUNCTIONS  /////////////////////////
    btn_ON.visible = false;
    btn_OFF.visible = false;
    btn_ON.addEventListener(MouseEvent.CLICK, soundOnOff);
    btn_OFF.addEventListener(MouseEvent.CLICK, soundOnOff);
    function soundOnOff(event:MouseEvent):void
        if (event.target == btn_ON)
            btn_OFF.visible = true;
            btn_ON.visible = false;
            //SoundMixer.stopAll();
            var myTransform:SoundTransform=SoundMixer.soundTransform;
            myTransform.volume=0;
            SoundMixer.soundTransform=myTransform;
            else if (event.target == btn_OFF)
            btn_ON.visible = true;
            btn_OFF.visible = false;
            var myTransform2:SoundTransform=SoundMixer.soundTransform;
            myTransform2.volume=1;
            SoundMixer.soundTransform=myTransform2;

  • Control loaded SWF after loadClip() in F9

    Flash IDE version: 9
    Flash player version: 9
    Using ActionScript 2.0
    I am rewriting some old MX code that typically loads a
    graphics-only SWF with several frames. Then I boss the SWF around
    using loadedSWF.gotoAndStop(), but now that breaks unless I compile
    as Flash 7 / AS2. To keep it reasonably current I hope to get this
    working in a higher version. We have darn near a jillion of these
    graphics SWFs and are in no mood to open them all up. If this has
    already been extensively discussed please help me with a pointer to
    the juiciest parts!
    Regards,
    Bestobell

    Hello, thank you very much for your reply (and apologies for
    my slow acknowledgement). The problem has been very peculiar as it
    affects some environments but not others, but your reply suggests I
    should look at clumsy mistakes first. I had suspected - 1. some
    security problem - 2. flash 9 discouraging too much rummaging
    about.
    In Flash IDE - works
    On my desktop in standalone player - fails
    etc. etc.

  • How to control loading behavior?

    Hi Experts,
    I have a quuestion:
    for example, I want to load data from two R/3 DataSources to a DSO.
    DataSource A has fields likes this:
    a b c
    DataSource B have field likes this:
    a d e
    DSO have fields likes this:
    a b c d e                  a is the key filed
    if we want to load data from two datasources to DSO, if DataSource A load first, then DataSource B load second, during DataSource B loading process, if it find there is a same value for key field "a" exist in DSO, it just update field "d", "e" for field "a", it will not overwrite old one.
    so how to achieve this object? thank you for your suggest in advance.
    Kind Regards.

    Hi,
    Welcome to SDN.
    Just do the mappings from the rescpective data sources for the fileds which are present there.
    That is map a b c from the data source A only in the tranformation
    and map a d e from the data source B only in the transformation.
    The data source A will only overwrite the values for b and c and not the fields which are not mapped...
    similarly when data source B is loaded it will overwrite the value of d and e for the same key value in DSO and will not update the DSO or create a new record.
    So it will oevwrite the old one for the mapped fields only and not all the fields
    Thanks
    Ajeet

  • Controlling loaded SWF inside a child

    Hello to everyone, may this question be too obvious to
    everyone, but I've been googling for hours without any luck.
    Have seen examples but they are not exactly as my scenario...
    Please, I need some help.
    I have loaded a SWF and attached to a MovieClip which exist
    in my current movie using the following code, and now I just want
    to access the loaded SWF to send it orders like play() or
    gotoAndPlay(); I have tried also: container=
    MocieClip(loader.content); instead adding child, but it trhows an
    error

    //this is your minimum code to load a file
    var url:String = "put your url here ";
    var request:URLRequest = new URLRequest(url);
    var loader:Loader = new Loader();
    loader.load(request);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loadComplete);
    function loadComplete(event:Event):void {
    addChild(loader.content);
    //you don't need all that code just concentrate on the bit
    you need; when this work then you can start putting the rest

  • Control loaded movie with actionscript

    Is it possible to get a button in my main movie to effect a
    loaded movie. I need to make one element inside a loaded swf become
    transparent. What would the code for that look like?

    lets say you loaded your SWF into holder_mc and the the
    element is inside another movie clip in the SWF named your_mc and
    the actual element is name element_mc
    yourbtn.onRelease = function(){
    holder_mc.your_mc.element_mc._alpha = 0;
    }

  • Controlling loaded movie clip

    Hi all,
    I have a movie that loads other movies into it, one of which
    is effectively a page footer. As some of my movies are different
    heights (all pages conform to one of 2 heights), I want the footer
    to animate it's y position to sit at the bottom of the content.
    I am currently loading the footer into _level0, the content
    into _level1 and the navigation into _level100.
    One of the pages (loaded into _level1) requiring the footer
    to change positon has the following AS on the first frame:
    _global.isTall = true; // (For pages where the footer should
    be at the normal height, this is false)
    trace("This "+_global.isTall);
    if(_global.isTall = true and _global.wasTall == false){
    _level0.gotoAndPlay("TallPage"); // (The animation for the
    footer to its new position)
    _level101.gotoAndPlay("out");
    The button (at _level100) relating to this page has the
    following AS attached:
    on(release){
    _global.wasTall = _global.isTall;
    trace("Last "+_global.wasTall);
    loadMovie("cars.swf", 1);
    This works as expected once, but if I press the button twice,
    while already on the page, the trace tells me that _global.wasTall
    is false, when previously on the same page it traced true.
    Am going about this in a completely backwards way?
    TIA,
    Paul

    Hi kglad,
    Code pasted below. I amusing Flash 8, but haven't done any
    Flash scripting for a while.
    Thanks,
    Paul
    Default.fla - frame 1:
    loadMovie("navigation.swf", 100);
    loadMovie("sub navigation.swf", 101);
    loadMovie("index.swf", 1);
    stop();
    Default.fla - frame 2 (label "TallPage") to frame 15
    animation of footer moving down with stop action on frame 15
    Default.fla - frame 16 (label "ShortPage") to frame 30
    animation of footer moving back up with stop action on frame
    30
    Index.fla (Not a tall page) - frame 1:
    _global.isTall = false;
    trace("This "+_global.isTall);
    if(_global.wasTall == true and _global.isTall == false){
    _level0.gotoAndPlay("ShortPage");
    _level101.gotoAndPlay("in");
    Navigation.fla - attached to cars button (cars is a larger
    page)
    on(rollOver) {
    cursorIsOver = true;
    play();
    on(rollOut) {
    cursorIsOver = false;
    play();
    on(release){
    _global.wasTall = _global.isTall;
    trace("Last "+_global.wasTall);
    loadMovie("cars.swf", 1);
    Cars.fla (a tall page) - frame 1:
    _global.isTall = true;
    trace("This "+_global.isTall);
    if(_global.isTall = true and _global.wasTall == false){
    _level0.gotoAndPlay("TallPage");
    _level101.gotoAndPlay("out");
    }

  • Is there a way to force a control to load?

    Is there a way to have an "off view" control load while it's not in view?
    Pivot control with some PivotItems. On the second pivot item, there is a control that I need to be able to set a property of but my code simply will not run because the control hasn't been loaded (since the control is on the second pivot item and the second
    pivot item hasn't been selected by the user yet)
    I was hoping there was some type of Load() function or something that I could use to force a control on the second pivot item to load before my code runs. If there isn't I'll have to find some other way to do what I wanted but I was just going to see
    if you guys had any suggestions first.

    A Control loads itself as it gets drawn on the screen, for example when you add this Control as a child of another control.
    For example, this Code immediately loads the StackPanel:
    // Load UI-Control at runtime
    StackPanel p = new StackPanel();
    p.Loaded += __myLoadHandler;
    this.myGrid.Childrens.Add(p);
    // Handle "Loaded-Event" of the Stackpanel
    __myLoadHandler(object sender, EventArgs e /* Is this the right type? */) {
    // Will be called after 'Childrens.Add()'
    // This even works when the control is out of the field or its visibily is hidden.
    © 2015 Thomas Roskop
    Germany // Deutschland

Maybe you are looking for