how do you build the master flash file?

  • AlphaOne
  • Newbie
  • Newbie
  • User avatar
  • Posts: 8

Post 3+ Months Ago

well if the subject if vauge and confusing (and it is) let me clarify...

I'm creating my first all flash site. Im having trouble w/ the navigation. everything in the 'master flash file' is dynamically loaded (ie. loadMovie).

so my menu is loaded, my submenus are loaded, and the body is loaded.

since the main-menu is loaded, and the user click a link, how do i tell the 'master flash file' that it needs to load the sub-menu movie into the 'master flash file'?

I hope im being clear. thanks for any assistance, this is driving me nuts.

later,
AlphaOne
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • AlphaOne
  • Newbie
  • Newbie
  • User avatar
  • Posts: 8

Post 3+ Months Ago

http://www.littlekidscloset.com/profile/TestNav.zip Link to Zipped TestNav [/url]

here is what i have so far. basically the submenus sholdnt show until 'link 1' is pressed. and the body shouldnt show until the link in the submenu is pressed.

so im pretty confused. i just loaded them just for the hay of it.

thanks for any assistance,
AlphaOne[/url]
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

It's all about targetting/addressing the proper clips. For example... if you want the submenu to load something in the main movies timeline you have to go back one timeline... you do this using _parent... so the code for that would be something like
Code: [ Select ]
on (release) {
    loadMovie("TestNav-Link1Body.swf", _parent.mcBodyShell);
}
  1. on (release) {
  2.     loadMovie("TestNav-Link1Body.swf", _parent.mcBodyShell);
  3. }


Personally, I write my loadMovie code as the following.. I find it easier to read and manage...
Code: [ Select ]
on (release) {
    _parent.mcBodyShell.loadMovie("TestNav-Link1Body.swf");
}
  1. on (release) {
  2.     _parent.mcBodyShell.loadMovie("TestNav-Link1Body.swf");
  3. }

Both methods work though.


You need to keep in mind that when using loadMovie() to load an external item to an empty movie clip what this does is takes the content of the external item and puts it INSIDE the clip. So you will always target that clip when you need to access content inside the loaded item. Same goes for vice-versa. If you want to have something inside this clip effect something outside of this clip, you need to target the correct timeline that contains the item you want it to effect.

Targeting is an extremely important part of ActionScript.... I highly recommend you check out more information on _root, _parent, and "this"... these will save you a lot of stress in the future.


Side Tip: I recommend relative addressing over static addressing. Start from the current timeline and move back (or forward) as necessary. My motto is that _root is the root of all evil. If you use _root in a movie that you end up loading into another movie, your code won't work... since _root is the first timeline in the hierarchy, and when this movie is loaded into another movie, the hierarchy changes and you end up targeting the wrong timeline.
  • AlphaOne
  • Newbie
  • Newbie
  • User avatar
  • Posts: 8

Post 3+ Months Ago

hey, thanks for your enlightenment. i cant wait to get out of this beginner learning stage. it takes like 10x longer to do stuff. but ill feel that much better when im pro.

thanks for you help,
AlphaOne
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

You'll get there eventually. With practice, patience, and determination :)
  • Troubadour
  • Graduate
  • Graduate
  • User avatar
  • Posts: 137
  • Loc: Melbourne, Australia

Post 3+ Months Ago

lostinbeta wrote:
You'll get there eventually. With practice, patience, and determination :)


i hope you all notcied, sleep wasn't an option there!!! ;)
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

I'm not joking when i say it took me a year to learn flash and be
able to use it effectively. And I still consider myself very much a
novice, even after 3yrs. :)
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

I've been using Flash for almost 2 years (will be 2 years in July) and I can't animate to save my life.

But that's why I am an actionscripter ;)


Speaking of that... there are all different types of Flash users.

1) Those who are excellent animators, but can't code to save their life.

2) Those who are excellent coders, but can't animate to save their life.

3) Those few who are lucky enough to be excellent at both. Lucky bastards.

This is the typical "order" of the Flash world. So don't feel bad if you aren't as good in one area as you are in the other... it's normal.
  • Tidus
  • Newbie
  • Newbie
  • Tidus
  • Posts: 5

Post 3+ Months Ago

well, i forgot when i first posted this, but the project i was working on is now about 80% done. lots of tweens and lotts of actionscript. I really cant belive how far ive come with this project alone. anyways, if you guys want to see it [ http://www.littlekidscloset.com/stellar/ ] the feel free to check out my profile site. It still needs work, but right now im focusing on the site located at the parent of that url.

theres music from final fantasy x-2 and you may also notice the star twinkle when you mouse over the moon.

thnks guys,
-john
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Tidus, is it safe to assume you are AlphaOne ?
  • Tidus
  • Newbie
  • Newbie
  • Tidus
  • Posts: 5

Post 3+ Months Ago

yeah I must have registered twice :/

Tidus = Alphaone :)

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.