Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Changing The Alpha Of A Draggable Movie Clilp



Hey, i'm having problems changing the alpha of draggable movie clips. At first I thought it was the tweening that was causing the problems, so I created some script to fade the MCs out and it still doesn't work.

Both the tween and the actionscript worked as long as the user does not move the MC at all, but as soon as the user moves an MC, when they click the button to go to the next page the fade out only works for the MCs that haven't been touched. I have it set so that the MCs snap back to a specific position when released.

Here's the code placed on a button embedded in an MC to make it move and snap it to whatever position it should be in when released:
---------------
on (press) {
_global.depth = _global.depth + 1;
this.swapDepths(_global.depth);
startDrag(this);
}
on (release) {
stopDrag();
if ((this._droptarget != "/content/one") && (this._droptarget != "/content/two") && (this._droptarget != "/content/three") && (this._droptarget != "/content/four") && (this._droptarget != "/content/five")) {
this._x=498, _y=209;
} else if (this.hitTest(_root.content.one)) {
this._x=82, _y=90
} else if (this.hitTest(_root.content.two)) {
this._x=82, _y=130.4
} else if (this.hitTest(_root.content.three)){
this._x=82, _y=170.8
} else if (this.hitTest(_root.content.four)){
this._x=82, _y=211.2
} else if (this.hitTest(_root.content.five)){
this._x=82, _y=251.6
} else {
this._x=498, _y=209;
}
}
--------------------------

When the user clicks on a button to advance to the next page, I want all of the buttons to fade out. I have this button advance to the next frame, which is a new keyframe in which all buttons have this code attached to the movie clips
-------
onClipEvent(enterFrame){
this._alpha-=5
}
-----------

This code works perfectly fine as long as the user doesn't move any of the buttons, but if any of them are moved (even if they snap back to their original place) they do not fade out.

Any help on this?



FlashKit > Flash Help > Flash MX
Posted on: 03-26-2003, 10:08 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Stop This Movie Clilp?
Hi,

I have written the following code. But when I go to the nextFrame...its keep playing and playing...anyone knows how to stop it?


Code:
createEmptyMovieClip("dots1", 0);
createEmptyMovieClip("dots2", 1);
onEnterFrame = function(){
if(Math.random() > .5){
parent = dots1;
} else {
parent = dots2;
}
var dot = parent.attachMovie("dot", "dot"+count, count++);
dot._x = 540;
dot._y = 150 + Math.random()*300;
dot.vx = Math.random() * -15 - 7;
dot.vy = Math.random() * -6;
dot.onEnterFrame = function(){
this._x += this.vx;
this._y += this.vy;
if(this._x < 0){
this.removeMovieClip();
}
}
}
Thanks!!

Load Movie Within Movie, And Changing The Alpha
hey all, thanks to another thread, I figured out how to load an swf within another swf. My questions now is, when loading the new swf, is it possible to alter the alpha of it?

Say I have o4.swf loading into container swf, but I have the container swf originally set to 0% Alpha. When loading o4.swf into the container, it automatically loads 04.swf as 0% alpha. I'd like to set it to 100%. I had the action script written down in my sketchbook, but I handed it in to a teacher last thursday, and wont be getting it back for sometime (F$%#!!!)... so if anyone could help me out, it'd be greatly appreciated.

the script I have now is currently as follows.

on (release) {
container.loadMovie("04.swf");
}


thanks to Veniogenesis for answering this previously
and thanks to whoever can offer their help.

ry

BitmapData Alpha Breaks When Changing Alpha Of Container Sprite
Hi,

I posted this in Flash CS3 forum on Friday, but have had no replies, and am still stuck, sorry for cross-posting.

I have the following structure:


Code:
Pane:MovieClip
Content:Sprite
image:BitmapData
Pane is an asset in the Library, and is dynamically placed inside another Sprite. The Library asset Pane already contains the Content sprite which contains the image BitmapData.

The image is originally a 24-bit PNG, and it doesn't seem to matter to the problem whether I use Lossless or Photo compression.

