Loading an External SWF Files not working

Hello,
So I have a project I am working on in which I would like to teach how to cash a scratch off card. I have made the scratch and made it so it will "scratch"
Before:                                                                                                                                               After:
Now I have saved this out and am trying to load this into my "holder" however I am getting an error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at ScratchTicket()
When I use this code:
stop();
import flash.events.MouseEvent;
nextPG_btn.addEventListener(MouseEvent.CLICK, nClick);
lastPG_btn.addEventListener(MouseEvent.CLICK, lClick);
function nClick(event:MouseEvent):void{
    nextFrame();
function lClick(event:MouseEvent):void{
    gotoAndStop(3);
var mcExt:MovieClip;
var ldr:Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
ldr.load(new URLRequest("ScratchTicketOnly.swf"));
function swfLoaded(e:Event):void {
    mcExt = MovieClip(ldr.contentLoaderInfo.content);
    ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
    mcExt.x = 50;
    mcExt.y = 50;
    addChild(mcExt);
What am I doing wrong?
Is it because of my coding in the External SWF?
package {
    import flash.display.Sprite;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.ui.Mouse;
    public class ScratchTicket extends MovieClip{
        var scratcherIsActive:Boolean= false;
        var stuffUnderMask:Sprite = new Sprite();
        // init class
        public function ScratchTicket():void{
            stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseIsDown);
            stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseIsMoving);
            stage.addEventListener(MouseEvent.MOUSE_UP, mouseIsUp);
            // make mask           
            stuffUnderMaskClip.mask = stuffUnderMask;
            addChild(stuffUnderMask);
            makeCursor();
        // helper functions
        private function makeCursor():void{           
            trace("Custom cursor can go here");
        // hover effects
        private function mouseIsDown(e:MouseEvent):void{
            //Mouse.hide();
            Mouse.cursor="hand";
            scratcherIsActive = true;
        private function mouseIsUp(e:MouseEvent):void{
            //Mouse.show();
            Mouse.cursor="arrow";
            scratcherIsActive = false;
        private function mouseIsMoving(e:MouseEvent):void{
            if(scratcherIsActive){
                stuffUnderMask.graphics.beginFill(0x000000);
                stuffUnderMask.graphics.drawEllipse(mouseX, mouseY,60, 60);
                stuffUnderMask.graphics.endFill();
    }// class
}// package
Any help is great!

Make sure you check for errors on loading..
import flash.events.IOErrorEvent;
ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, uhOhError);
function uhOhError(e:Event):void
     trace(e);
     // probably put some visual text field here to display the error
Aside that, on the first block of code mentioned, is that a frame script or running from somewhere in a class? If in a class and it doesn't extend a display object then you can't addChild(mcExt) without erroring.

Similar Messages

  • External swf file not using URLRequest

    Good morning guys.
    You can load an external swf file not using URLRequest? Since embed html code is setted as <param value="never" name="allowscriptaccess"/>
    I have this problem and I need to load a swf skin
    thank you

    are you loading a swf (done during runtime) or importing one (done during authortime)?
    in either case, the allowscriptaccess parameter of the external swf (that your loading or importing) is irrelevant.  allowscriptaccess is assigned in the main (loading or importing) swf's embedding html page and is used to control html/js access of the main and loaded swfs.
    if you trust the swf you're loading, you can change allowscriptacess to always.  if you're importing a swf, none of its actionscript will execute anyway so it doesn't matter whether its trusted or not.

  • FAQ: How do I load an external SWF file into a parent SWF file?

    A ton of Flash users visit Adobe’s we site every month wondering  about how to load an external SWF file from within another SWF.
    Adobe's own TechNote on the subject attempts to answer the basic question, along with some common follow-up questions, including:
    How do I load more than one SWF?
    How do I load a SWF into a specific location in the display list?
    How do I resize the loaded SWF?
    How do I set its X and Y location?
    Here are some additional resources that elaborate on loading content and on working with the display list:
    Sample files for the above TechNote. A set of 3 FLA and 3 corresponding SWF files, including a parent SWF and 2 SWFs that the parent loads.
    Help > AS3 Developer’s Guide > Loading an external SWF file
    Help > AS3 Developer’s Guide > Loading display content dynamically
    Loading multiple external SWFs within a main SWF – CreativeCow.net forums
    Video tutorial: ActionScript 101 – Episode 6: Adding named objects to the Stage. By Doug Winnie. An example of how to add the loaded external asset to the Stage and modify its location or other properties.
    Video tutorial: Preloading in ActionScript 3.0.  By Lee Brimelow. A slightly more complicated example, showing how to  make the parent SWF display information about the progress of loading  the external SWF.
    Tutorial: Loading and unloading SWFs - FlashAndMath.com
    This article provides several examples of how to communicate between a parent SWF file and the loaded SWF:
    SWF to SWF Communcation via ActionScript 3.0 (by kglad)

    quote:
    Originally posted by:
    NedWebs
    You now seem to want to get rid of the swf once it has loaded
    and played itself thru. To do that you would need to have something
    in the swf itself that triggers its removal in its last frame. The
    following might work...
    MovieClip(this.parent).removeChild(this);
    Unfortunately I couldn't get this to work. I placed it on the
    last frame of the SWF to be called - is that right?
    I am not sure I am doing it correctly...

  • Can not load an external swf file from my site

    Hi ...
    I have a fla file which is loading external swf files from my local folders.
    I inserted some of the swf files to a web site and tried to load them from the site, not from my local folder...
    So it gave me a security error like below:
    *** Güvenlik Sanal Alanı İhlali ***security domain-area violation
    http://www.celiktek.com.tr/KIRIL.swf' SecurityDomain öğesi -- security domain element, 'file:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf' uyumsuz bağlamına erişmeye çalıştı - tried to reach this incompatible url
    SecurityError: Error #2070: Güvenlik sanal alan ihlali -- security area violation: http://www.celiktek.com.tr/KIRIL.swf arayanı - searcher of this can not reach stage in file:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf içindeki Stage'e erişemiyor. -
    at flash.display::Stage/requireOwnerPermissions()
    at flash.display::Stage/get numChildren()
    at KIRIL_fla::MainTimeline/frame1()
    so in my computer, I can load this swf , but how from a website ?
    thnx ...

    Thnaks ...
    I tried to use the securiyt panel that is openede and I added there my site
    www.celiktek.com.tr/KIRIL.swf
    but I still take the error
    *** Güvenlik Sanal Alanı İhlali ***
    http://www.celiktek.com.tr/KIRIL.swf' SecurityDomain öğesi, 'file:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf' uyumsuz bağlamına erişmeye çalıştı
    SecurityError: Error #2070: Güvenlik sanal alan ihlali: http://www.celiktek.com.tr/KIRIL.swf arayanı file:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf içindeki Stage'e erişemiyor.
    at flash.display::Stage/requireOwnerPermissions()
    at flash.display::Stage/get numChildren()
    at KIRIL_fla::MainTimeline/frame1()
    from my code
    var req:URLRequest=new URLRequest("http://www.celiktek.com.tr/KIRIL.swf");
    var lod:Loader=new Loader();
    lod.load(req);
    addChild(lod);
    lod.x=0;
    does this code works on your computer ... I know it is a weird question ... you dont have to try ...

  • Trouble loading an external swf file implemented with AS3

    I am using Adobe Flash CS3
    At first, I tried
    swf_mc.loadMovie("//swf file
    location");
    It gave me
    quote:
    Warning: 1060: Migration issue: The method loadMovie is no
    longer supported.
    USE: var l = new Loader(); addChild(l); l.load(new
    URLRequest("your url"));.
    Well, the given code isn't working at all.
    But since it is a migration error, I thought maybe I can just
    save it into Flash5 format with AS1. Then it worked with most
    external swf files. However, the one I am trying to load is a swf
    file with AS3, so my older version swf can't load it at all.
    Anyone has any ideas about how to load an external AS3 swf
    file?

    AS3 is a completely different beast than AS1 or 2. loadMovie
    was removed from the language.
    The answer to your question is two fold. First, Adobe was
    kind enough to give us the code when it finds a migration issue.
    var _ldr:Loader = new Loader();
    addChild( _ldr );
    _ldr.load( new URLRequest( "your url") );
    Handling progress has also changed. I have a ContentLoader
    package on my site that you're free to use that should familiarize
    you with the new way that things are done in AS3.
    http://sd-dezign.com/blog/?page_id=10

  • SWF File not working after upload to server, but works on local system

    HELP PLEASE.....I have created a Fla and exported a swf file
    from Flash 8 and Export (Flash 6). I can preview the page in
    Dreamweaver just fine, but when i upload it and the html file, it
    isn't showing up. It leaves a blank spot on the page. It is just a
    simple banner with graphic clips and motion tween text, with image
    bgd. All images are jpg.
    I have tried:
    1. Using a full link to the swf file.
    2. Removed drop-shodows in swf file
    3. convert to Flash mx 2004 file
    4. Exported to higher Flash version to see if the flash
    player was an issue.
    5. Exported with no dashes in name
    6. Added Scr file into Dreamweaver
    7. Made a new test file to see if it was something in the
    current html doc, same result.
    8. Tried viewing on a pc, same result. Created on mac.
    Here is the test page if anyone wants to take a look.
    THANKS FOR ANY ADVISE.
    Test
    Page Link

    The link you provided is to the SWF file, not to an HTML
    file, so no one can test your HTML file.
    Have you checked the code for the embedding of the SWF file
    in your HTML file? I don't use Dreamweaver much, but I do know that
    if you start assembling a Dreamweaver file without first saving the
    HTML, embedded graphics and other items are inserted as direct
    links to the files on your computer, rather than as relative paths.
    There is one other possible issue: I note that your swf is
    called CWABanner.swf. Depending on your FTP settings, it is
    possible that your server is forcing all file names to lower case
    (a common practice). Which means the file on your server will be
    cwabanner.swf. Again, depending on how the web server is set up, if
    it is case sensitive, it will treat CWABanner and cwabanner as
    separate files. So if the HTML calls CWABanner.swf, but the FTP
    upload has forced a rename to lower case to cwabanner.swf, the HTML
    file will not find it. Check this out, or to be absolutely certain,
    rename everything to lower case: the file name itself and the
    reference in the HTML file.

  • Swf with external .as files not working in Captivate

    Hello,
    I am using Flash Professional CS5.5 & Captivate 5.5 (purchased with eLearning suite).
    When I insert swf animations into Captivate that have external .as files they do not work.
    Tried both insert animation & insert animation slide - same results.
    I placed the .as files in the same file as my Captivate project and have tried multiple setting options.
    The FPS are set to 30.
    I had the same problem with external audio files and had to embed the audio into my fla to get it to play in Captivate.
    Does Captivate just not allow external files?
    Any help/insight is appreciated!!
    Les-

    The most likely reason for this failure is that since your SWF is now embedded into another SWF (the Captivate project) the paths to the AS files need to be altered in Flash to allow for this.
    You need to investigate how this would be done in AS code if your Flash SWF was a symbol inside another Flash SWF.

  • External .swf files not playing, or showing up

    Hello All,
    I'm a bit confused. I have created a video interface (vidPlayer.swf) file, and am calling on external .swf's (movieName.swf), which contain paths to the original .flv files (movieName.flv) that are to play. The navigation lives on the the main interface file (vidPlayer.swf). This works fine when I'm publishing locally from my system, or if I upload it to a remote server, and play it on my computer. When another individual attempts to either (a.) play it from the server on their system, or (b.) publish it to the web for it's intended use, the interface appears and the loader performs when video track is selected, but the video never plays. Only on my system does it work. Even from a remote server, it plays on my system.
    I have not wrapped my head completely around AS3 yet, so I'm using deprecated script. On the main interface swf (vidPlayer.swf) I have the following script controlling the loader ( I also use this same loading script for the external video swf's):
    stop();
    myInterval = setInterval(preloader, 10);
    function preloader(){
    if (getBytesLoaded()>=getBytesTotal()){
    play();
    clearInterval(myInterval);}
    loadBar_mc._xscale = (getBytesLoaded()/getBytesTotal())*100;
    loader_txt.text=Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
    On the navigation buttons (tracks), I have the following script (there are 14 tracks total, so the content varies between load and unload content):
    on (release){
    mc_videoPlayer.unloadMovie("02-systemAdministration.swf");
    mc_videoPlayer.unloadMovie("03-gatewaySetUp.swf");
    mc_videoPlayer.unloadMovie("04-homePage.swf");
    mc_videoPlayer.unloadMovie("05-addUser.swf");
    mc_videoPlayer.unloadMovie("06-changePasswordOrPermission.swf");
    mc_videoPlayer.unloadMovie("07-inventorySetUp.swf");
    mc_videoPlayer.unloadMovie("08-storageContainer.swf");
    mc_videoPlayer.unloadMovie("09-addDeicingOperator.swf");
    mc_videoPlayer.unloadMovie("10-orderCryotechProducts.swf");
    mc_videoPlayer.unloadMovie("11-recordDelivery.swf");
    mc_videoPlayer.unloadMovie("12-adjustInventory.swf");
    mc_videoPlayer.unloadMovie("13-deicingLog.swf");
    mc_videoPlayer.unloadMovie("14-PTOCClog.swf");
    _root.gotoAndStop(11);
    mc_videoPlayer.loadMovie("01-firstLogin.swf");
    I have all the .swf's (movieName.swf), .flv's (movieName.flv) and main interface .swf (vidPlayer.swf) in the same folder, so there shouldn't be any missing directory paths.
    I don't know what's going on! I have this set up exactly as a previouse project, using the same interface, scripting and file directory, and it words perfectly from any system, being hosted from anywhere.
    Can anyone help????
    [ I'm working with Flash, CS3 - actions script 2 ]
    Thanks in advance,
    James

    problem solved. Solution? Redo the entire f&%#ing thing. For what ever reason, it now works.
    Thanks anyways.
    James

  • SWF file not working properly in Explorer

    I have made a kind of slide show showing jpg images loaded
    from the web in an swf file, and it will not work properly. It is
    my first .swf application, and I am using the free downloadable
    FlashObject.js to load the swf into the browser. The problem is
    that it sometimes loads perfectly, while other times it will not
    work at all! It is not the paths, because I have tried setting the
    images in the same directory as the swf, and not importing the
    image names thru flashVars. What drives me mad is that it works
    consistently in Explorer, the first time I load it, and the first
    time after I have cleared the temporary internet files. Otherwise
    it will not load at all. In Firefox however, if randomly fails to
    load about one time out of ten or something like that. The code is
    compiled using the free downloadable compiler. Anyone have any idea
    what may be wrong?

    I may be late but better late then...
    Not true
    You can nest hundreds of layers as long as all symbols are graphics.
    People try to use a Movie symbol and this is script executed.
    I am animator on cartoon all done in flash and we have dozens or more NESTS!!!!
    Eyes inside of head inside of Character in car on stage...
    many
    Trick to not crashing is in FLASH
    Set publish settings to FLASH 8.
    Never use FLASH 9 with Actionsscript 3... This adds a lot of instability.
    1 of these swfs in a project could kill it.
    I render SWF at 30fps at 1920x1080 then into AE, then scale down to SD wide screen resolution 720x480 16x9.. set scale to 45.5 x 44.5 percent.
    I output final animation at Quicktime ANIMATION 100 millions of colors... 1.21 (16x9)audio added at 48k
    I have hundreds of hours trying to make this work reliably and finally I got the mix.
    Then I take QT to Premiere for final edit, audio and titles.
    Good luck
    NATMAX

  • How to correctly load an external swf file into iosAir app? I'm getting blank screen.

    So this code works flawlesly on Air for Android, it even works fine when I test the movie in Flash, but once I export it, I'm getting a blank screen. I made an swf with a square and withotu any code, and flash still fails to load it. It's weird cause everything works fine when I use the interpreter debugging option, but when I switch to standard debugging the blank screen appears on my ipad. I've read somewhere that it's caused by the way flash saves the link to external files. Thus after the file is compiled Flash fails to find the prefiously added files, which results in a blank screen. There's clearly something wrong with how the process of compiling the application.
    Tried this:
    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var loader:Loader = new Loader();
    var link:URLRequest = new URLRequest("Untitled-1.swf");
    loader.load(link);
    addChild(loader);
    And this:
    var ldr:Loader = new Loader();
    ldr.load(new URLRequest("Untitled-1.swf"));
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false, 0, true);
    function loaded(event:Event):void {
    addChild(event.target.content);
    But nothing works. I'm still getting a blank screen. Is there any way to add the swf file manually into the descriptor file cause flash most likely messes it up? I don't really want to use through command line.

    Read this article, especially the bit about loadercontext and currentdomain:
    http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air- apps-on-ios/

  • Problem: text fade in/out in swf-file not working correctly

    Hello to all,
    this is my first post.
    I work in a printing company and we want to administrate now our website by our own and
    we have bought now Dreamweaver CS4 and Flash CS4 for Mac. My Flash skill-level is "Beginner",
    but I am OK with simple tweenings, using symbols and that.
    I have done an advertisment banner for the home, 550x290 px, background-pictures
    and headlines fading in and out, later until the end there are three subheadlines for pricing details.
    The published swf-file works absolutely fine on my Mac, and also
    embedded in the site in Safari and Opera.
    Before uploading I wanted to check in IE and Opera on a Windows-PC
    and now there is the problem:
    the first headline does not fade in, it suddenly just appears.
    The second headline fades in the place of the first, when the first one is
    fading out. So now, for a second the text is appearing above each other and
    both neither fade in nor fade out.
    The three subheadlines later start one by one, and they work fine and fade in
    and out correctly. All pictures fade in and out correctly, too.
    What could that be?
    I`ve  just installed the newest flash-player on the Windows-PC and
    the problem is still there when I open the swf-file or when I embed it in the website.
    I would be deeply grateful for any hint.
    Thanks!

    Hi!
    The difference was, the headline property was accidentally "dynamic text", the subheadlines were static.
    I missed that.
    Before changing that now in the fla-file I checked the old one on differrent company macs,
    the problem is only one a few macs, say one of ten had the problem I watched.
    I think now, that must be just bad luck or it is a player problem.
    Allow me the question please:
    should I use dynamic text or static (then I cannot embed the font, the option dispappears then
    in the Properties-panel).
    Thanks again!

  • External MP3 files not working

    Hi,
    I have attached code straight out of the help file for using
    External MP3 files. It works perfect when I use their HelpExample
    sound MP3 file. However when I simply change the code to point to a
    working MP3 sound file in my LocalHost folder it executes but I
    only get a Blip sound.
    If I just double click on the sound file it sounds ok. and I
    have been successful in using these MP3 files embedded in Flash 8.0
    fla file
    Do the external MP3 files have to be on some special server?
    I am using this code with Flash 8.0
    Thanks,
    hugh

    The most likely reason for this failure is that since your SWF is now embedded into another SWF (the Captivate project) the paths to the AS files need to be altered in Flash to allow for this.
    You need to investigate how this would be done in AS code if your Flash SWF was a symbol inside another Flash SWF.

  • Flash Catalyst SWF file not working in Captivate 4

    Hi,
    I downloaded the trial version of Flash Catalyst to use in conjuction with Captivate (I don't know how to write code) so that I have scrolling text boxes in my project. Well, Flash Catalyst works as designed, but when I go to import the swf file into captivate, they don't play nice together. My project is in AS3, which is congruent with Flash Catalyst. Any ideas on what I'm doing wrong, or work arounds to get it to run would be greatly appreciated.
    Thanks,
    Tony

    Hi Tony,
    I got your file, thanks! I have not tried it inside Captivate because I was not on the same machine were Captivate is installed. However, if you tried to use,  in Captivate, the main.swf file located in the deploy-to-web folder than you will have some issues. The file in that folder is very lightweight because it will download at run-time the flex framework. Therefore, if the framework is not in the same location as the main.swf when captivate runs, the animation will not show up properly. So, if you copy the other swf and swz in the same folder were Captivate publishes, then it should work.
    However, there is an easier way to do this. You have another folder called run-local. This folder contains a bigger main.swf file. This file already contains all the framework part in it. So, if you try to use this file instead, it should work inside Captivate.
    Give this a try and let me know if it works out.
    Whyves
    www.flash-factor.com

  • Index.html - SWF file not working in browser

    The navigation button on my Flash/SWF intro page (www.benscarrillustration.com) isn't working in web browsers. What am not doing correctly.
    I have the following 3 files in my cPanel File Manager....
    1. index.html
    2. Ben Scarr Illustration.swf
    3. Ben Scarr illustration.html
    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <link rel="shortcut icon" href="/avatar.ico" type="image/x-icon">
            <title>Ben Scarr Illustration</title>
            <style type="text/css" media="screen">
            html, body { height:100%; background-color: #ffffff;}
            body { margin:0; padding:0; overflow:hidden; }
            #flashContent { width:1214px; height:100%; margin:auto;}
            </style>
        </head>
        <body>
            <div id="flashContent">
                <object type="application/x-shockwave-flash" data="Ben Scarr Illustration.swf" width="1214" height="717" id="Ben Scarr Illustration" style="float: none; vertical-align:middle">
                    <param name="movie" value="Ben Scarr Illustration.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <a href="http://www.adobe.com/go/getflash">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                    </a>
                </object>
            </div>
        </body>
    </html>

    Thanks for the information about Flash no longer being the best or contemporary way to design web sites. This shows me how long I've been away from designing them.
    I will redesign my web site in Dreamweaver very soon, as I would like it to play on iOS devices.
    But at the moment I would just like to see my Flash page working in a browser.
    I have inserted my Flash page in to Dreamweaver, and new code has been automatically added. But still the navigation button doesn't work.
    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <link rel="shortcut icon" href="/avatar.ico" type="image/x-icon">
            <title>Ben Scarr Illustration</title>
            <style type="text/css" media="screen">
            html, body { height:100%; background-color: #ffffff;}
            body { margin:0; padding:0; overflow:hidden; }
            #flashContent { width:1214px; height:100%; margin:auto;}
            </style>
        <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
        </head>
        <body>
            <div id="flashContent">
                <object type="application/x-shockwave-flash" data="benscarrillustration.swf" width="1214" height="717" id="benscarrillustration" style="float: none; vertical-align:middle">
                    <param name="movie" value="benscarrillustration.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <embed src="benscarrillustration.html" width="1214" height="717" quality="high" bgcolor="#ffffff" play="true" loop="true" wmode="window" scale="showall" menu="true" devicefont="false" salign="" allowscriptaccess="sameDomain"><noembed><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></noembed></embed>
                    <a href="http://www.adobe.com/go/getflash">
                    </a>
                </object>
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1214" height="717" id="FlashID" title="benscarrillustration.swf">
                  <param name="movie" value="benscarrillustration.swf" />
                  <param name="quality" value="high" />
                  <param name="wmode" value="opaque" />
                  <param name="swfversion" value="6.0.65.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="benscarrillustration.swf" width="1214" height="717">
                    <!--<![endif]-->
                    <param name="quality" value="high" />
                    <param name="wmode" value="opaque" />
                    <param name="swfversion" value="6.0.65.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>
            </div>
        <script type="text/javascript">
    swfobject.registerObject("FlashID");
            </script>
        </body>
    </html>

  • Loading an external swf file

    New to Flash and actionscript I have jumped in at the deep
    end. I purchased a piece of pre written flash software with
    editable XML to display an interactive UK map. This has come
    without the Fla source. My problem is when trying to load the swf
    into a movie clip on my stage I can not see the map. Something is
    there because the cursor changes to a hand shape. I just used the
    following line of code:
    mc_loader.loadMovie("uk_ir_locator.swf")
    where mc_loader is the instance name of an emty movieclip
    symbol on my stage.The swf and XML file are both in the same
    directory as my file. Can anyone help

    AS3 is a completely different beast than AS1 or 2. loadMovie
    was removed from the language.
    The answer to your question is two fold. First, Adobe was
    kind enough to give us the code when it finds a migration issue.
    var _ldr:Loader = new Loader();
    addChild( _ldr );
    _ldr.load( new URLRequest( "your url") );
    Handling progress has also changed. I have a ContentLoader
    package on my site that you're free to use that should familiarize
    you with the new way that things are done in AS3.
    http://sd-dezign.com/blog/?page_id=10

Maybe you are looking for

  • Lenovo G570 - Open and Close

    I have an issue with my G570. I purchased it around August of 2011, at the start of school, and around September, I noticed that every time I opened or closed the computer, it made a little cracking noise. It stopped after a while. Today, it began do

  • Error while resetting PREPARE

    I am unable to reset PREPARE...it terminates with the message "Unable to reset PREPARE". I see that SAPup is unable to find the transdirectory! The file being processed here is \usr\sap\put\bin\DEFAULT.TPP and it is unable to locate the file. I too c

  • Premiere Pro 2.0 Installation Disk Won't Read

    I had to re-format my hard drive and when re-installing Premiere Pro 2.0 I found that my installation disk will not read in my DVD drive!  Nothing is wrong with my drive.  It reads all other DVDs just fine.  I get nothing in the directory like the di

  • Move photos in photostream to new phone

    There are 800 photos in my old iphone 5 photostream. How to move them to my new IPhone 5s?

  • Caracter '|' ((Pipe)

    A todos: Como puedo reemplazar el caracter '|' que viene en un parametro de un procedure, algo asÃ. CREATE OR REPLACE PROCEDURE Mi_Proc(aParametro IN VARCHAR2) IS v_MiVariable VARCHAR2(30) := aParametro; BEGIN v_MiVariable := REPLACE(aParametro,'|');