ActionScript 2.0 :: Dice Effect For Text
Jan 9, 2009I want the dice effect for the text.The text should move as the dice moves.How can be done that?
View 2 RepliesI want the dice effect for the text.The text should move as the dice moves.How can be done that?
View 2 RepliesI really like the text effect Pom used in the footer contest, and would like to use the same grid-type method of creating mc letters but with a different effect. i understand how to change the parameters and shapes of the letters, but can't seem to figure out which piece of code is purely for the explosion effect. basically, i want the letters but with the 'Repel' effect from[URL] here is Pom's AS:
[AS]
cellSize=3;
radius=10;
damp=.85;
[code]....
and here is the .fla using the repel effect using pre-made mc:
I am trying to create a dice that doubles up as a 60 second timer that counts from 60 to 0. I have managed to create the timer with some actionscript and a single frame swf, one layer for the AS 3 and one for the dynamic text box. I have also create a die from four 60*60 squares that animates 90 degree's so it looks as if it is rolling.
My issue is, how do I bring these together? As the clock/timer is dynamic textbox it can't be animated around 3D space, so it needs to be converted into a movie clip (to the best of my knowledge). when I do this, the actionscript no longer works as it's no longer having to update the text attribute of a textfield, but the contents of a movieclip.Next, I tried to import the timer.swf (clock) and dice.swf with the Loader class and loaded each of them into a movieclip, then layered them. This ALMOST works, however unlike the text in timer.swf, the text in this instance is not refreshed and simply writes the updated value over the previous value.Here is what I've ended up with:
AS 3 code:
<code>
var dice:Loader = new Loader();
[code]....
I am new to AS3. Trying to create a dice that generates a random number.Almost got there, but I can't get the dice to stop continuously generating a new number.[code]
View 2 RepliesOk, i am creating a snakes and ladders game and have so far produced the board, the counter and the dice.Once the dice is rolled it returns a value called 'rollValue'The counter is a movie clip with the instance name 'counter' and is set up on the timeline with position 1 on the timeline being the first place on the board, position 2 on the timeline being the second place, 3 on the timeline being 3rd position on board etc etc.What i need to do is move the counter to the position on the timeline (hence moving it on the board) that is returned by the dice value.I was thinking something like this:
counter.gotoAndStop(rollValue);
or maybe this on the actual counter which would move it the amount of places determined by rollValue:
[code].....
I need to create a small dice game in Flash. The random number generator is external and I have to create a 3D realistic dice animation with that outcome. I'm using Away3D engine and JigLib for physics. So far the best idea I've had is to do many simulations and create a list of outcomes and their corresponding input parameters (initial position, initial orientation and the forces added to the RigidBody). This is not working so well. Sometimes for the same parameters the outcome is different. What is the best way to do this?
View 1 Replies1. I would like to make an animation where a dice roles from the left of screen towards the middle. Bit like this: I am thinking an animation, then put it on a path (not sure how to do this, but I know it can be done.) I have heard that swift3d could help me here, if so, give me a heads up. I could also make it an animation and make it bounce on the spot and use the inflash camera and draw back the distance to seem as if it is moving forward. Basically the main problem is how do I make the animation of the cube?
View 6 RepliesI'm trying to create a board game with a dice. I have a pawn which is supposed to move through the fields on the board according to the number on the dice, after it was rolled. The board has rectangle shape.I've created a function rollDice() which is controlling dice rolling and the movement of the pawn. The dice itself is event handlerThe board itself is within movie clip "map_mc" in which I've created a separated mc, called "node" + the number of the field, for each board field. So, there are "node0" to "node37" inside "map_mc", as there are 37 fields on the board. The pawn "tiger_mc" is also inside the parent "map_mc".
The problem is next:I somehow can't achieve that the pawn move from the current field to the next (according to the dice number) step by step. The movement is too quick and the pawn "is cutting" the corner of the board.Explanation of the code:The whole code for dice rolling and pawn movement is inside rollDice() function which is called by pressing the dice itself. It tracks both current position of the pawn (var curr_position) and it's next position (var next_position). It also push index of all fields in between into array fields_arr. I've created a counter inside that function which goes through fields_arr elements and changes the pawn's _x and _y accordingly, up to the last field - the new position. But the pawn is moving as directly from the current to the new position (not gradually over the fields in between). So the effect of such movement is that the pawn "is cutting the corner of the board". For instance, if the current position is "node7" (which is on the one side of the rectangle/board) and the next position is "node12" (which is on the next side of the rectangle/board), the pawn is not moving gradually node8-node9-...-node12 but as directly from node7 to node12,
I have a 2D array that creates a table with value that contain sum of 2 dices. But I want the result of the dice roll display on the appropriate text box on the table. I'm stuck at getting position of textbox which shown at bottom code where I have it as that position as now. Select is the instance name of those textbox.
Code:
var row:int=7;
var colum:int=7;
var dicechar:Array=new Array();
var reddice:int
var whitedice:int
var textboxarray:Array=new Array();
[Code] .....
I am still using flash MX. I'm pulling random text from a textfile (array.txt) into movieclip instance textbox.[code]All is good, but now my question is if I can have a text effect as well. For example having the random quotes typed out as they appear.
View 16 RepliesI am creating a board game and I am using Object Oriented Programming with AS3. I created a movie clip with a circle that moves across the game board. There are 18 squares and 18 frames. I have a button that gives you a value with a dice with the random number function:
public function rollDie():void
{_dieValue = Math.ceil(Math.random()*6)
this.gotoAndStop(_dieValue);}
I have a class for the dice button, die, gameboard, and the main board. I am trying to make the circle move across the board(or go to the frame in the mc) depending on what the value I get with the dice. Here is my code so far:
[Code]....
The mc instance for the gameboard is gameBoard. Also, if anyone knows how to trigger a labeled frame depending on which square the circle lands on that would be a plus.
Does anybody know how to apply this text effect [URL](including the blinking underscore) to a text field that loads from an external .txt file.
View 6 RepliesI am using flash to create an animation where text, once converted into a movieclip or a button, fades at a certain point. To do this I am using the text tool and converting the text into a movieclip.
I am trying to make the text fade away by using the alpha property, but the preview will never adjust the movieclips alpha value. I've tried embedding the font and linking it but it still just doesn't work.
Can anyone tell me if there are any FREE resources for additional Text Effects for Flash 8 Pro?I've dabbled with the conventional glow, stretch, spin, rotate, blur type of transitions over the last couple of weeks, so now have an appetite to try something new.I've found some tutorials around the net on specific single effects, but would relish finding a small group of add-on effects somewhere!
View 7 RepliesThis is a follow up to the second question started on [URL].. regarding using a typewriter effect again in a new frame of the same movie.
I should also clarify, that although the effect will be the same, the output file called and xy textField coordinates and different so therefore will generate new text and position on stage. Would that be related to the URLRequest and var textField? The code again is:
[Code]...
I'm trying to get the bt text over effect here:[URL] I've set-up a simple mc button and applied the text effect script (below) to the over state in the mc - But I can't get it 2 work. Grateful for any input going - .fla attached
[Code]...
recreate this text effect? http:[url].....Here's my version: http:[url]....
http:[url]....The trained eye can probably see that the original version looks much better. Why is that? Is there something obvious I'm doing wrong, or could this text have been made using a different technique?(whether I use Flash or Photoshop shouldn't matter as their text effects are pretty much identical)
does someone know how to create a similar scrolling text effect like seen within the content sections on [URL]... looks like a mix of a scrolling text effect with some colour and positioning tweening.
View 2 RepliesWho would have, or know of an available script that does a text effect like used on group94.com?
They use a variety of scripts. But the basic one would do for me, to start with.
I am trying to use the typewriter text effect with text loaded externally from an xml file.It keeps returning 'undefined.
View 2 RepliesI'm looking for a text effect that loads the text through xml, the text appears letter by letter, coming from and _x and _y making a trail of letters and forming the phrase.
View 2 RepliesI'm attempting to create a dry erase board style animation effect in my flash movie where I'm erasing the text, like a dry erase board type effect. I've tried doing a frame by frame mask animation and it's not turning out very well. Has anyone attempted this before? Are there any tutorials or maybe after effects > flash tricks?
View 2 Repliessome web page with cool dynamic text effects, better with tutorials.
View 3 Replieshow do you change the text inside of a text control when a user has clicked a button. I could not find a way to do this. I used an event handler to input a .xml to a string and then to the text control. This doesn't seem to work.
View 1 Replies[URL]
All over this website you'll know the effect I'm talking about, even on the YES or NO button in the beginning.
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.
View 14 RepliesNeon effect for Dynamic Text?
View 2 RepliesDoes anyone know how to make an LED scrolling text effect? This is the best way I can describe it as I don't want scrolling text in the normal way, I want it to be on one line moving right to left with very few characters. Like you might see in an elevator or shop window on an LED scroller.
View 2 RepliesI'm a web designer, but I deal with HTML, PHP, JavaScript, not so much ActionScript. I have a new client, and they've already had a website designed completely in Flash. Now they only want certain elements of it, and the rest in HTML. See, the website uses the ripple effect to make images and text look as if you were sticking your finger in water - it follows the mouse. So, I want to take 3 different smaller Flash movies out of this huge, big one. But when I do, the ripple effect no longer works. Here is the action code:
import flash.display.BitmapData;
var map1:BitmapData = new BitmapData(900, 600, true, 0xFF0000);
this.createEmptyMovieClip("bmp1", 10);bmp1.attachBitmap(map1, 0, "auto", true );
var blur = new flash.filters.BlurFilter(8,8,5);
[Code] .....
I know I'll need to change L2 - the 900 to whatever width and the 600 to whatever height, but that's about all I understand.
I recently view a Lee Brimelow Tutorial on a Write on Text Effect in Flash 8 AS2. I learned a little AS2 when first learned flash 2 years ago, but one CS3 came out I focused on AS3, so I am not fluent enough in both to translate.
[Code]...