Flex :: Unescape Unicode Escape Sequences In ActionScript?
Apr 25, 2011
I am loading html page(UTF-8) content using UrlLoader. All characters in the result are represented as //x??(where ?? is 1 symbol). How can I get normal string from this?(with actual symbols instead of codes)
I'm having a problem with "&". Basically I haven't been able to escape this correctly in Flash AS3, however I did find this link which seems helpful: [URL]
How can I unescape HTML encoded characters (such as >, <, etc.) from a string, in Flex (AS3)?So, I have a string "x > 3" and I want the result string as "x > 3".
I've made an AS3 AIR proggie that works with PHP to look at a specific online directory of mp3s, get it's listing, and download to my local machine. It works fine, except when a song name has '&' in it. I'm not sure how to escape ampersands, or where the escape needs to happen - PHP or AS3? Here's the relevant AS3:
I am developing a Flex based window application. In that I have used a textArea, Now when I type some characters like ctrl+b, ctrl+e or ctrl+q, it shows some square characters in text area, I think these are some unicode characters but why these are being entered.
Unlike in simple textArea control on adobe example when I presses these key combination, there is nothing being entered, so why this only with me.
we have a C++ application that hosts a flex application in a MFC dialog. Everything works fine, all button pushes etc are passed directly on to flex with no problem at all, except the enter and escape keys, which immediately closes the dialog. We can trap the enter key, by implementing PreTranslateMessage() or OnOK() and impede the window closing behavior, but we still have the problem of passing these enter key pushes on to the hosted flex app further. There is no "default" button on the form or anything like that, perhaps MFC is linking the enter key to the close button in the title bar behind the scenes or something. Does anyone have any ideas how we can stop MFC from treating the enter key from being a special case.[code]
the thing is more or less like this: i am sending from some flash app some text to be stored in a database. before i keep it in the database, in the server side, i escape (or in this case i urlencode, the server script is in php). it stores the escaped or url encoded string before attaching it to a sql sentence, hopefully without "s or 's. now to retrieve it, i get it inside an xml node, so it comes just as it was kept in the database (if i have gotten it in a urlvar it would have come unescaped). when i unescape it ant display it, the spaces are replaced by '+'. i have tried trhis page:[URL].. it seems to get it right either in php format (with +), or with flash (with %20), seems to be equivalent.how do i set them to agree, between the flash and php escapes? are there any alternative ways either in flash or in php to url-encode, or does any of those receive parameters?
I've been given a task to create a program that will run an audio sequence. The goal of this is to press a button and have a audio sequence run where there are 3 different possible audio sequence outcomes. Each of the 3 sequences have a different % of being picked 20%, 50%, 30%. I came up with a break down of what i think i need to have happen:
within sequence 1 there are 4 audio clips once the second audio clip is played there is a 50-50 chance to skip the third clip and play the last or to continue and play all four.
sequence 2 has three audio clips
sequence 3 has one clip
I'm assuming i have to setup some kind of If then statements or maybe an array. I have only limited knowledge of action scripting with flash. Is there anyone that could point me in the right direction on how to accomplish this?
what to do in order to find the number of sequences in an array? for example: my array is: banana, banana, apple, banana, banana. what shell i do in order to get the numbers: 2,1,2? (2 bananas, 1 apple, 2 bananas).
I have been rendering large 3D frames as part of an animation for my main menu of my game. (1024*768) Very large.What is the best file format to import into flash as animation sequences, to get the best quality and compression out of flash. I am having trouble keeping file size down.
Unde linux, the foreign keys such as... do not seem to work with this code:URL...The output is wrong under Linux, but Windows is Ok.the output of foreign keys such as ü with Linux looks same here, totally broken, two chars appear: URL...
Im trying to create animations for use in sprite sheets for xna but am having some problems with exporting png seqeunces from flash with alpha.I know that if everything is on the main timeline then using the export as png seqeunce with alpha works fine, but when there are movieclip symbols on the main timeline, which themselves are animations, the movie symbols simply remain at their first frames on export.
I have been rendering large 3D frames as part of an animation for my main menu of my game. (1024*768) Very large. What is the best file format to import into flash as animation sequences, to get the best quality and compression out of flash. I am having trouble keeping file size down.
Does anyone have good tricks for exporting complex swf files as PNG sequences? We need to be able to edit the size of the final file, and a PNG sequences allows us to do this in AfterEffects while maintaining good detail. Also, what programs do people use to convert .swf files to .mov, etc? We are running into trouble, it seems some programs can't convert the .swf files.
It seems to work fine when I uploaded it to my testing site. It loads the correct swf and I can click on my menu link (the only other functional button with the action scripting) to go to another swf and it transitions correctly. Here is the problem:
After clicking on the menu link and trying to click back on the home link (containing the same swf as what initially loads) to redisplay the first swf, nothing happens. Then the menu button is unfunctional after that as well.
I've been pulling my hair out trying to get transitions sequences between externally loading swf's in my flash site.
I downloaded a flash app the other day. I can't put links since I don't have 50 posts, but if you type Dj Mixer on ActiveDen, it should come up.Basicly, it allows you to put sounds in a folder, add them to an XML file and the flash application acts as a mixer with a timeline. You can select which loop you want at what time and create your own track.There's one thing though, it doesn't allow you to export the sound. I have no experience in that area so I was wondering 2 things:- What would exporting the sound in an .mp3 format from the compiled sound loops involve in terms of complexity? Can this be done in a short time frame or is this something that requires a lot of knowledge and ressources?- Once the exporting to .mp3 part is done, I wanted to able to take that .mp3 and send it to my phone. Do you guys know of any Websites that offer a suitable solution for this?
I've made a *.swf file of the sprite sequences of 1000 images with (780 x 480) size. After that I embed this with another one class to show but every time it crushes during run time because of insufficient memory (assume that I have 2GB memory space). Which is the best way to implement such big sprite sequences in AS3 by avoiding the memory problem?
I'm having problems with Flex (3.5) auto converting "ü" into a "u". As soon as I paste the character in, it transforms.Is there something I need to turn on to enable these other character sets? I thought Flex supported UTF-8?
I am looking for a way to escape utf-8 charachters using actionscript 2? As far as I know, in flash it uses utf-16 while on javascript it uses utf-8. I am looking for a similar escaping method.
i have a btn which has rollover text Full Screen Onon clicking the btn it goes fullscreen and text appears Full Screen Offwhen pressing escape key it goes to normal but the text doesnt change from Full Screen Off to Full Screen On
I used the fscommand("fullscreen",true) in my application to make it fullscreen. However when the user presses the Escape key, the window goes into the normal view. Is there any way of disabling the Escape key to make my movie in fullscreen all the time? and the only way to quit the movie is my clicking the label I created 'Exit' with the AS command fscommand("quit");
i have a nice piece of code to set the fullscreen with dynamic text formatting (below)
what i am trying to do is add in a key event listener for the escape key, so that if the user hits esc instead of the button, it will also reset the button's 'normal view' settings
i have tried to do a test in a separate fla but even with just a trace on the function, when i hit esc all the swf does is stop (odd!)
Code: //bu for fullscreen clicks goFull_bu.addEventListener(MouseEvent.MOUSE_OVER, fullOver); goFull_bu.addEventListener(MouseEvent.MOUSE_OUT, fullOut);
I am continuing my long switch from AS2 to AS3 finally... and I thought I'd start by making something simple. An "Escape The Room" type game, should be easy right? Just pointing and clicking? I loaded up my file for folks to look at.. I guess my big question is what I did wrong.. I thought i set up the buttons correctly and my Event Listeners.