Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
dr_ross #1
actionscript newbie trouble
hi there, i'm trying to trigger a colour change in an movie clip as i drag it over another on, sounds simple but its driving me mad, any help would be great
dr_ross Guest
-
actionscript newbie
I am trying to create a very simple interface. I have a button and grey square filled with text off the screen. What I want to happen is this:... -
Hide button in actionscript. (newbie)
Hi, I have a button in my movie that i'd like to make disappear when a value reaches a certain limit. The script for the button is: on... -
Actionscript newbie: simple stop issue
Hello everyone. I'm trying to get a nested movie to stop playing when a 'stop' button is clicked. This movie is nested within two other movies,... -
Newbie Trouble with Settings
I recently upgraded to Flash MX and am having trouble setting it so that when you are drawing a rectangle or oval or anything actually you can see... -
Newbie: Trouble w/ O'Reilly example
I am trying to work with example code from "Programming PHP" chapter 8. The example is the "Business Listing" application. All the files are in... -
kglad #2
Re: actionscript newbie trouble
if mc2 is your draggable movieclip and you want to change its color when it
collides with mc1, attached to mc2 you can use:
on (press) {
this.startDrag();
testI=setInterval(_root.testF,100);
}
on (release) {
this.stopDrag();
clearInterval(testI);
}
and attached to a frame use:
myC = new Color(mc2);
function testF() {
if (mc1.hitTest(mc2)) {
myC.setRGB(0xff0000);
} else {
myC.setRGB(0xffff00);
}
}
kglad Guest



Reply With Quote

