A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Oldnewbie...help!!!

  1. #1

    Oldnewbie...help!!!

    Yo,

    I'm back yet again for another teaching in the ways of flash use.

    Question. Is it possible to load an external swf into a movie clip INSIDE of another movie clip? The name of the first movie clip is "body copy bg" . The name of the mc INSIDE that mc is "aboutcontent" . So...Here's the code I attempted (failing miserably).

    on (release) {
    loadMovie("flash/about_technology.swf", "_body copy bg.aboutcontent");
    }


    Please help! Thanks...
    Burninating inferior web design techniques and design since 96.

  2. #2
    Denim Demon
    Join Date
    Jun 2002
    Location
    Outside of society
    Posts
    514
    I'm no old newbie but I'll give it a shot...

    Sure, you can load one movie into another movie that's inside another.

    Let's say the outer movie is called holder_mc. Inside that is empty_mc and the swf you're loading is called about.swf.
    You could do it like this:

    holder_mc.empty_mc.loadMovie("about.swf");

    That's it.

    You might also want to look at the new movieClipLoader class... but that's another matter.
    Davy Paycheck- Kicking more ass than your daddy on a 3 bottle night.

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Assuming your container movie clips have those instances names and not just Library names, then it should work... By the way, bad idea to have spaces in any file name... Use an underscore...

    _level0._body_copy_bg.aboutcontent.loadMovie("flas h/about_technology.swf");

  4. #4
    Thanks for replying...Let me put this in context so you can get an exact idea of what I'm trying to do.

    I have a navigation mc under the title "mininavbar".

    Inside that nav bar there are animations and then buttons that I want to link to new mc's inside a different mc.

    So...other than the mininavbar, the mc on the main page is called...

    "bodycopybg"

    Inside that mc is the container that I want to load the external swf into...it's titled:

    "aboutcontent"

    The external swf I'm loading is called about_technology.swf and is located in a flash folder. Thus..."flash/about_technology.swf".

    So...per your instructions...this is the code I loaded into the button in the mininavbar mc.

    on (release) {
    bodycopybg.aboutcontent.loadMovie("flash/about_technology.swf");
    }

    Which unfortunately...didn't work. Any other ideas?
    Burninating inferior web design techniques and design since 96.

  5. #5
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You missed the _level0 part!

  6. #6
    Arg,

    I tried both these lines of code...no good.

    I took the spaces out of the "body copy bg" mc. So now it reads bodycopybg. These are the two subsequent lines of codes I followed with as attempts.

    on (release) {
    _level0.bodycopybg.about_mc.loadMovie("flash/about_technology.swf");
    }

    on (release) {
    _level0._bodycopybg.about_mc.loadMovie("flash/about_technology.swf");
    }

    Neither worked. Any ideas?
    Burninating inferior web design techniques and design since 96.

  7. #7
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Are all these files including the initial html, in the same directory/folder?

    Have you tried the full path including the http://... ?

    Failing that you'll have to attach your .fla, zipped up and in a MX only format.

  8. #8
    Oldnewbie,

    The file's a smidge too large to post on flashkit. If you can give me your email I'll send you the zip directly...
    Burninating inferior web design techniques and design since 96.

  9. #9
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    I'll PM you an address, but make sure it's zipped up and in a MX only format, not MX2004.

    You'd have a better chance of getting an answer if your .fla was in a MX only format, and zipped up.

    You would have to save a copy of your MX2004 .fla, (using Save as...) and changing the Document type to MX only in the Save as... window.

  10. #10
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Your bodycopybg mc only has a Library name and not that instance name on stage. Select it and type in "bodycopybg" in the instance name box of the properties. It then works fine.

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