My container.swf does not work

Therefore I am applying some good advice given to me - but I can't seem to make it work - first of all, I just got a new Flash file, made the dimensions of the same to all 7 banners background, placed this script of action on the framework.

================

var bannerArray:Array is ['HigherThroughputRO.swf', 'IWICSlogo.jpg', 'GL_Hanbin.jpg', 'NoTowers.jpg', 'Semaphore.swf', 'MoreSky.swf', 'TinCan.swf', 'TinCanB.swf'];.
Banner string: var = bannerArray [random (7)];
trace (Banner);
this.loadMovie (banner);

=====================

can I get these messages in the error console Flash:

====================

* Error * scene = scene 1, layer = Layer 1, frame = 1:Line 1: statement must appear in the onClipEvent/Manager
var bannerArray:Array is ['HigherThroughputRO.swf', 'IWICSlogo.jpg', 'GL_Hanbin.jpg', 'NoTowers.jpg', 'Semaphore.swf', 'MoreSky.swf', 'TinCan.swf', 'TinCanB.swf'];.

* Error * scene = scene 1, layer = Layer 1, frame = 1:Line 2: statement must appear in the onClipEvent/Manager
Banner string: var = bannerArray [random (7)];

* Error * scene = scene 1, layer = Layer 1, frame = 1:Line 3: statement must appear in the onClipEvent/Manager
trace (Banner);

* Error * scene = scene 1, layer = Layer 1, frame = 1:Line 4: statement must appear in the onClipEvent/Manager
this.loadMovie (banner);

Total ActionScript errors: 4 reported errors: 4

========================

In addition to code errors, another question that I have is that I also have to make a movie of size even clip and put the code on the first frame of THIS or is it quite a bit to have the code on the first frame of my background of dimension of banner? In other words, we still have to do a clip or can leave us as empty a container with just the background and the dimension of the stage appropriate for random banners?

Thank you very much

KO

You should cut all this code, click on the first frame of the movie, open the control panel actions and be sure that it says 'Actions-Frame' in the upper left corner, then paste.

Tags: Adobe Animate

