A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: if not _root then what?

  1. #1
    Member
    Join Date
    May 2003
    Location
    Misawa AB, Japan
    Posts
    97

    if not _root then what?

    I've got a "menu swf" that loads into the "main swf" via sliderContainerMC and the "menu swf" has buttons on it that call up "info swf" vua lcdContainerMC at another x,y location.

    All worked well, UNTIL, I tried to attatch some caption flags that are supposed to tell you what is what over the buttons in the menu. If I use the menu stant alone, it works perfect. But when that menu swf is loaded into the main swf all hell breaks loose.

    If _root is pointing to the main swf once the menu swf is loaded, what else can I call it so it know's that it's only supposed to work within the menu swf?

    You can look at my site if you like, right now it's just a desaster! .. lol .. the menu hooks to your mouse once it's loaded instead of the caption flag when you are over buttons .. lol ..

    Help?
    Justin
    Justin P Steiger
    http://www.JustinSteiger.com
    http://www.OpenLUG.com
    http://www.jedisteiger.com
    Oh someone help me, I'm so in over my head it's scary!

  2. #2
    kairos-digitalstudio.net hairos's Avatar
    Join Date
    Dec 2000
    Location
    _root.home
    Posts
    611
    well I don't really understand what your problem is, but you can try _level0, instead of _root

  3. #3
    Member
    Join Date
    May 2003
    Location
    Misawa AB, Japan
    Posts
    97
    Basicly what it is, a swf becomes part of the swf it's loaded into when it's loaded into an empty MC.

    In my case, the swf that's loaded into the empty MC has some actionscritping that may be pointing to the wrong part of the swf once it's loaded into the MC. It's fully functional until it's loaded into the MC, I assume that's pointing to the actionscripting.

    I'll try the _level0 once I get home. I'm at work now, so it's going to just have to eat me up for another 8 hours .. lol .. levels still stump me, but it makes sence right now.

    Thanks,
    Justin
    Justin P Steiger
    http://www.JustinSteiger.com
    http://www.OpenLUG.com
    http://www.jedisteiger.com
    Oh someone help me, I'm so in over my head it's scary!

  4. #4
    kairos-digitalstudio.net hairos's Avatar
    Join Date
    Dec 2000
    Location
    _root.home
    Posts
    611
    yup, if you load the swf into the main, then at the loaded swf, you must use _level0.

  5. #5
    Member
    Join Date
    May 2003
    Location
    Misawa AB, Japan
    Posts
    97
    Good deal I'll work it tomorrow, thanks for the help, I hope it's as simple as some text .. (I think that's all it was) ..

    Cheers and thanks again,
    Justin
    Justin P Steiger
    http://www.JustinSteiger.com
    http://www.OpenLUG.com
    http://www.jedisteiger.com
    Oh someone help me, I'm so in over my head it's scary!

  6. #6
    Member
    Join Date
    May 2003
    Location
    Misawa AB, Japan
    Posts
    97
    Wups, same prob ..

    Here is the fla for the Menu .. there is no associated AS in the main fla.

    http://www.justinsteiger.com/flash/sliderOpenBeta.fla

    _root and _level0 seem to point it all in the same direction.

    Whapow, time for bed,
    Justin
    Justin P Steiger
    http://www.JustinSteiger.com
    http://www.OpenLUG.com
    http://www.jedisteiger.com
    Oh someone help me, I'm so in over my head it's scary!

  7. #7
    kairos-digitalstudio.net hairos's Avatar
    Join Date
    Dec 2000
    Location
    _root.home
    Posts
    611
    I saw your file, and it seem that you forget to put the lcdContainerMC,
    and try to change the script :

    Code:
    on (release) {
    	_root.lcdContainerMC.loadMovie("http://www.justinsteiger.com/flash/streams/mp3/fruit.swf");
    	gotoAndPlay("close");
    }

  8. #8
    Member
    Join Date
    May 2003
    Location
    Misawa AB, Japan
    Posts
    97
    That is another MC that loads a totaly seprate swf for streaming my mp3's. That part works good, that lcdContainterMC is the MC in the main swf that get's the swf's that have the streaming info on them. the only trubs I have been having is the caption bubble that's not working. The text in the bubble has been working, but the bubble it's self is invisable.

    Thanks for responding though, I was starting to wonder if this was unsolvable. I got some help form the site I got the tutorial from, but I'm at work now, so It'll be morning befor I can ops check it and see how it works.

    Cheers,
    Justin
    Justin P Steiger
    http://www.JustinSteiger.com
    http://www.OpenLUG.com
    http://www.jedisteiger.com
    Oh someone help me, I'm so in over my head it's scary!

  9. #9
    kairos-digitalstudio.net hairos's Avatar
    Join Date
    Dec 2000
    Location
    _root.home
    Posts
    611
    that works for me, u can see the attach file, I added the lcdContainerMC, and change the script at the 1st and 2nd button
    Attached Files Attached Files

  10. #10
    Member
    Join Date
    May 2003
    Location
    Misawa AB, Japan
    Posts
    97
    Thanks, I'll take a peek at it when I get home in the morning (I'm at work at the moment, and can't stick flash on this machine - damn the luck)....

    Cheers, and good'day mate,
    Justin

    Justin P Steiger
    http://www.JustinSteiger.com
    http://www.OpenLUG.com
    http://www.jedisteiger.com
    Oh someone help me, I'm so in over my head it's scary!

  11. #11
    Member
    Join Date
    May 2003
    Location
    Misawa AB, Japan
    Posts
    97
    Sorry I must not have explained it correctly. The fla I submited, was to be loaded in my MAIN swf as a menu. And in the menu there were the buttons, the buttons loaded lcd swfs into an entirely different location than the MENU swf.

    My site is working now though, the tutorial maker helped me out unexpectedly. I still have to peek at the code more but it's working as advertised @ http://www.justinsteiger.com . the one you worked for me loaded the lcdContainerMC into the menu, the menu is already loaded into it's own empty MC in the MAIN swf. You'll see how it all works now, it's working as I wanted.

    Off to work the rest of the site .. lol .. Thanks for your efferts though hairos it's very appriciated.

    Justin
    Justin P Steiger
    http://www.JustinSteiger.com
    http://www.OpenLUG.com
    http://www.jedisteiger.com
    Oh someone help me, I'm so in over my head it's scary!

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