Search:
Type: Posts; User: Sul
Search:
Search took 0.42 seconds.
-
It's up to you - depends on what you want to do, but you do need to give your movieclips instance names, where-ever you put them. You need to select your movieclip that's on stage first to name them...
-
I'm using Flash 8 too. If you cannot see the properties window, you need to access it through the windows menu.
-
function randRange(min:Number, max:Number):Number { //function from flash help file - gives random number between specified min and max number
var randomNum:Number = Math.floor(Math.random() *...
-
Here's a tutorial for you: http://www.kirupa.com/developer/actionscript/sound.htm
-
The problem probably lies in you getting the path to the clip incorrectly. Where is your movieclip? If player1 is located on the main timeline, then it's something like...
-
An instance name is the identifier you assign to an "instance" of your movieclip. An instance of your movieclip is one copy of it on the stage. You assign a name to your instance via the properties...
-
_root.mc.endrotangle = 0;
_root.mc.onEnterFrame = function(){
if(this._rotation == this.endrotangle){
delete this.onEnterFrame;
}else{
if (this._rotation < 0){
this._rotation++;...
-
The condition to check for that to stop it rotating would be =this.endrotangle, and to check which way to rotate it you'd need another conditional:
if (this._rotation < 0){
this._rotation+=2;...
-
You need to change the condition of the if statement to check if it's rotated to the angle you want - you can't have the same condition for the other two buttons as the angles are different. So for...
-
Yes I did - I edited the actionscript on frame one, please check there. :)
-
You need to apply the code I gave you above to your movie and it'll work as you want.
I've attached an edited version of your .fla so you can see an example of me applying the code.
-
Ah okay, on your button you need to add code something similar to:
on(press){
_root.mc.endrotangle = _root.mc._rotation + 30; //set angle to rotate to - you want to rotate 30 degrees, so it's...
-
You can use the _rotation property to achieve this - it takes values in degrees.
-
It's returning undefined because your variables aren't set.
You probably haven't set them in your text file..
e.g. test.txt should be in the format:
text1=whatever text I want to display
...
-
Sometimes it's because of the placement of the textfield, make sure its x, y position is an integer.
-
Replied in your other thread.. please avoid cross-posting. :)
-
You can get the number of characters by using the string.length property.
So
name = "char"
numchar = name.length //returns 4
You could set the text field not to wrap, alternatively.
-
gparis' code seems fine to me - can you upload your .fla so we can take a quick look?
-
Did you give your movieclips instance names?
-
1. You need to give your library movie a linkage identifier - right click that movie in the library and click on Linkage - check export for actionscript and give it a unique name, say you chose...
-
I've never really used or read any, but I've heard many good things of the one that Keith Peters from Bit-101 contributed to / wrote - Flash Math creativity.
-
This thread may help you: http://board.flashkit.com/board/showthread.php?t=698748
-
You have two unnecessary brackets.. that's possibly the problem, I've removed them here:
//If the button 1 on the keyboard is pressed
if (key.isDown(97)){
var ranNum =...
-
Well you're telling the movie to play, but it's not on the right frame. So it'll play but you won't see it since it's not on the current frame in your main timeline.
-
I removed some unnecessary code, and added one line of code on the last frame of your first movieclip that told it to advance to the next frame in the main timeline.
|
Click Here to Expand Forum to Full Width
|