Similar Questions

  • load external swf does not work properly

    Hello, I'm trying to create universal charger flash games on an entertainment site. What I want is to make a sort of container (A SWF) that will load another flash him (SWF) B (by some params).

    SWF B could be anything - AS1 / AS2 or AS3 flash. A SWF is programmed with AS3. Problem is that not all SWF games, I try to load it, works very well. Some games lost their click events, some games won't load at all, some games are corrupt. When I run that games separately (do not use my charger), the games works fine. Why is this happening? Why some flash games do not work correctly after loading by another flash?

    I use the Loader object to manage this, without any special parameters - even on the examples on the AS3 Bible book...

    Could someone help? Is it possible to manage the loading of another games?

    Thank you

    Zdenek

    Yes, that would probably work.  You must set the _lockroot property to any movieclip you load the file in. (holdingMC._lockout = true; where holdingMC is any movieclip you load in)

  • loaded SWF does not work properly

    I created a maze game (the idea is to draw a line to connect between 2 video clips in the wall of the maze)

    This is the code of the game:

    Stop();

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    We draw or not?

    var drawing: Boolean;

    var isStart = false;

    var drawingSprite:Sprite = new Sprite();

    addChild (drawingSprite);

    drawingSprite.graphics.lineStyle (3, 0 x 000000);

    drawing = false; to start with

    stage.addEventListener (MouseEvent.MOUSE_DOWN, startDrawing);

    stage.addEventListener (MouseEvent.MOUSE_MOVE, draw);

    stage.addEventListener (MouseEvent.MOUSE_UP, stopDrawing);

    function startDrawing(event:MouseEvent):void {}

    drawingSprite.graphics.moveTo (mouseX, mouseY);

    drawing = true;

    }

    draw function (event: MouseEvent) {}

    {if (Drawing)}

    drawingSprite.graphics.lineTo (mouseX, mouseY);

    }

    }

    function stopDrawing(event:MouseEvent) {}

    drawing = false;

    }

    Adds an event listener on the stage with the move of the mouse event.

    stage.addEventListener (MouseEvent.MOUSE_MOVE, detectHits);

    function detectHits(event:MouseEvent) {}

    If the mouse touches the edges of the labyrinth, return to the

    first scene and remove the mouse move event listener to the

    Stadium.

    If (wall_mc.hitTestPoint (mouseX, mouseY, true)) {}

    If (isStart == true) {}

    drawingSprite.graphics.clear ();

    gotoAndPlay (3);

    isStart = false;

    stage.removeEventListener (MouseEvent.MOUSE_MOVE, detectHits);

    }

    }

    If the mouse button point the brush, proceed to the third stage and

    remove the mouse event listener move scene.

    ElseIf (hit_mc.hitTestPoint (mouseX, mouseY, true)) {}

    If (isStart == true) {}

    drawingSprite.graphics.clear ();

    gotoAndPlay (2);

    isStart = false;

    stage.removeEventListener (MouseEvent.MOUSE_MOVE, detectHits);

    }

    }

    }

    mc_start.addEventListener (MouseEvent.MOUSE_OVER, fl_MouseClickHandler);

    function fl_MouseClickHandler(event:MouseEvent):void

    {

    isStart = true;

    }

    works very well and published as swf

    When I try to load this game to another fla

    the market never properly Yes the loaded swf file and the game starts well

    but when I start to draw the line in the maze and without touching any wall it moves on the chassis (lost u)

    The error is always using mouseX and mouseY.  If you had failed to compensate for the placement of the loaded swf file then you will would not compensate for mouseX/Y for one would be the same value as mouseX/Y for those responsible.

    You need to deal with the overall conversion to local or you must build in compensation.  Because it is a fixed value (35), you can set the code in the swf file to use a Compensator variable that is set to zero by default in the swf file (for when he plays his own).  When you load it into another file, then you need to wait after is fully loaded and loading file assign a different value to this trim... in this case it would be-35

    Another way to solve this problem would be to move all the content in the swf 35 pixels to the right and downwards (in itself).  Then it would be unnecessary to adjust the positioning and the mouseX/Y values would be the same for the main movie and the one responsible.  Then, the only problem might be using the SWF itself.

  • LocalConnection between another SWF and main SWF does not work!

    Hello, can someone help me!

    I have a main SWF within several sovereign funds. I want to add the score of all levels to the main SWF.

    But I also have a code to unload each SWF before another SWF starts. I figured out how to do this.

    But I don't know.

    The code I have is something like this:

    The level. SWF

    Stop();

    var sending_score:LocalConnection = new LocalConnection()

    sending_score. Send ('_myConnection', 'add_score');

    var App_Timer1:Timer = new Timer (100.1); After 3 seconds, the timer causes the film to the next section

    App_Timer1.addEventListener (TimerEvent.TIMER_COMPLETE, startApp1);

    App_Timer1.start ();

    function startApp1(event:TimerEvent):void {}

    gotoAndPlay (105);

    }

    You are welcome.

  • Merger application, MYSQL DB-Viewcriteria 'Contains' operator does not work

    Hello

    I created Viewcriteria using "Contains" operator in the View object. Because of the symbol of the concatenation of the viewcriteria search form always displaying the message "no data to display.

    How can I use "contains"?

    Thanks in advance.

    Jdev version: 11.1.2.4.0

    DB: MYSQL

    Thank you

    Kalpana.

    How can I use "contains"?


    Refer

    https://tompeez.WordPress.com/2011/08/21/extending-viewcriteria-to-use-SQL-contains-4/

  • Encoded video does not work on Toshiba Blu - ray disc player

    I have a problem I'm trying to encode a sequence of images into a video container, but does not work the video encoded on toshiba blu - ray disc player... I use the following command to ffmpeg to encode images and convert a video:

    ffmpeg-i "C:\ManVsWigan\Frames\%d.png" - vcodec libx264 'C:\ManVsWigan\encoded.mp4 '.

    I have tried several video codecs but no luck yet
    "- vcodec mpeg4.
    "- vcodec mpeg2video.

    If you have an idea please help me

    >... I'm trying to encode a sequence of images into a video container
    Please be so kind and try to explain why you need all this?

    I mean Toshiba portable computers offers equipped with pre-installed readers and offer laptop owners to enjoy watching BD movies. Everything else is not interesting for s Toshiba support I guess that if I put t think that this question has something directly with Toshiba.

    Have you tried to find the answer on another forum?

  • get a dotted line around .swf files in my flash site now. This is new from Firefox 3. With the help of 4 on a MacBookPro. tried the fix "style no outline. does not work. any help?

    Question
    get a dotted line around .swf files in my flash site now. This is new from Firefox 3. With the help of 4 on a MacBookPro. tried the fix "style no outline. does not work. any help?

    Ah, quite understand now that I added to my doc html

    < style type = "text/css" >
    {body
    background-color: #FFF;
    }
    "'object {outline: none ;}"} '

    < / style >

  • Cascades - Vertical alignment does not work after you add a higher container

    Hi all

    I am facing a problem with vertical alignment... Trying to play and to imagine a way to transfer my apps to BB10, I wanted to create a page layout and Center my components in the center of the screen. I created the necessary containers and things, it worked, but then, my baggage was obviously only in the center of the screen too.

    So I decided to add a top-level container that would hold only the background. But then, my content is not centered (in the container for the child). I do not understand why and I don't know I'm missing something.

    Here is the structure:

    {Page}
    content: container}
         
    layout: {StackLayout}
    }
    background: Color.create ("#555555")
    {Of container
    layout: {StackLayout}
    }
    horizontalAlignment: HorizontalAlignment.Fill
    verticalAlignment: VerticalAlignment.Center / / DOES NOT WORK
                
    {Of container
    horizontalAlignment: HorizontalAlignment.Fill
    layout: {DockLayout}
    }
    {Label
    text: "save location".
    horizontalAlignment: HorizontalAlignment.Left
    verticalAlignment: VerticalAlignment.Center
    textStyle {}
    Base: tsd1.style
    }
    }
    ToggleButton {}
    horizontalAlignment: HorizontalAlignment.Right
    }
    }

    Anyone have any idea on this? Is there a simple way to have centered on the content with a background full screen? I tried a lot of different ways, but none gave me the result I wanted (except setting a padding but that is not as I wanted).

    Thank you

    Add an empty container with spaceQuota 1 down. It will take all of the remaining space.

    Container {
      layoutProperties: StackLayoutProperties {
        spaceQuota: 1
      }
    }
    

    If you want to Center controls, adds another container empty in front of them.

    Also try to play with preferredWidth: Infinity / preferredHeight: Infinity and modes of different adjustment (filling or Center).

  • Works writing Maske in swf and video - Datei nicht fonts mask does not work in the swf and video files

    Hallo,

    ICH habe eine writing-Maske standing. In der Voransicht auf der Zeitleiste looks man die Maske,.

    Wie sie richtig should be.

    Aber in exportierten und swf videos. Dateien wird die Maske non dub.

    Was mache ich please.


    Hello

    I created a signature mask. In the Preview on the timeline, you can see the mask,
    as it should be correct.
    But in exported swf videos. files the mask does not work.

    What I am doing wrong.



    ocak.jpgtest1.jpg

    I don't see anything that looks like a mask on your stage effect.

    in general, I think the image hidden (below OCAKBAŞI) is visible and nothing else.  you have two other visible layers makes it difficult to see what you are trying to demonstrate.

    text mask problems generally, because the text is not broken down into vector shapes (by clicking on edit > to break > to break).

  • .swf works but .exe projector does not work

    Hi all

    I was just wondering what I'm doing wrong.  My .swf file works great _ (with FLV player and cuepoints) but when I do a projector .exe files in the same folder all or a sudden the FLV player does not work properly.  It's in the same place so all the nav for the films should be the same.

    any tips?

    See you soon

    void

    OK has soon.  None does not work the Html code.  I use AS3 edition to the latest version of flash player 10.2, but change the settings here does not help when even (I tried versions earlier)

    I have wrkaround by clips separated instead of use the Commissioner, I am now using a. FLV player and use .source = "whatever".

    to load different if necessary clips.  Seems to work.

    I would like to know how to use seekToNavCuePoint with FLV file player and projector that I would use this feature in the future.

    Thank you

    void

  • swf flash cs6 pro file does not work in dreamweaver or chrome

    Hey there,

    Apologies extreme if this issue has already been raised in the forum, I wasn't able to find it by searching.

    I created a slide show in Flash Professional CS6 and published in format swf for Flash Player 11.6 and Action Script 3.

    It presents a fine Preview in flash player. However, when I insert the slideshow in my page Web in Dreamweaver CS6 (Using the Insert-> media-> SWF command) the content does not load mode live view, or it asks me to download and install the latest version of the flash player... That I have and have done so several times now.

    In addition, when I save the document and previsualisez in my web browser (tried it on Firefox, Chrome and IE9) just slideshow comes up empty space. Flash content is always there, as when I right click in this contextual menu flash space rises.

    My question is what is the problem with my slide show? Are there known problems of Flash Pro CS6 cause this behavior? How can I solve this?

    TL; dr My built in Flash Pro CS6 swf slideshow does not work in a browser.

    WHOWWW...

    for Flash Player 11.6

    Back down to as little a possible version... 10 or more if possible.

    My advice... never... never target the latest version of the plugin... most of the users will NOT have this plugin installed.

    Down and if that doesn't work, post a link to the Web page.

    Best wishes

    Adninjastrator

  • Number of features in the CONTAINER does not work

    Hi all
    I was working on a simple word processor for the local language using JTextPane and RTF. The program works fine in Netbeans. But the JAR file does not work. For example, the program should save on the hard drive but also to read the file. The JAR version does not work so that it works correctly in Netbeans. The JAR is created using Netbeans. Can you help me?

    Thank you.

    (1) we have no idea what class instance "editor" made reference.
    (2) always specify the character encoding when reading and writing the characters or you plan to use the encoding that may or may not support characters to work of characters by default. You can use OutputStreamWriter and InputStreamReader in order to be able to specify the character encoding. I suggest that you use "utf-8", given that it will work for all UNICODE characters.
    (3) your exception handling throws away most of the useful information. Most of the logging system to pass an exception without having to convert to a string.
    (4) Please use

     tags to make code readable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    
  • Clip from movie running does not work

    Hello

    I'm new to actionscript 3.0. I created a flash movie that contains a simple clip (clip_mc) and a button (btnGo). Depending on the number of clicks of button clip_mc stop and play. It works very well with the 'Test Scene'. But when I run the SWF file separately, the action script does not work.

    Here is the code:

    import flash.display.MovieClip;

    var count: int = 0;

    btnGo.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);

    function fl_MouseClickHandler(event:MouseEvent):void

    {

    If (ExternalInterface.available)

    {

    var val: Boolean = counter ++ % 2 == 0;

    trace ("calling function fromJS with value:" + val);

    If (Val)

    {

    clip_mc. Stop();

    trace ("Stop");

    }

    on the other

    {

    clip_mc. Play();

    trace ("Play");

    }

    }

    }

    I tried to export as Movie Clip and run, it still does not work. Can someone please help me understand this.

    My guess would be that the Actionscript code works, just not in a way that you expect.  If you test the swf file alone, then chances are that ExternalInterface.available turns to the top of the 'false' because there is no html page to confirm availability.

    You will not see traces when you run a swf by itself if that's what you expect to see.  You must instead use textfields in these circumstances.

    Try to see what this value ExternalInterface.available ahead test phrases to see what value there... use a textfield, rather than by the trace.

    In addition, having Flash publish an html page and test the page html instead of just the swf file on its own.

  • IPA-test works, ipa-app-store does not work? bug?

    before you begin, let me tell you that I have not all necessary certificates and mobileprovisions files with me. I use the command-line of AIR 3.0 (as Flash CS 5.5 cannot publish using 2.6 due to bugs). I have already created files 'ipa-test' using files appropriate - that has been verified in ipad as well.

    now I would like to download this project on the apple App I tried to create 'ipa-app-store' using the distribution certificate (converting PEM so .p12) and its mobileprovision file. He couldn't. I kept it for 1 day... temporary files were there in the publication record, and the Manager tasks, he showed that Java.exe was running. At first, I thought that the problem is with the mobileprovision and certificate of distribution of files, I removed the and recreate them, but the result was the same. I create a new file with just a small rectangle inside and then published with the same code, same files (using AIR SDK 3.0)... surprisingly, it has been published. I have no idea what's going on? can someone help me please? overall, it is something like this:

    Project1: ipa-test: published (it's my main project, ipa-test using mobileprovision certificate and developer development works)

    Project1: ipa-app-store: takes eternal (ipa-app-store using the certificate distribution and distribution mobileprovision does not work)

    Project2: ipa-test: published (it's just a test file, which has only a rectangle in it. tried ipa-test using the same files - that I used to create ipa Project1-works test...)

    Project2: ipa-app-store: published (I tried the ipa-app-store by using the SAME FILES THAT I have USED TO CREATE PROJECT1 IPA-APP-STORE... WORKS!)

    I thought that it is because I have many assets in Project1. I deleted them all and I've tried... did not... In fact, I added those all assets in Project2, then I tried... Published! -I think that this means that there is no problem with my certificates.

    In short, Project1 is published with ipa-test, but not with ipa-app-store...

    Here's my workflow (how I created the certificate file and the mobileprovision distribution):

    File mykey.key created.

    He converted. CSR file.

    downloaded to apple.

    Download and install distribution_identity

    distribution_identity at PEM

    . PEM to .p12

    mobileprovision profile of apple--for the distribution and no ad - hoc Web site

    I would be very grateful if someone can help me...

    Amish hi...

    After spending most of the day, finally I could create the .ipa file. What I discovered was that there was a problem with a particular image. In fact, I have 5 frames, each containing a number of lines code. For the 5th Framework, I used to dynamically load the .swf (which included an inside action script). I read that it was not based so I copied all the codes and graphics that and pasted in frame 5. The problem which has finally understood was with this frame. I deleted this frame on the spot because I was too tired and too disappointed. I have no idea if the problem with the graphics/library/ACE. I even tried to copy the frame 5, create a new FLA and create a .ipa; but this does not work too. But I'm happy now that I have downloaded my app on App Store.

  • link work in Flash 8, but it does not work in Dreamweaver

    I made a Flash file swf that contains the button and the ball. When I put the mouse over the button, the ball pops up.
    And also I managed to attach a link to the button using action script.
    Strange thing is the link works fine when I use test movie with Flash 8 but when I insert it into Dreamweaver, although the ball works very well with the mouse, but the link does not work.
    Can someone tell me why?
    Why it works with test movie in Flash 8, but not in Dreamwever.
    Thank you much in advance.

    I have just myself solve my question.
    In a preview of Dreamweaver, the link does not work, but once the page is published, it works.
    Thank you.

Maybe you are looking for

  • How to unlock my toolbars to change the order they are in?

    Well, I have a character on my toolbar that is covered by the placement of one of my bars. I want to unlock the toolbars so that I can change the order in which they appear. On Internet Explorer, you can unlock them and move them.

  • Attentive display options

    Attentive display is a great feature, but there is an icon/widget, what would be really nice - in addition to a clock (or other), show the battery current level at a glance. Maybe a notification from the server of the battery whenever the level chang

  • 3D-printer

    For the study, we need to do a 3D printer, but we want to neglect with labview (homemade 3D printer and no software has yet). Only my problem is reading in the .stl files, but after reading I'm not a 3D image. So my Question is what I have wrong or f

  • Windows experience index

    Recently I restore my laptop to dell factory image and after that my windows experience index becomes lower. Previously, it is 5 but it's now only 4.3. I think that the RAM and the processor side has been reduced.

  • Removal of Windows 8

    Hi guys I have a HP Pavillion DV6 that came with windows 7 installed, I bought and installed windows 8 pro, but now I want to go back to windows 7 anyone knows how can I uninstall windows 8 and reinstall windows 7 please Thank you