EXPORT CLASSES IN FRAME 2 PROBLEM

Hi all, I'm having a problem doing a simple preloader.

I do a game, only 2 images, the first is preloader screen, the second is the game (all in actionscript):

If I put the EXPORT CLASSES IN FRAME 2, after that the match is preloaded (this.loaderInfo.addEventListener (Event.COMPLETE, onComplete)

I run gotoAndStop (2).

everything is ok.

but I see that some creatures (movieclips) DO if POSTER not. these creatures are there, everything works fine, but are simply not visible! This also occurs with some textbox...

I trace (creature.visible)... and / / give: true

also marks (creature)... / / provide: object [creature] all ok here...

Properties also works very well trace (creature.attack); gives good value, is all ok...

If I set EXPORT CLASSES in IMAGE 1... everything works fine (but not the preloader, which is not supported. just a white screen of course, until everything is loaded, then the frame 1 instantly run gotoAndStop (2), starting the game)

I don't understand, what happens to movieclips when I export in frame 2? (not at ALL, something is visible... something not...) ))))

any class that is not exported until the frame 2 should not be instantiated until the frame 2.  you will need to fix this.

No one can say that all you need to do without inspect all code that runs in the frame 1.  (and it is unlikely that someone wants to see all your code in this forum).

Tags: Adobe Animate

Similar Questions

  • Class access Frame problem

    Hello

    I'm doing a simple game where an enemy pursues the player if they get to close and stops if the player travels a certain distance away.

    I have a script for the enemy that looks like this:

    ------------------------------------------------------------------------------------------ ------------------------------------------------------

    package {}

    import flash.display.MovieClip;

    import flash.events.Event;

    to import flash.geom.Point;

    SerializableAttribute public class enemy extends MovieClip

    {

    var positionX:int;

    var positionY: int;

    public void Enemy()

    {

    addEventListener (Event.ENTER_FRAME, enemyChase);

    }

    public void setPosition (playerX:int, playerY: int)

    {

    positionX = playerX;

    positionY = playerY;

    }

    public function enemyChase (event: Event): void

    {

    var a: Point = new Point (positionX, positionY);

    var loc:Point = new Point (x, y);

    var speed: Number = 1

    If (((Math.abs (positionX-x)) < 90) & & ((Math.abs (positionY-y)) < 90))

    {

    var vel:Point = des.subtract (loc);

    Vel. Normalize (speed);

    x += vel.x;

    y += vel.y;

    }

    }

    }

    }

    ------------------------------------------------------------------------------------------ ------------------------------------------------------

    In my main script, I create a variable of the class of the enemy as follows:

    var enemyScript:Enemy = new Enemy();

    and on the function of the framework to enter into the main script I update the player to the class of the enemy's position, as follows:

    enemyScript.setPosition (player.x, player.y);

    However, it does not work. If I put the little something in the class of the enemy enter frame function as:

    x += 1;

    Then the enemies on the screen pass each image, so I know that the class is properly connected. And I don't get any errors when I compile. What Miss me?

    Thank you

    P.S. works of function enemyChase when I put in the Main function and bind directly using instance names, it's just run another class which is the problem

    so in enemys init() function call you without argument, then inside setPosition() setPosition()

    you get

    positionX = MovieClip (root).player.x;

    positionY = MovieClip (root).player.y;

  • XAVC exports a drop frames

    I'm working on some effects Visual of low-medium for local production; their post workflow is all 4 k (shot on red, edited on the body). They send me trimmed body seq, I bounce AE individual plans to help replace w / function AE Comp, work on them, making the shots on and send things finished to the customer. I was export XAVC. MXFs by SOUL (XAVC Intra 4 class k 480 3840 x 2160), but I found that part to make short shots 1 framework. The source parameters and output are the two 23.976 progressive, is not a question of DF/NDF. The length of the comp, ins and outs in AE are certainly all very well. Made out in a different codec (Animation of QT or DPX, for example) works perfectly well. Add a frame at the end of my comps does not seem to do the trick, either, for some reason any. Any suggestions?

    If no one can help to solve the problem, anyone have any suggestions for other codecs? Specifically, the colorist asked that I DIDN'T send the Animation of QT files; The DPX files end up being HUGE... ~ 170 clocks in frames to slightly more than 5 GB. Everything must always go to the color, so I need something that is the highest possible quality. ProRes is out. DNxHR is still a few months away. They prefer the stand-alone files, instead of image sequences (although, ' eff right em has, if necessary.) Process a seq image isn't exactly a big deal...).

    Ideally, I would like to just get this XAVC thing sorted, however.

    I'm not in the team of the SOUL, so I can't comment on when their bugs could be addressed. If I read correctly this recording of bug, however, it seems that this might be a limitation of XAVC not dealing with odd numbers of frames.

  • Can I export to 30 frames per second instead of 60 frames per second?

    Hello

    Is there a way to export an iMovie at 30 frames per second instead of 60 frames per second? All my clips were imported at 60 fps (how they were shot), but I have a problem with playback on devices and systems, so I want to get to 30 frames per second. I can't seem to find a way to settle this, as 1080 p/60, 720 p/60, 540 p/60 are my only options when I try and share/export to a file.

    Help!

    Chris

    iMovie will define the project frame rate based on the first clip you add to the timeline. Add a 30 fps clip known as the first clip in the timeline panel, and then add your clips to 60 frames per second. The rate for the project should be 30 frames per second. Then go back to the first clip and read a part of it. You can then delete this clip and the pace is expected to stay at 30 fps. You can share at 30 fps.

  • Exporting a LUT of photoshop - problem

    I started recently by using Photoshop to make a 3d LUT.

    I take a first frame Pro and and then setting then export it in photoshop, it in first to apply.

    It worked ideal for a couple of hours for some reason any all single LUT I do when I import it, it now appears that the image is reversed (as a cartoon painting)

    Not sure if I've changed anything without knowing it, but its driving me crazy, I even uninstalled PS and re-installed and have the same thing.

    Any help would be appreciated.

    lut.jpg.

    In fact managed to establish what problem it was, eventually. I was duplicate the layer first before making adjustments... He loved not only in all, problem solved.

  • Registration code - class main absent signature problem

    My boss bought a blackberry online certificate signature code and we have received a set of .csi there are files by e-mail, with the following instructions:

    The following attachment will allow the BlackBerry SignatureTool to register with the Signing Authority. Please ensure that the BlackBerry Java Development Environment or BlackBerry Java Development Environment Component Package has been installed onto the workstation that will be used to sign your BlackBerry Java applications.
    To register the attachment, please follow the instructions below:
    
    1)       Double-click on the attachment
    

    Double click on the files just gives error message box at the following address:

    Java Virtual Machine Launcher: "could not find the main class. Program will exit! »

    I have installed 4.7.0.41 JDE, have also tried to install the 4.6.1 components.

    JRE is 1.6.0_11 - b03

    Thank you

    Lindsay

    I remember that the problem might be the version of JRE, try to uninstall JRE 1.6 and install JRE 1.5 (included in the JDK 1.5)

    If it won't help contact [email protected]

  • Form of InDesign, exported as interactive, frame color question

    On Mac OS 10.11.16, Indesign CC (11.3.0.34)

    I have a form that I can't see the 'look' of so I'm stuck with the way things are. This means that some fields of the form are created from a graphic image with a border of 1 point, while others are from the combination of a static graphic image with border by 1 point and a white (no background or outline) form field placed above them.

    Exactly the same color is used for each graphic frame with the 1 point rule. Only difference is that an image is static and the other is an editable text field. No effect, no overprint.

    The fields look substantially different in Acrobat.

    Any ideas?

    Screenshot below - I know there is a fairly subtle difference, but it's very annoying.

    Screen Shot 2016-09-07 at 15.13.23.png

    With PDF files interactive all the color gets converted to sRGB. Except if your document must also get exported for printing, assign sRGB as the InDesign doc RGB profile (Edit > assign profile...) and use a RGB color for the race.

    Also when you view the PDF in Reader or AcrobatPro, RGB color can be viewed in CMYK output according to your preferences. In the drive or AcrobatPro make sure your Page Preview of the overlay view is set to auto or never. Or AcrobatPro you canset the output preview > Simulation profile to sRGB. If you view the PDF file in a browser to date, you should always see sRGB and not a CMYK simulation.

  • Media offline after export - a very, very delicate problem

    OK so my problem is very strange,

    I am trying to edit a project shot with two cameras, one of them is go pro.

    When I export the project and watch the video, all pro files travel turn offline media.

    they always run great in the software and when I export only a portion of the video (with go pro and another camera) they turn out very well! However, when I try the complete sequence, she turns to offline media.

    Help! Help! Help!

    Here I'm going bananas...

    Try to delete the Cache of media files.

  • Posterize time changing frame rate problem

    Hey guys, I'm looking for this problem with my code. I'm trying to set the value of a posterize time effect frame rate. I have problems with it being not defined. I did the same process with other effects, and it worked fine.

    How to set up the effect: (things like preComp have already been defined)

    //global
    var rateProperty;
    
    
    //Setup Function
    function setup(){
        rateProperty = preComp.Effects.addProperty("ADBE Posterize Time")("Frame Rate");
    }
    //When I want to change the value
    
    
    function runGo(){
        switch(frameRateDropDown.selection.index){
            var rateDocuments = rateProperty.value;
                case 0:
                rateDocuments = 5;
                rateProperty.setValue(rateDocuments);
                break;
                case 1:
                rateDocuments = 10;
                rateProperty.setValue(rateDocuments);
                break;
                case 2:
                rateDocuments = 15;
                rateProperty.setValue(rateDocuments);
                break;
                case 3:
                rateDocuments = 20;
                rateProperty.setValue(rateDocuments);
                break;
                case 4:
                rateDocuments = 24;
                rateProperty.setValue(rateDocuments);
                break;
                case 5:
                rateDocuments = 25;
                rateProperty.setValue(rateDocuments);
                break;
                case 6:
                rateDocuments = 30;
                rateProperty.setValue(rateDocuments);
                break;
                case 7:
                rateDocuments = 40;
                rateProperty.setValue(rateDocuments);
                break;
                case 8:
                rateDocuments = 48;
                rateProperty.setValue(rateDocuments);
                break;
                case 9:
                rateDocuments = 50;
                rateProperty.setValue(rateDocuments);
                break;
                case 10:
                rateDocuments = 60;
                rateProperty.setValue(rateDocuments);
                break;
            
            }   
    }
    

    Is it possible between getting the property and set its value, you're adding / removing effects that invalidate your reference?

    Dan

  • Export of images in .rtf problem

    Probably missing me something simple here, but I can't understand why my JPEGs of my incopy document are not visible in my .rtf document. (Just the photo captions see to the top, but not the photos.) I export a .rtf from incopy.

    The images are anchored to text in InDesign (in the same frame as the text), all graphics and stories are exported to Incopy. InCopy text is exported to a .rtf.

    All other documents I compare mine appears to be implemented the same way in regards to related images and export all fines to a .rtf with images, but I am confused on what I was doing in this file that is different. using Incopy with InDesign CS6 CC would be the culprit?

    Thanks for your help!

    Well well... after I was wondering what I was doing wrong, I thought about it.

    What happened is I anchored inside frame of text (direct selection tool) AND the frame (selection tool).

    I just need to attach the frame and images export in .rtf doc.

    It took me forever to figure this.

  • Export OEM 12 diagram 10g problem

    Using 12 OEM on a 10 database, I can not select a schema export.  It allows me to select one or more, but when I hit continue he returned to the same page with no selected schema.  Does anyone know if this is a known bug?  I can't find any info about it.

    Thank you!

    It is a bug, we have the same problem I opened a SR 4 months ago and the bug is still with the development. They provided a temporary work around that you can test as well.

    You can try the following work around:

    1. to connect as SYSDBA user to the target database where export does not work. Create a view with the name used in 12 c DBs:

    2 SQL > create the view sys. "' _BASE_USER ' in select * from sys.user$;

    3 grant on the new display in read access to all users who need the export function (it will be users which connect in the DB prior to export).

    4. repeat the export function Console 'EM with any of the users DB granted.

  • Export rotating logo in 1080i problem

    Hello, I tried several settings to export a rotating 3D text logo and I always get a snapshot like this everywhere holding the images in quicktime format
    On these settings I tried; Format: QT Preset: 1080i 29.97 fps, H.264, AAC 48 khz, target 10 Mbps, Max 10 Mbit/s, order of the file: first superior
    Screen Shot 2014-09-05 at 23.49.07a.png

    Seen in first 6.0 are good like this (reverse image), identical to export to format 720 p

    Screen Shot 2014-09-06 at 11.30.40a.png

    What can I do to fix this?
    Thank you

    I resolved to change the order of the frames in progressive

  • Quality PDF export from InDesign and Photoshop problems

    Hello.

    I have problems exporting my InDesign files to PDF and keeping the Res. And it's not only images (I understand on the CIO) is the guy over there too.

    I exported as preset high quality printing - this is false. Are there other settings to make sure the PDF export retains the quality of high resolution and clarity?

    At the time of high resolution when I export jpeg or eps but not PDF.

    I also noticed the same problem when I export to PDF from Photoshop.

    I really need to create interactive and high quality print PDF of my InDesign files.

    Please can you advise.

    Thank you

    Karen

    Sounds like it might be that the setting resolution in Acrobat is not corresponding to the screen.

  • Export and download Muse site problem

    Hello

    I just finished my site in Muse, everything works correctly in the window Business Catalyst, but many will not, as soon as I have the export, load it with Dreamweaver.

    I have a few "403 forbidden" with additional error "404 not found" pages, a page appears as if she did not get the CSS... The strange thing is that I deleted this on local and remote servers to make a pure transfer and errors appear again, but on different pages, while those who were not working only not previously are well again!

    I really don't understand what's happening, it's as if some files do not download, but I don't have the error messages.

    I compared the local and remote files: they are identical.

    It is not the first site that I create with Muse and I never encountered this problem before... I've looked through the forum, but have not found an answer... What I'm doing wrong, have I missed something?

    Any help would be greatly apreciated.

    Thank you!

    Hello

    Can you publish the site on Business Catalyst as a place to test and see if it looks good? If it seems very well, then the problem may be with the download, host that you upload to. You can try to download directly to the host of Muse to see how it goes? Or you can use an external FTP client like Filezilla once and see if that fixes the problem.

    I hope this helps.

    See you soon.

  • Export keywords in Lightroom 5 problem

    I recently converted Lightroom 4 to 5.  I just noticed that not all of my keywords are exported to my jpeg file.  For example, I have the following keywords in Lightroom; Horizontal, landscape, national forest, Scenic.  My exported jpeg only has the keyword landscape.

    In the library Module, when I click on the drop down keywords and select "Will Export", I see that the keyword of the landscape.  I don't know what this 'feature' is all about.  Can someone explain it to me.  I need to be able to export all keywords.

    This problem seems to be consistent and I have a test set up file so I can repeat the problem.  Only certain keywords are not exported.

    I believe that the method to change things in the world is to export the key words in a text file and then using a text editor to remove the flag so they export not keyword, then re - import the text keyword in LR.

    As I'm at work right now, I can't look at the details. If no one responds, I'll look it up when I get home.

Maybe you are looking for