# \[as3\] How to use flex/as3 examples in flash 9

**URL:** <https://forum.kirupa.com/t/as3-how-to-use-flex-as3-examples-in-flash-9/215824>\
**Category:** flash\
**Created:** [February 10, 2007, 9:59pm UTC](https://forum.kirupa.com/t/as3-how-to-use-flex-as3-examples-in-flash-9/215824 "2007-02-10T21:59:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![superjohn](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@superjohn](https://forum.kirupa.com/u/superjohn)\
**Post date:** [February 10, 2007, 9:59pm UTC](https://forum.kirupa.com/t/as3-how-to-use-flex-as3-examples-in-flash-9/215824/1 "2007-02-10T21:59:57Z")

</div>

I want to test some things in AS3, and am currently trying to use some things i found on the internet. A lot of the examples are made for flex (i think)… they just dont work.  
Take for example the [pngencoder](http://labs.adobe.com/svn/flashplatform/?/projects/corelib/trunk/src/actionscript3/com/adobe/images/PNGEncoder.as)from adobe. Copy pasting it obviously doesnt work, so could anyone explain how to change it?..

Cant wait to try out all these examples :azn:
