Exporting Classes On Frame 10
One of the 'rules' for this project I'm currently working on is that I have to setup my FLA to export classes on Frame 10. I've never worked with a file that exported on any other frame than 1.
I'm not sure exactly what this accomplishes, if someone can explain that to me, that would be an awesome start (my guess is its the same deal as a mc's Linkage, whereby it will screw with the preloader).
The actual problem is, classes that I associate with mc's in my Library (via the mc's Properties) are ignored. When i attach a mc that has a class associated with it, the class doesn't get instantiated.
I've attached a file to help explain this. If you go into the Publish settings and set the export frame back to 1 it all works as expected.
thanks in advance for any help whatsoever!
k.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 05-10-2007, 01:00 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Exporting Classes To Frame X
Hi -
spending a little time on migrating to as3, and naturally having issues...
In as2 exporting classes to frame x works, but it's obiously different in as3, damn.
Scenario: preloading in frame 1, content in frame 2.
In as3 let's say I import the tweener class in frame 2, allthough publish settings/actionscript/as3 it's set to export in frame 2, it seems to import it to frame 1 - unlike as2.
Is it a bug - or me? Anyone experienced something similar.
Exporting Classes To 2. Frame - Problem
Hello,
I am working on the flash game and I have some symbols exported for actionscript. My progress bar won't work if I leave them exported in the 1. frame. So I've deselected export in the 1. frame at linkage properties of every symbol. Then in the publish settings I've exported them at the 2. frame, I tested the movie an guess what ? It doesn't work. What should I do guys ?
Thank you
PS: I apologize for my bad english.
Preloading And Frame Exporting Of Assets And Classes
Sometimes you focus on complex and advanced things and forget about simple but essential concepts on the technology you work with. Thatīs what happened with me. Now, I donīt feel confortable with one of the simplest concepts in the flash world: preloading. Let me explain my case:
Iīm using the most OOP based approach to develop my RIA. Iīm developing it with the ARP framework with some modifications.
When I was building the main preloader of the main swf (entry-point) I found that, while you can export symbols on the first frame in a granular way (you can choose what symbol to export), for classes, its a general option, you choose frame2 for export and all classes go there. The problem is that, I choosed to assimilate _root in an Application class, and the main preloading code is there. But, choosing to export the classes on frame1 is impracticable, as I extensively use classes and thatīs too much data to load for the first intanceo of the app. So, the only way I can think of is to put the main preloading code on the timeline and choose to export the classes on the frame2...
What do you think?
Thanks in advance,
Marcelo.
PreLoader Issue With Exporting Classes On 2nd Frame
I have a preloader for this site I am building. The Preloader works fine but appears around 50% of its loading. I have gone through some of the tutorials in regards to exporting classes to the second frame and this is where my problem occurs. I have a sound file that I want to export to the second frame but I get the errors:
1046: Type was not found or was not a compile-time constant: MySoundFile
1180: Call to a possibly undefined method WindingDream60.
it works if I export it to the first frame but not the second.
Here are the actions I have on my second frame calling in the SoundFile. I use the linkage properties in the library on the SoundFile and I have export in first frame unchecked.
Code:
var music:MySoundFile = new MySoundFile();
Im not sure what I am missing here. Any help would be appreciated.
Exporting Classes Not Frame 1 Kills Timeline Scripts
Why does changing the publishing settings to exporting classes in something other than frame 1 kill timeline scripts.
See file attached for example. If you put the publishing settings back on frame 1 it works just fine.
Exporting Classes
Hi guys,
I've got a problem with exporting classes in AS2 when it comes to the FLVPlayback component. I switched the export frame for classes in my file to 10, and the FLVPlayback, which lies in frame 20, component doesn't play. I thought that unchecking the 'Export in first frame' and putting an instance in frame 10 would solve the problem, but apparently not.
As you can probably see, I'm exporting the classes to another frame so that my site may preload properly.
Any ideas?
Thanks in advance!
How Can You Tell Which Classes Are Exporting?
Hi,
Is there any way to see which classes you are exporting? It seems like sometimes I'll experiment with a few and then remove them but the classes export remains in the filesize report. They don't appear in the library so how can you track them down and remove them?
Thanks a lot.
Exporting Classes
Does anyone know how to export classes (in the publish settings) to something other than frame 1, and to uncheck the linkage for objects in the library to export on first frame and still have the object be available for actionscript?
Okay, that's a mess of a sentence, but if you download the attached file, you will see what I mean. If you trace the numChildren before and after the addChild method you will see that "box" is added to the display list. However, no graphics are associated with the linked MovieClip. This doesn't occur if classes are exported on the first frame.
I'm at a loss here. Please help!!!!
How Important Is Exporting Classes?
I have a swf file that is 90K when I publish it normally, but it shouldn't be that high of a file size (I would think). When I change the export frame for classes to frame 2 (I only have 1 frame), my file size goes down to 50K...
Everything still seems to work right. How important is it to export the classes? Any help is appreciated thanks,
iLan
[CS3][AS 2.0] Problem With Exporting Classes
Hi guys,
I've got a problem with exporting classes in AS2 when it comes to the FLVPlayback component. I switched the export frame for classes in my file to 10, and the FLVPlayback, which lies in frame 20, component doesn't play. I thought that unchecking the 'Export in first frame' and putting an instance in frame 10 would solve the problem, but apparently not.
As you can probably see, I'm exporting the classes to another frame so that my site may preload properly.
Any ideas?
Thanks in advance!
Actionscript Classes Not Exporting
Afternoon all, first time poster here
I would consider myself an intermediate flash/as user/developer (evidently not, with the hurdle I'm facing!!!).
I have recently received an fla to edit, which should be as simple as editing a text mistake on a movie clip, but has turned into a whole lot more! When I go to export a swf (without even editing the fla or any actionscript), the file plays back incorrectly - this is to say not playing back certain class functions.
I exported the swf with a size report, and I have noticed only one difference between the two: at the action script bytes and location ... there is 1 part missing - ActioScript 2.0 Classes
Am I missing something here? All the classes are in the same folder I recieved them to and no edits have been made to the as in the file. Do I need to go somewhere to export the as 2.0 classes?
Any help on this matter will be greatly appreciated - I'm stumped!!! Scott.
Library Linkage And Exporting Classes
I've turned off "export in first frame" for all my library items with linkage. But my game wont work unless I export all classes on frame one. I'm building a game for a client and the whole game must be in one .swf. So the preloader needs to be in the same .swf as everything else. To speed up the loading of the preloader I would like to not have to export all classes on frame 1. But if I set the classes to load on any frame other then frame one (doesn't matter if it's a frame before or after the frame I have all my linked files loading) nothing works.
Is there a way to have classes export on a frame other than 1, and have "export in first frame" turned off for my linked files?
And yes I do have all my linked files placed on the main timeline.
Thanks!
Preloader, Loading File Order, Exporting Classes
Hi. Just some general questions about loading files and preloaders.
1. Say I have several xml, css files and images that need to be loaded. When given the chance, should I load them all at the same time or provide an order and only load a file when the previous has finished loading?
2. I want to use a preloader to indicate the loading progress. Should I use a main.swf with only the preloader and then load all the necessary files (even if it's only one) into it, or have everything on the main.swf and when the preloader ends it just goes to a different frame/scene/anything?
3. I have created several custom classes. Should I, if possible, export them at a frame posterior to the preloader's?
Thank you for your time!
Exporting Graphics Frame By Frame
Need to export print-quality graphics from Flash, frame by frame, in order to provide client with hard copy.
Is there an auto way to do this? Jpgs would be great, but maybe another file format would work better?
Thanks!
First Frame Exporting
Hello there ...
How can I find the objects exported in the first frame if i erased them from my library ... is there a way to clear the actionscript exported in the first frame ... because i am having problems with my preloader! Thanks
HEeeelp!
Exporting To First Frame- Yes Or No?
what are the pros and cons to exporting a component to the first frame. Say i choose to deselect this option...what are the effects? i have tried both in a test, but see nothing....
Not Exporting In First Frame
I have quite a few mc's in the library of one of my flash pages and not all of them are played depending on the visitor. So I want to not export the mc's in the first frame to keep the loading time fast, but when I use attachMovie() to get them on stage the mc's don't show up. So, how do I make the mc's show up without exporting in the first frame?
AttachMovieClip Without Exporting In First Frame?
Is there any way to attach a movieClip to a dynamically generated mc, without "exporting for actionscript" in the first frame? It seems to be slowing my movie way down by doing it this way.
thanks in advance for any assistance,
Jay
Preloading / Exporting First Frame
Adding a preloader I've shifted all my keyframes forward and put a preloader into the first frame. I attach some movie clips from the library to the stage with actionscript so I've marked them for exporting for actionscript.
In the tutorial it said to unmark the export for first frame, and in publish settings set the class settings to another frame besides 1 so I chose 2.
Testing the movie I no longer have the bulkier file size from the movie clips that got exported to the first frame however when I call them with actionscript to be attached nothing is happening :S? The rest of my code works fine, just when trying to attach one of the movie clips to the stage nothing happens, I've marked some for exporting to the first frame and they will be attached to the stage so its nothing to do with me moving my frames one forward...
Any help would be greatly appreciated
Load MC AS2 Without Exporting In First Frame?
I'm using the following code to load an MC but have to check off export in first frame. Is there any other way to load MC's so there is no need to have export in first frame checked off?
Code:
btn1.onPress = function() {
unloadMovie("off");
attachMovie("screen1","screen1",1);
screen1._x = 276.8;
screen1._y = 179;
}
Preloaders And Exporting In First Frame
I'm creating a small audio loop player in Flash MX 2004 and have created a simple preloading clip to keep people entertained while the audio files load.
The problem I am experiencing is that unless I click 'Export In First Frame' on the audio file's Linkage properties, the audio files do not seem to load at all.
If I do not click on 'Export In First Frame' do I have to define which frame they actually are exported in anywhere?! If so can anyone tell me where?
Any help would be greatly appreciated - sorry if this doesn't make much sense I am only really a beginner when it comes to Flash.
Cheers
Tom.
Avoid Exporting On The First Frame
i want to know is there a way to link an object and not choose 'Export in the first frame'??????. I need this as my pre loader comes after an introduction animation (Please do not ask me who set this template!!!!).
PLEASE HELP!!!!!!
Exporting Movie On Frame X
Hi,
I am having a problem with the smoothness of my animation. I think it is because I have loads of addChilds on the first frame.
What is the best way to appoach this?
Also what do the other 2 options do and can they help
- export for runtime sharing
-export on first frame
Ta,
Exporting Sounds To Frame 2
Hey! I made a thread about this over on ultrashock and nobody seemed to know the answer, so maybe Kirupa knows! It's like this, I've got a music file in the library of my flash, and I want to play it using ActionScript. So far so good, so I go into properties of the music file and check for it to export for actionscript, and export it to frame 1. But what I've noticed is that then the music file loads BEFORE the preloader, so the preloader doesn't show up in this relatively small flash until it's at the very end. Before that it just seems like the flash isn't working cause nothing shows up. But if I uncheck ""export to frame 1", the sound won't play at all! So what I'm wondering is how I export the sound to actionscript AFTER the preloader graphic has been loaded.
and here's the code.
music = new Sound(this)
music.attachSound("intro")
music.start(0, 1)
Thanks for any help!
Preloaders And Exporting In First Frame
I'm creating a small audio loop player in Flash MX 2004 and have created a simple preloading clip to keep people entertained while the audio files load.
The problem I am experiencing is that unless I click 'Export In First Frame' on the audio file's Linkage properties, the audio files do not seem to load at all.
If I do not click on 'Export In First Frame' do I have to define which frame they actually are exported in anywhere?! If so can anyone tell me where?
Any help would be greatly appreciated - sorry if this doesn't make much sense I am only really a beginner when it comes to Flash.
Cheers
Tom.
Not Exporting Symbols In The First Frame
Hi,
Does anyone know anything about how to not export a linked (from library) symbol in the first frame.
OK, I know I can unclick the button in the linkage dialog box but, of course, doesn't work.
When or how can u export it?
Any help or pointing to resources would be really appreciated.
Thanks in advance.
SHO
Load MC AS2 Without Exporting In First Frame?
I'm using the following code to load an MC but have to check off export in first frame. Is there any other way to load MC's so there is no need to have export in first frame checked off?
Code:
btn1.onPress = function() {
unloadMovie("off");
attachMovie("screen1","screen1",1);
screen1._x = 276.8;
screen1._y = 179;
}
No Sound, When Not Exporting In First Frame
hi@all,
im trying to build a preloader for my site.. i have backgroundmusic and button-effect-sound in my libary which i export to AS.. just like in the video tut, i dont export it in the first frame.
also i havent any newSound() in the first 3 frames of my main-movie.
but there is no sound output.. im trying and searching but nothing .. i cant get it..
perhapst someone could give me an idea ?
thnx
Frame Rate Not Exporting Correctly
Hm...
for some reason, my frame rate seems to be exporting at 30 fps, when I have it set to 50 fps. Now there are a couple of factors, but I don't see why they would affect it. My movie is full screen, and I have it set to export in size as a percentage, rather than pixels.
Here is a link to the .swf
http://www.deathbydsgn.com/1024x768.swf
and the fla
http://www.deathbydsgn.com/1024x768.fla
Thanks so much
Using AttachSound() Without Exporting Audio In First Frame
Hey guys,
I've created a web program which on frame 5, calls various sound files using the attachSound function. I have a preloader therefore I needed to disable exporting the audio in first frame so the pre loader runs immediately on load frame 1. However, the audio files now do not get called with the attachSound function in frame 5.
Any ideas?
Cheers, Rob
Exporting Audio For Actionscript.. But NOT In FIRST FRAME
Hi guys
I have rather large audio files in my library that i need exported for actionscript.. all works fine but problem is my page stays BLANK for a long time. i wanted to make use of a preloader but it seems that the swf is prioritizing audio files exported for actionscript..
then i saw this little option "export in first frame" which was ticked by default. I unticked it.. and well.. my audio files are not getting exported anymore..
i also found this settings option to export classes on a certain frame.. tried that.. but didnt really work for sound files in my library.. just them compontents.
is there a way out there to achieve what i want to do?
[F8] How To Preload A Site Without Exporting To First Frame
I'm having a problem, and I'll make it as straightforward as possible:
My preloader won't appear because there is 1.7MB of movie clips exported in the first frame, and it bogs it down. If I simply remove these clips from the first frame, and put them at the end, the page will load, but all the movie clips will not appear on the page whatsoever.
What am I to do so the preloader will work fast, and the clips will load?
[CS3] Properly Exporting Sounds To Frame X
[problem simplified]
I'm trying to preload music but every 'gotoandplay' on the second frame of my main loop all the music cuts out. Might have to do with the way I loaded it (read below?)
[/problem simplified]
Alrighty. SO, I'm working on a pong game as my first project, and now I'm finally adding in the preloader. So, I have to move all sound and images off frame one and onto a content frame so that the preloader can fire up immediatly. Great.
So my Idea was to segregate all the sound onto a movieclip called 'musicpreloader.' Each layer in the 'musicpreloader clip is a sound layer and has the sync 'stop' on it so it doesn't play all the sounds at once on load.
The problem I'm having is that I can load all the sound into a movieclip on say, frame 3, and then the preloader will go on frame one, and jump to my menu on frame 7. Then, after the menu, it goes to my main loop on frames 5 & 6. The sound seems to work great for everything but the background in-game music, but on closer inspection, it does not. It keeps cutting out when my main game loop hits "_root.gotoAndPlay(5);" I've even stepped through in the debugger and found this to be true, after I put a command to restart the music right after that gotoAndPlay. It just stops, then starts, then loops throuhg, then stops on "gotoAndPlay", then starts.. etc.
So my problem revolves around this 'gotoAndPlay.' I found that if I change the sync on my sound layers in the 'musicpreloader' to play, then they all play every loop. So for some reason, all the sounds are sort of re-loading or something like that, which doesn't make sense because that clip is on frame 3, and my game is on frame 5 & 6 on a different layer.
My attempt to fix:
So then I tried to do what Kenny Bellew does on his website cowfly.com (http://www.flashkit.com/tutorials/Au...096/more26.php) where he imports all the sounds into his movie using movie clips and preloaders. Which works, because I can see the sounds load into the leve0 instance in the debugger, but I can't access the sounds? I don't understand though because I added actionscript to load them into _root, and they do appear...
Does anybody know anything about this? lol. Please, if you could just show me the way. Btw, I AM googling this. It's not like I'm a n00b that just posts and expects everything to be handed to them.
Thanks ahead of time, all!
Exporting A Linked Sound To A Frame Other Than The First
Hey All,
Trying to get a preloader to work correctly and I have some linked sounds that are bogging it down. So I uncheck the "export to first frame", but of course the sound doesn't play. How can I export the sound to a different frame? Or even another way to just get the sound to play?
Any suggestions would be greatly appreciated.
Thanks.
Exporting Action Script In 2nd Frame
I have a preloader in frame one so I export frame for classes in frame two in the publishing settings. I have a scrolling component in the .fla and when I set up the linkage for the scrollable movie clip, it exports into the 1st frame. How do I tell Flash to export action script for component in 2nd frame? Because of the conflict with the publishing settings set at frame 2, the scroll bar won't work unless I publish export action script into frame one.
Please help,
Darryl
Exporting To Frame 2 To Ease The Preloader
I am using a Flasloaded component called flipNavigation
Works well but frame one is huge in my movie clip
Been following Senolcuar's tutorial as below to ease my preloader
http://www.senocular.com/flash/tutorials/preloading/
But still get a an issue when publishing the movie as below
**Error** Symbol=flip_mc, layer=Layer 1, frame=1:Line 6: The class or interface 'com.flashloaded.as2.PageItem' could not be loaded.
var itemObj0:com.flashloaded.as2.PageItem;
**Error** Symbol=flipskull_mc, layer=Layer 1, frame=1:Line 6: The class or interface 'com.flashloaded.as2.PageItem' could not be loaded.
var itemObj0:com.flashloaded.as2.PageItem;
**Error** Symbol=flipsignature_mc, layer=Layer 1, frame=1:Line 6: The class or interface 'com.flashloaded.as2.PageItem' could not be loaded.
var itemObj0:com.flashloaded.as2.PageItem;
Total ActionScript Errors: 3 Reported Errors: 3
Anyone got any ideas to help me out with this one please ?
Regards
Martin.
Help Embedded Fonts Exporting In First Frame
I'm trying to preload all material on my site, including embedded fonts. Normally, with any symbol you can simply uncheck in the linkage properties "Export in first frame." and then place the object on the frame you desire and have it loaded in then. When i embed a font and do this, it doesnt appear to work. I've done some extensive searching for a solution on this but i can't seem to find any solutions. I've only found one person to ask the same question and not receive an answer... Can anyone please help? I really need to figure this out!
Problem Exporting AS 2 Clases In 2nd Frame
Hi All,
In an effort to make my preloader better I'm doing 2 things.
First, I've stopped exporting my components in the first frame and I've stuck them in a transparent container_mc on the 3rd frame so the compiler sees them.
Second, I'm exporting my AS 2.0 classes into the second frame.
The problem is this. When I publish my movie for a quick internet connection, the component instances that are on the stage don't load correctly. However, when I publish the movie for a 56K modem, the preloader works fine and it loads the main stage with all the components working correctly.
I wasn't able to attach the FLA but you can download it from here.
http://www.cybertekresearch.com/sharing/share.html
D
Exporting Attached Sound Into Frame 2, Not 1
how do you export an attached sound on the 2nd frame... because when it check it to export in first frame it takes to long for the first frame to load and it doesnt how the preloader until 90% of the frames have been loaded, i think its because of exporting the sound in the first frame. If someone can help me out, that'd be great.
Exporting Sound Linkage Later Than Frame 1?
Hey!
It's like this. My Flash has music and a preloader, but because of how the music is being exported to frame 1 in the linkage property, so that it can be called on in the actionscript, it loads BEFORE the preloader. Obviously the preloader should load first. So I've unchecked the "export to frame 1" box, but now the music won't play at all.
This is what I've got to start up the music:
Code:
music = new Sound(this)
music.attachSound("intro")
music.start(0, 1)
After that a loop takes over, anyway, what I'm wondering is this; Can I export the audio files to be called on with actionscript without exporting them to frame 1?
Thanks in advance! :9
Export Frame For Classes
(i had put this in the newbie forum)
i installed a preloader for my new site, but the whole first page seemed to hang on the loader, until it kicked it at around 45% of kb loaded. so the viewer was just looking at a blank screen until the loader came into view.
i thought i had solved this by changing the Export Frame for Classes from 1, to 5. and i moved the first frame of the main timeline to 5, and all was well.
this seemed to work, and does work, on every page except one. the offending page is where i have used a scrollbar which contains some text.
this page which uses the scrollbar component just displays white space where the scroll bar should be.
a real mess, so i have had to revert back to using Export Frame 1, and now my preloader is hanging like it used to. all other pages are fine. and the scroll bar gives no more worries.
ofcourse, the preloader is back to the way it was but at least my text can be seen
any reasons for this problem ?
any help appreciated thankyou
Export Classes To Another Frame But 1
Hi There!
I have 2 components I am using in a recent movie, just small things like a component that generates the date/time, an flv player and also an mp3 player, however becuase of preloading the movie, I want to export the classes at say frame 10, instead of 1....... so theres not a big download before seeing anything.
However when doing this, the components all break and no longer work I thought maybe go back to the creator, yet they are 3 different people so I am wondering if it is something I am doing wrong as apposed to way the components are written?
All the components dont actually appear until say frame 30
Thanks for any help in advance
Why Export Classes In Frame 2?
Apparently similar things have come up before. I just read Flash Gordon's thread where he offered $150 dollars for a similar problem.
But I'm still trying to understand, please. Say I have unchecked 'Export in first frame' for every item in my library except for a preloader. I then placed every single item from my library in the second frame of my movie, and the preloader in the first frame.
The preloader waits until stage.loaderInfo.bytesLoaded==stage.loaderInfo.byt esTotal and then uses .addChild(new Foo()) to add the library items. (That are all in the second frame, remember.)
This will apparently create an instance of the class. But apparently the graphics included in the library movieClips will not be included when that class is instantiated. If I put trace statements in the constructor for Foo, they trace, so it's being created. But the graphics that I drew inside the Foo library movieclip are missing.
However, if I gotoAndStop to the second frame, where Foo is placed on the stage, and then use new Foo() this instance of Foo will include the graphics that were added in Flash.
This makes it seem to me that the definition of the Foo class has changed between the first frame and the second frame. Why would they make Flash operate in this way? Shouldn't a Foo be a Foo be a Foo, no matter what frame I'm in?
(I've switched my preloader so it just goes to the second frame, so this isn't an immediate problem, but I want to understand what's going on here.)
How Do I Export My Classes In Frame 2?
I have a class package that I want to export in frame 2. I tried using the settings option in the Flash tab of publish settings. But that is not working...
I am missing something but I had a hard time figuring that out.
Can anybody help me with this ?
|