My problem is when I change the alpha on the Content Sprite in the Pane class, the alpha transparency image on turns to a solid black.

Also, not sure if this is related, two textboxes in another Pane's Content Sprite get two horizontal white lines, above and below, them--while I am changing the alpha of the first Pane.

Anybody know how to fix this?

This is my first AS3 project, so apologies if I missed something obvious.

Scrllpane Comp Changing Alpha But Not Contents Alpha.
I've had a go at this a few times it seems the scrollpane component can change the _alpha of it but that changes the content mcs ect that is in the comp to the same alpha as well. I want to make the scrollbars of it alpha 50 and the mcs in it stil 100 normal. It involves loading many more mcs swf's into the scrollpane so just need it set to main content at 100 percent alpha and so be able to change the scrollbars to alpha 50 or whatever?

Changing Alpha Programatically - Alpha Values Not Whole Numbers
I'm doing alpha changes on an image programatically in an onEnterFrame method. My code is this simple:

trace(mc1_mc._alpha);
mc1_mc._alpha -= 2;
trace(mc1_mc._alpha);

The output is:
100
97.65625

My question is, how is 100 - 2 = 97.65625? What is going on here? It gives this answer even if I use Math.round() on it. Any ideas?

--> Changing Properties For Draggable MCs?
Hey, i'm having problems changing the alpha of draggable movie clips. At first I thought it was the tweening that was causing the problems, so I created some script to fade the MCs out and it still doesn't work.

Both the tween and the actionscript worked as long as the user does not move the MC at all, but as soon as the user moves an MC, when they click the button to go to the next page the fade out only works for the MCs that haven't been touched. I have it set so that the MCs snap back to a specific position when released.

You can download the .fla and check it out here:
http://www.thenaturalists.com/flashkit

Please help me out..I've been working on this for several days with no luck.

Changing A Text_Input To A Draggable Object
I have a Text Input box and a button. I'm trying to make it so that the button changes the text_input box into a draggable object while preserving the information that was entered (into the text input box) as a String to be saved for JSON encoding.

This is my first Flash app, too, so plz talk to me like I'm a monkey. Thanks.

Changing The Alpha
I'm having a hard time figuring out how to change the alpha of an image I import into Flash. I checked out other threads and and Flash's Help section, but I'm just not getting it. Can you explain this to me? (in some detail)

Changing ALPHA In MX?
I want to change the "ALPHA" of an object in a motion tween. It is real simple in Flash 5, but in Flash MX the button that is supposed to give me the "ALPHA" effects option is greyed out!

Other options on the list are "TINT" "BRIGHTNESS" and "ADVANCED. I cannot access them and it is really frustrating me.

I bet the answer is really simple, please help!

[F8] Alpha Not Changing...
So I'm dynamically creating a line as a nested clip in another movie clip. When I rollover another piece of that movieclip I want the line to change its alpha. But Flash shows the alpha undefined (I left out the actual code drawing the line)...
PHP Code:



centerHolder_mc.createEmptyMovieClip("tracerLine"+i,i*-10002);
trace("Alpha = "+centerHolder_mc["tracerLine"+i]._alpha);
centerHolder_mc["tracerLine"+i]._alpha = 50;
trace("Alpha = "+centerHolder_mc["tracerLine"+i]._alpha);

centerHolder_mc["dot"+i].onRollOver = function(){
    trace(centerHolder_mc["tracerLine"+i]._alpha);
    trace("Rolled over");
    centerHolder_mc["tracerLine"+i]._alpha = 10;
    trace(centerHolder_mc["tracerLine"+i]._alpha);
}




Outputs...
PHP Code:



Alpha = 100
Alpha = 50
undefined
Rolled over
undefined




Any insight would be much appreciated, thanks.

Changing Another Swf's Alpha
ok I have done a file strutcture like this : first.swf that loads menu.swf
is that anyway of to change the alpha of a first.swf MC when the user clicks on a menu.swf MC?

