Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

flash page flip

Actionscript 3.0 video tutorials

+ Reply to Thread
Page 8 of 8
FirstFirst ... 6 7 8
Results 71 to 78 of 78

Thread: SWF to PNG with Actionscript 3.0 - ByteArray class

  1. #71
    Junior Member Settled In robinhavoc is on a distinguished road
    Join Date
    Jun 2008
    Posts
    1
    Rep Power
    0

    Re: SWF to PNG with Actionscript 3.0 - ByteArray class

    amazing Flash templates
    does any one of you is able to export the png as transparent. if so please let me know.

  2. #72
    Junior Member Settled In ashdude is on a distinguished road
    Join Date
    Sep 2008
    Posts
    1
    Rep Power
    0

    Re: SWF to PNG with Actionscript 3.0 - ByteArray class

    The above post does work with changing the flag inside the main .as file to true and republishing the main swf file.

    The reason why you guys might not see the transparent effect is because IE6 doesn't display transparency in PNG files without the help of a filter. Firefox displays the transparency fine.

    So my suggestion for noobs is, change:

    Code:
    var encoding:PNGEncoder;
                    bitmap_data=new BitmapData(stage.stageWidth,stage.stageHeight,false,0xDEDEDE);
                    bitmap_data.draw(clip);
                    byte_array=PNGEncoder.encode(bitmap_data);
    to

    Code:
    var encoding:PNGEncoder;
                    bitmap_data=new BitmapData(stage.stageWidth,stage.stageHeight,true,0xDEDEDE);
                    bitmap_data.draw(clip);
                    byte_array=PNGEncoder.encode(bitmap_data);
    and save it

    republish the swf file to something with a different filename like main_eng_trans.swf

    embed this new movie into a new html page and run it.

    After the final image is displayed, right click it and "save file as" to the desktop and hey presto the image has transparency.

    To get IE6 to display it properly is harder but check this post:

    A List Apart: Articles: Cross-Browser Variable Opacity with PNG: A Real Solution

    Cheers!

  3. #73
    Junior Member Settled In alexnechifor is on a distinguished road
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Re: SWF to PNG with Actionscript 3.0 - ByteArray class

    flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER.

  4. #74
    CSS.FlepStudio.org Moving My Stuff To The FlepStudio Onsitus is on a distinguished road Onsitus's Avatar
    Join Date
    Jul 2007
    Posts
    1,366
    Rep Power
    4

    Re: SWF to PNG with Actionscript 3.0 - ByteArray class

    Quote Originally Posted by alexnechifor View Post
    flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER flep<-LIFE SAVER.
    Original as a first message.

  5. #75
    Junior Member Settled In maximillion is on a distinguished road
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Exclamation Re: SWF to PNG with Actionscript 3.0 - ByteArray class

    flep,

    i am new to AS3 and i need some help with this.. heres what i am trying to do.
    i have a an swf that upon the user finishing and clicking a button to move on i can "screenshot" the entire app and send it over in a PNG to a location on my server.

    I still havent started working with classes yet, so i am confused as to how i can apply this to my app. can you help? I have been searching for a solution to this for days now and i need to get this done ASAP.

    thanks in advance.


    max


  6. #76
    Junior Member Settled In Tej.shah20@gmail.com is on a distinguished road
    Join Date
    May 2009
    Posts
    2
    Rep Power
    0

    Re: SWF to PNG with Actionscript 3.0 - ByteArray class

    Really, this is Very helpfull tutorial

  7. #77
    Junior Member Settled In velraj is on a distinguished road
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Re: SWF to PNG with Actionscript 3.0 - ByteArray class

    hi flep,

    i need a solution to for my personal website just like as scribd, and gazhoo functionality.

    I have created a community website which allows the registered user to upload documents, and the webadmin converts the such documents to .swf files. for this i m using print2flash trial edition and i will upload this swf to my server once it converted to swf.

    Now i want to convert these swf files located in a folder to png format images in another folder?

    can you help me

  8. #78
    Junior Member Settled In gofornet is on a distinguished road
    Join Date
    Jan 2010
    Posts
    1
    Rep Power
    0

    Re: SWF to PNG with Actionscript 3.0 - ByteArray class

    A very good guide. Your solution is that I need. But when I download your source, I can't extract it. There may be a problem in your souce. Is't possible to send me a copy by email? My email is: goingtoknow#gmail.com. Thanks so much for your help.

+ Reply to Thread
Page 8 of 8
FirstFirst ... 6 7 8

Similar Threads

  1. Replies: 12
    Last Post: 25-11-09, 08:36
  2. Date class of Actionscript 3.0
    By Flep in forum Tutorials
    Replies: 0
    Last Post: 15-10-09, 07:19
  3. Timer class of Actionscript 3.0
    By Flep in forum Tutorials
    Replies: 6
    Last Post: 21-02-09, 00:59
  4. Using PrintJob class of Actionscript 3.0
    By Flep in forum Tutorials
    Replies: 0
    Last Post: 19-11-08, 06:12
  5. CheckEmail Class - Actionscript 3.0
    By Flep in forum Tutorials
    Replies: 9
    Last Post: 19-12-07, 08:03

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Optimization by vBSEO