Jpeg from external swf last frame

Hi hope someone could help me with this.
I recently descovered a program mad ein air that allows you to drag and drop a CS^ .fla file and the app will create a CS5 version of that file in the same folder.
I am trying to find a way to drag a file into a program and it generates a jepg of the last frame of the swf.
Recon thats possible?
Cheers Pavel

a jepg of the last frame of the swf.
Not every swf file has a "last" frame, so this is not an option in every swf-file.
Otherwise you would use a combination of making a screenshot of the swf when it reaches its last frame.
And using that Bitmap with JPGEncoder to save the screenshot to HD

Similar Messages

  • Loading font from external *.swf

    So!
    I have 3 movies.
    1)Main movie - index.swf
    2)Movie with created & checked in linkadge "Export for
    runtime sharing" fonts in library - fonts.swf
    3)movie with text fields which need embeded fonts to work in
    a proper way. Fonts in the library checked in linkage as "import
    for runtime sharing" - content.swf
    What happens:
    I strike CTRL+ENTER and run movie index.swf.
    on the (for ex.) 10 frame it loads fonts.swf with
    movieClipLoader class..
    then in the same way on (for ex.) 100 frame, i load content
    swf
    BUT!!! before it starts loading process IT DOWNLOADS FONT.swf
    again
    SO HOW DO I PRELOAD fonts from external *.swf..
    maybe there is yhe way without using runtime sharing..
    but i've heard that loaded whith movieClipLoader movies don't
    adds objects from their library to main movie liblary...
    HOW DO I SOLVE THIS PROBLEM!

    can you give your erroe source code,and then i will give you the success code.
    in the function
    private function onLoadComplete(e:Event):void {}
    ApplicationDomain.currentDomain.getDefinition("com.scottgmorgan.ExternalMovie") ;
    use like this:
    var EMClass:Class=loader.contentLoaderInfo.applicationDomain.getDefinition("com.scottgmorgan.ExternalMovie") ;
    then you can new a instance :
    var emInstance:Object=new EMClass();
    emInstance.alert("hello word");
    and we also can use other method. so email me  [email protected]

  • Button from External SWF to Play Movie in Main SWF

    Hi Guys,
    Ok I'm working in Flash 8, Action Script 2;
    I'm building a website, in which the 'Gallery Page' has a link to an external swf file, which is a scrolling clip of thumbnails.
    What I want to do, is create each thumbnail into a button, which will then play a Movie Clip from a frame located in the Main swf file.
    (So basically, each thumbnail button is a small photo, will play that photo in a large scale as a movie)
    eg.
    thumbnail1_btn  needs to go to main swf and play movieclip1.mc, frame 1
    thumbnail2_btn nends to go to main swf and play movieclip1.mc, frame 2
    I'm unsure of the code for this? Or if I've built this up wrong?
    If someone could help me out, that would be great!

    If you haven't set _lockroot on the loaded SWF, than a simple _root call from the loaded SWF will talk to the main SWF.
    IE:
    on(release){
    _root.gotoAndPlay(1);
    If you did set the lockroot, then call the level directly, via:
    on(release){
    _level0.gotoAndPlay(1);
    Once on the root level, you can access a movie clip as normal.
    So:
    on(release){
    _level0.movieClip1.gotoAndPlay(1);
    will call the movie clip "movieClip1" which resides on the timeline of _level0 (which is main.swf in your instance), and tell it to jump to the first frame and start playing.

  • Batch loading jpegs from external file

    Hello,
    I would like to preload a batch jpegs from an external file
    (to make it easy for changes) - than use them in a slide-slide show
    using a movieClip holder or loader component. I can use this
    tutorial -
    http://www.oman3d.com/tutorials/flash/portfolio_2_bc/index.php
    But I don't what to have each jpeg loaded separately I want
    them to preload b4 using..
    What would be the best way to preload the external batch to
    use for a slide show with next btn and prev btn? I can't find any
    tutorials one this.
    Thanks for any help,
    Dave

    In terms of where:
    Well, for as2, you will probably need to load them as
    dynamically created child clips of a single parent clip that you
    use to display one swf from. You would cycle through them and just
    set the _visible property of your 'current' clip to true and all
    the others to false. Your next and previous buttons could change
    which one was visible.
    But if they are large images, you'll probably use a lot of
    memory doing it this way and it would take longer to load them all
    at the start. Its more usual to, for example, load all the
    thumbnail images - smaller images, quicker to load - and then load
    the larger one into a main viewing area when its thumbnail is
    clicked.
    How
    There are plenty of examples of how to do this in tutorials
    etc.
    If you want to load all the thumbnails first, then perhaps
    you won't find exactly what you want as a tutorial. Not every
    possibility is covered in a tutorial. All I can really do is point
    your in the right direction. If it were me I would use something
    like David Stiller's MultiLoader class to make it easier perhaps
    (in fact I have my own which works a little differently but was
    seriously inspired by what I learnt from David's article at
    http://www.quip.net/blog/2007/flash/actionscript-20/tracking-multiple-files-part1
    & 2 )

  • Sound from External swf

    I have a main movie (index.swf) that preloads my external SWF
    that is a menu button 4.swf
    My index.swf has background music (song1) that plays on load.
    I also have background music (song2) that plays on my 4.swf
    It works fine when I test 4.swf directly however when I load
    my main index.swf I do not hear the song2.
    I used stopAllSounds(); in my4.swf to stop the background
    music (song1) and then load my song2
    stopAllSounds();
    my_sound = new Sound(sound_loop);
    my_sound.loadSound("4.mp3",true);
    my_sound.start(0,100);
    This has gotten me to get both songs to play when the site is
    loaded and when I click on my menu for 4 button all the sound stops
    and my song2 never plays.
    My actionscript is not very good so any details you can give
    would be greatly appreciated.
    Thanks much!

    here is frame 3 of my loader in index.fla
    var movie:MovieClip =
    _root.StoredActions.Holder.Movies.Holder2.CMovie.duplicateMovieClip("CMovie"
    + n,n);
    loadMovie(n+".swf",_root.StoredActions.Holder.Movies.Holder2["CMovie"+n]);
    if(n>1){
    _root.StoredActions.Holder.Movies.Holder2["CMovie"+n]._x =
    3000;
    var MovieLoaded = 0;
    percent = 0;
    frame4
    MovieLoaded =
    _root.StoredActions.Holder.Movies.Holder2["CMovie"+n].getBytesLoaded();
    loadTotal =
    _root.StoredActions.Holder.Movies.Holder2["CMovie"+n].getBytesTotal();
    percent = int(MovieLoaded/loadTotal*100);
    Bar.gotoAndStop(percent);
    loadingName = ("Loading... " + percent+ "%" + " of "+ n);
    Loadtext_txt.text = loadingName;
    if (loadTotal>10) {
    if (MovieLoaded>=loadTotal) {
    gotoAndPlay(6);
    frame6
    if (n < _root.StoredActions.nMenus) {
    n++;
    gotoAndPlay(3);
    } else {
    gotoAndStop("Stopload");
    _root.gotoAndPlay("Play");
    I know that the above code is loading all the external swf
    and causing the music to start after load. Is there a way to stop
    it from loading the sound?

  • Loading library movie symbol from external swf

    Hi, I have a Flex/Air Application and I want this application
    to load in an external SWF and display a particular asset from the
    SWF library (just like attachMovie in AS2). I dont want to embed
    the SWF into the Air application. For the life of me I can't find
    any tangible info on how to do this. My second problem is that the
    assets sit in an SWF published for AS2 (is that an issue?). All
    content resides locally.
    Can anyone help or point me in the right direction?

    I see now how to import and display a library class object
    using:
    var MovieClipClass:Class =
    Class(loader.contentLoaderInfo.applicationDomain.getDefinition("myLibraryAsset"))
    var movieClip:Sprite = new MovieClipClass();
    addChild(movieClip)
    But this seems to only work for SWF's published for AS3 Flash
    Player 9.
    I need to do the same for SWF's published with AS2 Flash
    Player 7.
    Any ideas?

  • Screenshots from external swfs

    How can i draw a movieclip that contains an external swf onto
    a BitmapData variable?
    I'm loading the movieclip with:
    moviecontainer=_root.createEmptyMovieClip("moviecontainer",10);
    moviecontainer.loadMovie("pacman.swf",0);
    Then i initialise the BitmapData var with:
    var snap:BitmapData = new BitmapData(Math.floor(nwidth),
    Math.floor(nheight),false);
    When a button is pressed i try this:
    snap.draw(moviecontainer,new Matrix());
    I expected the BitmapData snap to contain a screenshot from
    the external swf pacman.swf, but it doesn't.
    Does anyone know what i'm doing wrong?

    Thanks! I was close to giving up, but this really works
    great.
    The code for the php script is:
    <?php
    $data=explode(",",$_POST["img"]);
    $im=imagecreatetruecolor(max(1,$_POST["iwidth"]),max(1,$_POST["iheight"]));
    imagefill($im,0,0,imagecolorallocate($im,255,255,255));
    $i=0;
    for($x=0;$x<$_POST["iwidth"];$x++){
    for($y=0;$y<$_POST["iheight"];$y++){
    $r=hexdec(substr($data[$i],0,2));
    $g=hexdec(substr($data[$i],2,2));
    $b=hexdec(substr($data[$i],4,2));
    $color=imagecolorallocate($im,$r,$g,$b);
    imagesetpixel($im,$x,$y,$color);
    $i++;
    imagepng($im);
    ?>
    i changed the code inside the two for-loops in the .fla to:
    tmp = snap.getPixel(a, b).toString(16);
    pixels.push(tmp);

  • Loading library assets from external .swf

    Ok, so here's what I want to do. I'm creating an application
    that has optional classes that it can instantiate based on what the
    needs are. These classes operate things like Session Logging
    utilities, etc. These items obviously have assets that they need
    available such as movieclips and buttons. For example, the Session
    Logger has a sessionLog_mc clip that has a log window with buttons
    and the log display. I want to be able to have my class load the
    external .swf that contains the assets for the Session Logger and
    then use attachMovie(), once the .swf is loaded, to attach the
    sessionLog_mc from the library of the loaded external .swf file.
    This does NOT seem to work at all. This seems like it has to be
    possible. I don't want to be forced to put all my code into
    external .swf's too. I just want some external asset .swf's (or
    maybe just one large one) that I can load. Is this possible? I am
    wanting to have the ability to show the progress of loading each of
    these components while the application is starting up and loading
    the asset files. Thanks so much!
    Here is an example of what I'm trying: (the attachMovie does
    NOT work at all)

    I see now how to import and display a library class object
    using:
    var MovieClipClass:Class =
    Class(loader.contentLoaderInfo.applicationDomain.getDefinition("myLibraryAsset"))
    var movieClip:Sprite = new MovieClipClass();
    addChild(movieClip)
    But this seems to only work for SWF's published for AS3 Flash
    Player 9.
    I need to do the same for SWF's published with AS2 Flash
    Player 7.
    Any ideas?

  • Import objects from external swf file

    How i can import linkaged items of library of an external swf file im my project?

    check the applicationdomain class.

  • New movieclip from external swf

    Hi everybody!
    I have an externally loaded swf with several keyframes on it´s own timeline. I would like to duplicate content of current (stopped) keyframe to new movieClip. There is no duplicateMovieClip in AS3 anymore.... how could I do that. Now I´m using draw and bitmapData to create new bitmap from stage, but quality is not very good (I also print that bitmap). It would be better if I could create it as movieClip and retain vectors and text unrasterized...

    how come? When I print that bitmap screenshot of a stage to letter size paper with fit to page, small text is very blurry and hard to read. If I print same view normally, it´s very sharp... is there a way to lift up resolution/size of generated bitmap?

  • Stop sound From external SWF

    Here is my issue. I have a main.swf and I load an external
    music player.swf. I need to stop the sound from the player.swf when
    I push a button on the main.swf. Not all buttons just some buttons.
    I now I will need to put the code in each button. Thanks

    it works for all sounds that are playing when it executes no
    matter where they orignated.

  • Saving JPEG from External Image Editor (CS2)?

    When I purchased Aperture I'd hoped it would store three copies of each photo; the original untouched RAW and a Photoshopped TIFF and JPEG, but 70mb+ TIFF files appear to be taking their toll. I will probably store them in another app, leaving the RAW and JPEG in Aperture.
    Anyway, to cut to the question.
    I send a 16 bit TIFF to CS2 directly from Aperture using the 'External Image Editor' option. When I've done all of the necessary work in CS2, save the 16bit TIFF, and then convert to 8 bit and 'Save As' to JPEG.
    Aperture appears to be able to automatically retrieve a TIFF file, but not a JPEG.
    Does anybody have any ideas of a way round this?
    Currently, I'm saving JPEG's to my desktop, then re-importing into Aperture. I hoping it doesn't need to be quite so long winded!

    Fast is a relative term. However, I will say this: I shoot primarily RAWs, and my largest megapixel count is the 11 megapixels of my Canon 1Ds. On my PowerBook I felt Aperture was fast enough for image sorting and metadata editing, but was a bit jerky and slow for image adjustments. Also, the PowerBook video card was not up to the task of switching views because it would regularly get scrambled and then settle down when switching views. I bought a MacBook Pro C2D w/2GB RAM and I'm very happy with the performance of Aperture on this machine. Adjustments are smooth. Even loading the Masters from 7200 RPM external drive seems much snappier on the MBP.
    I haven't had much time with Aperture on my G5 Dual 2GHz w/3.5GB RAM because I severely fractured my ankle shortly after I bought Aperture and only one hour after I arrived home with my new Raedon X800XT graphics card. (My G5 is up a flight of stairs in my studio and I have to sit with my leg elevated 24/7.) I've read in this forum that this combination is workable, but perhaps I'll find myself wishing for a MacPro. Given how happy I am with the MBP, I can't imagine being unhappy with a MacPro.
    I keep Activity Monitor running on my machine and have set it to load on boot. I set the icon to show the memory usage pie chart. I keep an eye on it as I run my programs. I only keep essential programs open when I am working in Aperture.
    I have found that smaller projects are quicker. Like you, I originally had multiple thousands of images in projects. Then I changed my structure to have many projects under blue folders. My projects are all under 1,000 images now.
    BTW, have you seen this post?
    http://discussions.apple.com/message.jspa?messageID=3663650#3663650
    -Karen

  • Play exit animations on multiple external SWF's?

    Hi,
    Here is what I would like to do: I have some buttons, then 2
    movie clips named container and container2. When I click on a
    button, an external SWF is loaded into container. I have it working
    so that when another button is clicked, it plays the exit animation
    of the current SWF, then loads the new one. Here is the code that I
    used for that:
    on a button:
    Code:
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "who";
    container.loadMovie("who.swf");
    } else if (_root.currMovie != "who") {
    if (container._currentframe >= container.midframe) {
    _root.currMovie = "who";
    container.play();
    In who.swf frame 1:
    Code:
    midframe = 114;
    In who.swf last frame:
    Code:
    _root.currMovie = undefined;
    stop();
    Frame 114 is where the exit animation starts.
    What I would like to do, is have a button in who.swf, that
    will load another external swf into container2, while leaving
    who.swf in place. Then, when one of the main buttons is clicked, I
    would like it to play the exit animation of the swf that is
    currently in container2, then play the exit animation of the swf
    that is currently in container, then load the new swf into
    container. Can someone please help me out with the code for that?
    Thanks!

    the thing is that i had to keep a reference to my Loader.
    if you dont keep a reference to the Loader who is processing the loadBytes(), the Garbage Collector could close the Loader, wich causes the loader to unload.
    i tried this with a test, i load 1 swf binary with an urlloader, and in the complete-event i create 100 loaders wich do a loadBytes on the loaded bytes.
    the FlashBuilder console traces 100x [SWF] <path> 1000 bytes after decompression, and sometimes i get a whole bunch of [Unload SWF]
    this is because i dont keep any reference to the Loader. if i would keep a reference to the loader stored in an array, i dont get the unload. when the loader is done, you can store the content in a variable, and remove the loader, but as long as its loading, you should keep a reference to the loader.
    Hope this helps others.
    p.s.  i keep seeing [SWF] Main.swf instead of [SWF] <loaded swf file> is because i load the swf with an URLLoader (wich gives no trace), but when i do a loadBytes, it doesnt know its path anymore, so you get the root-swf, Main.swf in this case.

  • Unable to load external swf which has runtime sharing with another swf.

    Hi,
    I am getting issues on loading external swf say "importer.swf" file into another swf file say "loader.swf" for second time like
    ReferenceError: Error #1065: Variable testSymbol is not defined. VerifyError: Error #1014: Class testClass could not be found.
    at global$init()
    In the external swf "importer.swf", i am trying to import the symbol "testSymbol" from another swf file say "exporter.swf", which exports through runtime sharing option for the symbols.
    I am having some buttons in loader.swf file and on each button click i am loading different swf files into the loader.swf after unloading the previous one.
    I am able to load and unload different swf files but unable to load the importer.swf file which is sharing symbols from external swf and that too for the second time i.e., when i click the button twice.
    When trying to debug with flash debugger, all the other swf files are being unloaded before loading of another swf but the swf which is sharing symbols/classes with another swf is not getting unloaded.
    Output when i am trying to load two files example and importer files into loader.swf file on two different button clicks. On first button click example.swf is loaded. On second button click , example.swf is unloaded and importer.swf is loaded which is successful. On first button click again importer.swf is unloaded and example.swf is loaded. On second button click again, example.swf is unloaded and importer.swf is loaded, here i am getting issues shown above.
    Attemping to launch and connect to Player using URL D:\runtime issue\loader.swf
    [SWF] D:\runtime issue\ loader.swf - 8181 bytes after decompression
    [SWF] D:\runtime issue\example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    [SWF] D:\runtime issue\importer.swf - 441708 bytes after decompression
    [SWF] D:\runtime issue\ example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\ example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    ReferenceError: Error #1065: Variable xxxxxx is not defined.
    Debug session terminated.
    Code i am using
    b1.addEventListener(MouseEvent.CLICK, b1Clicked);
    b2.addEventListener(MouseEvent.CLICK, b2Clicked);
    var ldr:Loader;
    function b2Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("importer.swf"));
        addChild(ldr);
    function b1Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("example.swf"));
        addChild(ldr);
    If i try to open the swf using IE, i am not getting any issues at all. But i need to open this loader.swf in a air application. Also when i use loaderContext for the loader instance i am able to get rid of this issue but i cant use it in my application.
    So, please help me in resolving this issue.
    Thanks

    I got my answer. I had to append the photo url to the 'movie' value of the javascript embed method. Like this:
    <script language="JavaScript" type="text/javascript">
       AC_FL_RunContent(
          'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
          'width', '550',
          'height', '400',
          'src', 'lesson2',
          'quality', 'high',
          'pluginspage', 'http://www.adobe.com/go/getflashplayer',
          'align', 'middle',
          'play', 'true',
          'loop', 'true',
          'scale', 'showall',
          'wmode', 'window',
          'devicefont', 'false',
          'id', 'lesson2',
          'bgcolor', '#ffffff',
          'name', 'lesson2',
          'menu', 'true',
          'allowFullScreen', 'false',
          'allowScriptAccess','always',
          'movie', 'lesson2?photo=http://www.flash-mx.com/images/image1.jpg',
          'salign', ''
          ); //end AC code
    </script>
    Thanks,
    srb.

  • External swf in powerpoint communicating with eternal xml

    Hi there,
    I have a powerpoint presentation where I've put a shockwave object with an URL to an external swf, which is infact an application form and is storing data to XML in the same location as swf. Now this functionality works fine in a browser, but now if you imagine that I use powerpoint as a browser and apply the form from there it just doesn't get to the XML on the server.
    Are there any security restrictions in powerpoint that don't let data flow from external swf opened in powerpoint ? Is it possible to overcome it ?

    you are right the blue thinguy is in fact a bouton in my swf.
    i'm still kindof lost tho, i don't quite understand what you means by "move the loader" sorry i'm still a noob at flash and speaking english doesnt help.
    here's the full source files with everything if you have time to take a look, it might be easier than pasting chunk of code
    source files

Maybe you are looking for

  • Can we remove the Continue button from Quiz Results?

    Hi Everyone, Is there any way to remove the continue button from the Quiz Results page? I have a captivate file in which there is a Thank you slide at the end after the Quiz results slide. Now, here's the problem - The user is just finishing the quiz

  • Computer recognizes Touch but firmware doesn

    I'll make this short: . Had problems upgrading Touch firmware 2. Touch is now stuck in recovery mode no matter what I do 3. Tried to re-upgrade firmware 4. Computer connects to player (docking screen comes up) 5. Firmware app says I am not connected

  • LabVIEW 2009 sp1 not responding / crash

    Hi,      I seem to have developed an issue with LabVIEW whereby it freezes at a random point during execution. It is not a case of a VI freezing, rather the LabVIEW application itself ceases to work and needs to closed by task manager. What I have ru

  • Unable to open a new DB environment on PQ3

    I'm trying to create a new environment on PQ3 processor. The same code worked in x86. The result is like this: function db_env->create succeeds, then function db_env->open 1) creates files __db.001 and __db.002 2) remains stuck for less than 1min 3)

  • I want to change Quantity in the Billing Document.

    Hi, *+Order - related Billing+* I creat the Service sales order with 100 Quantity. While i am creating billing document System by defalt taking 100 Quantity. But  i want Bill Only 50 Quantity. Who to change the Quantity in the Billing Document.The qu