Changing Alpha
I'm very new to AS3. I've watched video after video, read a LOT, and tried developing a lot trying to wrap my head around the structure alone, and it hasn't sunk in yet, but I'll never give up.

So I'm trying to use AC3 to change a background from 0 alpha to 100%. It's already on the stage. I figured this would be the simplest way to figure out AS3 tweens, but I can't even figure out how to set it up. Can someone show me an example of how they would do this?

Thanks for ANY help you can provide

matt

Changing The Alpha?
Sometimesd I can edit alpha.. sometimes i can't... seems like i double click twice and right click once it displays... anyone know how to make the alpha of an iamge show up without playing around? Now it just isn'tr showing up..

Changing Alpha
onEnterFrame = function () {
box_mc._alpha -= 5;
if (box_mc._alpha == 0) {
box_mc._alpha += 5;
}
}
HERE IS A SIMPLE CODE THAT I HAVE ON THE MAIN TIMELINE, THE ALPHA GOES DOES DOWN BUT IT DOES NOT INCREASE WHEN THE THE ALPHA HITS 0. WHAT IS WRONG WITH THIS CODE.

Changing The Alpha?
Sometimesd I can edit alpha.. sometimes i can't... seems like i double click twice and right click once it displays... anyone know how to make the alpha of an iamge show up without playing around? Now it just isn'tr showing up..

Dynamically Changing Alpha Value?
Hi,

is there a way to create a "fade in" effect without doing a motion tween.
Perhaps by programming the _alpha value with a mathematical function? Could anyone point me in the right direciton.

Thanks

Changing Alpha Transparency
I have used this code on a keyframe to change a movie called block's alpha channel to 40.
is it right?

_root.block._alpha = 40;

Changing Alpha From Actionscript
I have been trying (5 hours straight) to create a script that will, depending on the position of an object in relation to another object, change the _alpha of yet another object. It will, (ideally) look as if a cloud crosses the sun and blocks it out. All (and I truly mean all) attempts at this have failed miserably. The current script is in an onClipEvent (enterFrame) loop which both moves the cloud and alters the _alpha of the other object. Do you have any suggestions? Thanks in advance for your help.

Changing The Alpha Of A Symbol Using As
hi there

Im trying to change the alpha of a button gradually

ie. when one button is clicked all other buttons goto %50.

Is this possible to do with using mc's.

I new to this and any help would be much appreciated.

thank you

Changing Alpha On Bitmaps.
I am quite new to Flash and I was wondering if someone could help me. I want to have a bitmap fade in using the alpha channel. I can do this fine with vector based shapes, but when I choose a bitmap and try to tween the fade it doesn't allow me to change the alpha. Can someone help me with this. BTW, I have tried to trace it into a vector based image which did not really help at all. Thank you.

Changing Alpha Dynamically
I'm trying something pretty simple here, but I seem to having problems with it. What i'm trying to do is; I have 6 buttons on my _root timeline and an movie clip containing another 6 movie clips with 'content'. I'd like to be able to have the each of the 'content' MC's _alpha change to a specific amount upon hitting each button on the the _root timeline.

I've tried setting up clip event funtions to do it (to keep the script in one place) but I have been unseccessful. Any thoughts?! I think maybe I should have an array set up with different _alpha values to take from and assign dynamically to my MC's. But i'm kinda new to them....Plz advise.

plankguy

Changing The Alpha Of A Textfield
I have a movieclip symbol that has a dynamic textfield called "myText"...how do I reference its alpha?

I tried "cclip._alpha = num" and "cclip.myText._alpha = num" and neither seems to change the value of the alpha of the text.

Changing Alpha Nd Rotation With AS
Ok, so here is what I am trying to do. I am trying to animate a line to travel along a path, kind of like a pencil tracing a line. That is no problem. I can handle that part in seconds. This is supposed to be simulating a laser of sorts that is cutting along a path.

