"Export classes in frame x" in AS3: how does it work?

My steps:
1. I have some beefy classes
2. I want my SWF to show a preload anim while it loads these
classes
3. Using the "Export classes in frame: " option, I move my
classes to frame 10
4. I put a stop(); on the first frame and test w/ the
bandwidth profiler visible.
Desired + expected behavior:
1. My preloader spins, and I have minimal K on the first
frame and then the main hit on the chosen export frame.
Observed behavior:
1. all of my classes are available on the first frame (ala,
all of my logic can be performed on the first frame, even though
the framehead is sitting firmly on frame 1)
2. there is still a spike in K on the output frame
Notes:
- am I just missing the point here? Is this how it always
worked?
- why is the Document Class available in the first frame? Is
this mandatory w/ the new structure?
Thanks for your time and help-
cgs

Thanks, moccamaximum, I believe this did open up a connection and now I have no errors.
However, my problem still persists.
Here is what it says in the output of my AS3 flash site:
_root
SWFBridge (AS3) connected: host
SWFBridge (AS2) connected as client
imgNum: 10
thumb: images/image1.jpg
image: images/image1.jpg
thumb: thumbs/image2.jpg
image: images/image2.jpg
thumb: thumbs/image3.jpg
image: images/image3.jpg
thumb: thumbs/image4.jpg
image: images/image4.jpg
thumb: thumbs/image5.jpg
image: images/image5.jpg
thumb: thumbs/image6.jpg
image: images/image6.jpg
thumb: thumbs/image7.jpg
image: images/image7.jpg
thumb: thumbs/image8.jpg
image: images/image8.jpg
thumb: thumbs/image9.jpg
image: images/image9.jpg
thumb: thumbs/image10.jpg
image: images/image10.jpg
4
_root
4
163
_root
163
67
_root
67
43
_root
43
56
_root
56
20
_root
20
85
_root
85
64
_root
64
3
_root
3
I don't understand how its able to trace that it is getting the images in the path, yet there are no images to be seen in the gallery!
I found out that my gallery does work (with images and all) when loaded into a movieclip in a blank AS2 file instead of my AS3 site. Am I doomed since even localconnection will not help?

