ImageSnapshot and PNGEncoder in Flash

As usual I've come across something easy to do in Flex but not in Flash. Flex
has ImageSnapshot and PNGEncoder to get a .png out of a display object.
I was wondering if there were any way to do this in flash without using a 3rd party API
as I can't distribute a license with my app.
I'm using Flash CS5. I wish there was as much support for Flash as there is for Flex.
I've had to write my own tree component, if I'd have used Flex I could have just used the
Flex tree component. I'm hoping I don't have to write my own display object to png class
myself.
Cheers,
Alex.

The AS3 core lib has a jpeg encoder, png encoder and some other nice utility classes.
http://github.com/mikechambers/as3corelib
Been around for years...

Similar Messages

  • Can I purchase Mountain Lion and make a flash drive bootable? I do not want to install it on my Macbook Pro. I have Snow Leopard on my Macbook Pro now, and due to my hard drive needing repair I need to boot off of another source, like my flash drive.

    Can I purchase Mountain Lion and make a flash drive bootable? I do not want to install it on my Macbook Pro. I have Snow Leopard on my Macbook Pro now, and due to my hard drive needing repair, I need to boot off of another source, like my flash drive. I am in Paris and my Snow Leopard DVD is in Texas.

    Mac OS X has a built-in disk diagnostic and repair program called fsck or file system consistency check. Here’s how to verify and repair your startup disk with fsck.  As soon as you hear the startup tone, press and hold Command-S on the keyboard. Keep holding down those keys until you see a black screen with white lettering. This is called “booting into Single User Mode.”  As the Mac boots in this mode, the screen reports each step of the process. The line should end in root#.  Right after the root# prompt, enter the following: /sbin/fsck -fy
    If repairing the disk in single user mode fails, it means one of two things. Either your hard drive itself is failing (a hardware failure), or the directory damage on your hard drive is beyond the capability of the built-in repair procedures in OS X.

  • Header and Footer in flash

    Ok. This was supposed to be a question about a header and footer in Flash. I intended to attach my fla to make it possible to understand what I was saying. As it turns out I can't figure out how to attach files. Is it even possible? That's my first question.
    Here's the actual question, although it will be very vague now: I have a basic header and footer in Flash that stretch to fill the screen horizontally. It works when I test the file inside Flash (Control>Test movie). But it does not work when I go "Publish Preview" and use the browser. Why is that and how can I sort it out? Any ideas?

    I'm convinced there are better ways to do navigation, but this close to the end I was hoping to just grind my way forward. Somehow I managed to get the second scene working (centered that is). But when I resize the window in debug mode an error is pointed out in the first scene. "Error #1009: Cannot access a property or method of a null object reference". The snippet goes like this:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    stage.addEventListener(Event.RESIZE, resizeStage);
    var header:MovieClip;
    resizeStage(null);
    function resizeStage(e:Event):void
        var sw:Number = stage.stageWidth;
        header.width = sw;
    And it's the last line here that's supposed to cause the error. Do you see anything apparently wrong? I tried  "var header:MovieClip; = new MovieClip();" but that didn't work at all.

  • HT4972 i cant update my iphone 3gs to a more newer ios? it says here error! and the phone flashes some connect to itunes.. an if i connct nothing happens.. help me.. the ipgone wont open . and work pls help me thank you!

    i cant update my iphone 3gs to a more newer ios? it says here error! and the phone flashes some connect to itunes.. an if i connct nothing happens.. help me.. the ipgone wont open . and work pls help me thank you!

    Hello AlexCornejo,
    Thanks for using Apple Support Communities.
    The screen you're seeing on your iPhone indicates it is in recovery mode.  Now since the device is not appearing in iTunes on your PC, first follow the steps in this article:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    After following those steps, you should be able to restore your iPhone.
    Take care,
    Alex H.

  • Re-encode and send to Flash Media Server?

    Hi all,
    I hope this is not a basic question - I'm in a bit of a loop
    with this.
    I need to do two things:
    grab a live video feed from a
    professional DV camera - the feed would be a standard BNC
    (composite) video cable + XLR mic cable or similar. I need to take
    that feed and somehow convert it to feed and broadcast live through
    Flash Interactive Streaming server (...a reliable hardware solution
    would be great!)
    I will also be receiving Windows
    Media MMS feeds from our parent company - can I re-encode live and
    send through Flash Streaming Server in real-time?
    Also - just in case it makes a difference, the camera is PAL
    - not NTSC. So far I've had no problem running tests with a camera
    connected directly via firewire.
    Thank you for any help you can offer.

    My first message got screwed up - so trying again.....
    Hi all, I hope this is not a basic question - I'm in a bit of
    a loop with this.
    I need to do two things:
    1. grab a live video feed from a professional DV camera - the
    feed would be a standard BNC (composite) video cable + XLR mic
    cable or similar. I need to take that feed and somehow convert it
    to feed and broadcast live through Flash Interactive Streaming
    server (...a reliable hardware solution would be great!)
    2. I will also be receiving Windows Media MMS feeds from our
    parent company - can I re-encode live and send through Flash
    Streaming Server in real-time?
    Also - just in case it makes a difference, the camera is PAL
    - not NTSC. So far I've had no problem running tests with a camera
    connected directly via firewire.
    Thank you for any help you can offer.

  • I need to reinstall my operating system for 10.5 after seeing a file folder and question mark flashing on my start up screen. Can anyone help me with this?

    I need to reinstall my operating system for 10.5 after seeing a file folder and question mark flashing on my start up screen. Can anyone help me with this?

    Hello,
    That means it can find the Hard Drive, or can't find the things needed for booting.
    See if DU even sees it.
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • The hold button on my ipod touch 3rd generation does not work and ipod randomly flashes on and off, asking if i want to restart it when no button has been pushed, any suggestions?

    the hold button on my ipod touch 3rd generation does not work and ipod randomly flashes on and off, asking if i want to restart it when no button has been pushed, any suggestions?

    it might be a malfunction in your device. you might ave to send it to repairation
    1.ave you try resetting it or restoring it?
    2. did your hold boutons whas working beffor?

  • I have an IMac 10.5.2 from about 5 years ago and recently my flash player stopped responding.  I tried to update my flash player but it tells me I need an updated system to install the player.  Can anyone help me figure out how to solve this problem?

    I have an imac osx 10.5.2 from about five years ago and recently my flash player stopped operating/responding.  Does anyone know if I have to install a new flash player?  I have attempted it several times and it won't let me.  I would appreciate any suggestions on how to solve this problem.  Do I need a new operating system?

    Why have you not updated to 10.5.8?
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS. Note that version 10,1,102,64 is the last version available to PPC Mac users*. The latest version,10.3.183.23 or later, is for Intel Macs only running Tiger or Leopard, as Adobe no longer support the PPC platform. Version 11.4.402.265 or later is for Snow Leopard onwards.
    * Unhelpfully, if you want the last version for PPC (G4 or G5) Macs, you need to go here:  http://kb2.adobe.com/cps/142/tn_14266.html  and scroll down to 'Archived Versions/Older Archives'. Flash Player 10.1.102.64 is the one you download. More information here:  http://kb2.adobe.com/cps/838/cpsid_83808.html
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications (including Safari) first before installing. You must also carry out a permission repair after installing anything from Adobe.
    After installing, reboot your Mac and relaunch Safari, then in Safari Preferences/Security enable ‘Allow Plugins’. If you are running 10.6.8 or later:

  • I still get plug in failure even after uninstall and reinstalled adobe flash to my mac os x 10.7.5 (4 bit) with flash 16.0.0.235 how do I get this fixed??? HELP

    I still get plug in failure even after uninstall and reinstalled adobe flash to my mac os x 10.7.5 (4 bit) with flash 16.0.0.235 how do I get this fixed??? HELP

    That crash appears to be casued by the Facebook plug-in.
    Create a new account (systempreferences -> accounts or Users & Groups on 10.7 and 10.8), make a new Library in that account, import some shots  and see if the problem is repeated there. If it is, then a re-install of the app might be indicated. If it's not, then it's likely the app is okay and the problem is something in the main account.

  • Apple TV loses picture output and status light flashes rapidly after 5 minutes hooked up via HDMI - DVI cable

    Apple TV connected to a 2005 50" plasma monitor with DVI input via belekin HDMI to DVI cable.  Unit worked perfectly long enough to get it connected to the wireless network and begin the itunes registration process when there was a loss of signal message on the screen from the monitor and the Apple TV status light flashed rapidly and continuously. Reset and reboot yeilded flashing rapid status light and no output detected from the monitor.  I contacted support online and was told to return the unit to the apple store.  I returned home with another brand new apple tv and connected it in the same manner with exactly the same results.  Is there something with the HDMI - DVI interface that is causing this?  Are there known issues with the HDMI - DVI connection to Apple TV with older plasma monitors?

    The Apple TV doesn't actually support DVI. Some have managed to get it to work others have had varying issues with it.

  • I want to download and install adobe flash player. When I do so one occur. A dialog box appears but it has no run option but a save file or cancel option.

    # Question
    I want to download and install adobe flash player. When I do so one of 2 things occur. A dialog box appears but it has no run option but a save file or cancel option. The other is if the proper dialog box appears, I agree and the a different box appears and there is foxfire with a red circle with a diagonal line across is appears.

    I find the easiest way to install Adobe Flash is to use the manual installers. You just need to download the installer to your computer, then run it to install Flash. For more details see http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    That link states you should uninstall earlier versions, as you don't have the version of Flash used by Firefox you can skip that step.

  • Ipod touch screen went black and then started flashing. Then the turn off slide comes up.

    Ipod touch screen went black and then started flashing. Then the turn off slide comes up. Restored multiple times and didn't work. Ipod works with Itunes fine (can put music and podcasts on the ipod), but can't take songs off of the ipod. Using windows xp and everything is up to date. Any ideas of how to fix it?

    I didn't know that it was posted three times. My computer didn't say that it posted anything.
    My ipod still syncs to itunes and I can put podcasts and music on my ipod, but I can't delete songs after I put them on the ipod. When I try to delete songs I try to delete it from the main music list on the ipod. It's also doing all the other stuff that I posted before. The screen will go black and then the power off slider thing shows up for a few seconds, then it'll show the unlock slider bar. Then goes black again. It will also do that when I have the ipod unocked and changing songs or playing a game. I've restored it to the factory default/new ipod and it still does the same thing. I've uninstalled and reinstalled itunes and then restored it again to the factory default and it's still doing the same exact thing. I checked and my computer is up to date.

  • How To insert Day And Time In flash AS2?

    I want to display Day and time in flash with AS2
    not only that i want to put certain event on certain date and time
    that means
    i have a movie clip with object on it ,when i run it,
    it changes its position
    BUT now i want to change movie clip position on certain date and time
    for eg;
    I have made a simple move clip of firework i want it auto play when it is
    (01.01.2012) (12:00 AM)
    Help Me.....

    user time is easiest.  the following checks if it's between 12am and 1am jan 1, 2012.
    var d:Date=new Date();
    if(d.getMonth()==0&d.getDate()==1&&d.getFullYear()==2012&&d.getHours()<1){
    // fireworks

  • How can I make a flash user interface with buttons to open up and navigate other flash files?

    Hello I would like to make a user interface that will serve as a tool to load and unload other flash materials like a slideshow. I would like to make a kind of slideshow with Flash that opens up other flash files which could be around 10-15 slides (frames) long each. I would want to ask if there is any way to make a link between navigation and other slides easily. And if there are ways, what action codes should I use for this. Thank you very much.

    All you need to do is load a swf into the main swf and target it with whatever controls you intend.  If you are using AS3 then you could use the Loader class to load the swf and then target the Loader.content with your control buttons.

  • Scrolling Text and Images in Flash CS3

    I am pretty new to Flash and I have spent all day trying to
    look up tutorials on making it possible to scroll text and images
    in Flash but none of them are working for me. I know you save the
    content into a movie clip but that's as far as i have gotten. would
    anyone be able to walk me through this PLEASE???
    Thanks,
    Peter

    You could use a Swing HTMLPANE or draw it all onto a
    BufferedImage and display that (code posted under 2D graphics thread).
    MArk

Maybe you are looking for

  • How to clear express edition database.

    Hi, db has remnants(sequences, views, etc) of former project. How can i entirely clear the express edition(10g) database to work without remnants of the previous project?

  • Using macbook with xbox 360.

    I was wondering if I could hook up my xbox 360 to play through my future macbook. How well would that run? Or should I just not even try to attempt that?

  • Schedule agreement releases

    How I will come to know the Schedule Agreement is released or not in ME84? LPA is agreement type. ME84 I have executed and next screen green light is coming. But while going to ME33L and seeing Release number ,its 0. Please explain how I can do this?

  • 12-month old iMac running Mavericks will not run Yosemite

    I have an iMac 21.5", bought new in September 2013 and currently running Mavericks with no problem. The OS is on the internal Mac HDD while Time Machine is on an external HDD. Previous OS updates have installed OK. Yosemite however will not run. Afte

  • Several XCode Issues

    I have a number of critical issues using XCode and I'm going to need help solving them. Here are some stats: MacBook Pro 13, Mid 2012 4 GB RAM OSX 10.10 (Yosemite) XCode reinstalled shortly before the posting of this note Version 6.1.1 1) iOS Simulat