Load external jpeg into flash movie

Hi, how do i load external jpeg into flash movie?
Can someone show me the actionscript? Thanks

hi, i pasted the code on a mc but it didn't work.
However, when i put in on frame action, it works.
However, i realised the image flickered (more like refreshed)
after afew sec...
Is this normal? Is it the loop problem? how do i get rid of
that?

Similar Messages

  • How can I load an external SWF into a movie clip that's inside other movie clip?

    Hi.
    I creating my first flash (actionscript 3.0) website but I'm
    stuck with a visual effect I want to create.
    I have a window on my website called contentWindow. Every
    time you click a button this window is supposed to leave the stage,
    load the requested content and return to the stage.
    The sliding window is a movie clip with 83 frames, 21 to
    enter the stage, 21 to leave the stage again, 20 for nothing (its
    just to simulate the loading time) and 21 to return to the stage.
    Now my goal is, when the user clicks on a navigation button,
    the window exits the stage, loads an external SWF with the content,
    and then returns to the stage.
    I've the "window" movie clip with an instance name of
    "contentWindow". Inside there is another movie clip with an
    instance name of "contentLoader". The content that the user
    requested should appear inside the "contentLoader".
    Now, when the contentWindow leaves the stage, I get this
    error message:
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at rwd_fla::MainTimeline/trigger()
    If I switch
    "contentWindow.contentLoader.addChild(navLoader);" for
    "contentWindow.addChild(navLoader);" it works fine, but the
    external SWF doesn't move with the window.
    How can I load an external SWF into a movie clip that's
    inside other movie clip?

    Hi,
    Recently, I have been putting together a flash presentation.
    And I am just wondering if the following might help you, in your
    communication with the said swf file:
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onComplete);
    function onComplete(event:Event):void
    event.target.content.thinggy_mc.y -= 100;
    Not the best example, but this allows you to target a mc
    within an external swf file. I think if you look up this code, you
    will have an answer ;)
    Kind Regards,
    Boxing Boom

  • Loading php variables into flash 8

    i'm trying to load some vars into flash 8. i tried
    loadvariables, loadvariablesnum, loadvars, google. can't figure it
    out.
    2 years ago when using flash mx trying the same thing, the
    line:
    loadVariablesNum("file",0);
    was enough to do the trick.
    but in flash 8 can't get it to work ;(
    i have the simplest php file, something like this:
    <?
    $town = "where";
    $person = "who";
    $sex = "male";
    print "town=$town&person=$person&sex=$sex";
    ?>
    the use of variables is a must, so the solution
    print "town=where&person=who&sex=male"
    doesn't do me any good. actually this works.
    so what's the correct way of loading this into flash 8?
    thanks guyz.

    you can also use a FlashVars= parameter in your
    <object><embed> code, IF you are using your PHP code to
    also display your flash movie, and if you only need to pass these
    variables once when the movie loads. If this is what you need to
    do, use this....
    <object ...>
    ....// other params .....
    <param name="FlashVars" value="<?
    echo var1name;
    ?>=<?
    echo var1value;
    ?>&<?
    echo var2name;
    ?>=<?
    echo var2value;
    ?>" >
    Though you will have to do that in two places, once in the
    object code, and once in the embed code.
    The embed code would look more like
    <embed ...... FlashVars="<? //php similar to above
    ?>" ..... />
    I have used this successfully to pass in variables when the
    flash movie first loads, to pass in stuff like a URL for a link and
    other info. There are a lot of different ways to pass values in to
    flash. You can also use ExternalInterface.call and use Javascript
    along with PHP to retrieve info at any time, but that is more
    complex.
    This may not be what you need - but you can still use
    LoadVariables with Flash 8, as well.

  • Loading external jpegs

    I have a page that loads external jpegs... however it seems
    totake longer to retireve and display/load the images going through
    flash than it does if i were to display them as html...why is
    this... or am I just wrong. thanks J.

    thanks kglad,...
    the website i have is purely in flash. It communicates with a
    mysql database using php. However as well as being slow at loading
    external jpegs it is also very slow at retrieving and loading data
    from the database.
    When I test the site locally it runs very fast.
    If this was a problem with my scripting (php) wouldn't i
    notice this slowdown when I tested locally?, therefore is the
    problem with my server opposed to my scripting.
    thanks J.

  • How to load a jpg into my movie ???

    I want to load an image stored on my pc into my swf file. i
    know that i can use the loadMovie() method. but i didnt know how to
    enter the url of the target file. For example i have the file in
    the following directory - C:\Documents and Settings\Admin\My
    Documents\image.jpg - how can i load this file into my movie ???
    and THANX...

    aha, ok now i have a problem in duplicating nested movie
    clips. like if i have made a movieclip using the code (lets name it
    OUTSIDE) and another one inside(lets name it INSIDE) it, when i
    duplicate the movieclip OUTSIDE the INSIDE one doesnt exist in the
    new copy. i think the reason is something related to the depth but
    i'm not sure where is the problem. here is an example:
    this.createEmptyMovieClip("line",this.getNextHighestDepth());
    line.createEmptyMovieClip("lineIn",this.getNextHighestDepth());
    line.lineIn.lineStyle(10);
    line.lineIn.lineTo(100,100);
    line.duplicateMovieClip("line2",this.getNextHighestDepth());
    line2._x = 150;
    when i duplicate the the movieclip (line), the movieclip
    (lineIn) doesnt exist inside the new copy which is (line2)

  • How do I import video from an external drive into I movie

    How do I import video from an external drive into I movie?..I can't seem to get it to work I am new to apple

    you can either drag it to the imovie window or import it from the file menu.
    unless it's in an unsupported format.

  • FAQ: SWF's and loading external files in Flash Catalyst

    How do I make the images in my Flash Catalyst project external to the published SWF?
    You can choose whether images are embedded in your Flash Catalyst SWF, or loaded dynamically; this can help to keep your SWF's small. Simply right-click an image and chose "Externalize Image".
    Answered by: Adam Cath.
    See entire discussion.
    How do I make the SWF I imported to Flash Catalyst load external files?
    When importing a SWF, Flash Catalyst only pulls the SWF asset into your project. Many SWF's, such as slideshows and media players, rely on external data files, such as configuration files or media assets. If you would like to use such a SWF in Catalyst, then you will have to place these external resources into your Catalyst project as well as importing the SWF.
    Let's assume you have a SWF source folder that contains your SWF file and all of the external files it needs. You can open the SWF file from this folder and it works fine. But, if you import the SWF into Catalyst, the Catalyst project doesn't display it correctly because it can't load the external files. Here's what you do:
    1. Open your swf source folder, and copy all of the files/folders there except the SWF you imported.
    2. In Catalyst, Run/Preview your project (Ctl/Cmd-Enter)
    2. Note the file path to Main.html in your browser
    3. In your OS, open the folder that contains /bin-debug/Main.html from above
    4. Open the "src" folder
    5. Paste all of the files from step 1 into the src folder.
    6. Catalyst won't pick up that your project changed, so tweak it a bit (add a Rectangle), and save it.
    7. Run your project. If it doesn't work, try closing and reopening your project and running again.
    For an example, check out: Using an XML-driven SWF in Catalyst to create a slideshow.
    See entire discussion.
    Answered by: Bear Travis

    You can make you swf a custom component with 2 states.
    The first state will be empty and rename it "OFF" the second state will have your swf file and name it ON.
    Then go back to your artboard/project, add your 2 buttons ON & OFF.
    For the ON button add interaction "play transition to custom component ON"
    For the OFF button add interaction "play transition to custom component OFF"
    Here is an example swf_control

  • Load external data into se-main-menu

    hi,
    i've tried to load external data (vars,files)into a selfmade
    sony-ericsson-flash-menu for the w810i.
    it is possible to load the data for the current active menu
    via loadVariablesNum("application://focused", 0);
    so i thought i could load some other stuff into the mainmenu.
    i tried to load an swf with loadMovie/loadMovieNum.
    i tried to load vars from a txt-file with
    loadVariables/loadVariablesNum.
    and i tried to open a webadress with getURL.
    but nothing happens ... :(
    the files (swf,txt) are in the same folder like the
    mainMenu.(tpa\preset\system\desktop\flash)
    maybe the w810 does not execute the swf in the same folder
    where it is at the moment?!
    is it possible to figure out where the swf is executed?
    the _url command is not supported by flash-lite-1.x ...
    some ideas?

    Hi Joanne,
    LSMW - Legacy System Migration Workbench is very user friendly tool provided by SAP for legacy data load.
    use link below for documentation
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    You can also, use SAP best practice PCC Excel Template and load programs (delivered by SAP) for each Infotype PA / PD.
    Hope this helps.
    - Bharat

  • Load external swf into a specific _level

    Hi there,
    I am loading an external swf into the mc 'image' using:
    image.loadMovieNum("portfolio/100_design/1.swf", 1);
    Every time a new image loads, I want it to load the level above, ie:
    image.loadMovieNum("portfolio/100_design/1.swf", 2);
    Is there a way this can be done dynamically. For example, "current level + 1"
    Many thanks

    is the first frame of your loaded swf's empty?  if yes, then no problem using _levels.
    if not, do you mind a momentary flash when your next swf loads and before its _alpha is assigned 0 and then faded-in?  if you don't mind, then no problem using _levels.
    if you do mind that momentary flash, then using _levels will be more complex than using empty target movieclips.  is there some good reason to use _levels instead of target movieclips?

  • Load external XML into DataGrid with AS3

    I've really looked hard to find an example/tutorial for
    loading external XML data into a DataGrid component using AS3. The
    code I'm using at the moment has the XML data in the AS code. If
    anyone can point me to a good resource(s) for code or a tutorial
    I'd be very appreciative. It needs to be AS3. ~steve
    Here is the code that is working for internal XML data:
    import fl.controls.dataGridClasses.DataGridColumn;
    import fl.data.DataProvider;
    stop();
    var emailXML:XML = <emails>
    <email date="06-04-07" code="EMRPAAV" campaign="This is
    the campaign details."/>
    <email date="06-11-07" code="EMRPAAW" campaign="This is
    the campaign details."/>
    <email date="06-18-07" code="EMRPAAX" campaign="This is
    the campaign details."/>
    <email date="06-25-07" code="EMRPAAY" campaign="This is
    the campaign details."/>
    <email date="07-02-07" code="EMRPAAZ" campaign="This is
    the campaign details."/>
    <email date="07-09-07" code="EMRPABA" campaign="This is
    the campaign details."/>
    </emails>;
    var dateCol:DataGridColumn = new DataGridColumn("date");
    dateCol.headerText = "Date";
    dateCol.width = 60;
    var codeCol:DataGridColumn = new DataGridColumn("code");
    codeCol.headerText = "Source Code";
    codeCol.width = 70;
    var campaignCol:DataGridColumn = new
    DataGridColumn("campaign");
    campaignCol.headerText = "Campaign";
    campaignCol.width = 300;
    var myDP:DataProvider = new DataProvider(emailXML);
    emailData.columns = [dateCol, codeCol, campaignCol];
    emailData.width = 440;
    emailData.dataProvider = myDP;
    emailData.rowCount = emailData.length;
    // end code

    Here is how you build it for external XML. in my example am
    using the same xml format that you are using . The xml file called
    "dataGrid.xml"
    import fl.controls.dataGridClasses.DataGridColumn;
    import fl.data.DataProvider;
    import fl.containers.UILoader;
    import fl.data.DataProvider;
    import fl.events.*;
    import flash.xml.*;
    var emailXML:XML;
    var myList:XMLList;
    function parseXML():void
    var url:String = "dataGrid.xml";
    var urlRequest:URLRequest = new URLRequest(url);
    var loader:URLLoader = new URLLoader();
    loader.addEventListener("complete" , loadXML);
    loader.load(urlRequest);
    /*var emailXML:XML = <emails>
    <email date="06-04-07" code="EMRPAAV" campaign="This is
    the campaign details."/>
    <email date="06-11-07" code="EMRPAAW" campaign="This is
    the campaign details."/>
    <email date="06-18-07" code="EMRPAAX" campaign="This is
    the campaign details."/>
    <email date="06-25-07" code="EMRPAAY" campaign="This is
    the campaign details."/>
    <email date="07-02-07" code="EMRPAAZ" campaign="This is
    the campaign details."/>
    <email date="07-09-07" code="EMRPABA" campaign="This is
    the campaign details."/>
    </emails>
    parseXML();
    function loadXML(evt:Event):void
    emailXML = new XML(evt.target.data);
    myDP = new DataProvider(emailXML);
    emailData.dataProvider = myDP;
    var dateCol:DataGridColumn = new DataGridColumn("date");
    dateCol.headerText = "Date";
    dateCol.width = 60;
    var codeCol:DataGridColumn = new DataGridColumn("code");
    codeCol.headerText = "Source Code";
    codeCol.width = 70;
    var campaignCol:DataGridColumn = new
    DataGridColumn("campaign");
    campaignCol.headerText = "Campaign";
    campaignCol.width = 300;
    var myDP:DataProvider;
    emailData.columns = [dateCol, codeCol, campaignCol];
    emailData.width = 440;
    emailData.dataProvider = myDP;
    emailData.rowCount = emailData.length;

  • Load external html into a Layer?

    I've created a framework of a kids' site using CSS layers to
    overlap a Skyline image overtop of another 2 layers, one showing a
    BG image of the sky, the other showing the scrolling content.
    For another section of the site, I would like to load an
    external HTML into the layer behind the skyline. Specifically, I
    would like a Blog to load and scroll behind the skyline. Anyone
    know if it is possible to load an external html page into a layer,
    and if so, how does one go about it?
    The (unfinished) page in question can be seen here:
    http://www.marcsobservatory.com/mo_mainpage6.html
    The stylesheet can be found here:
    http://www.marcsobservatory.com/mo_styles2.css
    Thanks!

    is the first frame of your loaded swf's empty?  if yes, then no problem using _levels.
    if not, do you mind a momentary flash when your next swf loads and before its _alpha is assigned 0 and then faded-in?  if you don't mind, then no problem using _levels.
    if you do mind that momentary flash, then using _levels will be more complex than using empty target movieclips.  is there some good reason to use _levels instead of target movieclips?

  • Error 2044 when loading external swf into my site

    Ok what i have is a site made from 1 flash file where i am loading external swf files for my picture galleries. now what is happening is in Flash, dreamweaver and when i test the site, everything is working perfectly, the problem is coming when i go into internet explorer go to the site and click on the flash button to go to the picture gallery, that is when it is giving me a Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
    does anyone know why this is happening and a possible way to fix it? thanks

    See if the following link helps at all...
    http://www.gotoandlearnforum.com/viewtopic.php?f=29&t=20453

  • Unable to load external image into iOS app with AS3

    Just trying out Flash Builder for iOS app development and have run into a problem right off the bat with loading an external image into an iOS app.  The actionscript is very simple (this was basically my Hello World attempt), and I'm hoping someone here can explain where I'm going wrong.  This code works in Flash Pro, and works when launched on the desktop from Flash Builder, but doesn't work on my iOS devices.
    Here's the code:
                                  var container:MovieClip = new MovieClip();
                                  addChild(container);
                                  var imageLoader:Loader = new Loader();
           imageLoader.load(new URLRequest("http://www.google.ca/intl/en_ALL/images/logos/images_logo_lg.gif"));
                                  imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, startListener);
      function startListener (e:Event):void{
                                                 container.addChild(imageLoader);
    Any thoughts on why this won't work would be greatly appreciated!

    I had the same issue, and modified my domain policy file as specified  in http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html#_Configuring_URL_M eta-Policies but the loader is not loading the file. Any ideas on how to fix this issue?

  • Loading external swf into Fla. not working

    I have created a Flash page that loads an external swf into
    it when you click a button. The swf loads but the actionscript
    assigned to the swf which scrolls images across does not work. When
    i open the swf in a browser window with the direct link to it the
    scroll works but inside the fla file the swf loads but the scroll
    buttons are not working at all. Would this be something in the
    actionscripting in the swf or fla file. Any advice would be greatly
    appreciated, thank you.

    var imageRequest:URLRequest = new URLRequest("my_gallery.swf");
    var imageLoader:Loader = new Loader();
    imageLoader.load(imageRequest);
    addChild(imageLoader);
    is as3 code.  that won't work in your as2 project.
    here's the equivalent in as2:
    this.createEmptyMovieClip("targetMC",this.getNextHighestDepth());
    targetMC.loadMovie("my_gallery.swf");

  • Loading purchased swf into Flash Builder 4 Flex app

    I have purchased a Flash "fundraising thermometer" from an online Flash components site. It takes input from an xml file and displays a thermometer with the goal at the top and the current amount raised indicated. It came with the following files:
    thermometer.swf
    thermometer01.fla
    thermometer01.html (A sample that works.)
    xml/thermometer.xml (The source file: goal amount, current amount, mark interval, etc.)
    caurina/transitions (Mostly .as files.)
    Since the test html (thermometer01.html) works fine, I thought this would be a no-brainer.
    I first unzipped the files into a "thermometer" folder in my current project. I then went into Flash Builder and created a SWFLoader object as follows:
    <mx:SWFLoader 
    id="myLoader" source="../thermometer/thermometer.swf" complete="initThermometer();" autoLoad="true" scaleContent="false"/>\
     private function initThermometer():void { 
         Alert.show('Thermometer loaded');
    The Design view looks fine. I can see the thermometer default image (see below).
    When I run the app, I get no errors, just a broken image link in a box (see below). The alert box also never shows up.
    I'm new to Flex, so I may be doing something stupid that keeps this from working. I contacted the author of the thermometer widget but he doesn't know anything about Flex.
    Any help figuring out how to get this to work in a flex app would be appreciated.

    You should probably add more event handlers to see what's going on.  Especially "ioError". The complete list is below.  For coverage, add a handler for each event. You can also use in MXML
         complete="initThermometer(event)
    and add an argument to your Actionscript method, to find out details about the event.
    private function initThermometer(event:Event):void { 
         Alert.show('Thermometer loaded ' + event.type);}
    Events
        complete="No default"
        httpStatus="No default"
        init="No default"
        ioError="No default"
        open="No default"
        progress="No default"
        securityError="No default"
        unload="No default
    General info here:
         http://livedocs.adobe.com/flex/3/langref/mx/controls/SWFLoader.html
    I did not test my code suggestions, but it's probably close.

Maybe you are looking for

  • BW report adding incorrectly

    I'm having a strange problem with a report on our BW system (3.0B SP15)...it's a headcount report that shows total headcount for a cost center hierarchy. The total for a specific node in the hierarchy is 57 employees, but when I drill down on employe

  • CPU whine with DVI and line out/DVI removed whine not in line out?

    I have noticed that when using headphones or the line out alone I do not hear the whine noise. The whine noise is still active, in other words, I can still hear it coming from the keyboard. But, it is not transferred through the line out or headphone

  • Swat on Solaris 10 11/06

    Hi, I want to enable swat on Solaris 10 11/06 using the version bundled with Solaris. As with all earlier versions I just installed the Samba packages and then imported the swat service via inetconv. In all previous versions this has worked fine but

  • Prob in saving canvas to jpg

    hi friends, i m tryin to save canvas to jpg n has de code for it but saved jpg file contalins black background... i hav attached de code.. can u plz execute it n suggest wat de prob is.....import java.awt.*; import java.awt.event.*; import java.awt.i

  • Safari Half Loading Pictures, Not-Loaded Part is Gray

    I have a Macbook Pro a couple months old. On many pages a picture or two is partially loaded--the other part is gray. I attached an example. I've tried everything--even called Apple Support. Please help!