Similar Messages

  • EXPORT CLASSES IN FRAME 2 PROBLEM

    Hi to all, i am having a problem trying to do a simple preloader.
    i am making a game, only 2 frames, the first is preloader screen, the second is the game (all in actionscript):
    if i set EXPORT CLASSES IN FRAME 2, after the game is preloaded ( this.loaderInfo.addEventListener(Event.COMPLETE, onComplete)
    i execute gotoAndStop(2).
    all ok.
    but i see that some creatures (movieclips) DOESNT SHOW. those creature are there, all works fine, but simply are not visible!!! this happen also with some textbox......
    i trace (creature.visible)... and // give :    true
    also   trace(creature).... // give:   object[creature]       all ok here...
    also properties works fine      trace(creature.attack); // gives the right value, is all ok.....
    if i set EXPORT CLASSES IN FRAME 1... all works fine (but not the preloader, that doesnt load. simply a white screen of course, until all is loaded, then the frame 1 instantly execute gotoAndStop(2), starting the game)
    i dont understand, what happen to movieclips when i export in frame 2? (not at ALL, something is visible... something not.... ))))

    Yes, are all unchecked
    . only "export in actionscript" is checked, but others are all unchecked.
    i have tried both, checked and unchecked.
    but... if i have Exactly the same creature, added for 2 different players... the first player has all creatures ok.
    the second not.....
    the second will not show his creatures (0 shown, no matter what)
    if i change the Exportclasses in frame 1... then all goes perfect, all players have shown all correct.... i dont understand why.
    i also have prolems with some textbox that doesnt show if i set Exportclasses in frame 2.....

  • ActionScript Project - Export classes in frame 2?

    I have a holder swf that loads in a swf that has its own built in preloader. Problem is those preloaders are not seen. The loaded swf only displays after it is 100% complete. On its own, the swf with preloader works fine.
    I created the preloader by using the Frame metadata tag:
    (import classes etc.)
    [SWF(frameRate=60, width=900, height=580, backgroundColor='#2A3146')]
    [Frame(factoryClass="screens.Preloader")]
    public class MainClass extends Sprite
    Then in the Preloader class when all is loaded:
            private function onLoaded():void
             this.nextFrame();
             var mainClass:Class = Class(getDefinitionByName("MainClass"));
             if(mainClass)
                 app = new mainClass();
                 addChild(app as DisplayObject);
                app.start();
    In the holder swf it does something like this to load the swf:
                gameLoader = new Loader();
                gameLoader.load(new URLRequest(gamepath));
                gameLoader.contentLoaderInfo.addEventListener(Event.INIT, onGameLoadStart);
                gameLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onError);
            private function onGameLoadStart(e:Event):void
                preloader = gameLoader.content;
                addChildAt(preloader,0);
    I thought this was the to do a "export classes in frame 2" kind of thing in an actionscript project, and it works great on its own but not when loaded inside another swf. Is there something I'm missing?
    I know I could just built a preloader in the holder swf, but the holder swf is loading in games that all have a unique style on thier own and the games' preloaders all dipict its games style.
    Thanks.

    You were right. It was the Loader not having the size. After your post I checked the to see if the server was serving with the right mimetype and with no g-zip compression. Everything was in in correct order. Then I checked from my connection at home and everything is loading as intended. Come t find out its something with our firewall. When checking from work and the swfs are on a server outside our firewall the total bytes are unknown. If they are on a server within our firewall they are fine. (Most problematic in Webkit browsers). So I guess i was going about it the right way. Thanks for your help.

  • Properties Class, How does it work

    Hi
    I was struggling to find how to use Properties Object, to read properties file, then I saw the following solution:
    fis = <classname>.getClass().getResourceAsStream("<prop file>"); (1)
    prop = new Properties();(2)
    prop.load(fis);(3)
    fis.close();(4)
    This works fine, but I am not able to understand, how does it work?
    <classname>.getClass() should return a class object, and this class must be havaing getResourceAsStream() method, which is used by the properties object. But what is the need of first getting a "class" object. Our aim is to open the Properties file, then why do we need any reference to the current class.
    Can anybody explain the jargon of the line -(1)
    Gaurav

    the Class class is defined in the lava.lang package. The java virtual machine (JVM) uses a class loader to load class definitions from wherever <g> into memory, ok? The Class class represents the JVM's internal holding of a class definition (as opposed to instances of the class itself).
    To get the Class for any class, you can use the getClass() method on any object, or you can use the <classname>.class syntax. Either way, you get an instance of Class.
    The Class class contains some utility methods about class definitions prresent in the JVM. Importantly, the Class object for a class contains a reference to the class loader that loaded the class. You get it with the getClassLoader() method. The class loader is a thing that knows how to get a class definition from a local drive, or of a jar file, or off the web (if you are using an applet), or whatever. If one class needs another class to work, the class loader knows how to get the definition for that other class.
    Say I have a class
    class Foo {
       int bar(Baz baz);
    }and another one
    class Baz {
    }And both of these are in a jar file at http://z.com/applet1.jar
    An instance of URLClassLoader will be used to fetch class Foo. When Foo needs the definition of Baz, that same loader will be used to get Baz.
    A jar file (or a directory on your local drive) can contain anything at all, not just .class files. It might contain .prioperties files. These are called "resources". If you bundle them up with your class files, then the class loader that loaded the class files can also get them. So if your widget has gif files that it uses for icons, you just bundle them all up together.
    Of course, Class.getResource() is just a convenience method for Class.getClassLoader().getResource().

  • How does composition work?

    How does composition work?
    Can someone explain it to me ,some example for me would be better.

    Composition and Aggregation are two important UML Concepts. Both of them are associations. They explain how one object is related to another object. So lets talk about all three.
    Association: This means that one object uses another object. For example, you use your car so we can say that you are associated with your car. In UML this is drawn as a plain line between the two objects.
    Aggregation: This means that the target object is part of the parent object. However it is important to note that an aggregation can have a cardinality of 0. Some simple examples are the doors of your car. This is drawn as a line between the classes with an empty diamond on the side fo the object doing the aggregation.
    Composition: This is a form of aggregation in which the object doing the aggregation (the object grouping the child objects) has life cycle control over the child objects. By this I mean that the object being aggregated cannot exist outside the aggregating object. An example of composition is a position on a checkers board. If we create the class CheckersBoardPostition, this class cannot exist outside of our class CheckersBoard. So we say that the CheckersBoard is composed of CheckersBoardPositions. This concept is drawn as an aggregation line, except that in this case the diamond is filled in.
    Generally when determining relationships of objects you ask the questions "Is a?", "Has a?" and "Uses a?"
    If you answer "Is A?" with "yes", then it is inheritance (aka generalization) Eg: A bar stool is a chair.
    If you answer "Has A?" with "yes", then it is aggregation. Example: A car has a wheel.
    Once you determine "Has a?" then you ask, "Can the aggregated object exist outside of the aggrgating one? In the case of wheel and car, the answe is "yes" and thus it is not composition. If the answer is no, then it is compostion.
    If you answer "Is A?" with "yes", then it is association. For example: A person uses a car.
    The concepts have the following importance. The top one that applies is used to model the relationship.
    Generalization > Composition > Aggregation > Association.
    -- Derisor

  • BPEL Engine: How does it work?

    "[BPEL].. Engines will come in a variety of form factors and use different techniques for runtime representation of processes, including:
    * interpretative
    * code generation
    * Obj Oriented models of Activities
    * reduction engine based on Pi-Calcolus and related concepts"
    [P. Brown& M. Szefler]
    How does it work Oracle version of BPEL Engine exactly? Does it make a package (.jar) of Java classes and process them like usual Web Applications?

    It is based on a mix of the first 3 techniques. The code gene part is really internal and is more about just in time compilation and performance optimization than generation of a Java application. -Edwin

  • How does 'RHPH_STRUCTURE_READ' work ?

    Hi all,
    I am using function RHPH_STRUCTURE_READ to find my system objects, but I don't understand how it exactly works, on attribute WEGID precisely !
    Here is the list of what I need to find :
    - O objects
    - SM linked to O
    - SE linked to SM
    - E linked to SE or E linked to CE
    For the first one, I use wegid 'O-S-P' (but I don't see what it does mean).
    For the two followers, I use otype 'O' and resp. wegid 'O-SM' and 'O-SE'. Is there a way to do from SM to SE without using otype 'O' and this wegid ?
    For the last one, I didn't find how to perform it !
    Someone can explain me how does it works ? My way to test it is really risky !
    Last question, is there a way to find all my O objects without notify an objid ?
    Thanks for your help
    Regards

    DATA:  v_wegid  LIKE t778a-wegid.
    DATA: T_PLVAR LIKE P1000-PLVAR,
          T_OTYPE LIKE P1000-OTYPE,
          T_OBJID LIKE P1000-OBJID,
          T_BEGDA LIKE P1000-BEGDA,
          T_ENDDA LIKE P1000-ENDDA,
    get data for 2 levels
      CALL FUNCTION 'RHPH_STRUCTURE_READ'
           EXPORTING
                plvar             = t_plvar
                otype             = t_otype
                objid             = t_objid
                wegid             = v_wegid
                begda             = t_begda
                endda             = t_endda
              PUP_INFO          = 'X'
              WITH_STEXT        = 'X'
                tdepth            = '3'
           TABLES
                stru_tab          = orgstru_tab
           EXCEPTIONS
                catalogue_problem = 1
                root_not_found    = 2
                wegid_not_found   = 3
                OTHERS            = 4.

  • How does this work?

    This is not a complaint, but a confused sigh of admiration. I've got an email account at the university where I teach. When I got my iBook, it took me a while, and a few conversations with IT at the school, to get this account working in the Mail application. (Since I have a Verizon DSL at home, I had to include that SMTP as the outgoing server.) Anyway, I synched this mail account (along with my AOL and .Mac accounts) onto the iPhone, and it works perfectly, both incoming and outgoing. I didn't have to change any of the settings. I thought I was computer savvy, but I can't wrap my mind around this. It seems like magic. How does it work?

    The sync process with iTunes transfers the email account settings (for your chosen accounts via your iPhone sync preferences) from the Mail application on your Mac to the iPhone's email application.
    The iPhone is running OS X and the iPhone's email client can be considered a mobile version of the Mail application.

  • My iPhone was stolen and I have contacted the police who are using the meid number to locate.  How does this work and what are my chances of getting the phone back?

    My iPhone was stolen.  I used Find My iPhone app to lock it and display a message.  The phone has not connected to the internet to locate it.  I contacted the police and they have taken my meid number.  How does this work and what are my chances of getting the phone back?  Are there other ways the theif can use it.  I was told once they put in a new sim card and use it, whatever software the police have, it will show up.

    Honestly? In the US (I can't speak to other countries, though I doubt it works much differently in a lot of the world) The police took your report and filed it either in their computers or, on paper. They will now not think of this again. The only time it will cross anyones mind is if, in the course of entering information into evidence about items recovered or seized at a crime scene, the serial number of an iPhone that was found/seized happens to match yours, in which case you will be contacted.
    The police in the US can and will do nothing to 'blok' the phone and it's not worth their time to try and locate it unless you know for a fact that it was stolen by a big time drug lord, master criminal, or some other such prime target and they can get a court order to track the location of the phone in order to locate this individual for your own purposes.  If they do that, they'll probably keep him under surveilance for a year or so before they act.
    Basically, the police don't care about your phone. If they find it, they will give it back to you. They are not, however, going to go looking for it. They have better things to do.
    I'm sorry, but that's the way it is.

  • Was told a USB device would create a PDF automatically from the data contained within when plugged into my USB port. Doesn't seem to work. How does this work and how can I fix the device I received?

    Acrobat is not on the USB device - only Adobe Reader needed on the PC. How does this work? How can I fix this device if at all?

    You need to ask the people who sold it to you. Doesn't sound like it has anything to do with Reader.
    However, you should be wary of devices that automatically try to open files when plugged in. They can also infect your computers with all kinds of viruses or malware.

  • HT2357 So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    Fantastic!  Didn't work at first so restarted App store and tried again.  This time it asked 'ignore update'.  All gone!

  • TS1425 My co worker has given me his iPod to take home and transfer his music to my laptop, however, I am unable to access his music to download it to my computer.  How does this work?

    My co-worker has given me his iPod to take home and transfer his music to my laptop, however, I am unable to access his music to download it to my computer.  How does this work?

    You need to transfer the iTunes Library from the most recent backup you made before the hard drive was replaced.
    You can't transfer the full iTunes Library from the iPad back to iTunes.
    There are third-party Windows applications that will transfer data from an iOS device, but they don't re-create the iTunes Library exactly as it was before.

  • How does Remote work with Apple TV?

    How does Remote work with Apple TV?
    1. Does Remote, "Play" the music that resides on your iPod Touch>Apple TV>Home Speakers.
    OR
    Does Remote "Control" the music that resides on Apple TV HD>Home Speakers.
    (If so... say you have a iPod Touch that only holds 8GB's but your music collection on your Apple TV exceeds that amount.
    Will Remote still "Control" the larger music collection on Apple TV or your computer?)
    2. Will iPod Wifi work on a patio outside a home to control Apple TV inside the home?
    thank you in advance, Tom

    Remote is a way to control iTunes on either your computer or Apple TV using a WiFi connection. See this article for complete instructions.

  • I got a itunes gift card and when i try and buy some thing it asks me for my credit card details how does that work when i have £15 on my fone that i got on a gift card?

    i got a itunes gift card and when i try and buy some thing it asks me for my credit card details how does that work when i have £15 on my fone that i got on a gift card? as i am trying to buy a song and it is starting to really cheese me of now where it keeps asking for credit card details is there a way round it with out having to use a credit card?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I would like to know which app/software in MAC gives us the same feature that is provided by System Restore in Windows, and how does that work

    I would like to know which app/software in MAC gives us the same feature that is provided by System Restore in Windows, and how does that work.

    Time Machine is one such program, although it is a recursive backup program which offers limited archive capability, based on the capacity of the backup destination, and it requires you set it up before you start editing your files.   Some programs are also Versions aware, which offers a kind of restore capability by file.  Again needs to be setup before you start editing.
    Just a for-your-info:
    Mac is not an acronym, it is a nickname for Macintosh.

Maybe you are looking for

  • Write data to local xml file

    Does anyone know if there is a way to write data to a local xml file using the Connection refresh Button??

  • How to merge two storage drives into one partition-help

    THis is on an iPad-Please excuse for any typos I Am working on a project of restoring a macbook pro from old parts that I found. It works!!! But the HDD that i salvadged is ancient and gets about .15 MBPS. Not good. Its an apple certified and apple b

  • J2EE server stops while stopping irj application

    Hi We are getting Problem while trying to stop irj application before applying Patch 2 SP2 in EP 6.0. The server stops and displays message connection Lost in admin tool. Pl help me to solve the Problem. Regards Atul

  • Checkpoint not completed

    Hi All In production system i see the following warning frequently in db13 BR0976W Database message alert - level: WARNING, line: 5447966, time: 2008-11-11 06.01.03, message: Checkpoint not complete BR0976W Database message alert - level: WARNING, li

  • Issue with sign

    Hi I Have createdd a form with a signature box on in Acrobat XI I have sent it to a client who has only got Adobe reader. when the click on the sign box the box flashes green for a second and nothing happens also all of the sign tool bar is grey out.