I was wondering if there's any way to modify the kirupa infinite menu tutorial AS so that the middle button is the largest, and the buttons on either side of it are smaller, and so on for the rest of the infinite menu??? I though I'd try asking this question in the Actionscript forum, since no one answered me in the Flash MX area.
I have a problem with scaleX and scaleY. When I use them for images created by photoshop their graphic decrease a lot. I use scaleX and scaleY for changing the size of image so scaleX equal with scaleY. Is there another way to change the size of image in actionscript without decreasing graphic?
I wanted that, when I place the mouse on the button, a movieclip appears, but in a random place in the screen, with a random size and a random color and plays until all its animation is complete, and then disappear.How can I do that? I don't know even where to start!
I have this code that I found online that does an infinite rotating gallery, now my problem is that on enter frame it jumps and too fast. I want it to be as fast at after you hover out of the logo.
Here is the code:
//Import TweenMax import com.greensock.TweenMax; //Save the horizontal center
I want to show the number of balls increasing as the frame numbers increase, and I also want to show them decreasing (reverse the frame no) how can I go about doing this? I also need the current frame to be in the middle of all the total frames so when I go to the right balls wil increase and go to the left balls will decrease..
I seem to be having problems with rectangles moving from their assigned positions when all I want to do is decrease their width.A game I'm working on simulates an explosive with a fuse. The fuse decreases in size as a clock counts down to 0.I think the problem has to do with local coordinates vs. global coords, but I'm not sure how to rectify the problem. Here is some code:
//fuse _fuse = new Sprite(); _fuse.graphics.beginFill(0x000000);[code]........
Nowhere in my code does the x position of the fuse change.Aside from this one issue, the rect functions exactly how I want it to.
I'm trying to get an object to increase in size the lower it goes down the stage, and decrease in size the high it moves up the stage.
It only needs to increase or decrease by a small amount. Basically, it's for a game character. To ad realism to his movements, it would be nice to have this feature.
I have a button object, I want to be able to control with the ENTER/RETURN key on the keyboard so when ever I press the ENTER key, the button object goes into onPress stage.
I am working on a car game in flash where you see the car from a top view and you go straight ahead all the time on an endless road.The game so far is built in the way that I have a image of a car that's the main car and the road is a image itself that keep switching with another image of the road and when you play it it looks like the car is moving very fast. But actually the car is not moving at all except for when you move it yourself by going right or left.When turning right I do not want the car to simply move to the right, but I also want it to rotate a bit so it looks more realistic when turning.So when you press the right key it rotates 5 degrees even if you keep holding it and when you release the button it rotates back quickly.The script I'm using:
Before I start I would like to point out Im new at actionscipt. I want to move an object from a to b on a mouse press using actionscript to ease out. The only threads I can find involve huge scripts I know it should only be a couple of lines!
well i'm trying to get this object to move on the press of a key (keeps moving if you hold it down) and stop when you release it, but all i'm gettin, is when you press it, it moves on forever and never stops....
i would like spin an object in clockwise and anticlockwise direction with ease via press of a button.tried using,
on (press) { this.testmovieclip._rotation += 45; }
just to get the object to turn... What i wanna do is have 4 buttons, 1st button turns the object 45 degrees, then 2nd button turns it next 45 degrees and so on... Have attached .fla of what im trying to achieve.
I have a problem when I making a game Flash with action script 3,. I want tomake my character move when the key helding and I want my character attackwith one tab press either
I have text field which is 0 by default (score_txt)Two buttons +1 and -1 (plus_btn and minus_btn) When I press +1 text increases by one, and when i press -1 it decreses
According to the ActionScript 3.0 documentation, the TextFormat classes size property is an Object. Why is this? Clearly this is a number! When I check its type (using typeOf()), it returns Number. So whats the deal?
I'm working with a Flash movie and I'm trying to get the size of the player itself (i.e. the height and width Flash has to work with from the object/embed tag). As far as I can tell, Flash doesn't make this available to ActionScript.
I'm able to use this.root.loaderInfo.width and this.root.loaderInfo.height to get the "intended" size of the flash movie (what's specified on export), but if the dimensions are different on the page, this isn't helpful.
What I'd basically like to do is have a slider that controls the size of a Movie Clip. When you move the handle to the right, the MC becomes smaller, and when you move it to the left, it becomes bigger. I found an article at Sitepoint (www.sitepoint.com/print/actionscript-animation-flash), which did the opposite of what I want to do, but I couldn't seem to reverse the code.
I want to set it up so the size properies will pass over to the block (same object size - height and scale) but also changing the collision properies so the player will be enable push the block around the screen but I'm not sure how to implement such functionality/feature. I've experimented with two ways so far; 1.) The enemy changes to a frame of a block when he dies (illusion of a different object but the same object with a different frame on the timeline) using the same size properies but I can't seem to the change the collision properies from it's prior setting of causing damage and re-bound/bounce to the player. 2.) The enemy is removed completely from the game and a new block object is added in the same position where enemy died but I can't share/code the same size properies to this new block object making obvious that is a different object. Here is a code I've what I've done so far (which is attempting to do first approach);
I'm doing a little drag and drop work and I'm wondering if it's possible to change the size of an object when it is dragged over another object on the stage..
For example I would like to drag a square movieclip around, but when it is dragged over a certain object it either play the movieclip and 'morph' into a rectangle or simply become rectangular (using a frame label or something) !
Is it possible to do this sort of thing with hitTestObject or hitTestPoint or dropTarget without contiuously checking if the objects are in contact ?
I have a list of items dynamically loaded from an XML file into my flash movie.Each item is positioned vertically with some buffer space between it and the preceding item.However, if the amount of items exceeds the flash objects height,then the excess items are invisible (because you cant scroll through them!).So then is it possible to make some form of call (undoubtedly an externalinterface call to a javascript function) that will resize the height of the flash object to fit all of this dynamically loaded content so that the browser's scrollbar is triggered allowing the user to scroll through?Or is it more practical to simply carve up my own scrollbar to fit the entire flash movie?
I want to let the user save some bigger data in a shared object by choice. Is it possible to define the size the user needs to allow? I'ld like to set the minimum to at least 10 MB to have some extra space for future usage.
I'm rendering a xps file using flash (no MX or Spark), and I'm running into a sort of 'contradiction' that I'm unable to solve. [Note, that I'm trying to work only in core flash (e.g. Sprite, Shape, etc.), I've already solved (sort of) this issue using Spark.]
The pages of the xps file specify an explicit size. However, the content described (especially paths) in the xps file can sometimes extend outside of this area.
The problem is, I want the parent Sprite to have the size specified by the xps file, for example so scroll bars match the page size (not the sprite size), but in some cases the Sprite is much larger than this.
I've tried recursively going down and scaling everything UP, and then at the end scaling the parent container DOWN. Unfortunately, this causes translation problems with paths, and I assume it can also cause problems with bitmaps, etc.
Without using MX or Spark, is there anything I can do to control the size of the parent Sprite, other than scaling all the children independently?