I've created a quiz in flash that reads in questions and answers from an external xml file. E.g (xml).
<question q="allons-nous? = are we going/do we go?"
ans_a="allons-nous?"
right="a">
I have been asked to develop the quiz further so it ignores the case the answer is typed in (which I guess is possible using toLowerCase) and also to ignore any ! or ? symbols the user might type in .I assume the only way to accomplish this is to check the answer against a range of possible answers in the XML eg.
<question q="allons-nous? = are we going/do we go?"
ans_a="allons-nous?"
ans_b="allons-nous"
right="a",right="b">//this lines probably wrong
Does anyone know if there is any way of getting flash to ignore symbols if they are typed in?
I have checked out this tutorial and have created my own version of this but is there any way of ignoring the character case. i.e if i searched for "happy new year" it would display results including "Happy new year"
I am in the process of making an animation that takes text from an XML document and displays it in a scrollPane. I had this working when I was just using string variables. Now with XML it seems to ignore the new line characters. I have looked all over but nothing is working. Now that I think about it, special cahracters like "%3C" are not working.
I have an html file that includes some comments <!-- --> and when I load it into a textField in a Flash movie, there is an empty line where the comment is. How to eliminate the empty line, if I want to keep the comment in the HTML file?
I am creating a dynamic text field in the IDE and putting it on top of a simple one-color square movie clip. I've attached a listener to the movie clip in AS 3, to make it act like a big button. However, since the text field is on top, it blocks the button from reading the cursor, within the text field. I set "selectable" to false in the IDE, on the text field, but that didn't seem to work. Any ideas? Do I have to add a listener to the text field, also?
I'm working on a simple movie clip that shows a few lines of outline text. Audio will eventually accompany the text, and to make the clip more "interesting" from a viewer perspective I've been asked to fade in the text line by line as the clip progresses. I hadn't expected any trouble with this...I created the text clips individually, converted them to symbols, then applied alpha=0 at appropriate points, then inserted a motion tween to transition to the same clip with alpha = 100.
The problem I'm seeing is that when I publish the swf and open it, it just shows me all the text immediately, no fade in, no nothing. When I click Control->Play while in editing mode in Flash, the clip behaves as I'd expect. Is there some feature of text clips that prevents them from behaving as expected in this context?
I have a flash-application (done with CS4) in which a particular Textbox, which is vertical fails to display characters with a hacek (ˇ) on top. If such a character appears with in a string that is to be shown, it is simply dropped, leaving the string crippled.
This baffles me since characters with hacek work on other (horizontal) textfields in the same .swf with the same Font (Arial) work just fine. I also tried manually telling flash to embed these characters for this textfield, but to no avail. Even entering characters with hacek in the flash IDE works without problems.
I am not very familiar with flash, this application has been developed by a co-worker who is no longer employed here.
I have a text input box on a site i'm currently building. Problem is, when testing it, some letters don't register as being pressed (and no, its not my keyboard before you ask hehe).
The letters which don't show up are, "B,C,E,F,G,H,I,J,K,L,M,N,Q,T,U,V,X,Y,Z". In fact, the only letters that are recognized and displayed when I type into it are: "A,D,O,P,R,S,W".
I've come across a strange error with a contact details form developed with Flash CS5 Prof. My keyboard layout is set up as English (UK) and pressing shift-2 gives me an ", shift-' gives me a @ in Chrome, Notepad, Word etc. In a text field on the flash form, entering shift-2 gives me @ but shift-' gives me ". I understand this is how the US keyboard is mapped out but it is confusing to my users.
How can I change the text field so that it works correctly for my keyboard layout?
I have a Flash file which contains some dynamic text boxes. ActionScript is being used to fill these boxes using strings. However, I can't seem to get Chinese characters to appear properly. I've tried the actual unicode character as well as their unicode-escaped equivalent but when I export the movie, nothing shows up (blank - it was assumed that the characters are not even present).
in my projects i often use some xml files to load external text that i can format in css and it worked fine till now..i have a site that i am prograaming in italian and german and in both languages there is much text that contains special characters as "à " "ò" "è" "ù" "ä" "ü" and so on .. the problem is that when i write some text with this special characters in xml when the text is loaded in the flash this special characters are not recognised and instead of them a small square is displayed ..
i tryed to load the text from a html file instead of a xml file (because in HTML i know how to write theese special characters and let them display right in my html pages .. for example à = à but no way .. the flash now loades the text à instead of à ..
I have a BitmapData object with transparency (the sourceBitmapData parameter). Every time I use copyPixels() to copy it onto another BitmapData object the transparent pixels replace whatever is beneath them. I would like the copyPixels() function to simply ignore these fully transparent pixels (0x00) and NOT copy themBTW, I've tried setting the alphaMerge to true but that doesn't solve the issue - the whole source object just goes black and ignores ALL transparency.EDIT:
Here are the code snippets; var b:UIComponent = new UIComponent(); b.graphics.beginFill(color, opacity);
Every time I try to load text from websites onto my flash program, it also includes a lot of white space and the website header/title, which i don't want. here is my actionscript
After adding a floating cloud layer on top of the map all the elements below the cloud layer are inaccessible as the cloud layer is the only object getting mouse events.Is there a way to to tell flash to ignore the cloud layer for purposes of interaction?
I've built a UIComponent in AS3. When I drag it onto the stage during authoring time, the ADDED_TO_STAGE event fires.
I have an event handler, but it's really only meant to perform actions at runtime, not when I'm dropping the component onto the stage to design the layout. Is there any way to check to see if the component is "running" in a live SWF?
Basically, I don't want the ADDED_TO_STAGE event handler to do anything at design time.
I have simple combobox component in flash cs4, I try to add and event listener like this
mycombo.addEventListener(Event.ADDED_TO_STAGE, added); function added(e:Event):void { trace("HI"); }
never get called even if I have the component in the stage manually or via AS, but if I add a listener to MouseOver it works, why the ADDED_TO_STAGE event don't work, also I have a problem with the textFormat style if I use
mycombo.setStyle("textFormat", tf);//suppose tf is a TextFormat object
doesn't work too, but if I put that line inside the MouseOver event it work's why??
i'm loading a dynamic text, but some spanish characters like " and " (i hope you see the characters in "") do not appear. Por example, the word "drsticas" which has the special character over the "a" appears "dricas", that is, it skips the letter with the special character and the 2 following letters.Anyway, i've tried using the embed option for dynamic texts, but may be i'm using it wrong.
i am missing a few characters, once i load text into a dynamic text field. chars are not missing per say; they are being replaced with empty squares.characters like the euro sign and accentuated german a letter.whats is weird is that other accentuated german letters do appear. so only a few selected are missing.How ive set up the fla:
1) i've added 4 text fields to the stage in the font im using, Arial, one for each font style: normal, italic, bold and bold italic, and in all 4 fields ive embedded all latin characters (to include the german accentuaded characters and im guessing it's in the punctuation group that holds the euro sign, so that one is also embedded), besides lowercase, uppercase, numerical, and all the default groupd to include basic text.
2) i've got a dynamic text field, created with createTextField, and setup the following ActionScript (2):[code]i mean, it seems that the arial font is missing a few accentuated characters! because the code i have setup loads other accentuated characters.
I'm using flash sockets to build an embedded chat application. everything works great. I want to allow all the sites who embedded this application to connect to my server, except for some sites.
My problem is that the number of sites that I don't want to connect to my server is a very large one( 4-5k). Currently from what I seen all you can do is tell in your policy file the domains that you allow/not allow.
What I'm looking for is a way for flash player to send me the domain where the flash is embedded and I could return an accept/decline response. I know I can send info about the site where the flash is embedded using actionscript, but this can be very easy simulated.
I am working on a login system and would like to hid the password text entry.Also, can someone provide some insight into how you "remember" a person (login info). Nike does it here. URl...
I posted this in the wrong place (not sure how to move or delete the post). I am actually working with AS1
I could use some help figuring out how to limit the number of characters I get on a simple math function. The line of code I am working with is below. it sends the result to a dynamic text box. How can I make it so no more than 4 characters show in the dynamic text box results?
I'm new to this community and to AS3. I'm working on a project which involves some arabic text.I was able to load succfuly arabic text from external XML, also I could set a dynamic text field with an arabic string. the player shows everyrthing perfect. However when I try to to use the appendText function, it gets ugly
I have a text file that contains variables that get pulled into my flash file dynamically. It leaves out random letters throughout the text when it is displayed in the SWF.I'm at my breaking point and I know I am probably missing something simple at this point.
I have a setup a PageHolder class (based on MovieCLip) that displays a doted area with a (page) number in the middle.
Now attempting to populate my LayoutPane, I create new instances of of PageHolder whose constructor is tasked to set the text value of its only Texfield to the value specified in the new PageHolder parameter.
The problem here is that only the character present in the Library Object will display at run time.
For example, I have setup my PageHolder object with a text field containing the number "0". Now at run time, every instance of PageHolder is blank except fro the one that I passed a "0" as part of the init parameter (10,20,30,...) and on those pages, only the "0" is showing. If I change the original object to display a "1" instead, then every "1" of the page number that contains a "1" show ups.
Can somebody shed some light on this?
package { import flash.display.MovieClip; public class LayoutPage extends MovieClip
I have a dynamic text field that reads the text from a XML file. And what I want to do is simply count the amount of characters being in that text field.
I've tried:
trace (myTextArea.length); trace(myTextArea.text.length); and I get this"Undefined" crap =/.
And I'm using that code in a onEnterFrame function so it's not that the XML is late loaded into flash or something...