Layers/movies On Levels Shifted
Hello, I posted this question on the "General" board as well, but haven't gotten any answers yet. Trying my luck here...
I'm working in Flash Professional 8, and I'm editing files that someone else has created in a previous version (not sure MX 2004 or 6). The movie consists of a shell (menu) and a bunch of other movies that are placed in /swf directory, they load when the user clicks next.
The movies load fine, however these smaller "content" movies play on top of the shell so parts of the content stick out and cover shell elements. Originally the content played at the bottom, "underneath" the shell.
I haven't changed literally anything except a paragraph of text. I tried exporting the movies even as they were supplied, without any changes and without re-saving them as newer version, still gives me the same result.
All the content movies are loaded into a level (5). Is it possible that v. 8 treats depths/levels differently? Or is there some other reason why this would be happening?
Thanks for taking the time to read this, and I hope the solution is obvious.
TIA
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-18-2007, 11:58 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Layers V. Levels
Can someone please tell me when I should use levels instead of layers. I still don't get the difference.
Usually if I want something to appear above something else, I usually put it on a layer above. If I load an external swf or jpg, I load it into an empty movie clip located on a higher layer.
So when would I use levels?
Levels Vs Layers
Quick n easy questions. Are layers the same as levels?
ie, in my _root movie (level0?) I can have say 20 layers. Depending on the stacking order in the timeline, are they automatically considered levels 0-19?
Or are levels some transparent on the fly layer that can be used to reference dynamic objects place in and out of them?
Levels/layers
is there ANY WAY, i can send a LEVEL behind a LAYER, because i want to load a background from a file, but everything else stays BEHIND the background, and i don't want to put EVERYTHING in a level.
Please help me.
Levels And Layers
Are levels and layers the same thing? Also, in the Flash timeline on the left side of the screen, those considered the layers/levels; the lower one being the bottom layer/level?
Sorry, but I am still teaching myself flash and dont have a good understanding yet.
Layers And Levels
What is the difference between layers and levels? On the left side of the timeline in flash what are those...layers or levels or both?
Levels And Layers...
i've got a bit of a predicament... i have a movie that is dynamically put on the screen with attachMovie but i need the movie to be under a layer with masking on it.
what's a good solution for this? is there a way to manually give levels to something already on the stage so it will be above or below the dynamic MC? or i also thought about saving the shape of the mask in another movie clip, and using action script to attach that one as well, and then masking it. or maybe there's another way i haven't thought of. please let me know.
thanks,
josh
Layers/Levels/Something
I am making a simple shooter game and I have a custom cursor. All the objects, as well as the cursor, are created through action script. My only problem is that the enemies appear above my custom cursor. I'm not even sure what this is called but can somebody help me out here.
Thanks,
Joe
Levels And Layers
I have a movie on level 3 that is being loaded on the main movie in level 0. The problem is that I want the movie in level 0 to stay above but flash always put the level 3 movie on the top layer and the movie on level 0 stays below.
Is it possible to control that thing!
Levels Vs Layers
What's the difference between Levels and Layers? Is it that layers can only be added/removed using the GUI and Levels can only be added/removed using ActionScript?
Thanks, I'm just a bit confused as to what Levels really are.
Alpha Levels And Layers
2 parter this time...
1. I want the background in layer 5 to darken slightly when other layers are brought up. Right now this is achieved by a black background and an alpha level shift. Is there another way such as ._brightness or something silly like that?
2. Since I am using alpha levels to darken I have noticed something. I have a "loading shared assets" swf that comes up when a shared library is loading into level 5 and then is booted out when my splash page is loaded into the same level. But when the alpha level of Level 5 is lowered to 50% I can see the text... "loading assets" again? Is that swf still there when the spash page is loaded and just "underneath" it on on the same level? I always thought it was completely replaced... but of course I know very little and you all know very much... Thanks for the inputs.
J
Flash 8 Layers/levels
I have a problem with a site I'm building for my company.
The site is basically a 3 page site, 'About the company', 'Contact' and 'Portfolio', with a submenu on the 'portfolio' section that contains about 10 examples of our work.
Onto the main timeline I've created an empty movie clip "container_main_mc" and from the navigation load another movieclip into it using the following script (this is the script which loads the 'portfolio' section. I've loaded the movie clips like this so the old clip remains as the new clip loads over the top. As I wasn't sure how else this could be done.
----------------------------
on (release) {
_root.container_main_mc.attachMovie("master_fade_t o_portfolio","master_fade_to_portfolio2", _root.container_main_mc.getNextHighestDepth());
}
----------------------------
This works really well between the 3 main level navigation areas and is not causing any problems.
The problem I get is when I come to add a sub navigation area for the portfolio and try to load external SWF files using this script:
----------------------------
this.createEmptyMovieClip("portfolio_holder_mc", this.getNextHighestDepth());
loadMovie("portfolio_GM.swf", portfolio_holder_mc);
stop();
----------------------------
The first time the movie loads the portfolio section works - if however you leave the 'portfolio' section for example and go to the 'contact' section, then go back to the portfolio it fails to load in the topmost level and remains on the layer beneath.
Even if I manually create a empty movie clip on the 'portfolio' timeline
----------------------------
loadMovie("portfolio_GM.swf", portfolio_holder_mc);
stop();
----------------------------
and load the swfs into that the same problem remains.
Anyone know a technique for making sure the porfolio details stay at the 'top level' and are visible?
Hope this makes sense, and thanks in advance.
John
Levels/layers Question ;)
Howdy.. I am doing an attachMovie but I'd like for the new attached movie to appear BEHIND the top-most layer I have on the timeline, but I've never quite understood how to find out what level depth numbers the layers on the timeline have.. I'm using this:
Code:
_root.attachMovie("flaganim", "ox1", 1, {_x:84, _y:422});
but it's appearing on top of everything... I've tried tweaking the level number I have in there (tried 10, -11, etc).. How do I figure out the correct number to use in regard to where I want it between layers on the timeline?
Thanks!
LObs
Understanding Layers And Levels
Hi guys, need some help
http://www.tascomms-hosting.co.uk/directions
Here is a link to a website im working on. Its in its very early stages (as such there are no pre-loaders or anything...yet).
Anyway, you will see the "main swf" which is the clouds, the company logo and the navigation.
When you click on the navigation links (they dont all work yet), it links to an external swf file that plays it in the centre of the main swf.
This is the action script code on each of the navigation buttons to bring up the external swf files....
Code:
on(press) {
this.createEmptyMovieClip("mc",1);
mc._x = 180;
mc._y = 40;
loadMovie("aboutUs.swf",mc);
}
(this is the action script code for the ABOUT button).
If you click on the INTERACTIVE FLOOR PLANS button you will see the same external swf but its not centered, its set to appear in the top left hand corder of the main movie.
Now here is my problem....
On the main movie, the clouds and the company logo are on seperate layers.
What I want is for the extranal movie (ie the text on the ABOUT US part) to appear UNDERNEATH the company logo (but obviously still on top of all the clouds).... how do I do that?
Currently all the extranal swf files appear on top of everything else.
cheers
Layers? Levels? Someone Please Xplain
I'm new to flash..well...kinda, but i picked up a lot of things fast...i can make a site in flash, but i was told there are "levels" which i should use to make it easier for myself when loading and unloading content in the movie.
I need the upper and lower oprtion to stay "static" [although it will be animated with buttons etc] but i wish the main content to be loaded into the middle.
Some genius please explain in lamens terms...i'm kinda to this!
[edit]Oops...i understand layers completely by the way
MC Interaction On Different Levels Of Timeline Layers
well this IS an actionscript problem at least ... to give you some info, the MC "person" is on the main timeline and "this" is inside a MC called "powerup".. now I want "this" to move to where " person" is all the time.
--------------------------------
onClipEvent (keyDown) {
with (_root) {
posx = getProperty (_root.person, _x );
posy = getProperty (_root.person, _y );
setProperty (this, _x, posx);
setProperty (this, _y, posy);
}
}
---------------------------------
Logic, Levels/layers & Veriable Help..
ok..I am building this application in FLASH (just for fun)
here is abreak down down:
You have a MAIN NAV on the left..where you choose your "part"
each link calls/loads an external.swf for the SUB-NAVIGATION (part options)...
and ALSO calls/loads an external.swf for the MAIN section (large pics for the parts)
the SUB-NAV can scroll through the MAIN Sections frames..picking different parts.
SO you can load MANY differnt parts ito the MAIN section (all at the same time/stage) and drag them around to build something..
(the sub-Nav is only used to change parts in the MAIN clip in the MAIN section)
I have it set up so that any clip I click on becomes the "focusClip" and can be controlled by the "controls" in the upper corner... same controls..just click on a clip to update the variable...
This worked fine during my tests..as I wasnt LOADING in the main content..it was just on the stage during authoring.
COming to make a final release..and making things external content to avoid crazy load times.. I took all the MAIN part section and have them each as external.swf's.
I thought you could load into LEVELS INSIDE of movie clips... guess not.. ONLY Levels. OR targets..not levels IN targets..
SO I am stuck either loading into LEVELS (which I didnt want)..or using SEVERAL "container clips"..which I didnt want..but seems to be the only options.
So on my "controls" (that scale or slide the focusClip)
I have this code:
Code:
on (press) {
_root.mainContainer.focusClip._xscale = _root.mainContainer.focusClip._yscale += -2;
}
and on EACH movie clip loaded.. I had code of:
Code:
_root.mainContainer.focusClip = _root.mainContainer.frame_mc;
which worked fine.. EXCEPT I cant load another external.swf into the "mainContainer" clip..without replacing the exsisting content.
SO how can I make a variable NOT only for the focusClip to be passed to the controls... but also the "containerClip" that is it housed in? (I guess same question for levels as well)
scenerio A:
I load each external.swf into its OWN containerClip (like 16+ of them)
Right now..when I highlight (click) on a loaded clip...it will change the variable of focusClip to be the name of the CLIP that the controls should work on. this works FINE & GREAT...however...when I load another external.swf into the main section (say on level 2 or in another containerClip).. I need a way to pass that variable to the "controls" as well..
any ideas? Im blind..and half thinking... been working on this for a long time...(maybe I ned to take a step back..and get some focus) LOL
thanks
MC's Shifted Off The Stage...
I have six instances of a Movie Clip on stage. Everything works fine, protoypes, on clip events, etc. But when the movie is exported it renders shifted off the stage, displaced to the bottom right. Here's the file. Any help will be greatly appreciated.
Miguel
How Do I Change The Layers Or Levels Of Movieclips In An Array
I have a slideshow im makeing and I found out how to pause the movie clips every couple of seconds. I have 5 movieclips showing out of 70, what happens is, they grow from the right towards the center, then decrease towards the left. I want to change lets say when picture 1 gets to the center picture two show up infront of it. Please respond this time. with even something as, this is impossible or i do not know please!!!
PrintNum Bmovie + F5plugin = Shifted....
hi all....
wow - this one's really weird...
i'm offering a button to print some dynamically calculated contents...
so i stuff all contents (i.e. several text fields and movieclips) into the first frame of a movieclip "myMC", label it "#b" and use the following action to print:
printNum(myMC,"bmovie");
all of this is exported as flash5.
it works as intended if you're using a browser with a f6-plugin, but surprisingly it does not with a f5-plugin: nearly all text fields (except the ones that are static AND use embedded fonts) get shifted abt 400 pixels to the left and therefore out of printing range...
has anybody encountered similar problems? anybody has any ideas for solution?
i thought about
if(plugin<6) textfieldMC._x+=400
as a workaround... but that's a quick n dirty way to do it, and who knows what f7-plugin will do...?!
thanks a lot for advice and help,
coda
Layers (<div>) On Top Of Flash Movies
is it impossible to make a layer display on top of a flash movie? (using <div> tags) even if i put the movie on one layer and, say, some text on another with a higher z-index it will not display on top. please help, thanks so much.
Dan
Movies On Separate Layers
are there issues with putting multiple movies on the same layer in MX? i have done that and it seems to be fine but i recall some old issue about that.
Layers Talking To Movies
I've got a main movie.
I'm loading a movie into a layer within my main movie.
Is there a way to make my "layer" movie talk to the main movie?
Thanks!
Help With Loading Movies And Layers
I have this:
Code:
myTime = new Date();
foo = myTime.getHours();
this.createEmptyMovieClip("container", 0);
container._x = 0;
container._y = 0;
if (foo == "0") {
container.loadMovie("midnight.jpg");
}
So that a jpg in the same directory is loaded every hour. I also have a countdown timer (separate movie clip) that I want to display over the jpg (so that it's always visible). When I load the movie the countdown timer flashes (it loads faster as it's part of the flash file) and then is covered up by the jpg.
How do I insert a layer so that the countdown timer is on top of the background?
Movies And Levels
Hi...I need help with something. I have two movies they both load simultaneously on different levels (level 1 and two). In each movie are movie instances that I want to interact with eachother. I can get the movie instance on level 1 to affect the one on level 2 by simply putting telltarget (_level2.nameofinstance) but how come i cant do it to level 01? I'm sure it's probably simple as heck but can someone please help. Thanx
Vince
Layers, Movies, And Button Priority
Hello,
Just to relate to something, in HTML a div will have a higher priority if it is absolutely positioned and has a higher Z-value than another div positioned underneath it.
In Flash I was wondering if on movie instance with a button inside can be placed in front of another movie instance with a button inside without the movie's button that is behind the top one having priority on the top one.
Basically I've noticed that no matter what I do all buttons have the same layer priority whereas movies might have a different priority if they are stacked on top of eachother.
In my Flash file I have some actionscript placed on a movie instance to record the mouse over but that is a different issue that I will just need to fix myself, but I have buttons within that movie that still work if another set of buttons are positioned on top of the first movie with buttons.
Thanks for your advice
Loading Movies Into Masked Layers
Hi there
I seem to have run into a rather nasty problem. I will see if i can explain it properly.
I am trying to load movie clips into a holder movie clips in my website, which is working fine.
the problem is that the holder movie clip is plced in a masked layer which is alo fine at the start. The problem occurs when I tween my mask layer to a smaller area, when the playhead reaches the second keyframe in the mask layer it unloads the swf I have loaded in the holder mc.
Does that make sense. Any ideas?
Matt
Linking Over Multiple Layers/movies
Ok so I have a main movie located on the default layer of 0. From this, I have an external movie loaded onto layer 1. Is there any way to have a button in the movie on layer 1, that when clicked, points to a frame label in the movie on layer 0? Any help would be greatly appreciated.
- wc
Expanding Movies(Layers MSN Style)
Hi all
Lately I seen alot new Flash movies that once mouse over the clip expands and loaded an embed .flv or another clip, especially on the msn today page.
What I could not figure out is how do they do it with out effecting the content underneath it. Say I got an articticle in normal HTML or CSS right next to it is a .swf file in a portrait, once moused over the .swf clip expanded over the html and css contents and load an embed .flv file(s), mouse out it retracted back to its normal state.
I hope you understand what I'm trying to explain.If you got MSN live you know what I mean.
thanx guys!
Dynamically Attach Movies To Layers?
I know hot to dynamically attach movie clip to root using _root.attachMovie but I realised that doing this makes the movie clip on top of anything already in the frame (unless it is assigned a higher depth). I was wondering if it were possible to attach Movie clips on layers instead of just on _root. If it is possible please give an example, thanks!
Load External Movies But Behind Of Layers
Hi,
i need to load some external movie but whenever i do it it comes above my main interfase and this become useless. How can i make the movie go underneat without affecting the main elements?
Targeting Levels/movies
I'm sure this sort of question has been asked before, I've searched around and couldn't find any recent post's.
From my main swf movie I load a movie into level1
this movie on level1 loads another movie into level4.
What I would like to do is target an instance of an MC in level1 from a frame in level4.
this instance I want to target is nestled inside other mc's on level1.
also the source of the target on level4 is part of a ifframeloaded action,
eg. if frame is loaded on level4 tell the instance on level1 to goto and stop frame one. then goto scene2 on level4 and play
hope I explained this clearly enough.
appreciate any feedback/help
thanks
Help Wth TellTarget Between Levels And Movies
I am building a small website as a trial to help refine my skills with Flash. A trial version of it can be viewed here:
http://www.angelfire.com/d20/zebra_d...ed_astaire.htm
If you are viewing it, please be patient as it takes a while to load. It is for this reason (loading time) that I wish to take the picture component out of the main movie and put it into a seperate swf movie... then after the small sized home page part has loaded, and people are able to play with the menu's, have the larger sized components be loading in the background on level 1.
However... for visual purposes I need the newly loaded swf file now sitting on level 1 of my movie to sit at a blank frame and await the use of a menu button to start it playing. I am having trouble useing TellTarget to command the movie loaded on level 1 as I can't find it in the targeting directory and am concerned that maybe you are unable to tell other movies to behave on the command of buttons on other levels.
If someone is able to offer some possible suggestions on how I might be able to more accurately control these functions I would love either an email or a reply here. I am familiar with how to load and unload movies and my sound component (background loop) is a seperately loading movie located on level 1 to reduce the loading time of the original scene.
I look forward to your input.
Kind regards,
Mike Baxter
Controling Movies On Different Levels
I have a navigation-bar loaded on level1, different textes on level2 and animations on level3. how can I tell the animations on level2 to go to a cerain frame (by pressing a button on level1?
Thanks for your help
Levels And Loading Movies
anyone please.....
I have a movie on level0, and a button there loads a movie on level1 (using loadmovie), after teh user is done seeing level1 there is a button there that will return them to level0 BUT I want it to go to level0 TO A SPECIFIC FRAME. How do I do this?
thx bunches...
DR
One Preloader For Several Movies On Different Levels
hi.
i am trying to load 2 different swfs on 2 different levels. but i don't want one to show before the other one.. so i want it to wait till both movies are loaded before showing them.. meanwhile, i want a "loading" graphic to show while the user is waiting.
i tried checking for _level10._framesloaded but it doesn't work.. when i do this:
loadMovieNum("test.swf", 10);
trace(_level10._framesloaded);
it says "undefined". what should i use instead? if i use _framesloaded in the actual flash file that is being loaded it works fine.. but why can't i check for level10's frameloaded from the level0 movie?
any help is appreciated, thanks,
~jimmy.
Loading Movies Into Levels
If you load a new movie into your current one in the first level and then in the movie you've just loaded, load another movie into level 2 of the movie (im getting there)will the movie being loaded in be loaded into level 2 of your original movie or level 2 of the second movie you loaded in?
Sorry bout the long winded explanation if you could help that would be great
cheers josh
Levels And Loaded Movies
Ok...
I have a movie that contains the Scroll Pane Component. I load a movie (that contains numerous duplicate movies) into it and it works fine, however, when I load THAT movie into another through LoadMovie, It looses the levels and anything that is Scroll Pane Content rides on top of it.
It still scrolls it, but it doesn't mask it.
Any Ideas?
Loading Movies Into Levels
hi!
i want to load on every click a new movie. i load the movies one after another in level0. Are the former movies on level0 replaced and unloaded or what happens, when i load a movie on level0 again and again?
thx!
Movies On Levels/addressing.
I am loading an swf file into my main file on level 1. I know it's possible to target the loaded swf but is it possible for the loaded swf to target the main movie?
Thanks
Movies On Levels/addressing.
I am loading an swf file into my main file on level 1. I know it's possible to target the loaded swf but is it possible for the loaded swf to target the main movie?
Thanks
Fading In/out Movies On Different Levels?
What script would I attach to a button on _level0 to tell a movie on _level1 to goto a frame label (causing it to fade out and unload itself) and then when its faded away, load a new movie into _level1? I'm attempting to have one movie fade into the next when different buttons are clicked.
Loading Movies To Levels..
Once a movie is loaded to a level, can i make that level invisible from a button iside that movie, or do i have to use unloadMovie?
Also, once a movie has been loaded to a level, then unloaded, is it still in memory? I guess what i'm trying to say is this...
if i set a variable that changes from false to true once the movie has been loaded, and stays true even if i unload the movie, will i have to preload the movie again, or should it stay cached and the preloader no longer be necessary?
thanks,
a somewhat puzzled myk
..the says...... "mmmmmmmmmoooOOOOOOOOOOOOoooooooooooooooo...."
------------loading Movies On Levels--------------
heres the deal:
I have three main sections on my site.
Ex. contact, about, product.
I want to load external swf.s into these 3 sections. In these three sections there will be about 5-10 diffrent swf's per section.
Now here is the Question:
Last time I made a site like this there was like 10 diffrent swf.'s loaded on the main time line, level 0. For each swf. I loaded I had them load on another level.
this turned into a pain, when I did the coding, because for each swf. (which were on diffrent levels).
I had to tell it to unload each movie, and load the new movie in its place.
each button had to say , unload swf car, unload swf house, unload shoe,
I was thinking that there has to be an easy way to say, unload the movie, which is in its place and replace the new swf. there.
I have seen the unload all movies? is this what I am thinking of?
basically all the external swf.s which are loading do not need to interact with eachother, and NO TWO need to be loaded at the same time.
All I want to know is if there is an easier way to have them load, and replace eachother, without in the coding having to type in, all 15 names of the swf's telling them to unload.
i hope this isn't too confusing. It's hard for me to explain.
Thanks.
GG
Does Know How To Read Movies In Levels?
I have a site www.valdostametro.com and each button loads a new movie into place. well if you click any of the buttons it loads the movie into place.... well if you click the same button it loads it into place again.
Well i dont want that
I want a command something like the following
(keep in mind syantex is incorrect)
on (release) {
loadMovieNum("thisMOVIE.swf", 1);
if
_level1 == "thisMOVIE.swf"
stop;
}
the bolded parts are more like a mix of Visual basic and javascript on crack... but I think you get the basic idea i am wanting
(my english is not so well... sorry in advance)
Commanding Movies From Different Levels
If I have a movie in a level (0) of an alone frame, the only one scene and
that contains an interface of several active buttons
that call other movies in levels (n) (praise movie and unload movie)
concealing the interface
1.-how to achieve that when the mouse moves on the levels (n)
does not there cause confusion the interactivity of the interface of the level (0)?
2.-how to command from the levels (n) the level (0)?
Commanding Movies From Different Levels
Si tengo una película en un nivel (0) de un solo frame, una sola escena y
que contiene una interfase de varios botones activos
que llaman otras películas en niveles (n) (load movie and unload movie)
ocultando la interfase
1.- ¿cómo lograr que cuando se desplaza el ratón sobre los niveles (n)
no cause confusión la interactividad de la interfase del nivel (0)?
2.- ¿cómo comandar desde los niveles (n) el nivel (0)?
: )
|