ActionScript 2.0 :: How Sophisticated Is The Text Manipulation

Jul 20, 2006

I want to search and replace specific text in a HTML file (about 10k - so quite a lot of text). I was thinking of trying to get Flash to do this for me. I wasn't sure how good Actionscripts text manipulation was! The only reason why I was think of doing this in Flash was because I don't know VB. I would otherwise do it in Perl if Actionscript is no good.

View 1 Replies


Similar Posts:


Flash :: Professional - Text Manipulation In CS4 - Modify The Text To Make It All Caps?

Apr 6, 2010

I have many text elements in my flash file - how do I modify the text to make it all caps? Is there an easy way where I can select all of them in one go and make them all caps?

View 7 Replies

ActionScript 2.0 :: Text Manipulation String To Variable

Jul 20, 2009

I'm not familiar with XML text handling yet, but have to create one quiz quickly.I've decided to put feedback into different variables. e.g. fb1_1 for right anwer of question 1, fb1_2 for wrong answer of question 1.I thought to change a string to variable and put the text into a dynamic text "fb" would be something like this:[code]Also is it possible to put all text in one text field and extract a different line of text and put it to a dynamic text field? I tried to put the text into a variable, but it only shows level (level0) and instance name not the text itself. Anyway to get this way to work?

View 0 Replies

Performance :: Writing Down These Functions In A More Sophisticated Way?

Sep 9, 2011

I'm creating a simple scratch game (6 cards). It doesn't even have to contain difficult logic. You eventually win all the time ;)The code i wrote works pretty well, but i keep thinking it could be better. I'm not too familiar with coding, but i'm learning step by step. Do you have ideas to write this down in a cleaner and more sophisticated way?.g. I tried to separate the IF statement that returns in every function, so i would only have to write it down once, but i didn't succeed

//set card variables to 0 and when they're scratched, they're changed to 1
var checkCard1:int = 0, checkCard2:int = 0, checkCard3:int = 0, checkCard4:int = 0, checkCard5:int = 0, checkCard6:int = 0;

[code].....

View 1 Replies

ActionScript 2.0 :: How To Create Sophisticated User Interface / Menu

Nov 25, 2006

I am looking for a tutorial on creating a sophisticated user interface/menu. Here's a reference: [Code] - I am aware its done in swish but I want to be able to do it in Flash 8. What I've accomplished so far is to create a rollOver and rollOut effects wherein rollOut reverses the movie clip back to its first frame. I was also able to add an 'on release' script where it will play an external movie clip...

This are the AS that I've done so far:
1. I placed this AS on the MC (instance name bam) that has the rollover and rollout effect tween.
onClipEvent (enterFrame) {
if (reverse) {
this.prevFrame();
}}

2. I placed this AS on the invisible button I placed on top of the MC
on (rollOver) {
bam.reverse=false;
bam.play();
} on (rollOut) {
bam.reverse=true;
} on (release) {
_root.bampics.gotoAndPlay(2);
}

View 1 Replies

ActionScript 2.0 :: File Manipulation With PNG's And JPG's?

Oct 3, 2006

Using AS2 or 3, is there a way to create my own file format? I would like to create a game.And when users play the game, they can create a GAME-SAVE-FILE.So, let's say that player 1 is playing... He get's to level 22 and has to sign off.He clicks save my GAME-SAVE-FILE to my computer.He names the file MyGame and saves it to his desktop.So now on his desktop he has MyGame.gsf. Next time he visits, he can click on UpLoad My Saved Game.He selects his previously saved MyGame.gsf And bammo... all the information was stored in his file and now he can play on.

I need to know how I would put together the format for my own file-type / extension.I need to know how I would access, write, and edit my own file-type / extension.Since Flash can do this type of File Manipulation with PNG's and JPG's.So surely it can be done with any desired custom format.

View 2 Replies

ActionScript 3.0 :: How To Handle Database Manipulation

Mar 11, 2010

I have a request to create a "flash-like" app that is connected to a MS Access Database (DB). The customer has built up a product configurator in Access and wants to know if I can do anything with it. Is this what Flex is good for? I still really do not understand what Flex is all about.
 
Anyway, I thought of exporting the DB out to an XML file and importing that to a flash app and then using the data there. The problem with that is that I would have to recreate all of the logic (e.g. if you choose "model A" you can only choose "colors 1, 2, or 3") that manipulates the elements in the DB and also the client would not be able to easily manipulate/edit/update the DB without having to export it to XML, etc...What would be a smart way for me to access/manipulate a MS Access Database through a flash front end?

View 1 Replies

Actionscript :: Website Manipulation With Javascript?

Dec 7, 2011

Using javascript or flash, is it possible to log into websites and than pull content from that page?

I am trying to make a phone app that displays content from a site that requires log in.

View 2 Replies

ActionScript 3.0 :: Object Manipulation W/ Buttons?

Jan 17, 2010

I am curious if anyone knows how to code a button so that when you click it an object resizes, but shows the animation of it resizing. For example I know that

ActionScript Code:
btn1.addEventListener(MouseEvent.onRelease, resize);
function resize(): void {

[code]......

View 4 Replies

ActionScript 2.0 :: String Manipulation In Function

Aug 22, 2006

I'm using a function to call multiple button actions, so I don't have to rewrite code for each button... here's the script:

[Code]...

This is all part of a clip which loads pictures externally... each of the buttons (which are mc's) are named btn0, btn1, etc.

View 14 Replies

IDE :: Local Date Manipulation In Flash?

Oct 14, 2009

I'm currently trying to create an advent calendar I would like the flash movie to somehow recognise the date on the users computer and then gotoAndStop at that particular Frame Label (eg. If it's the 20th December then it jumps to Frame Label 20 in the main timeline.

View 4 Replies

ActionScript 3.0 :: Interactive Video Manipulation?

Apr 24, 2012

I have a project which is about creating interactive videos for users..The main idea is that user will open the app and a predefined video will show-up.Video will show couple of billboards, signs etc. while moving through a highway.. Like from a perspective of a driver..I need to insert users photos to these billboards and some text to signs..

The problem is, these objects which I'll be filling are changing their shapes constantly because of the car movement. I can get all the x,y coordinates and timings of the video from my partners. But I don't know how to use them in this situation.I think about continious tweens with these x,y values but I'm not sure..

View 5 Replies

ActionScript 1/2 :: MovieClip Pixel Manipulation With BitmapData

Jan 30, 2010

I have a MovieClip in the library exported for actionscript. How do i convert or attachMovie it to a BitmapData class so that i can manipulate its pixel data? I will need that so that i can distort the MovieClip.

View 3 Replies

Media Server :: Recorded FLVs Manipulation?

Sep 4, 2010

I'm creating a Flex application that enables users to communicate in a kind of video chat room. I only allow to live streams at any given moment. I'm using FMS to record the videos in FLVs. What I need to do is post process those videos and create a single video with all that happened in the video room. That means that I need to combine 2 videos, reduce the size of one of them so it appears over the other one. In other words one video will use the whole space an the other will appear at the upper left corner (over the other video,).
 
I need a server side solution for this. I created another post here and someone suggest a screen capture solution. That would work perfectly, but since this appliction will be used for several people and any time, I want the process to be automaticaly not manual. So, I'm thinking I can do it with FFMPEG, but I need a way to identify in which order I need to compose the videos. Something like adding a time stamp to each FLV in FMS (when they are recorded). How can I add custom metadata to the FLV?

View 1 Replies

C# :: Collection Of Various Color Matrices For Bitmap Manipulation?

Feb 6, 2011

I've been messing around a bit with some low-level bitmap manipulation and having been creating some various color matrices to apply to bitmap data to add "filters" (for lack of a better term).I have seen a number of tutorials online in C# and AS3 about applying various color matrices to bitmaps, but was curious if anyone simply had a collection of these color matrices that map to specific filter styles (black and white, sepia, etc.).

View 1 Replies

ActionScript 3.0 :: File Manipulation In Flex4 Webapp?

Jul 26, 2011

I need to do file manipulation such as create,write and delete in flex4 webapplication.

View 0 Replies

ActionScript 2.0 :: Multiple Sound Objects Manipulation

Aug 24, 2004

i have a problem manipulating multiple sound objects in MX. i have a main background loop object and a button rollover object (which plays on specific buttons). i then have a volume slider which will set the volume of only the main bg loop object. but when i tested it, it seems that the volume of the button rollover object is also the same with the main bg loop object's volume. meaning, if my main bg loop's volume is down to 50, the button rollover sound volume is also 50.

here're my codes:

//code on 1st frame
mainLoop = new Sound();
mainLoop.attachSound("mainLoop");
mainLoop.start();
mainLoop.onSoundComplete = function(){
mainLoop.start();
}

hoverSound = new Sound();
hoverSound.attachSound("hoverSound");


//code on slider MC
onClipEvent(enterFrame){
if(drag){
_root.mainLoop.setVolume(this._x); //this._x is between 0-100
}
}


//code on sample button
on(rollOver){
hoverSound.start();
}


thanks!

View 3 Replies

ActionScript 2.0 :: Multiple Streaming Sound Manipulation?

Sep 3, 2004

I have a site where as you click links, you move forwards through a city. I want to fade sound files in and out, overlapping, depending on where you are in the city.As yet, I can't have two sounds playing at once.I have found a site with the effect I want, it's atI have two sound loops at the moment, one of cicadas, one of a city at night, both saved as separate .swf files, which I have loaded onto the main timeline on layers 14 and 15.
The code for the two loops is:cicadas.swf, FRAME 1

var volPercent = 20;
cicadas = new Sound(cicadas);
cicadas.setVolume(volPercent*2);

[code]......

View 4 Replies

ActionScript 3.0 :: Library For Advanced String Manipulation?

May 29, 2009

I really like the string.Format() method and the StringBuilder class in C# quite a bit.

I sucks AS3 isn't as robust (yet, hopefully) with regard to string manipulation.[code]...

So, are there any open source libraries for AS3 that include this kind of functionality (and more, hopefully)?

Currently, in order to have the same result in AS3 would take a lot more code.

I hate relying on C# and other languages to do more formatting and such than they really should when generating XML files and stuff like that.

View 5 Replies

ActionScript 2.0 :: Multiple Sound Objects Manipulation?

Aug 24, 2004

i have a problem manipulating multiple sound objects in MX. i have a main background loop object and a button rollover object (which plays on specific buttons). i then have a volume slider which will set the volume of only the main bg loop object. but when i tested it, it seems that the volume of the button rollover object is also the same with the main bg loop object's volume. meaning, if my main bg loop's volume is down to 50, the button rollover sound volume is also 50.

here're my codes:
//code on 1st frame
mainLoop = new Sound();
mainLoop.attachSound("mainLoop");

[code]...

View 3 Replies

ActionScript 3.0 :: Color Manipulation Class Of A Series Of Objects

May 1, 2009

I am trying to make a class that will allow me to manipulate the color of a series of objects and I�ve gotten this far with ColorMod.as which does this manually. I would like to be able to somehow generate a series of ColorTransform objects such that I can manipulate their parameters (particularly redOffset, greenOffset and blueOffset) while I am generating them, and then push them into an array that can be accessed by another class. I can do this manually as per the code below, but I would like to be able to do it using a for loop as per the pseudocode I put in the constructor below.

[Code]...

View 2 Replies

ActionScript 3.0 :: Audio Manipulation Reading Values In The Sound

Feb 14, 2010

As I've searched a lot and couldn't find it I thought of asking it here. Is there any good package or tutorial on Audio Manipulation? With this I'm not talking about play/stop/volume etc, but more on bitrate/speed manipulation etc. Or reading values in the sound (like an EQ does basically).

View 2 Replies

ActionScript 3.0 :: Image Manipulation - To Tuck Pants Into Boots ?

Jun 9, 2011

this one seems to be too tough for me. Usually i at least know in which  direction i have to search for but this one is beyond my imagination.I  need to make kind of dress up shop where you can add clothes to a model  to see how the clothes look like. The hard part is, it should be  possible to tuck pants into boots or put one apparel over another. And  since the bottom apparel can be bigger than the top one i have to cut out the pixels around the top apparel.If  you rollover the pants on the left you see that the image is actually  bigger than the boots but is cut and curved "into the boots"And if you rollover over the "Mango top" you see that it is also much bigger than the top jacket.

tstanding but also still keep the parts that are going out of the sleeves and on the bottom.All data and images are loaded  on demand of course and there are no specified masks or tricks for that,  so looks like everything is calculated and processed ynamically.Defining  special masks for each item is not an option either because there might be hundreds of apparels and thousands of combinations.So do anyone have some ideas how to approach this ? How the heck do they do this ? How to detect the areas where one apparel goes into another and cut out the rest ?

View 7 Replies

ActionScript 3.0 :: Simple To Translation Display List Manipulation?

Nov 4, 2011

translate this piece of code to AS2? Don't ask why

var pictureIndex:int = 0;
var pictures:Array = [];
mc_animation.gotoAndStop(1);
mc_animation.visible = false;
mc_animation.addEventListener(Event.COMPLETE, animationCompleteHandler);

[Code]...

View 3 Replies

Actionscript 3 :: Tools For Flash-based Image Manipulation?

Jan 4, 2010

I'm building a Flash app (as3) that allows users to embed photos of themselves in a scene--think carnival-style cutouts (or faceInHole). I like the interface design for image manipulation at FaceInHole, which puts anchor points and a skeleton around the boundaries of the uploaded image and lets users drag the image to change its position, resize it by dragging corners, rotate it, etc, similar to the free transform tool in photoshop.

Originally, I was planning on building the application with an interface that just used buttons in a control console to manipulate things like position, rotation, etc, but I find the FaceInHole approach more intuitive.I have two questions:

a) Will most users find the in-place skeletal manipulation tool more convenient than the button-based tool, or do I just find it easier because I'm used to things like Flash and Photoshop that use a similar interface?

b) Are you aware of any good open source classes / libraries that contain a solid implementation of the photoshop-style free-transform image manipulation interface?

