ActionScript 2.0 :: Converting XML Text ToUpperCase
Mar 11, 2009I was wondering, if there's some nifty way to convert an XML-test to upper case, when it has been placed in a dynamic textfield.
View 3 RepliesI was wondering, if there's some nifty way to convert an XML-test to upper case, when it has been placed in a dynamic textfield.
View 3 RepliesOn the button class below the text is set to toUpperCase();. When the XML is fed into the text fields of my buttons it is making every character uppercase. Does anyone know how can I get mixed casing where only the first letter of each word is capitalized?
[Code]....
We've got an issue (minor, but annoying) that I've got no clue where to begin to tackle.Our video player is run off a backend database, and 2 characters in particular are giving us problems:which are saved into the database with their ISO Latin-1 codes to avoid compatibility issues (ha, imagine that!).Now, all is fine and dandy except that our player uses this particular piece of data as a header in the template, styled to all caps using toUpperCase, which breaks the whole thing because it seems toUpperCase cannot properly map these letters to a corresponding uppercase value. To get around this we've tried using the HTML code for the uppercase equivalent of the same letter but the problem with this is that this same exact piece of data is also used on our website, but in it's raw camel-case format. We can't force it one way or the other, because then it breaks the other.
Is there a way we can use these sort of characters in both instances (in Flash with toUpperCase, and in the HTML page as camel-case)? Is this a Flash issue? A character code issue? A database issue? Where do I begin to address this?
I've got a project that currently uses classic dynamic text fields that pull in information from an XML file. The text contains a 'keyword' that's referenced in the XML, that can be situated anywhere in the complete sentence. This keyword needs to be a different colour and font size... but as I said, it can appear anywhere.
Currently this works by getting the keyword from the XML, finding its length, finding the index of where it starts, splicing the main string, and then setting TextFormat to the number of chars in keyword, which changes the font size and colour for just that keyword in the sentence.
This works great for the classic dynamic text boxes. It doesn't however work with TLF text, it just applies the new format to the entire text field. I don't have any experience with TLF text as I've just upgraded to CS5 and now need to make this work in Hebrew.The code snippet for the keyword colour change looks like this:Where screen01Norm & screen01Key are things pulled from XML & screen_01.txt_box_combined is the text field.
var newFormat:TextFormat = new TextFormat();
newFormat.color = 0x319aca;
newFormat.size = 50;
[code]....
I need to convert a text document into XML where each paragraph is its own node. Example:
speech_xml=<speech>
<paragraph>I was born and raised in a small town... </paragraph>
<paragraph>In the late 80s I was elected to the state Senate.... </paragraph>
[code].....
Text box instance is labelled,
Property set to 'Dynamic Text'
Behavior set to 'MultiLine'
Text set in Actionscript:
[code].....
I have used some text and coverted it into a button,
I have done my up over down and hit frames,
I have gone into actions and used the following code,
on (press) {getURL ("http://www.google.com");
}
when i do a test movie i get the follwoing error
**Error** Symbol=Symbol 96, layer=actions, frame=1:Line 1: Mouse events are permitted only for button instances on (press) { Total ActionScript Errors: 1 Reported Errors: 1
I am currently working on a task that will take 2 years and calculate them (one year being from an XML document, and the other automatically generating the current year), returning a result and have been successful..
function loadXML(loaded) {
if (loaded) {
_root.begin = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
MyDate = new Date();
[Code].....
Now in Phase 2, instead of middleyear_txt.text being just a text number, I was hoping to make it into graphical digits.
So 2007 - 1997 = 10. I have 1 through 10.png, so I was hoping to find a way to make 1 = 1.png, 2 = 2.png, 3 = 3.png, 4 = 4.png, etc...
Is there a way in actionscript to convert an image to text data, i want to do an air app that converts an image to text and saves it in a text file, i also need a way to convert that text back to an image,
View 1 Repliesi create a textfield(with some text in it ) and then i want to convertit to a shape. How would i do that + is it posssible to shape tween texts using nothing but actionscript?
View 2 RepliesMy input textfield is called Minutes. var pMinutes = Minutes.textvar sMinutes:Number = Number(pMinutes) I use it in a timer, and when i try to add a value to Minutes (ex. 5) in the swf the timer displays 59:59, if i add a value (ex. 5) in the .fla the timer goes well but i have to add a value before exporting... so the textinput is like a normal read-only text field.
[Code]...
Is there anything wrong with following snippet of code?
var d:Date = DateField.dateToString(myDateField.text,"DD/MM/YYYY");
testTextArea.text = d.getSeconds().toString();
Error: Implicit coercion of a value of
type String to an unrelated type Date.
I have used a tool to convert a pdf to a swf but i need to be able to select and hightlight the pdf's contents. How would I do this using flex/action script?
View 1 RepliesI have dynamically loaded a text file into flash. In this text file, let say it contains the following message:"Hi! How are you doing? : D I've just got this great game! : P. Blah Blah Blah"I want flash to render out a smiley that is a movieclip in the library instead of : D and : P.
View 5 RepliesI have a project where I'm working in Flash CS4 on a presentation that runs in ActionScript 1.0. I need certain lines of text to be hyperlinks. I have two instances in which there is an e-mail link and a URL link which are part of a larger block of text, and one instance with just the URL alone. So far I used the method where I used the Properties window to make the box static text and the text fields I require have been made into links, as well as making other instance dynamic text. Thing is the HTML version of the file works all right, but the swf version doesn't hyperlink properly. If I click on the link, it accesses my browser but does nothing else. Let me know if there's anything else I need to elaborate on from my end.
View 2 RepliesCurrently I have sketched out this small code just to see how it might work. Each text box receives a seperate word one is the game word/the other is a hint. I was hoping to have a new one appear each time I tested the Movie but I cannot seem to get it.
import flash.net.URLLoader;
import flash.events.Event;
var allWords:Array;
[Code]....
Can you add curve effects to text in flash without converting it to a raster format? Either applying the effect straight to the text, or converting the text to a path and applying the curve effect to the resultant path?
View 1 RepliesI am developing an application where I need to convert Text to Speech in offline version. Without using the Google translator.
View 1 RepliesI'm trying to read date variables from an external text file. I'm using the LoadVars method and it is working fine for regular string variables. I'm running into trouble trying to convert some of those strings into date variables so I can compare the current date to the targetDateX variable from the text file. I'm working on a countdown timer for a list of different times/dates. It will display the time left until the first event, then after that event the time left until the second event. I'm running the code in a for loop and everything is working except being able to convert the string with format (yyyy,mm,dd,hh,mm) into a date variable- I've attached a sample of where I'm having trouble.
View 1 RepliesI'm trying to convert some flv files to swf so I can place them on my online course. I'm working with Flash CS4. This is what I have done so far.
1) I embedded the flv files into a new project.
2) And then I just exported the file as a movie.
This worked well but only to an extent. There is about 10 seconds worth of dead time at the start of some of my videos, and they automatically loop themselves, when the loop feature is not on.
I have created a slideshow in flash 8 for my website, though the file needs to be a .flv. I've read lots of similar posts, tried some trial versions of converters and .swf decompilers, and it seems that you either need to buy a converter, or buy quicktime pro to achieve this. I'm just wondering if there are any alternatives, or if perhaps some kind fellow out there would be willing to convert it for me? The .swf file is attached, if any passing samaritan is feeling charitable.
Attachments:
slideshow.swf (348.7 K)
Just wanted to know if anybody knows how to convert swf to vob?I have a flash movie that I want to put on a dvd and I do not know how.
View 9 RepliesI currently finished one video i was making on flash. It is for one tv commercial so i need to convert it from swf to hdtv video file 16:9. I'm currently using winavi but i'm not completely satisfied by the result
View 1 RepliesSo, I'm working on my portfolio, and I'm basically learning how to code as I go. Unfortunately, an essential element of my site is coded in AS 2.0 (a 3D carousel effect), and I'm really having trouble converting it to AS 3.0 (I'd keep it as 2.0, but 3.0 shows so much more promise for future expansion).[code]
View 3 RepliesI've spent countless hours looking for a simple, easy to use solution to convert WMV files over to FLV, and I'm having a hell of a time. The "wmv to flv" market seems to be cornered by sleazy companies promising "easy" solutions with software that either costs money and isn't guaranteed to work, or is offered free with loads of spyware. That aside, I've heard about ffmpeg and attempted to look at the documentation, only to feel a bit overwhelmed simply because it seems like they've written it for people who already work with that sort of thing (from command line).
I'm just wondering if there's a solution that anyone is aware of that a) doesn't cost money, or if it does, at least provides a non-spyware/malware/virus loaded test version to verify that the program actually does what it's supposed to do, and b) doesn't require some sort of contextual knowledge of linux or command line scripting in order to run a simple conversion.
What I'm asking is, as a user starting with a single .wmv file, how would I, from start to finish, get it into an .flv format?
I'm a senior in High School and I need to send in animations on a DVD for some of the colleges I'm applying to. The thing is, I have no clue how to get my flash animations onto a DVD.I have Flash MX, and I have been told to go to publish settings > convert in Flash 5 mode and to choose quicktime on the publishing list. But so far, this doesn't make a real video- it seems to still be a flash movie.
So please, how do I convert flash movies to video? And then to DVD. What free programs can make a full quality convertion? It goes without saying I need to get this done before a deadline,
I have a .fla file that was created in CS5 and so wont open in my CS4.
View 6 RepliesI need to convert a wmv to flv. I have heard that if you just use Flash import video it will cause the filesize to increase. What is the best way to convert?I have looked at lots of software both pc and mac (i prefer mac) but they all seem to be costly. Are there any free solutions?
View 7 RepliesI have a giant image that I vectorized in flash in order to stretch it to the stage size, but obviously this lags a ton (vector size is about 700x500). Is there a way to convert this vector (in a MC) to a graphic after resizing in order to reduce the lag?
View 2 RepliesI need to covert multple layers with multiple frames in one scene into a movie clip. I then need to dump this movie clip into another scene. I need to do this many, many times. What is the easiest, fastest way?
View 1 Replies