I have an swf on the page which has some textfields on it each of which are just using arial for their font and no embedded fonts.
Now when someone types an @ into one of the textfields the " character is displayed instead, I thought this would be because my browser is set to ISO-8859-1 character encoding, but changing it UTF-8 and refreshing makes no difference.
I have some German content which contains an umlaut (ü). This content is being built into an XML file. I then have a flash file which uses the xml to build a coverflow. My problem is that the 'ü' character is not being displayed in the coverflow. I've made sure the xml is encoded correctly, as you can see from the snippet below:
As you can see, the umlaut is in the albumName element, but when that text displays it simply misses out the 'ü'. I've added a bunch of encoding groups to the text element in the coverflow file, as well as specifically adding the 'ü' in the 'Include these characters' element. I'm stuck for how to get this to display.
I'm making an AIR app that uses StageWebView to display an external html page. The external page displays Spanish accented characters fine in browsers, but they show up as �� in AIR.Is there a setting available that I'm unaware of for setting character encoding to UTF-8 in AIR or StageWebView?Here's my code:
var webView:StageWebView = new StageWebView(); webView.stage = this.stage; webView.viewPort = new Rectangle( 660, 180, 335, 480);
What I have is a dynamicly created row of movieClips. In which TextFields are added with text that's received from an Array. What I would like to be able to do is click on the movieClip that's visible and have the code understand I clicked array[3] for example and it will show the 4th array item in another textfield.
I've been making a game in ActionScript 2.0 Flash CS3. Now I want to be able to display my characters alpha using dynamic text. The instance name for the character is char and the Var for the dynamic text is alpha. I want to be able to display the characters alpha and ALSO the characters current alpha in other levels for example.
Variable for lives in level 1: _root.lives = 5; Variable for lives in level 2: _root.currentlives = lives;
I want to be able to do the exact thing but display the 'char' alpha instead.
I have a static, UTF-8 encoded XML document that gets loaded by a custom movie clip class into an array and then items from the array are read and displayed in a dynamic text field that is attached to the movie clip,depending on which one is rolled over.Everything works perfectly except that an ampersand displays as & apostrophes display as ' and quotes display as ", even if I use the special character inside the XML.Higher level character codes actually display properly, so character codes for circle shaped bullets,registered trade mark symbol, Greek characters, etc, work! But a blessed ampersand does not.Setting the dynamic text field to either read as HTML or not read as HTML makes no difference.
Using CDATA tags in the XML makes no difference.In fact,when I use CDATA tags and enclose text containing a special character code, Flash goes the extra step of converting the ampersand in the special character code to &!! So" becomes "Using & just gets converted to &.So Flash's XML parser is parsing the & to an ampersand,which Flash's text parser then converts to &. WHY? And how do I stop it?
I found the function below to clean out the unwanted characters,and it works,but it seems a ridulous length to go to.And I probably have to extend it to accomodate whatever other characters don't work in Flash, but I don't know what those might be until I encounter them. Also,the function works whether I use a special character in the XML or not. ie, if I put an actual "&" into the XML, this function will display "&" and if I put & into the XML,it will still display as "&".
i am working on multi language site. all data is comeing from backhand. every thing is going very smoothly and suddenly I got problem. specail [] Character is not displaying in flash
I've recently upgraded to CS5 and the Media Encoder creates incredibly HUGE files compared to the CS4 media encoder.
For example, I can convert a 15MB mpg file to a 12 MB flv file in CS4 using the preset "FLV same as source"
I do not find a matching preset in CS5, but tried "FLV - match source atributes (medium quality)" Encoding the same file in CS5 with this preset results in 170MB file.
I've tried adjusting the settings, comparing the options in both versions, and I still can't get a reasonably sized file out of the CS5 media encoder.
This seems really broken to me. A 170 MB file is not useful in any way. Do I have bad presets?
Given:I encode video at 600kbpsI set the video to display by default at 448x336 (4:3)Users can set the video to display at full screen (let's say full screen = 1280x960)I can only provide one video resolution to cover all scenarios .Is there any logic to encoding the video for the larger size of 1280x960? Am I wrong in thinking:
Video encoded at 1280x960 and displayed at this size will look better than video encoded at 448x336 and enlarged to 1280x960; andThere will be minimal difference between video encoded at 1280x960 (and shrunk to 448x336) and video encoded at 448x336.
I'm looking for a way to verify that the textfield contains the "@" character somewhere in the text. It's about as simple as it gets, I just want to make sure people are typing in an address instead of jibberish. Everything I was able to find on email validation was overly complicated and I didn't understand it.
I am having an interlacing issue when I load my .flv files up to my site.The strange thing is that when I watch them after encoding in Flash Video Encoder (with adobe AIR) the interlacing does not appear. I can't understand why the interlacing issue would appear once the videos are loaded up to the site and yet they look perfectly crisp and clear when I watch the completed .flv's in AIR. I didn't de-interlace the videos the first time I created the .flv's but that shouldn't matter since they play fine in AIR right? Of course I can go back through and de-interlace them, but I want to make sure that this is the problem before I take the time to re-encode them all.
I have a problem where i want to remove the last character from a textfield (including linebreaks) that has multiple textformats without removing the formats.[code]...
i guess this doesn't remove linebreaks, and is very slow, seems to destroy my textformats.
or:
textfield.text = textfield.text.slice(0,-1);
this is faster but removes all textformats as well.
I have a textfield where a user inputs an answer to a question, then presses a button or presses the enter key to submit the answer. Code checks it, if it works good, if not, clear it out and try again.Problem is, when the answer is submitted using the Enter key and the answer is incorrect, when the TextField is cleared a carriage return is left behind. I can't figure out a way to handle this situation. Here is the codeTextField is declared:
Code: var inputBox:TextField = new TextField; inputBox.type = TextFieldType.INPUT;
I am building flash site with a number of different pages containing a variety of different things (picture gallery from an external swf, pictures, text, contact form etc). This is all working fine apart from one thing. On my contact form I have the following code to create a textField to contain the contact information. I do it this way so i can automatically resize the textField and align it to the bottom of the page no matter how much text is present.
The problem is once you have visited thecontact page once (and run this code to create the textField) then it appears on every other frame of the video (even though it is contained on it's own layer within the contact page keyframes). I thought that if you created a textField like this then it would only display on the current frame and until there was another keyframe (much like if you manually add a textField onto a frame).
My current code is: // Creating textfield text formatfieldTextFormat = new TextFormat();fieldTextFormat.bold = false;fieldTextFormat.italic = false;fieldTextFormat.align = "right";fieldTextFormat.color = "0xffffff";//fieldTextFormat.font = "Arial";fieldTextFormat.font = "EmbeddedCenturyGothic"; [Code] .....
I have an actionscript class, and when I make a new one, the constructor is suposed to create a new textfield. but nothing shows up. here is my .as file:
I figured out how to get a TextField to maintain focus when the tab key is pressed (using an event listener on FocusEvent.KEY_FOCUS_CHANGE), but what I'd like to do is control the size of the tab character in the TextField so that it is equal to five spaces. (I would just insert five spaces when the tab key is pressed, however due to requirements this is not an option.) Is this possible?
My dynamic textfield doesen't show special characters (%&+...). I have emped the font(uppercase, lowercase, numerals, PUNCTUATION and basic latin) and I've also tried to render it as html.for example:flash.addVariable("newtext"," Word & word2");AC2myTextfield.text = _root.newtext;then it prints just "word", because flash doesen't understand character & as a text format;locally it worked finemyTextfield.text = "Word & word2;";
I have a textfield, a combobox and a textfield displaying the XML.When I add something to the XML file using the textfield and the combobox, the textfield displaying the XML goes black.
I want to display text in a textfield which dynamically creating. Also this textField is creating inside a movicelip which is created dynamically. I used the following code. Its not working.
var mainMc:MovieClip = _root.createEmptyMovieClip("mainMc",1000); mainMc.createTextField("my_txt",1,100,100,300,100); my_txt.text = "This is my first test field object text.";
I have a text field that can be clicked by user. The problem is when I roll over the text field hand cursor does not appear I have used txtField.mouseEnabled = true as well but no luck.
I am a actionscript beginner trying to create a form using components in as3, am creating a booking form that combines the totals of each item using the checkbox component when selected and displays them within a text field.I have also tried to convert the values using .toString() method with no success. Here is the current script;
// Setting default values for the Textfields hTotal_txt.text = ("0"); sTotal_txt.text = ("0");
I am writing a class that can display a movie clip, and then display the TextFiled information once it is rendered to the screen However the movieClip to which scaleX property is applied (i need it to be horizontally flipped), does not display the text on it. But the movie clip to which the transformation has not been applied for, displays it fine. I ran a trace stmt and all 8 TextFields are added, I also tried to use a Matrix --> flash.geom class, but the same effect when flipping the movieclip, content does not display
I created a game in AS3 using a tutorial written for AS2 but I can't get the timer working correctly. The game contains 3 frames, a start screen, game loop, and end screen. the timer starts on frame 2, and counts down (tested this with a trace). When the timer reaches 0 I want to go to frame 3 which is the end game screen but my code isn't working.
var fl_SecondsToCountDown:Number = 30; var fl_CountDownTimerInstance:Timer = new Timer(1000, fl_SecondsToCountDown); fl_CountDownTimerInstance.addEventListener(TimerEvent.TIMER, fl_CountDownTimerHandler); fl_CountDownTimerInstance.start(); theTimer.text = String(fl_SecondsToCountDown); [Code] .....
I'm trying to get values of an array to display into a single text field but I'm also trying to bold the first few letters dynamically using the setTextFormat() method.Basically trying to achieve what the google search function does when it comes up with auto suggestions and each keyword gets un-bolded.
This sounds so simple, but its to save me doing things like this:
Code: var Lol:Array = new Array(); Lol["Rofl"] = 0;
_root.Lol_Rofl = Lol["Rofl"]; Just to get the array value to display in a dynamic textfield, is there any other more efficient way so that I do not need to declare a seperate variable with the value of the array data to get it to display?