Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
Lost on loading Level

Lost on loading Level

2004-03-05       - By Jesse Warden

 Back
Reply:     1     2     3     4     5     6     7     8  

Yep.

How about:

_level3._x = -9999;
_level3._y = -9999;
loading_mc._x = (Stage.width / 2) - (loading_mc._width / 2);
loading_mc._y = (Stage.height / 2) - (laoding_mc._height / 2);

>function onEnterFrame(){
>         var l = _level3.getBytesLoaded();
>         var t = _level3.getTotalBytes();
>         if(!isNaN(l)){
>                 if(l == t){
>                         if(_level3._width > 1){
>                                 _level3._x = 100;
>                                 delete this.onEnterFrame;
>                         }
>                 }
>         }
>}

That way, the movie, while it's loading, as far away from user touch
ability... Until it's done of course, and then you can movie your loading
message out of the way.


-- --Original Message-- --
From: Hannes Weniger [mailto:hannes@(protected)]
Sent: Friday, March 05, 2004 05:20 PM
To: flashnewbie@(protected)
Subject: RE: [Flashnewbie] Lost on loading Level


Ok, so if I got this right - your code below - then this positions the movie
when it`s done downloading, right? basically I just want to keep the user
from pushing buttons while a movie
is loading -
in order to prevent him from messing up the layout, by causing movies to
place somewhere
I don`t want em to be. (user interrupts download - maybe cause he decides
to have a look at
another movie or so...)
so I thought maybe it`ll be enough to set.enable = false for every button I
don`t want to be
pressed while there is download.
But this didn`t seem too advanced...
I don`t know
cheers
hannes

BTW: what does foobar actually mean?
At 22:09 05.03.2004, you wrote:
>Link's dead currently to a tutorial I have, but basically:
>
>You cannot mess with a movie clip (level, swf, or jpeg being loaded
>into it) that is currently loading.  You can mess with it before, or
>after it's completely done loading.
>
>Therefore, either set your _x's and _y's before you load, or use an
>onEnterFrame to wait till it's done.
>
>function onEnterFrame(){
>         var l = _level3.getBytesLoaded();
>         var t = _level3.getTotalBytes();
>         if(!isNaN(l)){
>                 if(l == t){
>                         if(_level3._width > 1){
>                                 _level3._x = 100;
>                                 delete this.onEnterFrame;
>                         }
>                 }
>         }
>}
>
>-- --Original Message-- --
>From: Hannes Weniger [mailto:hannes@(protected)]
>Sent: Friday, March 05, 2004 04:04 PM
>To: flashnewbie@(protected)
>Subject: [Flashnewbie] Lost on loading Level
>
>
>Hi there,
>really sorry to be asking absolute rookie-questions...I wouldn`t ask if  
>I wouldn`t have been stuck for hours on this:
>I am loading several swfs (size about 300KB) into different levels onto the
>stage. when I tried to position the
>movies via _level22._x = 340 etc. it only worked when I put this command
>three frames behind the loading frame.
>- when I shovel it online the movie behaves rather funny - at least in my
>opinion: it sometimes loads in perfect spot
>   and then sometimes a movie might load as if it hadn`t heard the position
>level command. this happens especially then
>when preloading of another movie isn`t finished...So I figured there must
>be some kind of relation between loading time
>and the interpreter getting to read the positioning command. How can I
>avoid this? Sorry if this sounds all a bit dumb -
>but I`d sure could use help.
>thanks,
>hannes
>
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>Supported by Fig Leaf Software
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>Lower Prices for Certified Training! Check out new lower prices for
>Certified Macromedia Training from Fig Leaf Software. Expand your skill
>set with courses in ColdFusion, Flash, Rich Internet Applications and
>.NET in the new year.  Fig Leaf Software provides the highest caliber
>instruction at our training centers in Washington D.C., Atlanta,
>Chicago, Baltimore, Northern Virginia, or on-site at your location.
>
>Get the details at http://training.figleaf.com/
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
>For additional commands, e-mail: flashnewbie-help@(protected)
>
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>Supported by Fig Leaf Software
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>Lower Prices for Certified Training! Check out new lower prices for
>Certified Macromedia Training from Fig Leaf Software. Expand your skill
>set with courses in ColdFusion, Flash, Rich Internet Applications and
>.NET in the new year.  Fig Leaf Software provides the highest caliber
>instruction at our training centers in Washington D.C., Atlanta,
>Chicago, Baltimore, Northern Virginia, or on-site at your location.
>
>Get the details at http://training.figleaf.com/
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
>For additional commands, e-mail: flashnewbie-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your skill set
with courses in ColdFusion, Flash, Rich Internet Applications and .NET in
the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington  
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your
location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington  
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)