ActionScript 2.0 :: Set Graphic Alpha (Becomes Less Visible)?
May 3, 2003
I have this graphic symbol in Flash, let's call it 'graphic1'. Above the graphic, there is a button, 'button1'. Now I need some code, so when you move your mouse OVER 'button1', the alpha of 'graphic1' is set lower (so it becomes less visible).
View 3 Replies
Similar Posts:
Nov 4, 2004
The tutorial located at [URL] can it be done with video?
View 14 Replies
Apr 16, 2004
set this up so CLR_homeMC will be visible and alpha 100 in the beginning? Right now if I just add showClip(CLR_homeMC); it works but there is an alpha fade in. I don't want it to fade in for the first one.
Code:
var step = 3;
var oldClip;
function fadeOut() {
with (this) {
[Code]...
View 6 Replies
May 23, 2010
i'm making a game and i don't know what script to use to change the alpha color of the graphic symbol i used.the game is a shooting game, ex: target points is 50, if the score is 25 the alpha color should be at 50%, if score is 50 alpha is at a 100%i tried this script but it doesn't work
onClipEvent (load) {
if(score<=50){
skeleton_mc._alpha = (score/50*100);
[code].....
View 1 Replies
May 24, 2007
I'm using Flash 8 (in case you need know what version I'm using).There's three flvs I have assigned a cuepoint, "complete". The goal is to make a graphic visible when "complete" cuepoint is detected, but this function seem doesn't work, any feedback on function?:
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);[code]....
View 1 Replies
Sep 10, 2010
I have a startDrag function set up on a loader and mask that when the mouse is down on the loader it drags, when not it doesn't. There is also 2 buttons that control whether mask1 or mask2 is used. What i would like however is when the mouse is down - the area of the loader outside of the mask is visible but only by about 10/20% alpha, that way the user can see where all the image is while dragging. Is this possible? Full code can be seen below and i have attached the zip with the .fla file:
[Code]...
View 2 Replies
May 19, 2008
if I have various items on stage that I want to appear later, is it better to set .visible to false than setting the alpha to zero? For instance, there is an object that I want to fade in from alpha zero to 100%...when the object is invisible, should I just leave it at alpha zero, or should I set the visibility to false to help with performance. Does it make a difference? Would it further help performance if I removed the object using removeChild when I'm done with it?
View 5 Replies
Sep 28, 2011
My question is: Set parentSprite.visible = false will make all children in parentSprite all invisible, right? And is there any way to just make parentSprite itself invisible without effecting it's children?
View 2 Replies
Aug 8, 2010
I want to click on an object and make it appear and disappear. As the object is rectangular, I figured putting a white button the same size on a white background on a layer underneath the object would do this, but I can't seem to make it happen.I'm a complete novice, frustrated as I've been trying to achieve this all day and I'm sure it should be pretty simple, but could you give me the idiots guide. I know how to name an instance, make an object, script in actions on a separate layer. I would like to draw the button myself and give it an instance rather than drag it off the button component (as I can't work out how to make the component button white, change its size etc.!)
View 5 Replies
Apr 1, 2009
Code:
my_Dyn_Txt1._visible = false
cb1.onRelease=function()[code]....
When the checkbox (cb1) is clicked the "my_Dyn_Txt1" is visible. The problem I'm having is - when I move forwad and back in my frames the checkboxes which were clicked are not visible due to
Code:
my_Dyn_Txt1._visible = false
How can I make ("my_Dyn_Txt1"), a clicked checkbox STAY VISIBLE even after I move forwad and back in my FLA frames?
View 11 Replies
Oct 23, 2010
[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?
[Code]....
View 2 Replies
Dec 15, 2011
just spotted this curious trick. If you want to flip something to go invisible on a click, and then reappear on another click (etc etc), try this:
create the sprite, setting alpha to either to 1 OR -1
mySprite.alpha=1; //OR
mySprite.aplha=-1;
[code]....
View 9 Replies
Jun 27, 2003
using AS, on loading a movie a solid shape is there with alpha at 100% then over a period of 5 secs its alpha is reduced to 0.
i'm new to this......please help if you want to if you don't have a good weekend but think of me struggling onwards and upwards...
View 14 Replies
Mar 4, 2010
I want to make a little thing pop up when I put press a button... Would the best way to do this by doing a - movieclipname._visible = true/false
View 3 Replies
Sep 7, 2010
Okay, this should be relatively easy but I'm running into errors. My main character is visible in the beginning of the game (where the main menu is) and because I coded it so that all of the enemies don't spawn unless the main character is visible, the enemies spawn too. As a result, if you stay at the main menu for long enough, the score continues to go up, the health goes down when enemies attack, etc.
View 1 Replies
Mar 30, 2011
when the video reaches 1 minute, a button appears. is there a way to hide the button again if the user uses the seek bar to go back to the 30 second (or any time before 1 minute) point?
View 2 Replies
Aug 2, 2011
I want to do aplpha = .5 for the whole app, but then have a MC display at full alpha, is there any way to do this?
View 6 Replies
Feb 26, 2005
As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.
View 5 Replies
Apr 1, 2009
I'm trying to create a mini-gallery. The background is an image which auto-centres, cropping the relevent areas to ensure it fits perfectly central at the right aspect ratio.However, when I add a bar across the top, it gets 'cropped' with the image (ie. If I make the window thinner, it will get cut-off. Is there any way to keep an image exactly 10px from the top of the visible area - no matter how the background is cropped?
Code:
orig_stage_width = 960;
orig_stage_height = 600;
orig_back_width = 1600;
orig_back_height = 1200;
[code]....
View 1 Replies
Jul 20, 2010
So lets say I make a chess board in flash that is a top down view. Then if I want it in isometric view I simply go to the transform window and enter the skew properties of 60 and 30.
Now here is my question, is there a way to change from this ISO view back to the normal top down view?
View 3 Replies
May 10, 2009
I am building an RPG type game in flash and have hit upon my first problem.I have created a character out of various different body parts (upper arm, lower arm, hand, head, etc..) I would like to make it possible to change the look of each of these body parts (different types of armor / clothing) whilst maintaining the whole body animations.I'm becoming confused about how many things are inside each other! Rather than recreate a whole new set of animations for every conceivable combination of armor and clothing it should be possible to simply change one of the graphics within the movieclip that is the character.
So the structure I have thought of is like this:Whole body > Changeable graphic > Base Body Part (bare arm for instance)What is a sensible way to go about doing this? I'd like to have a solution that is easily scalable and won't require notably more work if there are 10 different types of changeable graphic or 1000.I think that I need use the event that triggers the armor / clothing to change for that body part, to run a script that either somehow changes which graphic it is displaying, possibly inside the Base Body Part movieclip.
View 2 Replies
Jun 19, 2009
I have a giant image that I vectorized in flash in order to stretch it to the stage size, but obviously this lags a ton (vector size is about 700x500). Is there a way to convert this vector (in a MC) to a graphic after resizing in order to reduce the lag?
View 2 Replies
Apr 18, 2010
I am trying to play a sound and display a graphic when a key is pressed , so far i have been able to play my sound when i press the 'a' key but i also want to display a graphic that gets displayed while the key is down , i have created the graphic as a movie clip, not sure if thats right, iam not sure of the code i need to display the graphic.
View 1 Replies
Nov 23, 2010
I am creating graphics that are to be integrated into a new website booking system. I want to emulate the graphic on this site. http:[url]...Is this flash or macromedia or XHTML or what??Could i create something like this fairly easily or do i have to know in-depth action script?
View 3 Replies
Jun 6, 2009
I've created a small animation containing a few images which i have converted to graphic symbols so I can alpha-tween them. I tweened the first image then copy/pasted the frames to do the next using the swap symbol function. When swapping the symbol I selected the desired symbol and pressed okay but nothing happened - I then dragged the desired symbol out of the library and onto the stage then deleted the previous symbol. As soon as I did that the new symbol I had just dragged out switched back to the previous symbol.
View 1 Replies
Sep 20, 2011
I'm using Flash 8 and I have a Flash movie created some while ago that I need to change from time to time. Over the years the centre of some of the graphics/movie clips has moved as the clips grow and reduce in size. I now find I cannot edit the wording on one of the projects (project 10). [url]...
View 2 Replies
Apr 2, 2009
I know how to animate with Flash, and I know the basics of Actionscript 2.0 enough to make simple games.I have a project to do which I wanted to do with Javascript/CSS, but instead I'd like to hone my Flash skills to do it.If someone could point me in the right direction that would be awesome! I'm making an image move in a path about a web page without regard to other content on the page.I was thinking that I could make a Flash vid with a transparent background and lay it over the page.If so, how do I make a transparent background? If that's not the solution, can I even do this with Flash?
View 2 Replies
Aug 4, 2009
(without using a button)I have a square MC with a dummy graphic. I want that MC to display (based on conditions, so with AS3) a different graphic. Something like myMC.picture=otherMc.picture
View 2 Replies
Dec 14, 2009
[code]...
This does not!. I'm not even referencing tile109 but by having the same graphic it errors real weird!. I am using the same graphic just for test purposes so would change it later - does seem very strange though.
The error occurs in my copypixel (null source), but as said tile109 isn't even used. Some mangling/reference prob?
View 5 Replies
Jun 27, 2010
so i tried to make an emoticon in chat, it worked actually. but only if you type "/smile", it will turn into "" << colon and closed parenthesis. not if you type "bla bla bla ".
so here's the code i use:
Code:
function onSendBtClick(evt:MouseEvent):void
{
if (ti_message.text == "/smile")
[Code]....
all I wanna do is change the "", "", and ":/" into animated emoticon (for example: "smile.swf", "sad.swf", "frown.swf") anyone know the code to replace the text-emoticon code i used..?
View 2 Replies