ActionScript 2.0 :: Want To Move MC Char
Aug 25, 2006I want to move my movie clip on x axis by 10 pixel on every 'left & right' keypress.how will I do that?
View 5 RepliesI want to move my movie clip on x axis by 10 pixel on every 'left & right' keypress.how will I do that?
View 5 Repliesmy functions in this fla i have. I use the function to create a random number and the char move accordingly depending on the number.
View 4 RepliesI'm using flash cs4 on a mac and I need to embed some characters to support greek, and probably a lot of other languages. The problem is, my Character embedding dialogue box is empty! There's nothing in it at all... I'm using Tekton Pro as the font for that dynamic text box, I tried using something more basic, Arial and Helvitica didnt work, still nothing to embed. I know the phrase that will be in it, at least the first one, when I put it in the "Include these characters" box and reran, all the dt box would show is an apostrophe. I put the phrase into the dt filed itself and "autofilled" it did the same thing. I also tried doing the same with the % character version ie %B6, it picked up that they were characters but still wasnt displaying right. I'm diverging.
View 3 Replieshow to get the charCode from the character but I cant seem to find out how to get the character from the charcode.
Basically I am I am listening for the KeyDown event on a TextInput.
I prevent the char from being typed via event.preventDefault();
Later I need to add the text-char to the TextInput.
I can get the charCode via event.charCode so if I can turn that into a string I can save it for later user.
Why I need it
Basically I am making a TextInput, that that I can set to display default text in it. When A user types into it, I want to remove the default text first then add the user typed text.
Currently I am either removing it all, or ending up with both.
I have a menu screen that for various reasons consists of a number of buttons as separate flash movies. When a button inside these movies is clicked, it is supposed to call a javascript function to move to the appropriate page. It works fine in firefox, but is currently failing in IE7. I don't have an IE6 handy to test on.This is the error I get in IE:[code]I can't locate what char 25 of line 1 might actually mean. I only get the error when I click on the button, and after installing Visual Web Developer to try and get some actual debugging, it doesn't seem to be actually firing the function that is called, so it seems like the error is happening in whatever mechanism actually makes ExternalInterface.call work?[code]
But as i said it doesn't even show up if I put a breakpoint here and debug it. If I put a javascript:gohere('id') link in the html screen and click that it works fine.I have ExternalInterface.call working in other parts of the same project, and can't for the life of me see any differences in the way it has been implemented.
I have created a text file with the following information:[code]The issue is that the "+" (plus sign") doesn't show at all? I have used the following code in the fla. to replace the special char's and it works for everything but the "+" sign![code]Does anyone is a problem or why the "+" isn't working?
View 2 RepliesI'm using flash cs4 on a mac and I need to embed some characters to support greek, and probably a lot of other languages. The problem is, my Character embedding dialogue box is empty! There's nothing in it at all... which is... problematic.
I'm using Tekton Pro as the font for that dynamic text box, I tried using something more basic, Arial and Helvitica didnt work, still nothing to embed. I know the phrase that will be in it, at least the first one, when I put it in the "Include these characters" box and reran, all the dt box would show is an apostrophe. I put the phrase into the dt filed itself and "autofilled" it did the same thing. I also tried doing the same with the % character version ie %B6, it picked up that they were characters but still wasnt displaying right. I'm diverging. get that Char embed box to have chars in it... I don't know why its empty.
I have a multiline text input field used as a message area on a form (sending mail through a PHP doc). When I hit return to start new paragraph in that field and the form content is send and received at other end everything after that return is lost?
View 11 RepliesI searched the forums and found several examples but none of them worked for me.I tried...
ActionScript Code:
var pattern:RegExp = /_/gi;
var instanceName:String = evt.target.name;[code].......
If I import a font to the library, am I correct in assuming that it imports the massive character set (all). There seems to be no setting that I can see where to specify the glyphs or level of character support for example all the funny characters.
View 9 RepliesThis code works when I click in the text field and try to enter letters. ActionScript Code:
_root.InputTxt.text.restrict = "0-9"; However when I add this code to allow keyboard input, I can type other characters beside digits. Why is restrict not working?
[Code]...
I'm trying to use the restrict property of a TextInput field to limit the entry of minutes, so restricting the number of characters to 2, while restricting the first character to the range [0-5] and the second character to the range [0-9]
I've tried a billion things, but I'm not sure I'm going about this the right way,
I have to make a game. in that game there are some notes on the wall. The character (here emma) can be moved by the player with the left and right arrow key. If you press the up key, there should be a function so that you have to keep it pressed for a while, to let her jump, thus making her jump to the notes, so she can get them.
here's the code:
//notes on the wall
var teller:Number=1;
for (var i:uint = 1; i<=4; i++) {
[Code]....
How do I split a string by char 0 / byte 0 / 0x00 / u0000 in flash actionscript 3
View 1 RepliesIs it normal behavior, if createTextLine method of TextBlock class splits content text ":sometext" or ";sometext" , into two lines evenif the the method parameter width is long enough
View 12 Repliesso I have a string "bla dla dla vre bla 54312" I want to turn it into "bla dla dla " by saying something like
function(string, "vre");
how to do such thing?
After pressing enter within a message box, the message.text ="" does not remove the enter char from the message box.
Message.addEventListener(KeyboardEvent.KEY_DOWN,handler);
function handler(event:KeyboardEvent)
{[code]......
Alright so I was creating a game in AS3 and then I was told that I should have put them in classes so I moved all the code to classes and I get an error from the ground class saying that Access of undefined property char. Here is the code to see what I need to add to it so char isn't undefined anymore.
Code:
var gravity:Number=1;
var yVelocity:Number=0;
var canJump:Boolean=false;[code]..........
tutorial where when you click on a movie clip it moves to a certain location on the page and then zoom in and makes it a certain size. Also i want it to move back to its original location if you click it again.I want the move and zoom to be smooth so the users can see it move across the screen then gradually get bigger.
View 5 Replieswell i want to make buttons that on rollover move to left, on rollout move back to their initial position, and if clicked, they but stay this time at the final rollover place, and be there until something else is clicked. When something else is clicked, the previous button , returns to its initial place. So i ve got it all figured out except for the freeze and move part when the buttons are clicked. All it does now , is when they are clicked they freeze at the position i want, but i havent got a clue how to update them, after so they start moving back, and reacting on rollover and rollout, when the next button is clicked.
[Code]...
I know this is very noob, but I need a simple AS move and loop. Move an object across the stage and once out of site, loop and start over again? It needs to be a slow and endless loop.
View 3 RepliesUsing Tween class maybe? I tried the easeOut. But if will write 2 Tween, the 2nd one will overwrite the 1st one, so I only see the obj moving in the 2nd Tween direction, not the 1st Tween direction. I know the coordinates for the 2nd Tween below is not correct (cos all coordinates shld follow the defined reference point), so I need to find out the logo's width and height. But is alright now cos it is for testing purpose.
[Code]...
How can I move (on click) the ball up? I'd like to click in ball and move it up, the gravity move it down as well...
View 1 RepliesI'm trying to create an animation with an rectangle. I want the rectangle to move in a loop from x=150 to x=50 and back to 150 and so on.
At the moment I can only move the rectangle forward and it stops after it moved 100px.
how to create the loop ?
This is what I have come up with. not much Iknow.
<s:Move id="moves"
target="{rect2}"
xBy="-150"
duration="1000"
easer="{sineEasing}"/>
I am having some dificulty making a path for this enemy i'm trying to create... cause i want him to rotate + move, then stop, then shoot, then rotate back and move off screen... Its easier if you see it.. you can download the swf file in the zipped archive to demonstrate what i mean. I did it there with tweens. Anyway.. i tried and make it but i'm a little stuck on the stopping part... you can also see what i did in the fla file attatched...
View 1 Repliesi have 2 movieclips: i want to move both of them but the second movie clip will only move if the first clip reach his final destination how do i do that?
View 2 Replieshow to do an object move towards the mouse when i move the mouse the towards the object and backwards when i move the move away, something liike the menu on [URL]
View 2 Repliesi am having a problem with making an mc(fielder) move towards another mc(ball). The ball is always moving.the problem is that the fielder gets the shakes all the time(he goes all shaky)
View 2 RepliesI need to move an MC to different x, y coordinates depending which button on the navigation bar they (the user) selected.
Basically if "Contact" is clicked the background MC watermark moves to a specific location, then if "Portfolio" is clicked the same watermark MC moves to a different x,y coordinate. I would prefer the transition be smooth and fluid.
I am using Koolmoves to create a simple .swf file that allows a user to click on a picture and it moves to the next frame and stops. I created the two frames, created a button on the picture in the first frame, designated that on mouse events press and release go to frame 2 and stop. But when I play the movie, the first frame appears and then the second frame appears without any action on my part.
View 7 Replies