List Info

Thread: RE: Depths




RE: Depths
country flaguser name
Switzerland
2007-05-08 23:49:05

-------------
Andreas Weber


-----Original Message-----
From: flashnewbie-bounceschattyfig.figleaf.com
[mailto:flashnewbie-bounceschattyfig.figleaf.com] On
Behalf Of Lord, Susan
Ms. (CONTR)
>  I attach the background first, so I would assume that
the movie would
load on top of it...

1) Be aware that every MovieClip (including _root) has its
own stack of
depths, it's not just one stack for the whole movie
2) Supposing that your code is on _root, I guess what
happens is
	a) you create main_mc on _root (if you create it manually,
it will
have a negative depth)
	b) later, when the onLoad fires, you attach the background
on _root.
this.getNextHighestDepth() will return a height above the
already existing
main_mc
	c) later you load a movie into main_mc - this will appear
on the
height of main_mc, i.e. below the backgroung 'tab_mc'
3) use swapDepths to change the depths: try
main_mc.swapDepths(tab_mc); 

hth
Andreas Weber



Sent: Mittwoch, 9. Mai 2007 00:23
To: Flashnewbie Mailing List
Subject: [Flashnewbie] Depths


Hello,

I was wondering how Flash deals with depths in a loaded
movie?  I know how
to set the depth on an attached movie from my library but
not a loaded swf
(loaded using loadMovie).

In the below code, I would like the background to load below
the swf movie.
I attach the background first, so I would assume that the
movie would load
on top of it... But it didn't work that way.  The loaded swf
movie showed up
below the movie I attached from my library.

Any help you can provide is appreciated.

Thanks!
Susan
_____________________________________________

x.onLoad = function() {
	var content:Array = this.firstChild.childNodes;
	//first child gets you to root of xml, child nodes will
bring an
array of all elements nested within. 
	for (i=0; i<content.length; i++) {
		urlList.push(content[i].attributes.url);
		urlList.push(content[i].attributes.background);
	}
	if (content[whoIsOn].attributes.background=1) {
		//Attach Background from Library
		attachMovie("introTab_mc", "tab_mc",
this.getNextHighestDepth(), {_x:10, _y:18.1});
	}
	main_mc.loadMovie(urlList[0]);
	whoIsOn = 0;
};
x.load("nav.xml");
_______________________________________
 

_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.c
om

_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

Attach Movie - _x and _y coordinates
country flaguser name
United States
2007-05-09 08:37:58
I know I am full of questions (darn those newbies!).  And I
appreciate
all of your input.

I have another weird thing that is happening and am not sure
why.  In
the following code, my back button is showing up at 0,0.

_root.attachMovie("btnBack", "back_btn",
getNextHighestDepth(),
{_x:645.5, _y:515.5}); 

Any ideas on why it behave this way?
 

_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

RE: Depths
country flaguser name
United States
2007-05-09 08:18:56
That makes perfect sense!  Thanks so much.   It worked
like a charm. 


_______________________________________
Susan Lord
Instructional Designer & Multimedia Developer
Contractor
JCITA/CIFA
301-677-0920
 

-----Original Message-----
From: flashnewbie-bounceschattyfig.figleaf.com
[mailto:flashnewbie-bounceschattyfig.figleaf.com] On
Behalf Of Andreas
Weber
Sent: Wednesday, May 09, 2007 12:49 AM
To: 'Flashnewbie Mailing List'
Subject: RE: [Flashnewbie] Depths



-------------
Andreas Weber


-----Original Message-----
From: flashnewbie-bounceschattyfig.figleaf.com
[mailto:flashnewbie-bounceschattyfig.figleaf.com] On
Behalf Of Lord,
Susan
Ms. (CONTR)
>  I attach the background first, so I would assume that
the movie would
load on top of it...

1) Be aware that every MovieClip (including _root) has its
own stack of
depths, it's not just one stack for the whole movie
2) Supposing that your code is on _root, I guess what
happens is
	a) you create main_mc on _root (if you create it manually,
it
will
have a negative depth)
	b) later, when the onLoad fires, you attach the background
on
_root.
this.getNextHighestDepth() will return a height above the
already
existing
main_mc
	c) later you load a movie into main_mc - this will appear
on the
height of main_mc, i.e. below the backgroung 'tab_mc'
3) use swapDepths to change the depths: try
main_mc.swapDepths(tab_mc); 

hth
Andreas Weber



Sent: Mittwoch, 9. Mai 2007 00:23
To: Flashnewbie Mailing List
Subject: [Flashnewbie] Depths


Hello,

I was wondering how Flash deals with depths in a loaded
movie?  I know
how
to set the depth on an attached movie from my library but
not a loaded
swf
(loaded using loadMovie).

In the below code, I would like the background to load below
the swf
movie.
I attach the background first, so I would assume that the
movie would
load
on top of it... But it didn't work that way.  The loaded swf
movie
showed up
below the movie I attached from my library.

Any help you can provide is appreciated.

Thanks!
Susan
_____________________________________________

x.onLoad = function() {
	var content:Array = this.firstChild.childNodes;
	//first child gets you to root of xml, child nodes will
bring an
array of all elements nested within. 
	for (i=0; i<content.length; i++) {
		urlList.push(content[i].attributes.url);
		urlList.push(content[i].attributes.background);
	}
	if (content[whoIsOn].attributes.background=1) {
		//Attach Background from Library
		attachMovie("introTab_mc", "tab_mc",
this.getNextHighestDepth(), {_x:10, _y:18.1});
	}
	main_mc.loadMovie(urlList[0]);
	whoIsOn = 0;
};
x.load("nav.xml");
_______________________________________
 

_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.c
om

_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om


_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )