ActionScript 2.0 :: Animating TriggerMC Along With Lines Of Text
Jan 9, 2010
Basically, I just want to do ye old text fade on as if being typed on to the screen. Letter by letter, and in some cases word by word. digi-poetry. I've made a BlackerMC which starts as a black square, then flickerfades away leaving some faded lines (like old school crappy green monitor style), and then the lines fade away. I've placed copies of this BlackerMC over each of the characters/words I want to 'type' on.
What I would like to do is animate a TriggerMC along the lines of text, and whenever it rollsOver a BlackerMC it triggers the Blacker to fade away. I know how to set up BlackerMC to look at its distance to TriggerMC, but then there will be like 500 BlackerMCs enterframing away. Is there a way I can make TriggerMC just look at 'whatever?' MC is under it, and then trigger whatever?MC to play? How to do this the smart way, entirely with action script and Dynamic Text?
How do I go about animating a dot to trace the contour lines of a shape, leaving a line path as it goes along? I have the final shape, which is a complex shape, like the shape of a land when you look at a map. For the animation, I was hoping that I can start off with an empty document, and the contour line will begin to trace itself until the final shape appears.
I am trying to put together a match activity where word in one column are linked by a line to definitions in another column. Once all words have been linked to their definitions, you end up with a series of crossing lines so, so I want the definitions and their line to move so that each is level with their connected word and the lines have unravelled. I've got as far as connecting the words to their definitions using a line (as a sprite) and the definitions can then be moved using tweenlite -but I have no idea how I move the lines with their definition. Here is a much simplified section of code to give you an idea of what I am trying to do
The last I have been using Flash was around 4 years ago and I have forgotten quite a bit. I remember I used SWISH Lite to create a typing effect (as a blinking cursor is typing a line of text one by one) and later i just could take this generator animation of my text and add it to my Macromedia Flash.I have installed the new SwishMax Trial, but I really don't recognize where I have to go in order to get this text effect generator running.
Basically I have a menu with submenus. The submenu is a Sprite with two children, one is a square for the background and the text on top. On mouse over, I can change the color of the first child, the background, but not the color of the text, the second child. Here is the code.
ActionScript Code: private function subMenuItemOver(evt:MouseEvent):void { TweenLite.to(evt.target.getChildAt(0), 1, {tint:0x9ca26e}); // Works TweenLite.to(evt.target.getChildAt(1), 1, {tint:0xffffff}); // Doesn't work }
The menus are created from an xml document and the color is assigned with TextFormat.
I am using Adobe AIR to develop for Android and loading xml text into a dynamic text field.... when I drag the text to see more or less, it is PAINFULLY slow
I'm setting up an animation to do the following: 10 bulls are running across the screen, they each stop at a position that I would like to be defined by a numeric variable contained in a text file. So currently each instance of the bull has a script to run the animation (see below).[code]so the only value in that script that needs to be defined by a variable is the x position. Can someone explain how i can import values from a text file (or xml file) as usable variables in the animation script?I've no problem importing text to be displayed in a dynamic text field, I'm just having a huge problem getting numeric values to import correctly.
I am trying to load the data from a txt file into a dynamic textfield.It works fine on the initial stage.But if i nest the text field inside a movieclip called "my_movieclip" it does not load.eg: _root.my_movieclip.newUpdates_txt.text = Update_lv.latestNews;Another problem is if I rotate the text field it again wont show??
Code: Update_lv = new LoadVars(); Update_lv.onLoad = onText;
I've made a little file with some signpost movie clips that do a little animation on mouseover and mouseout. I then wanted to set the text on each of them via actionscript i.e. sign1.sign_text.text = "Checklist: Before you arrive"; etc. This code puts all the right text on the signs when it loads, however as soon as you mouseover it, the text reverts back to the original placeholder text in the movieclip (when it gets to the second keyframe). How can I keep the reference to the text it has at the beginning of the movie clip?
I've got an xml file that is providing text to the swf. The flash file is supposed to go through the xml file and each time it reads a node it is supposed to create a text field on the stage with the text from the XML file. Then it is supposed to animate along the y axis for a short time, pause for a few seconds, and then continue animating along the y axis. (like a news ticker on a News Channel). Anyways, I've got the FLA reading the XML file fine and it even creates a text field populated with the text. But I can't get the text fields to animate inside the loop.[code]I can get the first text to animate. But I don't understand why the "i and j" version doesn't.
I am trying to make an application that will load XML data into a scrolling info bar and then continually scroll the information without a break (so there is no gap in the display). The textField and container movie clips are created dynamically and then animated once the XML has loaded. I am having problems though as when I choose to duplicate the MC that has the text loaded into it I can't see the text. I have tried two methods of duplicating the movie clip:
AS3 to animate dynamic xml text values to -X direction means left side of the screen. The text boxes will be holding dynamic numbers which willl be basically some amounts passed by the user and these amounts will be animated as running towards left. For getting these dynamic text values from an external XML file every n second say every 5 second the xml connection will be refreshed with a timer. Now am working on is like creating text boxes at run time as per the number of amounts coming to the flash while refreshing once. Here the issue what am facing is like first time when the flash loads then there will be some 10 values so 10 text boxes will be generated and the movieclip holding these will be moving to -x direction with a timer, so when the next time the connection refreshes its again creating new text boxes and appending the movieclip and this process repeats in every refresh, if a new value is coming to the flash may be in 6th refreshing time then to see this new values there is a big delay happening because all the old generated set of amounts has to be moved to see the new one. Here we are looking for a instant change on these amounts once the new values gets to flash.
I have been working on a map viewer based blitting technique. As part of the map I need to draw approximately 50000 lines and performance is currently really poor.
My code is on the main timeline.I call a function loop to draw lines between them.The lines are drawing between the right x, y values BUT between those values on the main stage, not those values within the kite.For example, dot1_mc is at x100, y0 inside kite. the line that should go from its center, draws from stage x100, 0.How do I draw the lines inside kite so that they draw between the dots?Heres my code that draws the linesPHP Code:
function loop():void{ lineDrawing.graphics.clear(); var a:Point = new Point(kite_mc.dot1_mc.x, kite_mc.dot1_mc.y); var b:Point = new Point(kite_mc.dot2_mc.x, kite_mc.dot2_mc.y); var c:Point = new
I created a TextArea object. Then I typed some text in it. Then i got this text useing TextArea.text property.How can I split text I got by lines and convert it to the array of strings?
I have a text field with a dynamic amount of text. Now I would like to take the lines 1 to 10 and put them in one variable. And then the lines 11 to 20 and put them in another variable.
I am playing around with the Lisa Larson tutorial on creating a flash video player with dynamic playlist (XML). I want to add another text field, but am running into trouble with the TileList.How can I create two different labels with TileList and call to them?I want "Title" and "Desc". I can work around it by putting it all into one label, but then I cannot style the title seperate from the description.
I am trying to get a dynamic text box to add text to it when I press a button, How do I get it to add multiple lines? I tried <br>, but how do I get line breaks? Is there a better code that what I am using? ..I am using...
The problem is that there are always 2 lines in text area when it runs......when i remove this i get usual one line but then i m not able to set color and all.I want to use textarea, set different colors on it and i dont want 2 lines in that.....
I'm loading a few bits of text into a dynamic textbox and I want to know if it's possible to find out the number of lines its taking up. Using the height of the textbox isn't an option as the text varies all the time.
I have a text field that i have set to load several lines of text from an XML file.
Code: <?xml version="1.0" encoding="uft-8"?> <imageText> <text> <text1>text for image one <br> line 1 <br> line 2 <br> line 3</text1> </text> </imageText>
it loads into flash fine but when i try make it a global variable it only takes the "text for image one" because it thinks the <br>'s are tags. flash the turns the above code into:
Code: <?xml version="1.0" encoding="uft-8"?><imageText><text><text1>text for image one <br> line 1 <br> line 2 <br> line 3</br></br></br></text1></text></imageText>
i need this tag to be in there to show that its a new line.