Large swf problem

My problem is this:
I am making a series of language lessons in flash for my
school to use. Because the lessons contain sound (recorded
explanations etc) and some animation, the resulting swf file is
quite big- about 15mb. So when a class of 30 all access the file on
the internet at the same time it takes ages to load. It does need
to be on the net because I want to make it available to other
schools. I suppose I could chop it up, but I don't have the
knowledge to make them play in a sequence.
Can anyone suggest a solution? I'd be very grateful and I'll
send you the finished result if you're interested in learning
Spanish.
Martin.

If you want the video to compress more so you can reduce the
file with havig good quality send it to me. Or you can compress by
flash 8 video encoder plugin.Better way is if the video file is
long make it brake this will solve your problem.

Similar Messages

  • Large SWF files

    I was playing around with ID's interactive features and came across the large SWF problem.
    In fact, last month, I posted here whinging about a 13mb SWF file it created despite my having sized all the images (12 of them) to the exact pixel size they were being used at.Adjusting the compression ing the SWF export did nothing.
    I revisited that project today and did something different.
    Instead of placing PSD images I swapped them out for a JPG of the exact image  - no re-sampling (except JPG medium compression). The SWF file went from 13mb to 3mb!
    I had used the main images as thumbnails - reducing and cropping them in ID. So I recreated the thumbnails in PShop at the exact pixel size and replaced the cropped reduced images.
    Created the SWF - 1mb.
    Still a bit large but an incredible difference.
    The lesson is, for interactve ID work  don't use PSD and don't reduce the size of an image in ID, the SWF apparently does not do the re-sampling for you.
    Thought I'd pass this on and hopefully it will help someone.
    Brian

    Graham
    Interesting.
    Here is a link to the file I have been playing with (albeit not frequently)
    http://www.wgdesigngroup.com/10/elaine/elaine.html
    (Still in the ugly, awkward grey ID html file)
    On the Art page I had used the full images to create the thumbnails.
    When I did this the SWF was over 3mb
    But when I cropped in PShop to thumbnail size, the file went down to 1.1mb. (much better than the 13mb when I was using PSDs)
    Brian

  • Load AS2 swf into AS3 swf problem

    I have a flash with AS3 and inside this swf i load in a AS2 swf.
    to load swf works just fine, but the problem is when i load this i want to go to
    a specific part of it, for example i want to go to frame 3 in the loaded swf.
    i must control this from the AS3 swf, does someone know if this is possible?
    thanks in advance

    so can i do like this then to go to frame 3 in my loaded swf?
    MovieClip(ldr.content).gotoAndStop(3); ?
    sorry for being such an airhead
    thanks for helping me out =)
    Date: Sun, 7 Jun 2009 10:25:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: load AS2 swf into AS3 swf problem
    no.
    if, in your loaded swf, you have a function f1() on the loaded swf's main timeline and you load that swf using a loader (say ldr), use:
    MovieClip(ldr.content).f1();   // to call f1() in the loaded swf
    >

  • Loading External SWF - Problem

    Hi,
    Using MovieClipLoader I want to load external SWFs - and it
    is working fine
    if external swf doesn't have anything outside it's stage,
    otherwise it shows
    everything - that's the problem.
    For example, external swf's stage dimensions are 100x150, but
    it has some
    timeline animation (some objects scrolling through the stage,
    some bouncing
    text animation that sometimes goes off-stage, etc..).
    So when I load this external movie (banner.swf), I can see
    all these objects
    that were bouncing outside this 100x150 area (the stage of
    banner). Even
    more - the size of loaded movie is larger than 100x150px
    (because of these
    off-stage objects that are now visible). This way I'm getting
    positioning
    problems, too.
    var mcl:MovieClipLoader = new MovieClipLoader();
    mcl.loadClip("banner.swf", holder);
    mcl.addListener(listener);
    holder._x = Stage.width/2 - holder._width/2;
    holder._y = Stage.height/2 - holder._height/2;
    Thanks in advance,
    B.

    Hi kglad,
    Does doing that takes only into account width and height of the stage, or also considers off stage items (as in the initial question)?
    I am also looking at this issue and we can't have all the content providers modify their pre-existing flash applications to be displayed in the appropiate scale. We are looking to any of the following:
    find a way to get adobe air/flash to not consider the off stage elements on the width/height we set to the movie.
    find a way to get the stage size from the external movie and use that to auto calculate the resize needed.
    any other alternative that allows to have the same end result, which is loading up the external content at the size we specify and displaying well. We can actually hide content outside the stage, but we still need to know the appropiate scale / size to apply to the movie so what's visible matches the are where we want to show the content.

  • SWF Problems with CS5.5

    I am trying new Flash CS5.5.  Has some new features that I need but having lots of trouble with posting the SWF.  I created a scrolling text "panel" to insert into an HTML document.  I admit I've never built that particular object HOWEVER, when I previewed it via Control > Test Movie, it worked great.
    Then I exported the file via File > Export > Export Movie, double clicked it on the desktop ... also worked great.  HOWEVER, when I emailed this file to a friend, the systems (both windows and Mac OS) asked user to select program the created the file.  It would not open without Flash in the background.
    I've used Flash CS4 and have never had a problem like this.  BUT, that's not the end of it.  When I went ahead and inserted the file into the HTML doc in Dreamweaver, then hit File > Preview in Browser > Safari (or Firefox), the following message popped up:
    "Adobe Flash Player has stopped a potentially unsafe operation. 
    The following local application on your computer or network:
    /Users/john/Desktop/jimednorman/Scripts/expressinstall.swf
    is trying to communicate with this Internet-enabled location:
    fpdownload.macromedia.com
    To let this application communicate with the Internet, click Settings.
    You must restart this application after changing your settings"
    The problems are two:
    1. I have no idea what to do in "settings".  It is not clear at all as to what I'm supposed to change.
    2. This still does not solve the problem with the swf file NOT playing unless Flash is running in the background.
    Hey, I'm on my knees!  Please help.  I've never seen this and especially never had an issue with swf not playing on its own ... given that the "test movie" ran great.
    What did I do wrong OR what have I left undone?  Or do I need a spiritual advisor? (Don't answer that

    Hello:  I, too, am new to both the forum and Flash CS5, and am having a similar problem trying to get a Flash .swf file to play on my website.  I've done all the things suggested here.  I have tried "publishing" the fla , but, as dunb as this may sound, once the file has been published, I have no idea where it went.  I can't find it anywhere on my system, and it's not in the site directory in Dreamweaver CS5.  When I test the movie and the scene, it plays perfectly.  When I double click the file, it plays perfectly.  When I export the file to the Dreamweaver page (insert>media>SWF) the gray box appears on the page and when I save the page, all the files get uploaded.  A "Script" directory is created under the root, with 2 files, and the .SWF file is in the root directory as well.  The settings in Dreamweaver are all standard and there is nothing large or weird about the SWF itself.  Essentially, it's a rotating graphic.  Very basic.  But when I open the web page, nothing appears. (Using Firefox).  Even when I switch to IE, the page opens, but the SWF does not play.  I've Googled every web site forum that addresses this issue and I can find nothing to make this work.  When I "publish", I understand an .HTML file is created that should be put into the root of the server, but I have no idea what that file is or where it goes once it's created.  A search for .html files on my system finds nothing more than the files I have created myself.
    When I open my web site, instead of just displaying the title "Home Page", it says Home Page - Flash Player Installation - Index.html.
    I just upgraded to Adobe Flash, Photoshop, Dreamweaver CS5 after years with Dreamweaver MX and Photoshop CS2.  I've never had Flash Pro at all.
    Can someone please tell me what I'm missing or doing wrong?  My hair, fingernails, keyboard, ulcer, high blood pressure and dog all thank you.

  • Copying large files problem in windows 7 x64 professional

    Hi!
    I'm new to this forum and I recently installed windows 7 professional without too much trouble in my pc. The only thigs that doesn't work are the quicklaunch buttons (which I'm expecting HP to release it until october 22). The system is functioning ok, but I discovered a very serious problem when tranferring large size files (copy or move function) to an external source (in my case a external HD: model Western Digital My book 1 TB connected via USB). 
    When I try to move a file that is larger than 1 GB the system during the process gets slower and slower rendering my system useless unless I cancel the process and restart. This only happens when moving files from my notebook to my HD.
    I've been doing my homework and I checked microsoft technet forums, here's what I found:
    1.It seems a lot of people have this problem, in particullar the ones with an asus motherboard (which I know this isn't the case). But in my case since I don't know which motherboard my notebook has, I can't come up with a solution to this problem.
    2. It seems to be a particullar problem with the 64 version of windows.
    3. The users claim that the problem was solved when they upgraded the chipset, which I somehow tried but with the current vista drivers, but the problem wasn't solved.
    4. Some users claim that by using other software like teracopy or grant full permission control seems like a workaround to this, but no in my case. It doesn't work.
    5. With sisoft sandra I managed to get my motherboard from this notebook but with no luck finding information or upgrades to a Quanta motherboard.
    Here are my system specs (link to the HP site describing it):
    Model: HP pavilion 6950la
     http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01470050&lc=en&dlc=en&cc=us&lang=en&softwareitem=ob-55781-1&os=2100&product=3753762
    Windows 7 professional x64
    I'm worried about this and it seems weird to me that no one who has tried windows 7 professional x64 has mentioned this in the forum (or even mentioning it), because I think this is a really serious issue and I would like to make sure it gets known and hopefully solved during these days. I really don't want ot get back to vista just for this. And I hope my post will be useful to the HP people so they can get around this problem.
    Thankd in advance, will wait for your answers.

    Please repost your inquiry in the Microsoft Windows 7 Performance Forum. 
     Thank you!
    Carey Frisch
    Microsoft MVP
    Windows Expert - Consumer

  • Airport Extreme, Airdisk, and Vista - large file problem with a twist

    Hi all,
    I'm having a problem moving large-ish files to an external drive attached to my Airport Extreme SOMETIMES. Let me explain.
    My system - Macbook Pro, 4gb ram, 10gb free HD space on macbook, running latest updates for mac and vista, external hard drive on AE is an internal WD in an enclosure w/ 25gb free (its formatted for pc, but I've used it directly connected to multiple computers, mac and pc, without fail), AE is using firmware 7.3.2, and im only allowing 802.11n. The problem occurs on the Vista side - havent checked the mac side yet.
    The Good - I have bit torrents set up, using utorrent, to automatically copy files over to my airdisk once they've completed. This works flawlessly. If i connect the hard drive directly to my laptop (macbook running bootcamp w/ vista, all updates applied), large files copy over without a hitch as well.
    The Bad - For the past couple weeks (could be longer, but I've just noticed it recently being a problem - is that a firmware problem clue?) If i download the files to my Vista desktop and copy them over manually, the copy just sits for a while and eventually fails with a "try again" error. If i try to copy any file over 300mb, the same error occurs.
    What I've tried - well, not a lot. The first thing i did was to make sure my hard drive was error free, and worked when physically connected - it is and it did. I've read a few posts about formatting the drive for mac, but this really isnt a good option for me since all of my music is on this drive, and itunes pulls from it (which also works without a problem). I do however get the hang in itunes if i try to import large files (movies). I've also read about trying to go back to an earlier AE firmware, but the posts were outdated. I can try the mac side and see if large files move over, but again, i prefer to do this in windows vista.
    this is my first post, so im sure im leaving out vital info. If anyone wants to take a stab at helping, I'd love to discuss. Thanks in advance.

    Hello,
    Just noticed the other day that I am having the same problem. I have two Vista machines attached to TC w/ a Western Digital 500 gig USB'd. I can write to the TC (any file size) with no problem, however I cannot write larger files to my attached WD drive. I can write smaller folders of music and such, but I cannot back up larger video files. Yet, if I directly attach the drive to my laptop I can copy over the files, no problem. I could not find any setting in the Airport Utility with regards to file size limits or anything of the like. Any help on this would be much appreciated.

  • Loading an external swf problem

    Hi everyone,
    I have started a new project for a client that wants a
    shopping cart that works through PayPal in his flash site. I have a
    working shopping cart at
    http://www.flypapercreative.com/flashshop.html
    . Some things need to changed but it is working.
    I am using the code below to load the shopping cart into my
    main movie. I have made an empty movie and gave it an instance name
    of "myContainer" and set it up in my time line. You can find my
    main flash movie at
    http://flypapercreative.com/olc.html
    myContainer.loadMovie("oregonLoveCoStore.swf");
    Both carts are reading off the same swf file. This is just a
    guess but maybe it is not reading code or instance names that are
    not on the main timeline.
    Anyone know a different way to load my shopping cart swf file
    differently that might fix the problem?
    Thanks,
    Chris

    use the MovieClipLoader class. F1 for help docs in
    Flash.

  • AS3 load external swf problem, please help...

    Hey guys, I am really in need of an answer here. I would tremendously grateful if someone has the answer. I'll keep it simple and right to the point:
    1. I have created "index.swf" in AS3. Has it's own "MainClass" class.
    2. I created "holder.swf" which is the main landing page. Has 2 buttons, for the viewer to load the site in fullscreen or standard.
    3. In the timeline of "holder.swf" I have created 2 frames, 1st frame containing the buttons, second frame containing the AS3 external swf loader script.
    It does not seem to want to load my "index.swf".
    I have tested a million different ways, it load other swf's just fine, AS2 and AS3, but for some strange reason it just will NOT load "index.swf".
    This is driving me crazy, I have a feeling it has something to do with a class conflict. I have tried (import MainClass;) in the first frame of "holder.swf" and no luck.
    PLEASE GUYS, LET ME KNOW IF YOU KNOW THE ANSWER!
    THANK YOU SO MUCHO.
    Michael

    Hey kglad,
    Thanks for the quick reply!
    Well here is the problem... With the exception of a few things I need to update, as well as implementing some better preloaders etc... the site is running alright...
    About a week ago I decided that I wanted to site to start with the above landing page. A simple "holder.swf" which would give the viewer something to look at before entering the site... (ideally I want to find a script that will begin loading "index.swf" while the viewer is still on "holder.swf", but I'll figure that out later).
    Anyhow, I created "holder.swf" as I have many times before, and for some reason it does not seem to want to load "index.swf" into the second frame when instructed to do so... does that make sense?
    So... ideally I would like the site to start on the above graphic, then once the button is clicked, "index.swf" opens up...
    It's driving me crazy, because my code works on other swf's I've tested it with, just not with index.swf, which leads me to believe there is something in the MainClass.as file which is causing it not to load...
    What are your thoughts?
    Oh, and many thanks again!!!
    M

  • AS2 swf problem under AS3 swf (probably Tweener problem)

    Hello. I have this problem for a days and it hasn't been soluted yet although I put it on couple of forums. I have 3 files: test.fla, file_as2, file_as3.
    The test.fla file is a typical Loader, which loads external swf files and shows them on the screen. After any key is pressed, the swf is deleted from the screen and loaded again.
    The file_as2 and file_as3 are the AS2 and AS3 compiled having a simple square animation (6 squares fading in from alpha 0 one by one) animated by caurina Tweener. If the file_as3 is compilated and loaded externally there is no problem (six sqares are fading in, after pressing any key the vanish and appear (loaded) again and again...). But if the swf as2 file is loaded, it shows the squares only once and after pressing any key and loading it again, it doesn't shows it at all.
    I guess it's Tweener problem, because when i trace it in AS2 file (onUpdate) it traces only at the beginning.
    How it's possible, that AS3 somehow stops all Tweeners in 2nd time loaded AS2 file?? How to fix it?? Sorry for my english, i left a link for these 3 files to find solution. Try it (test.swf) and then change path inside fla to load AS2 file... Thanks for any ideas.
    Link to download: http://www.filolozka.pl/zip/file.ZIP

    Instead of reusing the same Loader, try loading the AS2 movie multiple times using different Loader instances. Instead of using event listeners like normal, this should be easy to do because you can addChild each Loader instance, and when it is loaded it will automatically play. If you are able to load the AS2 movie multiple times at once and have it work for you, then the problem must be in the way that you removing the old movie, and reusing code to load the movie again.

  • Dreamweaver SWF Problem

    I am a relatively new Flash/Dreamweaver user and cannot seem to figure this one out.
    I have checked my root files and *believe* all of them are pointing to the correct files, but for some reason my .swf is not loading in any browser; only locally.
    The .swf doesn't show up on its own (ie: at http://www.5enses.eu/Index_.swf), which is odd. I heard it might be a path problem, but I have no idea how to fix it.
    The site is:
    http://www.5enses.eu/Index_.html
    Code is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>5 | FASHION/ART | FRAGRANCE | MUSIC | CUISINE | SEX</title>
    <style type="text/css">
    html, body { height: 100%; padding: 0; margin: 0; }
    table { text-align: center; height: 100%; width: 100%; border: 0; }
    </style>
    </head>
    <body>
    <table>
    <tr>
    <td>
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1200" height="800">
      <param name="movie" value="Index_.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="15.0.0.0" />
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->
      <param name="expressinstall" value="Scripts/expressInstall.swf" />
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="Index_.swf" width="1200" height="800">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="15.0.0.0" />
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    </script>
    </td>
    </tr>
    </table>
    </body>
    </html>
    My swfobject_modified.js and expressInstall.swf are both uploaded under a Scripts folder and loose in the root directory.
    Thanks for your help!

    Publish Settings in Flash when you're exporting the SWF:
    Under HTML wrapper settings as shown above:
    Size should be 'Percent' at 100 width and 100 height
    This will make the entire area of browser a wrapper for holding your flash SWF
    Now, the important part: Scale & Alignment: I've opened the drop-down menu in the screenshot:
    Default (Show All) will fit the SWF movie to screen, keeping the aspect ratio intact - but will leave white space on either sides, if your screen's aspect ratio and the SWF aspect ratio don't match - scales when browser resizes
    No border will fit movie to screen, but will bleed the borders with the stage color you set in Flash and may crop the content sometimes - scales when browser resizes
    Exact Fit - Shows complete content to occupy full screen width & height and doesn't maintain aspect ratio - may cause stretching - scales when browser resizes
    No Scale - doesn't scale movie to full screen - container will be 100% width & height but SWF shows at exact stage size - doesn't scale when browser is resized
    To read more about HTML Wrapper Publish Settings for Flash, look here: http://help.adobe.com/en_US/flash/cs/using/WSd60f23110762d6b883b18f10cb1fe1af6-7bd1a.html# WSd60f23110762d6b883b18f10cb1fe1af6-7bcca
    -ST

  • Transition_Manager and unloading external swf problems

    Hi there
    I´m having a few problems with my project which i although it work it has some unpleasant bugs that i´m trying to solve for days.
    When i load external swf´s they show up on top of the Menu button.Maybe because the button i´m pressing is inside the same movieclip as the Menu.
    Explaining better here´s a little diagram of my site:
    con2 MC (Instance of Menu) ---> cont3 MC (Instance of subMenu) and mainButton MC (Instance of Main)
    Here´s the general code which is inside the Painel.as
    package {
        import com.greensock.TweenLite;
        import com.greensock.TweenMax;
        import com.greensock.*;
        import com.greensock.easing.*;
        import flash.display.*;
        import flash.events.*;
        import flash.display.MovieClip;
        import fl.transitions.*;
        import fl.transitions.easing.*;
        import flash.net.URLRequest;
        import flash.display.Loader;
        import flash.events.Event;
        import flash.events.ProgressEvent;
        public class Painel3 extends MovieClip
            private var inFocus:MovieClip;
            public function Painel3():void
                setupClips();
                addEventListener(Event.ENTER_FRAME, loop);
            private function setupClips():void
            con2.mainButton.addEventListener(MouseEvent.ROLL_OVER, onOver);
            con2.mainButton.addEventListener(MouseEvent.ROLL_OUT, onOut);
            con2.mainButton.addEventListener(MouseEvent.CLICK, onClick);
                var len:int = con2.cont3.numChildren;
                for(var i:int=0; i<len; i++)
                    var mc:MovieClip = MovieClip(con2.cont3.getChildAt(i));
                    mc.buttonMode = true;
                    mc.loc = [mc.x, mc.y];
                    mc.addEventListener(MouseEvent.CLICK, onClick);
                    con2.cont3.visible = false;
            private function onOver(e:MouseEvent):void
            private function onOut(e:MouseEvent):void
            private function onClick(e:MouseEvent):void
                con2.cont3.visible = true;
    TransitionManager.start(con2.cont3, {type:Wipe, direction:Transition.IN, duration:1, easing:None.easeNone, startPoint:5} );                       
            private function loop(e:Event):void
                var distx:Number = mouseX / 1400;
                var disty:Number = mouseY / 1400;
                TweenLite.to(con2, 2, {
                            rotationY:(-70 +(145*distx)),
                            rotationX:(70 -(145*disty)),
                            ease:Expo.easeOut
    And then inside the subMenu.as class for the movieclip subMenu i have the buttons that load the external swf´s:
    package  {
        import com.greensock.TweenLite;
        import com.greensock.TweenMax;
        import com.greensock.*;
        import com.greensock.easing.*;
        import flash.display.*;
        import flash.events.*;
        import flash.display.MovieClip;
        import flash.net.URLRequest;
        import flash.display.Loader;
        import flash.events.Event;
        import flash.events.ProgressEvent;
        import fl.transitions.*;
        import fl.transitions.easing.*;
        public class subMenu extends MovieClip {
            public function subMenu() {
                // constructor code
                menu1.buttonMode = true;
                menu2.buttonMode = true;
                menu3.buttonMode = true;
                menu4.buttonMode = true;
                 menu1.addEventListener(MouseEvent.CLICK,link1);
                 menu2.addEventListener(MouseEvent.CLICK,link2);
                 menu3.addEventListener(MouseEvent.CLICK,link3);
                 menu4.addEventListener(MouseEvent.CLICK,link4);
            function link1(e:MouseEvent) {
               function startLoad()
                var mLoader:Loader = new Loader();
                var mRequest:URLRequest = new URLRequest("AugmentedReality_v1.swf");
                mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
                mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
                mLoader.load(mRequest);
    function onCompleteHandler(e:Event):void {
    var swf:DisplayObject = e.target.content;
    swf.x = -400;    
    swf.y = -300;    
    addChild(swf);
    function onProgressHandler(mProgress:ProgressEvent)
           var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
           trace(percent);
    startLoad();
            function link2(e:MouseEvent) {
                function startLoad()
                var mLoader:Loader = new Loader();
                var mRequest:URLRequest = new URLRequest("Fotos.swf");
                mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
                mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
                mLoader.load(mRequest);
    function onCompleteHandler(e:Event):void {
    var swf:DisplayObject = e.target.content;
    swf.x = -400;    
    swf.y = -300;    
    addChild(swf);
    function onProgressHandler(mProgress:ProgressEvent)
           var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
           trace(percent);
    startLoad();
            function link3(e:MouseEvent) {
            function link4(e:MouseEvent){
                function startLoad()
                var mLoader:Loader = new Loader();
                var mRequest:URLRequest = new URLRequest("Texto.swf");
                mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
                mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
                mLoader.load(mRequest);
    function onCompleteHandler(e:Event):void {
    var swf:DisplayObject = e.target.content;
    swf.x = -400;    
    swf.y = -300;    
    addChild(swf);
    function onProgressHandler(mProgress:ProgressEvent)
           var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
           trace(percent);
    startLoad();
    Like i said the swf´s show up on top of the Menu and i need it to dissapear.
    Also i want to unload the swf currently in scene so that when i load another one they don´t pile on top of each other.
    Pls help. Thanks

    Oh btw, i´m having an error 1069 Property TransitionManager not found in subMenu and there is no default value
    at fl.transitions::TransitionManager$/start()
        at Painel3/onClick()
    This doesn´t happen when i uncheck the Export for actionscript in the subMenu class but i can´t do that or else the buttons wont work.

  • Unloading external swf problem - deadline approaching

    Hi,
    We bought a component, and the developers are not real
    helpful so I thought I would try here. We have the well-known AS 3
    problem of events continuing to run even after you've unloaded a
    swf. Here is what we got:
    a main swf loads one of 7 secondary swfs, based on a button
    click. each of the secondary swfs contains the component (a 3D
    wall) that we purchased. we don't seem to have access to the code.
    we unload one swf load the next, and then after we do this a few
    times we get the following crash (output way below).
    The component does have a closeWall() function, which i'm
    assuming cleans things up. The problem is I don't know how to call
    a function on an externally loaded swf? Is that possible? In other
    words I want to say:
    var loader:Loader;
    function loadSwf(){
    loader = new Loader();
    var urlRequest:URLRequest = new URLRequest ("vidSub.swf");
    loader.load(urlRequest);
    addChildAt(loader, getChildIndex(holder));
    function unloadSwf(){
    // hey swf, close properly, before I unload you
    loader.closeWall();//or something like this
    loader.unload();
    Thanks so much if you can help.
    Doug
    Crash output:
    Error: Error #2094: Event dispatch recursion overflow.
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.display::Stage/dispatchEvent()
    at
    org.papervision3d.core.utils.virtualmouse::VirtualMouse/::handleUpdate()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    org.papervision3d.core.utils.virtualmouse::VirtualMouse/update()
    at
    org.papervision3d.core.utils.virtualmouse::VirtualMouse/setLocation()
    at
    org.papervision3d.core.utils::InteractiveSceneManager/org.papervision3d.core.utils:Intera ctiveSceneManager::handleMouseMove()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.display::Stage/dispatchEvent()
    at org.papervision

    I feel for you...
    You may want to try to instantiate the thing not through
    adding loader to display list but accessing application domain and
    creating an instance of its class. Some application will not do a
    thing if you just add them to display list and accessing their
    interfaces (I love doing that for one :-). In any case - I am not
    sure it is such a good idea to add the loader directly - not within
    INIT event listener.
    You may want to try accessing their application domain and
    loop through its properties to see which ones are enumerable. In
    the error stack you can see some their classes so you know already
    what to access. For instance there is
    org.papervision3d.core.utils.InteractiveSceneManager class.
    I don't say anything new but it looks like there is the same
    event flying around which is dispatched by some listener causing
    recursion. Can it be that your custom events have the same type as
    theirs? Try to listen to their events through making listener
    listen in capture phase by setting third parameter to true:
    blah.addEventListener("eventType", eventHandler, true) - you may be
    able to explicitly remove their event listener if you know which
    one. Or, perhaps, this is your mouse event that conflicts with
    theirs...
    Sorry I cannot be more helpful.

  • SWF Problem in FireFox

    View the link below in FireFox, then in another browser, and you'll see that there is what appears to be a break after both swfs (one is the "matrix" display, the other is the menu).
    I have racked my brain, scanned the code, tried different methods, but cannot seem to fix this. I have no idea what is causing this. Both files were inserted into Dreamweaver, using it's default flash object code, and the only thing changed is the wmode, which is set to transparent. Please help.
    http://www.matrixmediaconcepts.com/new
    Thanks in advance.

    Hi
    This is being caused by the fact that you are using a table based design.
    Unfortunately, (for you) it would probably take longer to correct the problem and retain the table based design, that it would to convert to a standards based css design.
    Briefly you will have to compensate your table design to acomodate the gaps that you see in FF, this would probably have an adverse affect on the layout in IE though.
    PZ

  • SWF problem in FF and Chrome browsers.

    Hi all,
    I have one problem with my swf file, I have created an swf for calculating speed. In the time of 12Sec. one person can move some distance with some x speed, an another person can move same distance with 2x speed, but finnaly two persons will reach the distance in same time that is 12Sec. I have created one timer for this, will show the time.If I run the swf the timer is working fine, I embeded this swf into html and I checked that html file using IE it is working fine, but if I check it in FF or Chrome the timer is running bit slow and it is effecting my functionality. So, any help on this please.....I attached the screen shorts here.
    I used AS3.0 to create this.
    SWF Output
    Chrome Output
    IE Output
    Thanks in Advance
    Santhosh Kumar M

    Hi kglad,
    here is the code.... please help me to find where I did the mistake...
    ****** START *************
    a_mc.stop();
    b_mc.stop();
    var ax:Number=a_mc.x;
    var bx:Number=b_mc.x;
    var count:Number=0;
    var cnt:Number=0;
    time.text=String(count);
    var b:Boolean;
    if (! b) {
              var endTime:int;
              var startTime=getTimer();
              this.addEventListener(Event.ENTER_FRAME,ff);
    function ff(e:Event):void {
              endTime=getTimer();
              fps_tf.text =String(Math.round(1000/(endTime-startTime)));
              startTime=endTime;
    var board:Sprite=new Sprite();
    addChild(board);
    board.graphics.lineStyle(1,0);
    board.graphics.moveTo(50,105);
    board.graphics.lineTo(450,105);
    board.graphics.beginFill(1);
    board.graphics.drawCircle(50,105,1.5);
    board.graphics.drawCircle(130,105,1.5);
    board.graphics.drawCircle(210,105,1.5);
    board.graphics.drawCircle(290,105,1.5);
    board.graphics.drawCircle(370,105,1.5);
    board.graphics.drawCircle(450,105,1.5);
    board.graphics.endFill();
    persA_txt.text=String(Math.round(a_mc.x-ax));
    persB_txt.text=String(Math.round(b_mc.x-bx));
    var sa:Number=2.75;
    var sb:Number=2.75;
    var tf:Number=0;
    var timer:Timer=new Timer(100,120);
    var ts:Number=0;
    var tms:Number=0;
    pl_btn.addEventListener(MouseEvent.CLICK, pla);
    function pla(event) {
              stage.addEventListener(Event.ENTER_FRAME, onenter);
              a_mc.play();
              b_mc.play();
              timer.start();
              tf=1;
    res_btn.addEventListener(MouseEvent.CLICK, sto);
    function sto(event) {
              stage.removeEventListener(Event.ENTER_FRAME, onenter);
              a_mc.x=ax;
              b_mc.x=bx;
              a_mc.stop();
              b_mc.stop();
              timer.reset();
              persA_txt.text=String(((a_mc.x-ax)/80).toFixed(1));
              persB_txt.text=String(((b_mc.x-bx)/80).toFixed(1));
              time.text=String("0");
              tms=0;
              ts=0;
              tf=2;
    pa_btn.addEventListener(MouseEvent.CLICK, pau);
    function pau(event) {
              stage.removeEventListener(Event.ENTER_FRAME, onenter);
              a_mc.stop();
              b_mc.stop();
              timer.stop();
    timer.addEventListener(TimerEvent.TIMER, doTimer);
    function doTimer(e:TimerEvent):void {
              tms++;
              if (tms==10) {
                        tms=0;
                        ts++;
              time.text=String(ts+"."+tms);
    timer.addEventListener(TimerEvent.TIMER_COMPLETE, ontimercomplete);
    function ontimercomplete(event) {
              a_mc.stop();
              b_mc.stop();
              tf=2;
              stage.removeEventListener(Event.ENTER_FRAME, onenter);
    function onenter(event) {
              a_mc.x=a_mc.x+sb;
              b_mc.x=b_mc.x+2*sa;
              if (b_mc.x<208) {
                        sa=2.75;
              } else {
                        if (a_mc.x<208) {
                                  sa=0;
                                  b_mc.stop();
              if (a_mc.x>=210) {
                        if (b_mc.x<368) {
                                  sa=2.75;
                                  b_mc.play();
                        } else {
                                  if (a_mc.x<368) {
                                            sa=0;
                                            b_mc.stop();
              if (a_mc.x>=368) {
                        sa=2.75/2;
                        b_mc.play();
              persA_txt.text=String(((a_mc.x-ax)/80).toFixed(1));
              persB_txt.text=String(((b_mc.x-bx)/80).toFixed(1));
    ******** END ************
    Thanks
    Santhosh Kumar M

Maybe you are looking for

  • PO Price

    hi All, I have prepared a PO of one item the cost of the item is 10200 in the info record. i have changed the cost of the item as 10,000 and generated the po. and again i have raised the PO for Same material with same vendor, but here it is showing t

  • 'Save as' in CS3 action doesn't change to target directory

    I just re-built my PC with Vista x64 and re-installed PS CS3 from scratch upgrading to 10.0.1 from the auto update. I need this for LR2 to integrate. Since the re-build (I was on XP x64 previously) one of my actions which includes a 'Save As', which

  • Problem with object view with primary-key based object identifier

    Hello! I met such problem. t1 is persinstent-capable class: class t1 : public PObject { .... }; T1OV is object view, based on object table T1OT I1 is primary key of the table T1OT. Next code: t1* t = new (conn, "T1OV") t1(...); conn->commit(); try t-

  • 12- inch Powerbook

    Just bought PB 12- inch and while I'm trying to work the internet connection my scrreen turned into this weird display. Too much contrast. Tried to fix it thru Apple Tech support and they cannot give me a solution. Can anybody help me.

  • Why do my PS video transitions have poor quality on playback?

    I've created a slide show using layers and have created a video group. This turns the layers into clips in the timeline. I've added a cross-fade transition between each clip in the timeline. Everything plays back nicely in PS. When I export to mp4 an