pdf read pages to BitmapData in AS3 - actionscript-3

I’m starting a project in flash AS3 and my objective is to load any pdf file into my flash project and convert all its pages to BitmapData...
I am familiar with byteArray and I know I must access the pdf in binary level but I don’t know where to start and how to start.
I was hoping if you could give me some insight? Maybe a suggestion to an already library that is doing a similar work?
Any idea os appreciated just to get me started...

You can get any PDF renderer written on C/C++ and convert it using Alchemy to flash library.
Read this topic

Related

edit actionscript from swf - compiled file

I have one swf file, it is JW Player plugin. It have one actionscript file in which is whole plugin code, and rest of files are jwplayer api files. So i need to open that file (where whole plugin code is) and edit few lines. But there is a problem, because when i try to decompile file with sothink swf decompiler (and few others) - to convert it to .FLA, decompiles simply crashes. It is because of some file from jwplayer api library. So, next thing i tried is to edit via HEX (because there is not much to be edited), but i couldn't find what i needed. So what i need is - is there any way or not? If yes, which program can be used for this?
I've had to do something similar in the past. In my scenario, the client had the SWF but no FLA. I needed to change a hardcoded url and sothink wasn't decompiling but I could view the AS in the sothink previewer. Luckily for me the flash wasn't very complex so I was able to copy the AS and graphics out and start a new project. I would imagine that JW Player is much more complex so this may not be an option for you, but thought I'd mention it anyway.
Depending on your needs, you may be able to get what you want by using the plugin API to extend the functionality or maybe even by customizing a skin.

Load XML file from external server using AS3

I am new to AS3, I need to know how to load a xml file from Local server.
Lee Brimelow has a good tutorial on loading XML. You should just be able to pass your XML's full path to the URLRequest object. But make sure the external server has a cross domain file setup, or you won't be able to access it.
A good starting point for this kind of question could be the AS3 docs. As you progress with AS3, the docs will become an essential tool.
In this specific case you would want to look at the URLLoader Class
and probably have a look at the XML Class.
You should find typical use examples such as this one which loads a simple text file, although the general implementation will be very similar for an XML file.
Since you're a beginner, you would probaly like to check the video tutorials on Adobe TV as well as Lee Brimelow's website gotoandlearn.com (as referred to by Adam ) which is filled with excellent resources.

What are some good ways to Save/Load files in AS3?

I am writing a game in ActionScript3 using Flixel as a base. I have been unable to find a good method for saving and loading files from the player's local hard drive. I know Flixel has a way to save game data to...I think...cookies that the player doesn't really have access to, and I want to avoid this.
I first learned programming in Java, and one thing I've seen a lot of is scanning (Scanner) and printing (PrintWriter) lines of strings to/from text files. Something like this for AS3 would be my ideal, but if there are other methods I'm open.
Does AS3 have anything in its basic library that can do this task well? Are there libraries I can download and include that do this well/better?
If your game is going to run on a webpage your options are limited. Due to security concerns Flash is limited to reading and writing files specifically selected by the user.
Should you be using Air to make a standalone game, you will have regular access to the filesystem and can write files much like with Java.
If not, you will be pretty much stuck with Flash cookie equivalent, SharedObject.

Save feature in AS3

I'm currently developing a project manager in AS3 and I want to save them into files. I found this tutorial (http://www.purplesquirrels.com.au/?p=1297) to create and read my own file types, but its using AIR.
I want to put some instances inside it too, because I need to know how the objects are positioning in my Main MovieClip.
Is it possible to do in AS3/Flash CS5?
Thanks!
EDIT: I found XML type. Can I write instances into XML files?
Yes this is possible. The shared object provided by flash allows you to store data on the user's pc. Have a look at this: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SharedObject.html

Adobe AIR application audio

I have a quick question relating to Actionscript 3 / AIR. I have looked through the site, but may be searching for the wrong thing or terms.
Is it possible to get an application wide audio stream from an AIR application?
I am trying to create a local audio file containing everything (all channels) played in an AIR app.
Does anybody have any ideas or suggestions?
Kind regards,
Phil
Update:
I have tried using the SoundMixer.computeSpectrum() function, but it returns a bytearray (size 2480) full of zeros...
It looks like it isn't reading the audio data correctly... I am playing a swf loaded using a SwfLoader and it is playing the sound out...
Odd... Anybody got an idea..?
There is SoundMixer.computeSpectrum, which will give you the global waveform or frequency data for the app. Unfortunately, it is fairly unreliable, and if you are trying to piece together the entire accurate audio stream, it is probably insufficient. But it might be enough to suit your needs if you are making, say, a visualizer or something else that only wants to know the current state of the audio stream.
Have you looked at SoundMixer Class? It has a computeSpectrum method that can get all playing sounds into a ByteArray, if I'm not totally misinterpreting the docs there.