IDE :: Possible To Send Or Get An Image Or Swf Using Amfphp
Apr 12, 2007
i want to use amfphp to get a very long text so i want to be able to show the progress of the download with a preloader but i dont know how to do this, also i dont know if it is posible to send or get an image or swf using amfphp.
I am creating some application in flex and one of my purposes is to read content of file and display it in flex. There is huge problem, when I have file written in polish (which contains some special characters) because amfphp transfers this contents few seconds, which is to long (reading and sending content of file without any polish character if fast).My php code reads any files fast, so problem is on amfphp side. Is there any solution or I have to go with HTTPService and load contents of file directly from flex?
I have a PHP image object created using imagecreatetruecolor(). I'd like to send this via AMFPHP to Flash. I understand the best format is using a ByteArray. How can I achieve this without writing the image to the disk?
I'm working on an image gallery, I got inspiration from sen's tutorials and this gallery works, but not like I would like it to work.This gallery loads images from an xml file and place them into some containers on stage.This gallery gives the idea of perspective and space.All the images are placed in 5 rows (8 images per row, a total of 40).When you rollOver an image it comes to the front.What I can't manage yet is how to send the image to the end of the row, I mean, when you rollOver the third image I want the previous two to go to the end of the row.I hope I made myself clear.I think this is the function that I need to correct:
Code: displayStar = function (cameraView, focalLength) { var x = this.x-cameraView.x;
I have populated a php page where i pull image in that php. Now how can i put those image in flash by array. The php code is
<?PHP $link = mysql_connect("localhost","root",""); mysql_select_db("dbname"); $query = "SELECT * FROM dress where dress_type='shirts' AND sex='male'";[code].........
I'm trying to build an Air application where a user can drop in an image. That image needs to resize if it's bigger than 1024px 1024px.
What's the best practice for resizing an image in Air development? And what's the best practice if I want to send this to codeigniter amf server in Air 2.0, bytearray format?
I have a simple text chat flash client written by AS3. Text message can be sent and sync among flash clients. However, how can I send icon image in text chat like MSN?
The swf file kind of captures a certain area of a flash movie which is loaded in.. I guess it works a bit like a camera..Anyway, what I am trying to do is figure out what determines the size of JPEG produced. At the minute its pretty small.The Flash movie is used to make an avatar. When the user is finished they hit a button and it captures the design, then emails it.I have found a line of code which relates to the size of the jpeg which is emailed
var myBitmapData:BitmapData = new BitmapData(230, 200);
What I want to do is produce a much bigger image than 230, 200
I tried changing those numbers higher and it did not work,Also I want to be able to send the image to a seperate page where an API can be picked up.Here is the code
I'm trying to create a custom class that will create a tile (a small rounded square) when requested, with a small image on it. I can successfully create the tile, as shown in the code below, but I don't know how to pass the class the pictures data.Is it possible to do this using bitmapData, or by referancing it throught the library (if i store my picture in a movieclip in the library?[code]
Want to know whether it is possible to attach one image, or a zipped text file with the email form in a Flash template.Actually I want to send one image and one text file as attachment.
I want to resize a image using flash resizer.java script browse and upload a image and send to flash resizer and flash resizer resize the image and send back to javascript.Is it possible to send and receive image from javascript and if yes then please let me know what I need to do on flash end and how i can make javascript accessible to my flash code.do i need to load my full sourse code or javascript done there job with SWF only.
When using flash remoting with amfphp, what can I write in php that will trigger the 'status' method that I set up in my Responder in Flash? Or more generally, how can I determine if the service call has failed? The ideal solution for me would be to throw some exception in php serverside, and catch that exception in flash clientside... How do other people handle server errors with flash remoting?
How would I send variables to php when I use AMFPHP? I'm trying to send mediaID and voteValue to my php file, but nothing seems to happen. I guess there's something wrong here..
Is it possible to deserialize the AmfPhp messages while remoting? They are in binary, and assuming that amfphp understands what they are I should be able to decode what it s.
is there any other framework that does the same as amfphp? I dont want to use amfphp because it hasnt been updated in years and looks like it's no longer under development, I have to use PHP so I'm looking for a PHP alternative.
its few days i'm stock with a issue using amfphp 2 in my actionscript project. i have an actionscript project which gets the data from db through amfphp, when i run the complied swf in debug mode or just run through flash player it works fine , but once i wrap it with html and open it through browser it never gets the data from db, dose any body can help me what is going on ? i have added these lines at the first of the project , but still through browser ( i've tried , Chrome, Firefox and safari) it cannot connects to db.
i have a problem passing ByteArray from flash (as3) to amfphp to save an image.With old version of amfphp, all worked in the past... now, with new version i have many problem.I'm using version 2.0.1 and the first problem is that i have to do this, for access to my info:
I'm having a very strange problem around a few services I developed for AMFPHP that worked fine over HTTP but once over HTTPS gone completely wrong. When testing right on export flash IDE the connection goes fine but when online and on the browser it doesn't. On connecting, Flash returns a security sandbox violation like this:
"Error #2048: Security sandbox violation:[URL] cannot load data from [URL]. I know that I'm missing the "www" subdomain on the gateway secure address but this is has another purpose for domain configuration. What's most weird is that even the Service Browser went completely wrong since it tries to open the gateway through the HTTP version of the address instead of the HTTPS one. Upon opening the browser I get a "NetConnection.Call.Failed: HTTP: Failed" error. It also tells me that it's trying to connect to [URL] instead of [URL].