ActionScript 2.0 :: Decrease Color Depth Of Flash App From 32byte To 16 Or 24?
Nov 15, 2011how to decrease color depth of my flash app from 32byte to 16 or 24? I am using Adobe Flash CS5, and I can't find anywhere this option.
View 1 Replieshow to decrease color depth of my flash app from 32byte to 16 or 24? I am using Adobe Flash CS5, and I can't find anywhere this option.
View 1 RepliesI'm making a flash game and I've come to a halt in my code. This is how the game works: Where ever the mouse is clicked, the player will run towards thats spot. It's on a field. The problem is, I want the player's size to decrease as he gets higher up on the field(as the y gets closer to 0), giving the illusion of depth. But for the life of me I cant get it working! Im quite new to AS3 so im not sure about all it's tricks, but here was my go at it.
[Code]...
When I run the code, my character's size stays the same when I go up and down, but goes all wobbly when i go at angles without any real order. Clearly it's not working.
How to decrease color depth of my flash app from 32byte to 16 or 24? I am using Adobe Flash CS5, and I can't find anywhere this option.
View 0 RepliesHow to decrease the size of a button?
I have a button in which it contains an image.But my problem here is i am unable to decrease the width of the button along with image.
How can we decrease the size of that kind of button.
If possible provide me some sample code.
Below is my sample code:
<mx:Button id="line" toggle="true" paddingLeft="1" paddingRight="1" icon="@Embed(source='Images/line.png')" toolTip="Line" useHandCursor="true" buttonMode="true" click="doDrawEnable()" ></mx:Button>
I know there are performance loses if you don't specify variable types explicitly. Do ActionScript/Java developer in general prefer the use of the in classes or no?
public function hello():void
{
this.speaker.says("hello");
}
vs
speaker.says("hello")
Recently i made flash animation in 500x300px, now i need to re-create the same animation in 100x65px, plz tel me how can i decrease the dimension of same animation widout re-creating it in new dimension. is there any codes or tools or plugins?
View 3 RepliesHow do I make a stat and decrease/increase it in flash mx 2004?
View 2 RepliesHow do I make a stat and decrease/increase it in flash mx 2004?
View 2 Repliesputting a movieclip into highest depth without knowing which clip is in the highest depth
View 2 RepliesI want to do as follows: * click a "red" button write in textarea with red color font click "blue" button
* write in textarea with blue color font Isn't this possible in flash 10 using AS3 I tried using setTextFormat but the problem is i have to have text before inserting format on that.
What I am trying to do is to have the button color change to a different color when it is on the page. The color only changes when I roll over it or hit it. Once I am on the page it changes back to the color it is on the up state.
View 1 RepliesHow to convert color image into single Color as3?
View 2 Repliesi have a button, with instance name lightblue_color. I am assigning a color to its color field like this: lightblue_color.transform.colorTransform.color = 0x65ffff; then i am adding an eventlistener to the button like this: lightblue_color.addEventListener(MouseEvent.CLICK, ChangeColor); Then, in the function: public function ChangeColor(evnt:MouseEvent):void {trace(evnt.target.transform.colorTransform.color);} It prints 0. Why is that? Shouldn't it print 0x65ffff or do i need to do some type conversions?
View 2 RepliesI have 3 sprites: img1spr, img2spr, and img3spr. Inside every sprite I have some bitmaps.Every sprite has a name:
img1spr.name=name1;
img2spr.name=name2;
img3spr.name=name3;
[code].......
Whenever I create a MovieClip in the IDE and draw on it with the IDE then use ActionScript to add more to it (add a Sprite, draw graphics etc..) the thing I added is always behind the graphics of the MovieClip that was drawn in the IDE. How do I bring the Sprite/Graphics that I draw/add to the MovieClip in front of the graphics that were drawn with the IDE?I have tried doing this:
Code:
var myMC:mcDemo = new mcDemo(); //mcDemo being a MovieClip created in the IDE.
var sp:Sprite = new Sprite();[code]...
The final product of this is the myMC movieclip on the screen with my sprite behind whatever I drew in the IDE for myMC. How do I make it so the sprite is in front of everything? I have tried setting it to numChildren-1 which should set it in front of all objects.
Im loading some HTML text into a flash dynamic text box and have some list items but i want the bullet to be flush to the left along with the other text and without such a big gap,see below.is there some code i can insert in my plain text document with out using css?<li>Present you with the best market opportunities within your search criteria.</li>
View 1 RepliesI've recently created a game in which the logic and programming all runs perfectly, however the graphics are lackluster. I'm currently having a hard time managing the depth of movieclips on the screen.Basically the game is tile based and each frame of the movieclip holds a different type of tile. All the tiles are 50x50 with the exception of one type of tile which is 60x60 and therein needs to overlap the tiles around it which are 50x50.In AS2 I could of set the depth manually, however I'm told (as is this is my first time dealing with depth in AS3) that I cannot do this anymore. Is there any suggestions on how I can make sure that a tile of one type is automatically set beneath tiles of another type - I've thought about simply coding a function to check this but it somehow seems inefficient (considering larger maps will have a lot of tiles, meaning hundreds of movieclips attached to the stage, each movieclip with multiple frames).
View 2 Replies[Code]...
I would like to decrease timeb by around 5 every second. Is this possible? Everything I've tried seems to be failing.
there just havig a stupid problem where the health on my game increases on my game instead of decreases when the player is hit. here is the source codeHUD.as (Scoreboard)
Code:
private var stageRef:Stage;
public var s_score:Number = 0;
[code].....
I've been developing a flash game with a friend, and have hit a minor snag with the timers. My entire game runs in one frame, spawning movieclips and handling all that game-related stuff. Thing is, I've got a timer that spawns one thing (a boulder, in case anyone is wondering), and I'd like to have that setInterval (milliseconds) decrease every second by a set amount.
The important snippet of my code looks like this:
var timeb = 750;
bfalltimer = function () {
spawnboulders();
if (gaslevel<=0) {
clearInterval(boulderspawntime); }};
boulderspawntime = setInterval(bfalltimer, timeb);
Every second, I'd like time to decrease. I've tried everything I can think of - did I miss anything? How would I properly do this?
I asked this question yesterday but I found out that my problem is using fullscreen my goal is 2 mc 2 buttons : if btn 1 is clicked mc1 fullscreen and mc2 appears at the right bottom corner on top of mc1 if btn 2 is clicked mc2 fullscreen and mc1 appears at the right bottom corner on top of mc2 stage.swapChildren or setChildIndex is the way but with the fullScreen I had this error appears
[Code]...
I have some code in ActionScript 2 similar to the below snippet (Item being a MovieClip):[code]I'm unable to remove Temp after swapping the depth (works fine otherwise).[code]how to get rid of Temp?
View 2 RepliesIm having a dynamic textfield in on the main timeline which loads an external text file. Im also using addChild on the main timeline to display a mc. The problem is that the textfield is always behind the mc!! how can i change the depth of the textfield?
View 2 RepliesI can't figure out how to get the depth of event target Object...
My code looks like this:
Code:
private function createFooterItem(footerItem:XML):void {
var button:Sprite = new Sprite();
button.graphics.beginFill(0xFF0000, 0);
[Code]....
i have this script
Quote:
on (release) {
health -= 10;
if (health>500) {[code].........
I was wondering if there is a code i can use to replace the 10 with a random number between say 1-10.(Ergo when the script triggers the health is decreased with something between 1-10 instead of the set nr 10)
The buttons increment the score when clicked. is there a way to start an individual timer per button so that the sooner it is clicked, the higher the points? [code]...
View 0 RepliesI want a number stoed in a variable to decrease by 1 everytime the right key is pressed. here is my code but it isnt working.[code]...
View 4 RepliesHow to decrease the size of a button?
I have a button in which it contains an image.But my problem here is i am unable to decrease the width of the button along with image.
How can we decrease the size of that kind of button.
If possible provide me some sample code.
Below is my sample code
<mx:Button id="line" toggle="true" paddingLeft="1" paddingRight="1" icon="@Embed(source='Images/line.png')" toolTip="Line" useHandCursor="true" buttonMode="true" click="doDrawEnable()" ></mx:Button>
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.
View 2 RepliesHow do I decrease or increase speed on the animations? for example I just want a text to move from right to left but as its get close to the left to start slowing down until it gets to wher I want it, I hope you know what I mean, If not this is a site that uses that when text goes up or down or the buttons
View 3 Replies