Extract Two Value From String?
Apr 1, 2010I have a URL[code]...
The str might be like this, But i need to get the value of "conn" and "fileId" from the string.
I have a URL[code]...
The str might be like this, But i need to get the value of "conn" and "fileId" from the string.
How do I extract the numbers out of a string like this[code]...
Everything but the currency symbol. Or from something like this:
rofl1.50lmao
Just asking if there's an existing function that I'm not a aware of.
I have a bunch of sequential movie clips (mc1, mc2, mc3, mc4, mc5, etc...).
I use the following code to set them to buttons.[code]...
What I want to do, is get the NUMBER that is clicked from the mc name (eg. mc5 returns 5, mc3 returns 3, mc908 would return 908, you get the point...)
how do you extract something from a piece of string lets say my string is something like mc_empty3 or mc_empty11...how can i get a piece of script to remove piece of it?
View 1 RepliesI'm working on a textField overflow system for a project at the moment.I cant find a way to return a textField's htmlText complete with the original html tags.The system is used for splitting up a textField above a particular height into two textFields so the side of each other. The system works perfectly with unformatted text, but I cant seem to extract the formatting tags out of the left textField and apply them to the right - all I can get is plain text. (The system uses a StyleSheet by the way - so it is applied to both textFields).I 've tried:
Code:
if (leftField.textHeight > contentHeight) {
//var rightString:String = new String;
var lastLineIndex:int = leftField.getLineIndexAtPoint(10, contentHeight - 5);[code]...........
The commented out code represents the alternative method I've tried (still fails).
Currently I have an XML document and I can access attributes and elements just fine if I manually type them... however I am trying to make a more abstract method to help shorten my workload.[code]...
View 2 RepliesI am working on a simple video game where, when a randomized character is struck, an "explode" function kicks in creating an "explosion" unique to that randomized character. The difficulty is that when this._name is passed through the function, the movie clips have numbers assigned/attached to them. Here is the basic code that is found inside a class (foe.as)[code]...
View 1 RepliesI know
insideInput = String(xmlNode.childNodes[0].attributes.insider)
virusTarget = insideInput.indexOf("kz", [17]);
endTarget = insideInput.indexOf(".", [virusTarget+2]);
trace("VTTT"+virusTarget)
trace("ET"+ endTarget)
//endTarget = local.indexOf(".", ["vitesting"]);
clipTarget = virusTarget+3;
zebra = insideInput.substring(clipTarget, endTarget);
trace(zebra)
I'm trying extract info from a string, increment through it and add the data to an array. I can't get the startIndex thing to work.
I have an image file, in *.tif format, that looks like this: As you can see it contains an image along with a lot of text. Is there any way to read my .tif image and extract the text content into a String ?
View 1 RepliesI've no experience in action script and just need to find where the files that are referenced in this script are located on the server. I believe the referenced files are SWFs and it appears that the URLs are dynamically written, but I can't crack the code.
// Action script...
// [Action in Frame 1]
var movie_magWidth = 1400;
var movie_magHeight = 1400;
[code]....
After installing Adobe Flash CS4 and saved some of my files in that application they suddenly can't open anymore!
I've tried to re-install both CS3 and CS4 and none of them will open my .fla anymore :-(
I've even tried to format my entire computer, installed it again but still no luck.
Therefor I have re-coded my entire web-site from scratch once again (pheww!) but I need all the text which is saved in my .fla (or .swf).
The (what i figure to be) the ultimate question. If i publish an swf, how can i extract the code from it...Is there a tool? a website i go to?
View 3 RepliesWe've got a client who wants to update an existing flash course and they want to move all the text from the existing static text field into xml.Is there any way to have flash somehow export all that text?I suppose I could write a function that executes on every frame and traces out the html text of every field on each frame and then just copy and paste that and wrap the xml tags around it...Also, the client wants to be able to make updates without having to know any html. Is the best way to do that to create a little RTE exe that they can use to "page" through the nodes, make their updates and use something like SWF Studio to write a new xml file?
View 2 RepliesI have a load of FLA files with large libraries of vector graphics. Is there a way of forcing Flash to create an export(jpg or swf)of all the graphics in a library without having to manually drag them onto the stage or into a scene before publishing or exporting them? I'm thinking there might be an SDK or utility or something that can read fla files and export everything programmatically.
View 3 RepliesI have been sitting here watching it tell me this might take a while for a lot longer than a while. I can't even cancel the d/l and start over.
View 1 RepliesThere is an .fla file that has a sound wave in it's library. However I do not have this sound wave saved on my computer so I can not edit or open this sound in another application. I was wanting to know if its possible to extract this *.wav file from out of the fla library? I did some research and they said to goto export movie and export it as an *.wav file. However I tried this it exported the whole fla file as one big *.wav dud. I tried to play it and nothing happened which makes sense.
View 4 RepliesWhat software is available for extracting metadata from an FLV? I'm testing an flv streaming module for apache (mod_flvx) and need to extract keyframe info from an flv for debugging purposes. I was only able to find FLV MetaData Viewer, but its dated, from 2006, and doesn't install properly on Win7. [URL] Edit: I'm open to any method of extraction, either app or library.
View 1 RepliesAre there any tools or ways to extract DPI from image (gif, png) in ActionScript?
View 2 RepliesI am trying to extract images from flash on the following web-site: [URL]
I noticed that every time I click on "Next image", an images is requested from sever. Sample URL is [URL]
So, this URL is exactly what I need, but I don't know how to extract all these URLs from the .swf file I have. I don't have any experience with flash, but I think that URLs should be in the .swf file. I tried "grep '110206os_o_003_T1C1_2pw26' adspage_slider-2.swf", but didn't get any result :(((
Is it possible to programmatically extract image files from a SWF file using C#? If so, how would I go about doing that? I know this question doesn't have a lot of detail but I'm just getting started on this and know very little about Flash.
View 2 RepliesIs there a way using C# to extract the ActionScript from a .SWF file? I know it can be done as there are third party command line tools that will do it, but I need to do it programmatically using C#. I'm open to using third party libraries (free or paid) as long as they are from reliable vendors, but I haven't been able to find any .NET libraries that will do it, just command line or Windows programs so far.
EDIT: Are there any options other than SWFTools? I'm a little hesitant to include unmanaged code in my application.
Does anyone know how to extract a class reference from an SWC file? I know I can right click / "Go to definition", and view the class definition. I need to extract these for each class in an SWC. Can anyone provide a method to do so automatically?
View 3 RepliesI found a solution on net which suggests, to copy a bitmap from flash and paste in photoshop. I don't want to go for such a solution as in past I have seen such things result into bad quality as ctrl-c might copy as per the resolution etc etc. (Link to this solutionI also don't want to go for tools available on net which promise to extract data.
View 0 Replieshow can I extract the bitmap from a .ico file? ( preferably in .png format )
- this must be done _without_using_php_
The ultimate goal is to create a dynamic slideshow with a variable length, depending on how many pics were submitted by the user. Since the associative array object returned by loadVars does not share the "length" property of indexed arrays, my guess is that the values need to be converted into a new indexed array before being able to use them in the slideshow.
View 5 RepliesWhat I want to do is to extract a zip file to a specific folder.I am using the code below that promts the user to choose which directory the zip should be extracted to and the extracts it succesfully.Now I would like define a fixed folder where the files should be axtracted to instead of letting the user decide.
Actionscript Code:
function extractZIP():void { output.text = "extractZIP MANUAL"; zipOutput.browseForDirectory("Select Directory for extract");
[code].......
How should I extract html formatted text from an XML document, intended to be used in html TextFields or text components? [code]...
View 12 RepliesI have swf which consist of many vector graphics.[URL]..If I import the swf to the stage, than I can manipulate this graphics. But this is not enough for me. I need to manipulate from Action Script.
I need to change the colors of this piceses from AS. I tried to use function getObjectsUnderPoint(new Point(mouseX, mouseY)) but it doesn't work. This function doesn't see shapes, graphics or something else.
Can i extract the logo of FlashPÃ per with actionscript?
View 2 RepliesI am developing PDF to e-book converter which will run on a server.I need to programmatically extract embedded fonts from PDF file to finish the project.Now I am able to extract images and text, but to display content in the Flash Player precisely I need the fonts to be extracted from PDF and compiled to SWF to be loaded by Flex application at run time.
I am wondering if it's possible, as such tool as pdf2swf.exe from SWFTools is able to do this. I have decompiled the swf file produced by the tool and there were fonts embedded.The extracted fonts will be used for displaying the same content from PDF file only, just in Flash player. So i think it will not be any rights violation? Moreover, people who will use the converter have all rights for the PDF files content.
So I see next workflow:
1. Call pdf2swf.exe to produce SWF file with fonts embedded;
2. Call some tool (Which one?) to parse previous SWF to SWFs with separate fonts.
3. Load the SWFs with fonts to Flex application at run time to correctly display content.