View Full Version : help with Export Frame for Classes
Flash Gordon
03-14-2005, 09:48 PM
this is kind of continuation from another post, but i didn't want to high jack the post so I started a new one.
So here is my problem:
I my preloader doesn't show until 45%. So i changed the export frame for class to "frame 2". My preloader now begins at 0% but my text that get loaded into my textAreas doesn't load. However, my text that i load into my dymanic text box does. Anyone know what is happening?
Thanks for the help.
cancerinform
03-15-2005, 12:05 AM
I would not recommend to do that. Use this preloader and this loading scheme:
http://flashscript.biz/components/preloader/preloader.html
Flash Gordon
03-15-2005, 01:39 AM
i don't understand what you mean by that. I didn't see anything in the link that could help. But i do appreciate your help!
cancerinform
03-15-2005, 10:09 AM
1. Download the preloader component.
2. Throw out your preloader.
3. Follow the instructions and install the preloader component. For a movie like yours create a new parent movie and put the preloader component in there and enter the correct settings. This component is especially for movies with content exported in frame 1. Don't change the export feature. Otherwise the movie content will not be properly loaded.
Hmmm
do you mayby put the text area whit attach on the stage ?
anyway if you UNmark something for first frame you NEED to put it somewhere on a frame when the play head is on this frame it will by loaded if it isn't on any frame it wont by loaded and you can't use it
cancerinform
03-15-2005, 05:56 PM
Exactly what is happening is that your textarea ia a component, which is automatically exported in frame 1. Now where you have changed your settings the textarea is not loaded when your preloader finishes. There is no other way around than what I recommended above. The component I made is especially made for to load movies with components. It is lightweight so it is immediately loaded.
Flash Gordon
03-17-2005, 09:06 PM
do you mayby put the text area whit attach on the stage ?
anyway if you UNmark something for first frame you NEED to put it somewhere on a frame when the play head is on this frame it will by loaded if it isn't on any frame it wont by loaded and you can't use it
But didn't I do that by putting export on Frame 2?
export on Frame 2
how do you do this???
in my version of flash i either can select or deselect "export on first frame"
but nowhere an option for export on frame 2 ???
deadbeat
03-17-2005, 09:44 PM
Xeef:
Edit/Preferences/Actionscript/Actionscript2.0 Settings
Where you set up your classpaths, there is a field: Export frame for classes
K.
deadbeat
03-17-2005, 09:50 PM
Actually, I should say:
Publish Settings/Flash/Actionscript version /Settings / Export frame for classes
K.
Hmmmm
i can't select it :confused:
ok i have it
it's by publish setings
i sec make a couple of test's on this
Flash Gordon
03-17-2005, 09:58 PM
Exactly what is happening is that your textarea ia a component, which is automatically exported in frame 1. Now where you have changed your settings the textarea is not loaded when your preloader finishes.
This makes sense, I would just (if possible) to use my own custom built preloader but have it start at 0% instead of 60%
so
it's not enought to export the class on frame 2 !
the class may by exported on frame 2 BUT all visual stoff which belongs to it NOT
you need to put it on a frame to by corectly exported (you can put it of the stage so nobody will see or realize it BUT it needs to by on stage !!)
cancerinform
03-17-2005, 10:17 PM
You can do that. Make a parent movie, put your preloader in there and create or put a movieclip (emptyclip) on stage where you load your movie. Then put a script like this but adjusted to your preloader in the frame :
_root.onEnterFrame =function(){
if(emptyclip._url != _root._url && !loaded) {
// calculate size of pics in kilobytes
var kilobytes = Math.ceil(emptyclip.getBytesTotal()/1024);
// calculate percent loaded
var percentLoaded = Math.ceil((emptyclip.getBytesLoaded()/emptyclip.getBytesTotal()) * 100);
// show loading message
_root.percentOutput = "loading " + percentLoaded + "% of " + kilobytes + "k";
if(percentLoaded >= 100){
/******************************************
here you replace the parent movie with the child movie*/
loadMovieNum("mymovie.swf",0);
/********************************************/
}
}
}
This is a very old version of the preloader script. You find it also inside the preloader component.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.