So I created a graphic symbol called "laserbeam" that is nothing more than a line. I have placed that in a movie clip called "laserflash" I have inserted that movie clip into another movie clip called "laserpulse".

What I want is the tip of the line to follow along the path while the rotation and the opacity change quickly to give the appearance of the beam flickering, and coming from a variety of directions.

I am trying to script the animation (not the motion tween around the path, just the flickering. I was trying to generate 2 random numbers, one to use as teh _alpha value, and one to use as the _rotate value, except nothing happens.

I am great with graphics, horrible with programming. Is there someone out there who can figure out the AS for doing this, or at least clue me in to the right method.

Changing Alpha To Zero With A Button?
hey,

I want to program a button so that when it is clicked, a movieclip on the timeline (call it 'my_clip') fades to 0% alpha. Any suggestions on how I can accomplish this?

cheers,
jen

Changing Alpha On Rollout
I have a a movie clip running on mouseover, but I would like to use Actionscropt to fade the alpha to zero upon rollout. I believe this would be done using setProperty, but I'm not quite sure how to create the easing effect or 'tweening' effect. Can anyone please lend any assistance?

Thanks!~

Changing The Alpha Using A Slider
I have been searching forums and the web for hours now and cannot work out how to change the alpha of an mc using a slider. I think I am almost there. I have included the .fla. I have tried lots of ways and have resorted to synching the alpha tween with the sound volume. But it still isnt working

This is a bit of the code on the slider mc:

onClipEvent(enterFrame){
if (dragging==true){
_root.soundLoop.setVolume(Int(100+(top-_y)))

and globally on the timeline I have:

soundLoop = new Sound(_root.loop); //what's this line doing?
soundLoop.attachSound("loop");
soundLoop.setVolume(50);
soundLoop.start(0,999);
globalSound = new Sound();

Could someone explain to me what the top line is doing please? I thought this would be simple to do :s

Please help someone

Alex

Help Changing Alpha Of One MC With A Slider MC.
Thank you for reading.

I'm sorry, but I just can't figure this out. I'm a copywriter and I want to build an online portfolio. The idea is to have a slider movieClip along the left slide that can be dragged vertically up and down, which would then control a horizontally scrolling movieClip in the center of the stage. The horizontally scrolling movieClip in the center of the stage would contain thumbnails of my portfolio pieces. When a visitor wants a closer look at a piece, they would click on the thumbnail and a separate movieClip window opens with a larger example of the piece along with additional information.

I have made a movieClip slider that can be dragged only vertically on the left side of the stage. Along its axis are five category titles, "advertising", "design", "multi-media", etc. These are also aligned vertically in parallel with the line. What I'm so far trying to do, and not having much luck doing, is have the titles incrementally fade up from an alpha of zero to 100% when the slider's _y position matches the title's _y position, then fade back to zero as the slider moves away in either up/down direction.

As I said, eventually I'd like the slider to also scroll another movieClip horizontally so that as the slider becomes aligned with one of the highlighted category titles, such as "multi-media", the multi-media thumbnails would be visible in the left/right scrolling MC.

I have four Flash books open in front of me, PLUS the AS 2.0 Dictionary, plus all the resources of the web, and I still can't figure this out. Believe me, any help at this point would be great appreciated.

Thanks again for reading this.

bfg

Changing Alpha On An Object
Haven't posted here in like 2 years...thanks for being here

I have a problem displaying multiple objects. I have mutiple objects stacked over one another all with their alpha=0. My intention is when one selects a checkbox, one of these objects becomes visible by changing the alpha from alpha=0 to alpha=70 (see code below). Two things: in some cases, on an LCD screen (laptop) one can still see the objects where alpha=0. The second thing is that I get interference from all the stacked objects when one is selected. I am thinking that I want to use something where the objects are in a state of "off" rather than alpha=0? Any thoughts?

Here is a msword document illustrating the above points:
http://www.netwiz.net/~cheez/alpha_issue.doc

Here is the native FLA:
http://www.netwiz.net/~cheez/demo_spectra.zip

Here is the prototype website:
http://www.netwiz.net/~cheez/demo_spectra.html

Here is the code in question:


ActionScript Code:
if (checkbox.getValue() == true) {
        _root[spectraGraphic+"em"]._alpha = 70;
        _root[spectraGraphic+"ex"]._alpha = 80;
        getData(x, spectraGraphic);
        dimSpectra();
        order++;
        orderArray[order] = spectraGraphic;
    }
    if (checkbox.getValue() == false) {
        _root[spectraGraphic+"em"]._alpha = 0;
        _root[spectraGraphic+"ex"]._alpha = 0;
}
Any suggestions or comments would be greatly appreciated.

Thanks,
Cheez

Changing Alpha And Stopping
Hi all

I'm looking for a simple way increase the alpha of an object, but then stop it before it gets to 100
I was thinking somehting like


ActionScript Code:
two_mc._alpha = 0;
one_btn.onRelease = function() {
    _root.onEnterFrame = function() {
        two_mc._alpha += 10;
        if (this._alpha == 50) {
            this._alpha = 50;
            delete this.onEnterFrame;
        }
    };
};

two_mc is a movieClip, I want to increase its alpha but stop it when it gets to 50
I'm sure its simple, but I tryed a few methods without any results.

Going Mad With Alpha Changing Please Advise
I am going mad guys with the alpha changing using tween. I have tried the following method but all failed. Can anyone advise me?
Method 1
1) Create a text symbol as graphic
2) Frame 1 Alpha 100%
3) Fram 15 Alpha 0% (IT FAILED TO CHANGE!!!!!)

Method 2
1) Create a text symbol1 as graphic
2) Create a text symbol2 as graphic
3) text symbol1 in Frame 1 Alpha 100%
4) text symbol2 in Frame 15 Alpha 0%
5) right click create motion tween (There is no change at all!!!!)

Can someone guide me or sent me a simple .fla file so that I can have some clue as to what I have gone wrong?

Changing Alpha On A Symbol
I am trying to create a symbol and over the course of several frames have it go from 0 alpha to 100. Shouldn't be hard, or so I thought. I am doing the following:

Open a new document, by default there is a keyframe in frame 1;
Then I Draw a Box and convert it to a graphic symbol;
I then go to frame ten and enter a keyframe;
I confirm that in frame 10 that the alpha in the color panel is set to 100;
I then add a motion tween;
I then go to frame 1 to change the alpha to 0 but when I do, it changes the alpha for the symbol in both key frames.

If someone could tell me what I am doing incorrectly, I would be very appreciative.

Thanks,
Andy

Changing Alpha On Button
Hi everyone! I'm new to flash cs3 and currently working in it. What I am trying to do is create a button that when rolled over the alpha=0 and when rolled off it goes back to 77%. I'm facing two problems. The first is that in as3 I am not sure where to place the alpha statement. Second, I'm getting this error
quote:1119: Access of possibly undefined property OVER through a reference with static type Class.







Attach Code

import flash.events.MouseEvent;

this.stop();

function monopolyover(event:MouseEvent):void {
monopolyplay.alpha = .0;
}

monopolyplay.addEventListener(MouseEvent.OVER, monopolyover);

Changing Alpha In A While/for Loop
i'm trying to get it so a MC1 on top of MC2 slowly fades in. It starts with alpha of 0 and i put it in a while loop (on MC1):

onClipEvent(load) {
this._alpha = 0;
var i = 0;
do {
this._alpha += 1;
} while (i < 100);
}

it says that the script contains no erros, but when i try to test it, i get the error:

"A script in this movie is causing Flash player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"

What do I do?

Changing Alpha With AS (as Included.. Please Look)
I've been trying to change an MCs alpha with actionscipt. the movies FPS is 30.

here's the as:


ActionScript Code:
onClipEvent(load) {     var alpha = blue._alpha;     alpha = 50;     var forwardA = true;     var changeA = true; }  onClipEvent(enterFrame) {     if(changeA) {         if(forwardA) {             if(alpha >= 0){                 alpha++;             } else {                 forwardA = false;             } // end alpha >= 0                      } else {             if(alpha >= 100){                 alpha--;             } else {                 forwardA = true;             } // end alpha >=100         } // end forwardA     } // end changeA }


whats wrong with my code? btw, "blue" is the MC that i want to change the alpha of, and this code is on that MC.

Menu Alpha Changing
I have a menu inside a MC, and Iīd like to make itīs alpha = 50% when some button is clicked , but when the mouse is over it, itīs alpha changes back to 100%.

How to do that?

Changing The Alpha Of A M.c. With A Slider
Hello!

I have been checking out the following tutorial:
http://www.kirupa.com/developer/mx/volume_slider.htm
on how to adjust the volume with a slider.
it's great!

what I'd like to do is use that same slider to adjust the alpha
of a movie clip.
is that possible?
or maybe adjust the alpha of a symbol.
what i'm trying to do is create "mood lighting"
where the user can move a slider and lighten or darken an interior
space, by adjusting the alpha of a dark square on top of the scene.

can anyone help me????

thanks,
jeremy.

Changing Alpha And Stopping
Hi all

I'm looking for a simple way increase the alpha of an object, but then stop it before it gets to 100
I was thinking somehting like


Code:
two_mc._alpha = 0;
one_btn.onRelease = function() {
_root.onEnterFrame = function() {
two_mc._alpha += 10;
if (this._alpha == 50) {
this._alpha = 50;
delete this.onEnterFrame;
}
};
};
two_mc is a movieClip, I want to increase its alpha but stop it when it gets to 50
I'm sure its simple, but I tryed a few methods without any results.

Changing A Bitmap's Alpha
is it possible to change the alpha of a bitmap imported into flash?

i'd be nice to do do a shape tween where the bitmap fades in.

Changing Alpha In A While/for Loop
i'm trying to get it so a MC1 on top of MC2 slowly fades in. It starts with alpha of 0 and i put it in a while loop (on MC1):

onClipEvent(load) {
this._alpha = 0;
var i = 0;
do {
this._alpha += 1;
} while (i < 100);
}

it says that the script contains no erros, but when i try to test it, i get the error:

"A script in this movie is causing Flash player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"

What do I do?

Changing Alpha With AS (as Included.. Please Look)
I've been trying to change an MCs alpha with actionscipt. the movies FPS is 30.

here's the as:


ActionScript Code:
onClipEvent(load) {     var alpha = blue._alpha;     alpha = 50;     var forwardA = true;     var changeA = true; }  onClipEvent(enterFrame) {     if(changeA) {         if(forwardA) {             if(alpha >= 0){                 alpha++;             } else {                 forwardA = false;             } // end alpha >= 0                      } else {             if(alpha >= 100){                 alpha--;             } else {                 forwardA = true;             } // end alpha >=100         } // end forwardA     } // end changeA }


whats wrong with my code? btw, "blue" is the MC that i want to change the alpha of, and this code is on that MC.

Menu Alpha Changing
I have a menu inside a MC, and Iīd like to make itīs alpha = 50% when some button is clicked , but when the mouse is over it, itīs alpha changes back to 100%.

How to do that?

Changing Alpha Values From DB
Hey everyone

I loaded variables in from a db, and am trying to use those values to adjust the alpha on symbols through out the animation.

here is a snippet of my code


PHP Code:

loadVariables("http://www.sonora.ca/admin/sitemap.php3", _level0);

setProperty("instance4",_alpha, newinstance4);


I know the variables are being loaded via the debug window, but the alpha isnt changing. its defaulted at 0, and the db has it saved as 100... any ideas?

Actionscript For Changing Alpha
Sorry guys,
 I usually read your FAQ, but I am in a bind.  I need to get a button to work changing alphas. I have a button that when clicked it shows a blue arrow pointing to a graph.  What I want to do is when I click another button to show a different arrow, I want the other original blue arrow to disappear, thus not showing that graph. I hope this makes since.

So something like, on click alpha is 100%, on click of a different button the other button's alpha goes to 0%

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.

Changing Alpha Of An Image
I keep seeing websites that have flash where images seemlessly blend into one-another, most probably by lowering/increasing the alpha values of the images. However when i try to lower the alpha value of an image and tween it to a 100% alpha value (fades in), the image just appears with no fade.

I can blend images in this way using javascript, but i want to be able to do it within Flash. Can anyone help please?

Cheers

James

Changing Alpha With AS (as Included, Please Help)
What's wrong with my ActonScript?


ActionScript Code:
onClipEvent(load) {
    var alpha = blue._alpha;
    alpha = 50;
    var forwardA = true;
    var changeA = true;
}
 
onClipEvent(enterFrame) {
    if(changeA) {
        if(forwardA) {
            if(alpha >= 0){
                alpha++;
            } else {
                forwardA = false;
            } // end alpha >= 0
           
        } else {
            if(alpha >= 100){
                alpha--;
            } else {
                forwardA = true;
            } // end alpha >=100
        } // end forwardA
    } // end changeA
}


notes: 'blue' is the MC i want to have the alpha fade in and out. this code is attached to it.

Changing Alpha With Push Of A Button
here's a story of a movie with a button that when pushed, it needs to get another button to change its alpha to zero. i.e. when a button is pushed, it makes other buttons phase out. any idea how? tried using instances by changing the buttons to movies, but it seems like there would be an easier way.
HELP!!!

thanks in advance for the replies!

- nick

Changing The Alpha On Dynamic Text.
I have a simple dynamic text box that pulls it's content from a text file. What I'm having trouble figuring out is how to make the dynamic text fade in/out or both. I tried using action script to get the desired effect, but it did not work. I then resorted to creating a motion tween using the alpha property. Again the text just sat there on the screen mocking me. I even had a white box on a layer above it changing it's opacity...it worked, but I don't want to use this method. Is it possible to do a fade with dynamic text?

AlphaTo(0... Not Changing Full Mc Alpha
this.alphaTo(0, 1.2, customEasing1);

now 'this' is (obviously) a single instance of a mc symbol, within this symbol is a black outline of a box with white fill, and black text...

correct me if I'm wrong, but shouldn't something targetted to an instance of a symbol have an effect on the full symbol?

Breakdown:

I have 12 symbols...6 placements. the first 6 symbols are the title, and the last 6 are the text. the text is hiding behind the title. When you click one of the titles, that alphaTo code plays, and the black outline and white fill for the box fades the way I want it to over the duration of 1.2 seconds until it is at 0 alpha...but the text is still very visable...I have 3-4 paragraphs of text that I want people to see, but near the middle, there is a big "About Us" sitting there...why for it no fade like the rest of it's buddies?! Its stalking me...

summary:

I have been coding for 2 weeks now, I'm a complete AS n00b (as can be seen by seeing my pride and joy...but the only way I will learn is if someone teaches me by knifepoint... ...or if someone tells me what i'm doing wrong works too...

out the n00b

Changing Alpha Value Of One MC Based On Actions Of Another MC
Hello,
newbie here!
I am trying to change the alpha value of an MC (MCclock) based on the x/y position of another MC/button (MCplayer), which is draggable by the user. This all takes place in one frame, and I want the alpha value of MCclock to update itself based on the dragging action of user with MCplayer.

I have the x/y position of MCplayer working fine, and can retrieve those variables (as xpos and ypos) and display them on screen. I cannot seem to get the alpha value to change, however.

On MCPlayer, I have this, which is not working:


onClipEvent (mouseUp) {

if (_root.xpos > 270 && _root.xpos < 490 && _root.ypos > 127 && _root.ypos < 348)
{
_root.MCcompass._alpha = 50;
}
else
{
_root.MCcompass._alpha = 0;
}
}

any suggestions?

Copyright Đ 2005-08 www.BigResource.com, All rights reserved