ActionScript 3.0 :: Incoming XML Looks Completely Corrupted
Sep 11, 2010
I'm calling a php page from my Actionscript which generates XML and sends it back to me. No problem; I've done this hundreds of times before. Now, however, I get a weird problem: The *second* time (and subsequent times) I call the php page, the returned XML looks like[code]...
I have a big ressource XFL file which keeps a lot of graphic ressources for a computer game.It contains a lot of externally linked graphic symbols (Linked as AS3 classes)This file is extremely prone to getting corrupt after just a few changes. It's like walking through a mine-field.The main symptom is: Suddendly flash starts duplicating layers and Symbols - seemingly endless!What can it be that triggers this? I always close and re-open the file when this happen and everything is back to normal for some minor changes until it happens again.There are also some symbols where it takes almost half a minute before it can be displayed in the library preview window when clicking on it in the library, with very high CPU consumptions.Being a programmer myself I suspect that there is something like a "feedback loop" that causes this behaviour: Some internal back-referencing of nested symbols which gets caught in some kind of loop at a certain point.
I was working on an animation for a project and Flash told me it couldn't save and Save As wasn't working. The program crashed and the file I was working on was corrupted. I doubled my effort on getting back to where I was on my project, being extra careful not to do what caused it to crash before. Unfortunately, fate was not on my side, and it did it again. Obviously I'm screwed, but still I like to keep on to my projects and upload them to megaswf or something to share on facebook. I'm using CS5 btw.
I want to save an image using PHP. Everything seems to work fine, but when I try to open the picture, I get an error message: "it is not possible to open the file, the jpg file may be corrupted".
I'm combining streams from a number of cameras together into a recorded stream, let's called it 'serverstream.flv'. The source streams are all from webcams, and each user is assigned a stream name based on their name and a user id, like '1_bob' and '2_julie'.
Sometimes the presenters stop broadcasting temporarily and we just switch to a blank window. The stream on the server side stops recording at that point by calling[code]...
i have noticed a problem i have loaded maths sums by xml. This work fine soon. The problem occurs when i add division symbol by pressing the numeric keypad holding down alt 0247. The symbols come in corrupted into flash
I was saving something on Flash when it crashed on me. Now I can't open it anymore, even though it still exists on my computer. I click on it to open it and Flash tells me that it has 'failed to open' it. I really don't want to start over again because it means another week of missed sleep and meals. Is there any way I can retrieve the document? I was using Flash CS5.
I'm using Flash CS5 on Windows 7. I was working on a file and went to save (CTRL+S) and the Save dialog locked up and Windows gave me an error that said "Flash has stopped working. Close Program" So I did and restarted Flash. When I tried to open the file I was working on, Flash said "Unexpected File Format" The file size of the SWF is right, it's not 0kb or anything. This is about 3 weeks worth of work on here. I'm checking the backup tape for our company server, but that will still set me back about half a day (which is better than nothing I suppose)
I like to protect, with a password and user name, the incoming stream to the FMS (application Live Packager). How can I instal a password (I don't mean SSL), to prevent that unauthorized persons can stream their own content over my server. This means, the Flash Media Encoder should ask for a password and username.
I'm trying to figure out whether or not it's possible to have two incoming streams to the same FMS server. Every time I try to search this information, I find stuff on having multiple outgoing streams, but nothing on multiple incoming streams.
The two streams will have the same content, but will use different video / audio codecs, and be set to different resolutions / bitrates.
I don't want to spend the money on another server, so it'd be great to know if FMS can do this..
I am attempting to retrieve data from a PHP file within my Actionscript file.I have a large amount of incoming dynamic variables so it is necessary for me to retrieve them all, however, I don't want to get every variable individually as that would take a very long time to code and does not work well. Is there any way to get all variables at once?[code]...
I am using Action script 2.0, Flash CS4. Flash Media Server. Working on windows 7.
[URL]
Its all working fine. I can put Pixel Effects on My Video Panel and it works fine when I broadcast my video using my web cam.
I want to implement same effect on the Incoming NetStream. But when I try to implement same effects on incoming NetStream it throws Security Error that Connection to rtmp://localhost/videochat halted - not permitted from file:///D|/xampp/xampp/htdocs/MIKE/Test/clientAS2/videochat.swf
I wonder why I can not capture pixels information using BitmapData for incoming NetStream ??
I need to pass along an incoming xml post request using as3? Is there a simple way to just pass that request through an as3 application? I don't want to do anything with the request other than send it along to its destination.
How can I parse my incoming string returned by server and get values?
Look at the code below, that is part of a class I am writing:
Code: var PHPURLRequest:URLRequest = new URLRequest(MyServerURL+"myscript.php"); var PHPsendVars:URLVariables = new URLVariables(); var PHPLoader:URLLoader = new URLLoader();
I use AS3 in Flash to read XML from an external document. I'm wondering how to tell AS3 to read and treat some of the incoming XML values as variable names. For example, in the beginning of my Actionscript, I have defined the variable:
Now, upon reading these two nodes, I want to make a function that adds the value of the second node to the variable with the name contained in the first node. However, I can only get AS3 to read the value of the first node as a a string ("playerAge"). How do I get it to make the 'connection' between the XML node and the variable with the same name?
I need my flash to pull data from php dynamically. I got a php file that listens mysql for new datas to be pulled in while condition.. when data pulled I have the following ideas: Use socket server within the same php file and send the data thru socket.. (this can be done but I do not wanna use socket yet!) have my flash file listen for posts but how can I send a POST variable from php to flash without clicking Submit button? Using Ajax and passing received-variables thru flashvars?Examples : [URL]
I'm trying to put in place a Flex application that allows a user to send a video stream and let the others to display it.
I created a sender page (below).
[code]...
I don't know why in the receiver page I can't display the incoming stream? I put a simple alert to show the returned connection code, it shows "Success".
we have this game where you control an avatar in the middle of the stage that defends itself from incoming projectiles. If it hits them with its arms or legs you get a +1, but if they hit the head or torso you get a -1. But cant figure out how to spawn them randomly along a given path. See picture below. Want them to come in from the sides but have the same "destination-area" - which would be the head & torso.
I'm using the "loadMovie" method and according to the using flash manual.. it's supposed to import a swf and resize it to the size of the movieclip it's replacing... only here's the problem.. I cant get it to shrink the incoming swf to the size of the clip calling the method... it keeps importing the swf at full size..
Is there any way to get Flex Builder to connect to an existing browser session running Flash Player Debugger? I can connect to FDB like this, but with Builder I need to click Debug and rush to close the newly opened browser window before it loads the Flash file and then go back to the session I want to connect and right click it to start the debugger.
Unfortunately this is not very reliable as I can't always beat the window opening, requiring several attempts before being able to connect to the session I am interested in. If I could just tell Builder 'Start debugging' and then have it wait for the connection, I could now calmly go over to the browser, right click, hit debug, provide the IP and voila. This would allow me to inspect variables on a hard to replicate bug on a session running on a tester's computer.
Whats the best way to destroy a movie clip? Right now I just do (AS3): removeEventListener(Event.ENTER_FRAME,enterFrame); MovieClip(parent).removeChild(this); But the object still exists in memory even though it is not executing script. Is there any way to completely get rid of it?
I used the search best of tutorial URL... to build a similar system. The thing is that my xml has much more content and now the search only presents partial results instead of all. I suspect that this has something to do with lack of time to preform a complete search to the xml file to get all the results and display them in flash.
I have this gradient backgroun where it goes from 0-100-0 of alpha.When I rollover a button, I add in the bg, and when i rollout of the bg, i remove it.The problem now is when I rollover the button the 2nd time,it seems like the bg added already have a previous added gradient bg, and it added a new 1 on top.so each time I rollover the button the alpha of the gradient will go higher
exp: 1st time rollover:0-100-0 2nd time rollover:10-100-10
I'm building a dynamic scoreboard for a client currently. The first application will be a golf leaderboard. It needs to be updateable by the client (I'll write a form that fills in the xml file from the users input)I need to have a xml file that defines..-number of columns/rows-titles-content in each boxand then the flash that takes that and generates a table from it.Is there any tutorials or source files floating around that do this? There's plenty that talk about in-game scoreboards, but we need to have all the data input from an external file.