View 1 Replies

Flex :: Undo, Redo Functionality With Image Manipulation?

Jan 21, 2010

Loads an image to an Image component Transform the image (rotate, flip) with the Matrix Apply filter(s)

Now I am thinking about to create some undo redo functionality. Each time I do a transformation / add an filter I want to be able to go back to the previous image (before the action).

My thought is to have an Array and add the previous bitmap to the stack. But I see that there are some differences between transformations and filters I have also seen the ImageSnapshot and whot i can do and it looks like what I am after.

View 1 Replies

Flex :: Image Manipulation - Which Prefer For Function's Input?

Jul 22, 2011

I am in this situation where i need to select a Flex's type(image placeholder/image type/image container) for passing parameters in/out of different functions in an image editor. And, those different functions are either another image-manipulation/processing function or a function that display/render the image in a display component.

For example, I will ask other teammates to create a function that processes an image (possibly piped from other image processing functions, too), (let it be fancy or basic image processing from changing colors, to scaling, to segmentation etc.Which of the two would you pick for passing in/out different functions? Display Object or bitmapData,and why(reusability, performance, standard practice etc)?

View 2 Replies

ActionScript 3.0 :: Display List Manipulation Ready After AddChild()?

Feb 1, 2011

I consistently seem to run into an issue. When I addChild(mc), features and assets that need to be rendered on the display list, are not available immediately for actionscript access. For example, the use of MovieClip(root) and alpha manipulation (right? or not?) of the movieclip being added (or of it's children) does not seem to be available immediately. So, I have tried the following, which didn't seem to work either, but maybe it's correct and I had a complicating issue?

Let me know the "proper" way to know that a movieclip has been rendered so that I can access features requiring the asset to be on the display list? What I've tried is below:

var mc:MyMovieClipClass = new MyMovieClipClass():
this.addChild(mc);
this.addEventListener(Event.ADDED,mcReady);

[Code].....

View 0 Replies

ActionScript 2.0 :: Picture Manipulation - Change Levels Of A Jpg Using Flash?

Oct 25, 2003

is there a way to change levels of a jpg using actionscript in flash ?

View 3 Replies

ActionScript 2.0 :: Advanced Colour Manipulation - Add Two Colours Together Like Paint

Jun 6, 2006

I know how to manipulate hex colours by splitting the num bers up and perfoming calcutaions on them using bit-operators. Thats fine... but i now need to manipulate colour not using the normal RGB. I need to be able to add two colours together like paint. E.g. red and blue equals purple, yellow and blue equals green. Has anyon e had any experience with this and even more importantly can it be done? (i assume it can... nothings impossible)

View 14 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved