Re: [Flashcoders] Export frame option disabled

2006-06-25 Thread æœé‚Šć‚‘
Mike, that's untrue. Components don't need to be loaded in first frame.

I am writing a program with a lot of components. In my Actionscript
settings, I have the Export frame for classes set to 3. For all my
components Export in first frame is unchecked, as well as all my MovieClip
which need to be exported to Actionscript.

Then I put all my components and MovieClip which will be created by
Actionscript in the fourth frame (on the stage but out of view).

These are the components I use in this movie:
Accordion, Alert, Button, Checkbox, Combobox, Label, List, NumericStepper,
RadioButton, TextArea, TextInput, Tree, Window, and some home made
components.
But I am sure it will work with all of them.

Cheers,

Benjamin.


-Original Message-
From: Mick G [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 24, 2006 1:15 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Export frame option disabled

This is one of the reasons I avoid MM components unless I totally have to.

Most of the components will only work if you export in first frame so the
only option I''ve found is:
- Put your content in an external SWF (which also causes problems because of
a bug with the components needing an instance in the root library if they're
loaded into target MCs). So, you now need to create a Shared Library for the
components and preload them (or if you don't want the hassle of a shared
library, some components get around this bug if you put a _lockroot in the
SWF containing them).

I'd love to hear other peoples solutions to component preloading.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Export frame option disabled

2006-06-23 Thread stacey
http://www.gskinner.com/blog/archives/000104.html
Check out the preloading. You could also create a shell and preload in
that swf.



 Are you basing the percentage on the frames loaded (100 * _framesloaded
 / _totalframes) or bytes loaded (100 * getBytesLoaded() /
 getBytesTotal())? You should be doing the latter. If you are then ... um
  *tags someone else*

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mike
 Boutin
 Sent: Thursday, June 22, 2006 1:52 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Export frame option disabled

 Hey everyone,

 Im creating a preloader and I notice that it doesnt start until about
 90% done loading the file.  I believe this is because my ui components
 are exported to the first frame.  I tried unchecking export to first
 frame with no difference.  I also tried changing the actionscript
 setting to export it to frame 2 rather than 1, but it is unavailable to
 change (the field is disabled).  Am I missing something here? ;) Thanks!



 Mike
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Export frame option disabled

2006-06-23 Thread Mick G

This is one of the reasons I avoid MM components unless I totally have to.

Most of the components will only work if you export in first frame so the
only option I''ve found is:
- Put your content in an external SWF (which also causes problems because of
a bug with the components needing an instance in the root library if they're
loaded into target MCs). So, you now need to create a Shared Library for the
components and preload them (or if you don't want the hassle of a shared
library, some components get around this bug if you put a _lockroot in the
SWF containing them).

I'd love to hear other peoples solutions to component preloading.


On 6/24/06, Mike Boutin [EMAIL PROTECTED] wrote:


Here is an example of the preloader used placed on the first frame of
the movie.

this.onEnterFrame = function(){
var loaded:Number = this.getBytesLoaded();
var total:Number = this.getBytesTotal();
var percent:Number = Math.floor((loaded/total)*100);
load_txt.text = Loading... +percent+%;
loadBar._xscale = percent;
if (percent == 100){
gotoAndPlay(2);
delete this.onEnterFrame;
}
}
stop();


Mike


Mike wrote:
 Are you basing the percentage on the frames loaded (100 * _framesloaded
 / _totalframes) or bytes loaded (100 * getBytesLoaded() /
 getBytesTotal())? You should be doing the latter. If you are then ... um
  *tags someone else*

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mike
 Boutin
 Sent: Thursday, June 22, 2006 1:52 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Export frame option disabled

 Hey everyone,

 Im creating a preloader and I notice that it doesnt start until about
 90% done loading the file.  I believe this is because my ui components
 are exported to the first frame.  I tried unchecking export to first
 frame with no difference.  I also tried changing the actionscript
 setting to export it to frame 2 rather than 1, but it is unavailable to
 change (the field is disabled).  Am I missing something here? ;) Thanks!



 Mike
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Export frame option disabled

2006-06-23 Thread John VanHorn

two things you can do to remedy this problem:

1.pay attention to the bandwitdth profiler when you test your movie.it
sounds like the bulk of your movie is being loaded in the first frame. make
sure that the only thing on the timeline in the frame or frames where the
preloader works is the preloader. make sure classes are set to export in a
frame after the preloader. also if you have assets in the library set to
export for actionscript, by default, they load in the first frame. either
change that or store them off stage after the first couple of frames.

2. use a stub swf. you can make a very lightweight stub swf that contains
only the preloader and a blank movie clip in which to load your main movie.

On 6/22/06, Mike Boutin [EMAIL PROTECTED] wrote:


Hey everyone,

Im creating a preloader and I notice that it doesnt start until about
90% done loading the file.  I believe this is because my ui components
are exported to the first frame.  I tried unchecking export to first
frame with no difference.  I also tried changing the actionscript
setting to export it to frame 2 rather than 1, but it is unavailable to
change (the field is disabled).  Am I missing something here? ;) Thanks!



Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
John Van Horn
[EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Export frame option disabled

2006-06-22 Thread Mike Boutin

Hey everyone,

Im creating a preloader and I notice that it doesnt start until about 
90% done loading the file.  I believe this is because my ui components 
are exported to the first frame.  I tried unchecking export to first 
frame with no difference.  I also tried changing the actionscript 
setting to export it to frame 2 rather than 1, but it is unavailable to 
change (the field is disabled).  Am I missing something here? ;) Thanks!




Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Export frame option disabled

2006-06-22 Thread Mike
Are you basing the percentage on the frames loaded (100 * _framesloaded
/ _totalframes) or bytes loaded (100 * getBytesLoaded() /
getBytesTotal())? You should be doing the latter. If you are then ... um
 *tags someone else*

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Boutin
Sent: Thursday, June 22, 2006 1:52 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Export frame option disabled

Hey everyone,

Im creating a preloader and I notice that it doesnt start until about 
90% done loading the file.  I believe this is because my ui components 
are exported to the first frame.  I tried unchecking export to first 
frame with no difference.  I also tried changing the actionscript 
setting to export it to frame 2 rather than 1, but it is unavailable to 
change (the field is disabled).  Am I missing something here? ;) Thanks!



Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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