A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Loader component

  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    135

    Loader component

    Ok I know i am doing something very stupid here, but I can't remember what to do so here it is.

    I'm trying to change an instance of my Loader component, mainLoader to change the path on the release of a button.

    on (release) {
    mx.controls.mainLoader.load(banner.swf);
    }

    I'm running it on my computer so its not that the banner.swf is taking a long time to load.

    Thanks

  2. #2
    Who, What, Why ... ? Fraggs's Avatar
    Join Date
    Jul 2003
    Location
    Flashland .. where else ?
    Posts
    786
    Is it just not loading?

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    135
    Well right now it won't do anything. If I manually set the properties to it and autoload it from the properties menu it shows. But when I try to dynamically change the path and load it using that code it doesn't do anything. So somewhere along the way my code is off.

  4. #4
    Who, What, Why ... ? Fraggs's Avatar
    Join Date
    Jul 2003
    Location
    Flashland .. where else ?
    Posts
    786
    code:
    on (release) {
    mx.controls.mainLoader.loadMovie(banner.swf);
    }


  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    135
    I am using the loader component, not a movie clip to load the file. I am doing this for many complicated reasons. Basically movie clips don't give me what I want.

    Scalability that can be toggled on and off without writing a long class file for it.
    Last edited by ChiefDesigns; 04-15-2004 at 04:28 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center