Help Me Coding This Button.
hi guys!
here it goes.....I have a main movie(projector) with one movie clip containing 3 Radio buttons and a OK button.Another movie clip is a target movie clip. The 3 Radio buttons are associated to .swf file, on selecting any Radio button and pressing the Ok button the .swf file will be loaded to the Target movie clip.....I know i can use buttons instead of radio buttons and can directly load the movie in to the Target.......but, just trying if it can be done in this way too.
so, plz help me coding the 'OK' Button ( on clicking the Ok button it should load .swf file that was associated to the selected Radio button.)
Thanx a million in advance.
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-15-2004, 10:18 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Button Coding
I'm trying to have a single button on release make one movie clip "disappear" from the stage and another movie clip start playing....I think I need some coding experience??
Help Please
Button Coding
I want to be make a button play a Mp3 and another Button to stop it from playing. Maybe after I get that down I can make the same button do both?? ....Thanks
I know how to name the Mp3 in the Library.. (Linkage)
Help With Some Button Coding Please...
hi I have this script for my button, but only the first half of it works, it only goes to frame 4 but it doesnīt load the movie tothe target..Why? Can anybody Please help me....
on (release)
{
gotoAndPlay(4);
_root.mtClip.loadMovie("publicidade.swf");
}
Help With Some Button Coding Please...
Hi,
I am having some problems with some coding...
here is the deal:
I have main movie, and I have an empty movie clip inside this main movie, and thatīs where I load my swf files...
But I have one problem, how can I control the timeline in my swf files that open inside the empty Movie Clip, from a button inside the main movie clip...
THANKS FOR ANY HELP...
Help With Some Button Coding Please...
Hi,
I am having some problems with some coding...
here is the deal:
I have main movie, and I have an empty movie clip inside this main movie, and thatīs where I load my swf files...
But I have one problem, how can I control the timeline in my swf files that open inside the empty Movie Clip, from a button inside the main movie clip...
THANKS FOR ANY HELP...
What Is The Coding For An Email Button?
I know its a noob question, but how do you make a button be an email button, like the one's that open up your email program with the address entered in the address block.
AS3 Button Coding Problem
I've only had a couple months exposure to flash, and all of that has been with AS2. Can someone have mercy on me a get me through this tough spot.
1) On the coding below have I imported all of the classes that I need?
2) How can I get the gohome function to do what the startLoad functions are doing in the last part of the coding?
The questions are restated in Red in the coding example below.
// importing needed libraries, are anymore need??//
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.ProgressEvent;
hobutt_btn.addEventListener(MouseEvent.MOUSE_OVER, buttgrow);
hobutt_btn.addEventListener(MouseEvent.MOUSE_OUT,b uttshrink);
hobutt_btn.addEventListener(MouseEvent.CLICK,gohom e); //calls up the hopage .swf//
scobutt_btn.addEventListener(MouseEvent.MOUSE_OVER ,buttgrow);
scobutt_btn.addEventListener(MouseEvent.MOUSE_OUT, buttshrink);
scobutt_btn.addEventListener(MouseEvent.CLICK,gosc ore); //calls up the scopage .swf//
teebutt_btn.addEventListener(MouseEvent.MOUSE_OVER ,buttgrow);
teebutt_btn.addEventListener(MouseEvent.MOUSE_OUT, buttshrink);
teebutt_btn.addEventListener(MouseEvent.CLICK,gote e); // calls up the teepage .swf //
galbutt_btn.addEventListener(MouseEvent.MOUSE_OVER ,buttgrow);
galbutt_btn.addEventListener(MouseEvent.MOUSE_OUT, buttshrink);
galbutt_btn.addEventListener(MouseEvent.CLICK,goga llery); // calls up the galpage .swf //
// the next 4 lines just enlarge and shrink all 5 menu buttons based on mouse//
function buttgrow(event:MouseEvent):void
{
event.target.scaleX = event.target.scaleY = 1.1;
}
function buttshrink(event:MouseEvent):void
{
event.target.scaleX = event.target.scaleY = 1;
}
// Here is the problem area. My gohome function //
//is defined in this startLoad function below //
// how do I bridge the gap//
function gohome
{
}
function startLoad();
{
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("hopage.swf"); // when I copy this green section for the other buttons, all I would need to do to change the .swf that is pointed to in the line above right??//
[/color]color="red"]mLoader.contentLoaderInfo.addEventListener(Event.C OMPLETE,onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(Progres sEvent.PROGRESS,onProgressHandler);
mloader.load(mRequest);
}
function onCompleteHandler(loadEvent:Event)
{
addchild(loadEvent.currentTarget.content);
}
function onProgressHandler(mprogress:ProgressEvent)
{
var percent:Number = mProgress.bytesLoaded/mprogress.bytesTotal;
trace(percent)
}
startLoad();[/color]
Interactive Button Coding
Hello
I'm trying to code a button that when you rollover it, it pops up to display a list of links, ie more buttons. The problem I have is that the containing button is always responding to the click event when I try to click the link/button. You can view the WIP site at http://www.mountainmysteryschool.com and click on the services button, the links never get activated. Thanks
Button Coding Issue... Anybody
anybody know a code in acitonscript that will deactive all buttons when a button initializes a movie? cuz a movie goes over other buttons and the movie has buttons in it and to get to thsoe buttons u go over the buttons under the movie and when u do that the movie goes back down again? anybody know how to fix that?
zefman
Button Coding Issue... Anybody
anybody know a code in acitonscript that will deactive all buttons when a button initializes a movie? cuz a movie goes over other buttons and the movie has buttons in it and to get to thsoe buttons u go over the buttons under the movie and when u do that the movie goes back down again? anybody know how to fix that?
zefman
Button Coding To Refresh Browser
Is there a ActionScript or a simple jscommand that I can add to a symbol button or moveclip to refresh the browser ?? Any help would be appreaciated, its for a simple (1 frame movie) XML text loading document.
Button Problem And Javascript Coding
Hi,
I have a problem with the buttons which is inside a bunch of tweening movie clips(like _root.r1.r2.r3.r4.r5.r6.r7) and it doesn't execute.
And another problem is I need a java code that open the new window with the increment digits on the instance name button(ex. button with an instance name called "page1" and it will execute page1.html and page2 page3 and so on).
My work is gonna due pretty soon.
Anyone PLEASE help me.
Thank you in advance.
Coding A Submit Button For 'contact Me'
I'm very new to Flash and slightly floundering!
I've got the bones of a form for a 'contact me' page but have no idea how to enter code (or what code to use) for the 'submit' button. When the user clicks submit I would like a 'thank you' message to be displayed and an email (containing information entered in the form) sent to my email address.
If anyone can at least point me in the right direction I'd be really grateful!
Coding Issue With Scrollbar Up Button
Hi all,
I've made a scrollbar using a Kirupa tutorial for Flash 8 http://www.kirupa.com/developer/flash8/scrollbar.htm
I have several of these on my site, scrolling certain movie clips for certain pages but for some reason, there is a severe coding issue with the 'up' button and I can't understand it as the Kirupa tutorial one works absolutely fine.
If you check out http://spindriftmedia.com/clients/snowy/snowy.php and select the say the 'profile' section, if before you do any scrolling, just press the 'scroll up' button. For some reason, the text goes really blurred and scrolls to way past the bottom of the movie clip. The slider and down button behave perfectly though.
This is the code I'm using:
Code:
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrack._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._y;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._height-scrollFaceHeight+scrollTrack._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y+speed<maskedView._y) {
if (scrollFace._y<=top) {
scrollFace._y = top;
} else {
scrollFace._y -= speed/moveVal;
}
contentMain._y += speed;
} else {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y-speed>finalContentPos) {
if (scrollFace._y>=bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y += speed/moveVal;
}
contentMain._y -= speed;
} else {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};
if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();
Do you by any chance know what is causing this problem? If you need an fla, I can upload one for you to check out.
Thank you very much and I hope to hear from you.
Take care,
Mark
I've Run Out Of Wrong Ways --button Coding
Obviously I don't have the basic concept of coding. I think that I've gotten every syntax error, over the past 24 hrs, lol!
1st question is there a webpage that breakdown syntax and error messages, so I can work from there?
2nd question I have a .swf file that is located on my server, in my images file. I know that the coding location for that swf is:
("../images/questpage.swf")
When the button is clicked I want to have it go to and play this swf.
I've try all the right codes (onrelease--Eventlistner- etc.) but all in the wrong way, because I'm phrasing things wrong
Please help!
Using MovieClip As A Button Problem (Coding)
I'm new to using MC's like this. I have the coding to make my but enlarge on- mouse.over.
I have succesfully attached it to my button. I need help attaching sound, and little animation to the mouse.CLICK.
Here's my coding--Help needed in the red areas
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Butt1 extends MovieClip
{
public function Butt1()
{
this.addEventListener(MouseEvent.MOUSE_OVER, expand);
this.addEventListener(MouseEvent.MOUSE_OUT, contract);
this.addEventListener(MouseEvent.CLICK, buttonsoundeffect);
this.addEventListener(MouseEvent.CLICK, buttonanimation);
}
private function expand(event:MouseEvent):void
{
this.scaleX=this.scaleY=1.1;
}
private function contract(event:MouseEvent):void
{
this.scaleX=this.scaleY=1;
}
private function buttonsoundeffect(event:MouseEvent):void
{
// what coding do I put here to call the external mp3,which is in the root
directory //}
private function buttonanimation (event:MouseEvent):void
{
//this more or less like a page transition effect. What's the coding to call
external .swf, which is in the root
directory //
}
}
}
Thanks so much
Using MovieClip As A Button Problem (Coding)
I'm new to using MC's like this. I have the coding to make my but enlarge on- mouse.over.
I have succesfully attached it to my button. I need help attaching sound, and little animation to the mouse.CLICK.
Here's my coding--Help needed in the red areas
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Butt1 extends MovieClip
{
public function Butt1()
{
this.addEventListener(MouseEvent.MOUSE_OVER, expand);
this.addEventListener(MouseEvent.MOUSE_OUT, contract);
this.addEventListener(MouseEvent.CLICK, buttonsoundeffect);
this.addEventListener(MouseEvent.CLICK, buttonanimation);
}
private function expand(event:MouseEvent):void
{
this.scaleX=this.scaleY=1.1;
}
private function contract(event:MouseEvent):void
{
this.scaleX=this.scaleY=1;
}
private function buttonsoundeffect(event:MouseEvent):void
{
// what coding do I put here to call the external mp3,which is in the root
directory // }
private function buttonanimation (event:MouseEvent):void
{
//this more or less like a page transition effect. What's the coding to call
external .swf, which is in the root
directory //
}
}
}
Thanks so much
Coding Issue With Scrollbar Up Button
Hi all,
I've made a scrollbar using a Kirupa tutorial for Flash 8 http://www.kirupa.com/developer/flash8/scrollbar.htm
I have several of these on my site, scrolling certain movie clips for certain pages but for some reason, there is a severe coding issue with the 'up' button and I can't understand it as the Kirupa tutorial one works absolutely fine.
If you check out http://spindriftmedia.com/clients/snowy/snowy.php and select the say the 'profile' section, if before you do any scrolling, just press the 'scroll up' button. For some reason, the text goes really blurred and scrolls to way past the bottom of the movie clip. The slider and down button behave perfectly though.
This is the code I'm using:
Code:
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrack._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._y;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._height-scrollFaceHeight+scrollTrack._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y+speed<maskedView._y) {
if (scrollFace._y<=top) {
scrollFace._y = top;
} else {
scrollFace._y -= speed/moveVal;
}
contentMain._y += speed;
} else {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y-speed>finalContentPos) {
if (scrollFace._y>=bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y += speed/moveVal;
}
contentMain._y -= speed;
} else {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};
if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();
Do you by any chance know what is causing this problem? If you need an fla, I can upload one for you to check out.
Thank you very much and I hope to hear from you.
Take care,
Mark
Button Coding Problem (sub-novice)
AS3 button coding problem
I've only had a couple months exposure to flash, and all of that has been with AS2. Can someone have mercy on me a get me through this tough spot.
1) On the coding below have I imported all of the classes that I need?
2) How can I get the gohome function to do what the startLoad functions are doing in the last part of the coding?
The questions are restated in Red in the coding example below.
// importing needed libraries, are anymore need??//
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.ProgressEvent;
hobutt_btn.addEventListener(MouseEvent.MOUSE_OVER, buttgrow);
hobutt_btn.addEventListener(MouseEvent.MOUSE_OUT,b uttshrink);
hobutt_btn.addEventListener(MouseEvent.CLICK,gohom e); //calls up the hopage .swf//
scobutt_btn.addEventListener(MouseEvent.MOUSE_OVER ,buttgrow);
scobutt_btn.addEventListener(MouseEvent.MOUSE_OUT, buttshrink);
scobutt_btn.addEventListener(MouseEvent.CLICK,gosc ore); //calls up the scopage .swf//
teebutt_btn.addEventListener(MouseEvent.MOUSE_OVER ,buttgrow);
teebutt_btn.addEventListener(MouseEvent.MOUSE_OUT, buttshrink);
teebutt_btn.addEventListener(MouseEvent.CLICK,gote e); // calls up the teepage .swf //
galbutt_btn.addEventListener(MouseEvent.MOUSE_OVER ,buttgrow);
galbutt_btn.addEventListener(MouseEvent.MOUSE_OUT, buttshrink);
galbutt_btn.addEventListener(MouseEvent.CLICK,goga llery); // calls up the galpage .swf //
// the next 4 lines just enlarge and shrink all 5 menu buttons based on mouse//
function buttgrow(event:MouseEvent):void
{
event.target.scaleX = event.target.scaleY = 1.1;
}
function buttshrink(event:MouseEvent):void
{
event.target.scaleX = event.target.scaleY = 1;
}
// Here is the problem area. My gohome function //
//is defined in this startLoad function below //
// how do I bridge the gap//
function gohome
{
}
function startLoad();
{
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("hopage.swf"); // when I copy this green section for the other buttons, all I would need to do to change the .swf that is pointed to in the line above right??//
[/color]color="red"]mLoader.contentLoaderInfo.addEventListener(Event.C OMPLETE,onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(Progres sEvent.PROGRESS,onProgressHandler);
mloader.load(mRequest);
}
function onCompleteHandler(loadEvent:Event)
{
addchild(loadEvent.currentTarget.content);
}
function onProgressHandler(mprogressrogressEvent)
{
var percent:Number = mProgress.bytesLoaded/mprogress.bytesTotal;
trace(percent)
}
startLoad();[/color]
Coding A Nice Button Fade In Actionscript
Hi, I'm building an interface in Flash 8 for a CD-Rom.
The client insists on having other buttons fading when the user hovers over one button, which defeats the purpose of the highlight, but hey...
So I've coded a fade with the setInterval() function and it works, but when you hover really fast over the buttons it gets buggy.
Any idea why? Is it the speed at whch Flash calculates, or can I add some code to prevent it?
Thanks!
Coding A Pause Button For An Image Slideshow
Hello. I'm building a slideshow of externally loaded .jpgs and I want to alternate from being able to use next and previous buttons to being able to use play and pause buttons that load images using a delay.
I have the next and previous buttons all set, and I coded a play function (maybe it's crap, I dunno) that works, but in order to pause, I need to break out of the play loop I have created by using some sort of "clearInterval"... here's my code for the play button:
delay = 3000
// this declares what happens when the play and pause buttons are pressed
play_pause_bttn["play_bttn"].onPress = playInterval;
// this function starts the slideshow
function playInterval() {
previous_bttn._visible = false;
next_bttn._visible = false;
photo ++;
if (photo > 39) photo = 0;
startPreload(photoArray[photo]);
play_pause_bttn.gotoAndStop("pause");
myInterval = setInterval(loop, delay);
clearInterval(myInterval2);
}
// this function loops the playInterval function
function loop() {
clearInterval(myInterval);
if (preloadComplete) {
previous_bttn._visible = false;
next_bttn._visible = false;
myInterval2 = setInterval(playInterval, delay);
}
}
- some of the functions and variables are defined elsewhere and I don't know if they are needed... but if anyone has any suggestions at all it would be a big help cuz I really have no idea what I'm doing.
I'm pretty sure I could change the condition for the if statement in the "loop" function to some arbitrary variable that its changed by the play and (not yet defined) pause buttons, but I'm just not able to get it yet.
Help With Button Coding To Play A Movie Clip
I have three buttons (instance names are: redbutton, yellowbutton, and bluebutton) and three basic movie clips (instance names are: redmovieclip, yellowmovieclip, and bluemovieclip).
How do I code the AS3 to get the buttons to play each movie clip for the corresponding color at X:265 and Y:108?
Basically, I want the buttons to play the movie clips (which are just squares) on demand, and then make them disappear and show the next movie clip at the same X and Y positions (X:265 and Y:108) accordingly.
If someone could paste the proper code and help me out, it would greatly appreciated. And, I would be able to get on with the rest of my hard life
Whats The Coding For Closing The Browser After Pressing A Button
Basically I've built this splash page that has a movieclip "Enter" object that Im using as a button, and I currently have this coding (down below) that goes to a certain url address as usual, but I was thinking of the idea of closing the splash page browser window after you've pressed that button, anyone know of AS coding for this ? thnx for helping
on (release) {
getURL("http://blah.com/blah/blah.html", "_blank");
}
Whats The Coding For Closing The Browser After Pressing A Button
Basically I've built this splash page that has a movieclip "Enter" object that Im using as a button, and I currently have this coding (down below) that goes to a certain url address as usual, but I was thinking of the idea of closing the splash page browser window after you've pressed that button, anyone know of AS coding for this ? thnx for helping
on (release) {
getURL("http://blah.com/blah/blah.html", "_blank");
}
1 Movie Clip, 1 Button, Same Coding But Canot Work
Hi, just wondering if anyone can help me on this..
I have a button to mute audio, but its just a normal button, so I change it a little and made it into a movie clip.
I entered the same codings from the basic button into the movie clip but there is an error..
I uploaded the file, wonderin if anyone is free enough to help a noob here =)
http://www.freewebs.com/ohms_world/bugTest.zip
( Right Click Save As )
Go to slide number 2, there are 2 On/Off buttons there, thats where the problem lies... Its in frame 5...
Thank you for reading .. and those who are trying to help =)
Problem Coding Button Over Frame By Frame Animation
Compiler Error: Scene=Scene 1, layer=actoins, fr;'{' expected
Attach Code
function buttonClickHandler(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.deseloper.com/gnome"));
trace("You clicked me.");
}
inv_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
Edited: 03/13/2008 at 05:17:45 PM by trowzers
Coding In The MC
well it seems that I can not figure out how to open the Movie Clips in order to implement the code.
the original MC is called birthday and it has several layers in top of the static layer, where all the MC objects are distribute in layers in other to fade them in and out. however, I can not open the MC to implement the code and call through instances the objects to appear and desapear
__________________
mariusvam@hotmail.com
Coding...
I'm new to Flash MX- i dabbled in Flash 3 but as I now see things have progressed way to much and I'm learing the program all over... I'm trying to find out how to enter code for a frame action. Its to set up a preloading movie clip. Can anyone help? Thanks!
Coding ?
I need a simple code that would allow a image of a card deck to pull up a movie named roleofteacheryesterday
thanks
Coding
This may sound really stupid but how do you achallly put in code. Because i want to make an inventory systom , ive got the code but i dont know where to put it?
Coding Help
I got a sample of some code to move and object up and down , using 'K' and 'M'. All the code makes sense except the variable moveY.
I Have no Idea what it's doing , where it was declared and initialised and how it actually works.
Could someone please explain the Logic of $moveY.
onClipEvent (enterFrame) {
if (Key.isDown(75) && _y>65) {
if (movey>=0) {
moveY =-1;
}else if (moveY>-4) {
moveY*=1.2;
}
keypressed = true;
_y += moveY;
}
if (Key.isDown(77) && _y<250) {
if (movey<=0) {
moveY =1;
}else if (moveY<4) {
moveY*=1.2;
}
keypressed = true;
_y += moveY;
}
if (!keypressed) moveY = 0;
}
Coding Help
how do I make it where You have a picture of a guy and you press a direction button like up, and that picture moves???
Like in a game.
Need Some Help With My Coding...
I have some scrolling buttons that when i click on them, i want them to display a couple of pictures and also some information that describes the pictures. The information will be brought into the textfield from an external file. I have this code inserted on my button. Any help will be apperciated.
[Here's my Code]
---------------------------------------------------------------------
on (release) {
images1.play()
//Load the textfile containing all text for this website
siteData = new LoadVars();
siteData.load("text1.txt");
siteData.onLoad = function(success) {
if (success) {
textbox.text = siteData.myFirstvar;
//trace(siteData.myFirstvar);
//trace(siteData.mySecondvar);
} else {
trace("file NOT found");
}
};
}
---------------------------------------------------------------------
Thanks,
Tony
Help With Coding
Hi,
on my website i want to make a counter that counts down till saturday 11 pm, from saturday 11 pm till sunday 8 am i want to display "party in progress" and at 8 am the counter has to reset and count back down till saturday 11 pm.
Can somebody help me with the coding please ?
thx very much
How Would I Go About Coding This?
the following code doesn't work because each clip duplicates itself, along with the code, ad infinitum, causing a flash error message:
onClipEvent (load) {
this.duplicateMovieClip("script3", 1);
script3._x = this._x + this._width - 1;
}
the above was a failed test!
what i really need to do is make a script that will position a series of mcs next to each other (as in: mc._x = this._x + this._width - 1 so that each of them can then be populated using loadmovie.
also, two of the 11 mcs i am loading are different widths to all the others. how would i go about coding this?
no doubt this is easy if you actually understand actionscript!
any help would be much appreciated!
Swf To Swf Coding
I have a Btn that works great. It's inside a MC inside an swf. I've made a menu that has 10 empty movie clips that pulls the Btn in and everything works great. I just can't seem to coding the Btns. It's a Btn inside a MC inside a SWF being pulled into a MC inside my main time line. I'm trying to make this menu so I can change out the Btns and everything works. Here's my code:
_level0.mc1.mc.btn.onRelease = function() {
getURL("Page","_Blank");
}
I've also tried:
tellTarget (_level0.mc1.mc.btn) {
onRelease = function() {
getURL("Page","_Blank");
}
Anybody have any ideas??? Please???
Just Bad Coding? Please Help
Code:
_root.fromEsp =_root.config.firstChild.childNodes[i].firstChild.toString();//grabs xml data contains a path to a file
trace("location+asset= "+_root.fromEsp)//debug
var assetName = _root.fromEsp.split("\");//split array into back slashes
_root.fileName = assetName.pop();//get file name by "popping" array
pathFile="C:\test\"+_root.fileName //rebuild new path by concat...
gotoAndPlay("calc")//proceed
Hello code kings and queens Im stuck on this one and really need your help.
Im grabbing the path from xml which points to a file.
after the above code I hope to end up with
the full original filepath "_root.fromEsp"
the name of file "assetName"
a rebuilt path which includes the name of file."pathFile"
My problem:
The above works well. BUT if _root.fromEsp is a
path to a movie file (wmf,avi,mpg etc) , trace (on line 2) returns the filename of my movie without the full path???
Really bugging me! if "_root.fromEsp" is a path to a jpeg or swf there is no problem.
hope this makes sense.
Thanks for your time
Cheers
Help With Some Coding Please
Hello, i am a "graphical guy" and new in flash.
Now i wanted to trie some effect in flash that needs a bit coding but i'm a newbie so i wanted to ask if some-one of you could be so kind to help.
this is what i'm trying to achieve:
http://www15.brinkster.com/morreke/howto.jpg [copy and paste url please]
anybody ?
thx
Help With Some Coding...
Ok here it goes...Im ive got a button and when that button is clicked it is to load text into a dynamic text box...every thing is set up correctly but the coding i think is wrong take a look and tell me what you think...
Quote:
on (release) {
= new loadVars();
loadText.load("TEXT1.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}
Help With Coding. Thanks
Can anyone teach me or share the coding like the one in the website below? i mean the pictures which can see 360% degree
http://www.sydneyoperahouse.com/sect...ur/vrtour2.asp
Thanks... i need that in my project..
Help With Coding
hei,
just got help from you guys - but i donīt manage to get it right.... (---see attached file)
(the grey rectangle should start fading in when i reach the red square (hit area), not already when you cross the edges of the grey square)
can anyone tell me what i am doing wrong?
taking what you already have, do the following:
1. Inside your movie clip, turn the red box into a movie clip instance and then name it "redSquare" in your properties box.
2. Remove your current functions (all but the stop()) from your first frame of your fading movie clip timeline.
3. Give your fading movie clip placed on _root the name greyBox
4. Assign the following actions to the "redSquare" mc inside the "greyBox" mc:
code:
onClipEvent(enterFrame){
this.onEnterFrame = function(){
if(rewind == true){
_root.greyBox.prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
_root.greyBox.play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
_root.gotoAndPlay(34);
}
}
This should work for you. It did for me.
Help Coding
PHP Code:
//--------------------------------------------------------------------------
// location of the playlist if no html parameter is found
// change "playlist.xml" if you want another filename ..
//--------------------------------------------------------------------------
_root.playlist == undefined ? playlist = "mp3player.xml" : playlist=_root.playlist;
//--------------------------------------------------------------------------
// below here it's all code and code ..
//--------------------------------------------------------------------------
// stage variables
Stage.showMenu = false;
Stage.scaleMode = "noScale";
stop();
// player variables
volume = 90;
current_song = 1;
top.equalizer._visible=0;
// playlist loading
data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = loadData;
data_xml.load(playlist);
// parsing all xml data into flash
function loadData(success) {
if (success) {
// showdisplay and playlist toggles
showDisplay = this.firstChild.attributes.showDisplay;
if (showDisplay == "yes") {
top.easeY(toppos);
topup = false;
display_btn._rotation+=180; }
showPlaylist = this.firstChild.attributes.showPlaylist;
if (showPlaylist == "yes") {
bot.easeY(botpos);
botup = false;
list_btn._rotation+=180; }
// getting all titles and filenames
aPath = new Array();
songTitel = new Array();
audioTracks = new Array();
audioTracks.shuffle();
audioTracks = this.firstChild.childNodes;
song_total = audioTracks.length;
for (var i = 0; i<song_total; i++) {
aPath.push(audioTracks[i].attributes.path);
songTitel.push(audioTracks[i].attributes.title);
// buiding playlist buttons
bot.playlist.btn.duplicateMovieClip("btn"+i, i);
bot.playlist["btn"+i]._y = bot.playlist.btn._y+i*int(bot.playlist.btn._height) +i;
bot.playlist["btn"+i].txt = checkDigits(i+1)+". "+songTitel[i];
bot.playlist["btn"+i].hit.onPress = function() {
listClick(this._parent.getDepth()+1); };
}
//checking autostart mode
autoStart = this.firstChild.attributes.autoStart;
if (autoStart == "yes") {
playSong();
play_btn._visible = 0;
} else if (autoStart == "no") {
play_btn._visible = 1;
pause_btn._visible = 0;
} else if (autoStart == "random") {
current_song = random(song_total)+1;
playSong();
play_btn._visible = 0;
} else {
current_song = int(this.firstChild.attributes.autoStart);
playSong();
play_btn._visible = 0; } }
// done ! all loaded succesfully. purging trash
delete audioTracks;
delete data_xml;}
// list button
function listClick(prm) {
delete pausepos;
current_song = prm;
MySound.stop();
playSong(); }
// list scroller
bot.list_bg.onEnterFrame = function() {
if (hitTest( _root._xmouse, _root._ymouse, true) && this._parent.playlist._height > this._height ) {
ymin = this._y+this._height - this._parent.playlist._height;
ymax = this._y+3;
conv = (this._ymouse -15)*1.3/this._height;
conv > 1 ? conv = 1 : null;
conv < 0 ? conv = 0 : null;
this._parent.playlist.easeY (ymax - conv*(ymax-ymin)); } };
bot.playlist.setMask(bot.list_bg);
// play function
function playSong() {
AudioPath = aPath[current_song-1];
// checking for pause > start from there
if (pausePos>0) {
top.equalizer._visible = 1;
MySound.start(pausePos, 0);
pausePos = 0;
// startup new sound
} else {
MySound = new Sound();
MySound.setVolume(volume);
MySound.loadSound(AudioPath, true);
MySound.onSoundComplete = function() {
top.equalizer._visible = 0;
if (autoStart == "random") {
current_song = random(song_total)+1;
} else {
current_song == song_total ? current_song = 1 : current_song++;
}
playSong(); };
// check loading bar
top.track_load.onEnterFrame = function() {
total = this._parent._parent.MySound.getBytesTotal();
geladen = this._parent._parent.MySound.getBytesLoaded();
if (geladen != total) {
this._parent.load_display = Math.round((geladen*100/total))+"% Loaded";
this._xscale = Math.round((geladen*100/total));
} else {
this._xscale = 100;
top.equalizer._visible = 1;
delete this.onEnterFrame;
delete this._parent.load_display; } }; }
// switch paly/pause buttons
play_btn._visible = 0;
pause_btn._visible = 1; }
// play button
play_btn.onRelease = function() {
playSong(); };
// pause button
pause_btn.onRelease = function() {
this._visible = 0;
play_btn._visible = 1;
pausePos = MySound.position/1000;
MySound.stop();
top.equalizer._visible=0; };
// next button
next_btn.onRelease = function() {
delete pausepos;
current_song == song_total ? current_song = 1: current_song++;
MySound.stop();
playSong(); };
// previous button
prev_btn.onRelease = function() {
delete pausepos;
current_song == 1 ? current_song = song_total: current_song--;
MySound.stop();
playSong(); };
// display toggle button
top.setMask(top_mask);
toppos = top._y;
top._y = int(toppos + top_mask._height - 29);
topup = true;
display_btn.onPress = function() {
if(topup == true) {
top.easeY(toppos);
topup = false; }
else {
top.easeY(int(toppos + top_mask._height -27));
topup = true; }
this._rotation += 180; };
// playlist toggle button
bot.setMask(bot_mask);
botpos = bot._y;
bot._y = botpos - bot.list_bg._height -6;
botup = true;
list_btn.onPress = function() {
if(botup == true) {
bot.easeY(botpos);
botup = false; }
else {
bot.easeY(botpos - bot.list_bg._height -6);
botup = true; }
this._rotation += 180; };
// drag button functionality
drag_btn.onPress = function() {
startDrag(this._parent); };
drag_btn.onRelease = drag_btn.onReleaseOutside=function () {
stopDrag(); };
// copyright button
copy.onPress = function() {
getURL("http://www.jeroenwijering.com/?item=Flash+Mp3+Player","_blank"); }
// updating time display
this.onEnterFrame = function() {
dur = int(MySound.duration/1000);
pos = int(MySound.position/1000);
playTime = {};
playTime.minutes = int((pos)/60);
playTime.seconds = int((pos)%60);
playTime.total = checkDigits(playTime.minutes)+":"+checkDigits(playTime.seconds);
trackTime = {};
trackTime.minutes = int(dur/60);
trackTime.seconds = int(dur%60);
trackTime.total = checkDigits(trackTime.minutes)+":"+checkDigits(trackTime.seconds);
if (top.load_display == undefined) {
top.display = playTime.total+" / "+trackTime.total;
} else {
top.display = top.load_display; }
if (top.trackDrag != true) {
prozent = pos*100/dur;
top.track_play._xscale = prozent; } };
// prefixing a 0 to the time
function checkDigits(toCheck) {
return (toCheck<10) ? toCheck="0"+toCheck : toCheck; }
// track progress slider functions
top.track_back.onPress = function() {
this._parent.trackDrag = true;
this._parent.track_play.onEnterFrame = function() {
perc = (this._parent._xmouse-this._parent.track_back._x)/this._parent.track_back._width;
max = this._parent.track_load._width/this._parent.track_back._width;
perc > max ? perc = max: null;
perc < 0.01 ? perc = 0.01: null;
this._width = this._parent.track_back._width*perc;
this._parent._parent.pausePos = (perc*this._parent._parent.MySound.duration/1000); }; };
top.track_back.onRelease = top.track_back.onReleaseOutside = function () {
delete this._parent.track_play.onEnterFrame;
this._parent.trackDrag = false;
MySound.stop();
playSong(); };
// volume slider functions
vol_back.onPress = function() {
vol_front.onEnterFrame = function() {
perc = (_xmouse-vol_back._x)/vol_back._width;
perc > 0.95 ? perc = 1: null;
perc < 0.05 ? perc = 0: null;
this._width = vol_back._width*perc;
volume = Math.round(perc*100);
MySound.setVolume(volume);
top.equalizer._yscale = volume; }; };
vol_back.onRelease = vol_back.onReleaseOutside=function () {
delete vol_front.onEnterFrame; };
vol_front.setMask(vol_mask);
// drawing equalizer in actionscript
top.equalizer.setMask(top.eq_mask);
top.equalizer.onEnterFrame = function() {
i++;
this.createEmptyMovieClip("graph"+i, i);
with(this["graph"+i]) {
_x = 0;
_y = 0;
beginFill(0x666666, 50);
moveTo(0,0);
for (j=0; j< 36; j++) {
z = random(12)+8;
lineTo(j*6,-1);
lineTo(j*6,-z);
lineTo(j*6+4,-z);
lineTo(j*6+4,-1);
lineTo(j*6,-1); }
lineTo(j*6,0);
lineTo(0,0);
endFill(); }
i >= 3 ? i=0: null; };
// scrolling the display song title
function scrollTitle() {
top.title.txt.autoSize = true;
if (songTitel[current_song-1].length > 20) {
top.title.txt.text = songTitel[current_song-1]+" "+songTitel[current_song-1];
top.title._x+top.title._width/2 +4< top.title_mask._x ? top.title._x = top.title_mask._x : top.title._x--; }
else {
top.title.txt.text = songTitel[current_song-1];
top.title._x = top.title_mask._x-3; } }
top.title.setMask(top.title_mask);
setInterval(scrollTitle, 40);
// easing display and playlist movement
MovieClip.prototype.easeY = function(t) {
this.onEnterFrame = function() {
this._y = int(t-(t-this._y)/1.5);
if (this._y>t-1 && this._y<t+1) {
delete this.onEnterFrame; } }; };
That's a code from my .fla file. How would i make it so that instead of the variables showing in the .xml file, they are defined in the [html]<object></object>[/html] code? i understand that this will make the variables visible in view source and i am fine with that.....
CE Coding
Hello!
I found this fla in the movies section, I was modifying it when I found out, that when I was changing the actionscript code, the Central European coding wasn't detected, the letters š, č, ž were not displayed in the swf. I used the Arial CE font and it didn't help either.
Please help
theredtitan from Slovenia
Help With Coding
here is what i have:
a movie clip calld "plastic"
a movie clip calld "arrow"
a movie clip calld "target"
a move clip calld "foot"
a button call "button"
at first frame i have this codes
Mouse.hide();
arrow._visible = false;
aim = 0;
the button is placed inside the foot movieclip
and the foot movieclip folows the mouse
the target movieclip is placed inside the arrow moviecilp
the arrow movieclip has the following code apllyd to it
onClipEvent(load){
X = this._x;
Y = this._y;
}
onClipEvent(mouseMove){
Xm = _root._xmouse;
Ym = _root._ymouse;
Xdiff = Xm - X;
Ydiff = -(Ym - Y);
radAngle = Math.atan(Ydiff/Xdiff);
if (Xdiff < 0){
corrFactor = 270;
}
else{
corrFactor = 90;
}
this._rotation = -radAngle*360/(2*Math.PI) + corrFactor;
updateAfterEvent();
}
the button has the following code
on (release) {
if (_root.aim == 0) {
_root.arrow._x = this._x;
_root.arrow._y = this._y;
_root.arrow._visible = true;
_root.aim = 1;
}
}
the foot movieclip has the following code
onClipEvent (enterFrame) {
if (_root.aim == 1) {
if (_root.arrow.target._x>_root.plastic._x) {
_root.plastic._x += 10;
}
if (_root.arrow.target._x<_root.plastic._x) {
_root.plastic._x -= 10;
}
if (_root.arrow.target._y>_root.plastic._y) {
_root.plastic._y += 10;
}
if (_root.arrow.target._y<_root.plastic._y) {
_root.plastic._y -= 10;
}
}
}
what i was trying to do is to tell the plastic to go to the target
but it goes some place else not relly sure were
plz help me solve this
M:I:Coding?
I can't possibly describe this but I can't seem to get :
Code:
on (release) {
gotoAndStop("mainXrave", 1);
}
This to WORK! its set on a button in a scene but it isn't working!
-In the scene-
A customised cursor, controlled by this._x = _xmouse, and etc
A weird aurora thing as a Movieclip I got using tutorials, 3 frames and just duplicates itself for the efect.
And the not-so-working-well BUTTON.
So what could possibly stop such a easy code not work?
Thanks
Tongxn
AM:I:CODING?!?
Help With Coding Please
Hi everyone, I have been trying to alter this script for a while to better suit my needs but I have not been able to do what I hope to achieve. This is the scrpit for a SIMON game that randomly creates a patter (well I think most people know this) I am trying to use its randomness and other functions without the random string getting longer ( I want it to keep playing new patternes of 3 sounds every time)
There is a variable "step"
and a variable "count"
that seem to control the lenght of the pattern the script creates but I cant think of how to make it do what I said above.
Could anyone take a look and see please?
Code:
var dim = 50; //Alpha of pieces when clicked
aPieces = new Array(); //Array of pieces
aMoveList = new Array(); //Array of moves made
var ID;
var count = 0; //Number of moves made
var first;
var soSound0 = new Sound(this); //Creates a new Sound
soSound0.attachSound("simonSound1.mp3"); //Attaches simonSound1.mp3 to that sound
var soSound1 = new Sound(this);
soSound1.attachSound("simonSound2.mp3");
var soSound2 = new Sound(this);
soSound2.attachSound("simonSound3.mp3");
var soSound3 = new Sound(this);
soSound3.attachSound("simonSound4.mp3");
var step = 0;
for (var i = 1; i < 5; i++) //Adds the four movie clip quadrants to aPieces
{
aPieces.push(this["m" + i]);
this["m" + i].value = i - 1;
}
function buildPieces()
{
for (var i = 0; i < aPieces.length; i++)
{
aPieces[i].onPress = function() //When the piece is pressed it dims
{
this._alpha = dim;
};
aPieces[i].onRollOut = function() //When you roll your mouse off of the piece it undims
{
this._alpha = 100;
};
aPieces[i].onRelease = function() //When you release your mouse
{
this._alpha = 100; //Set transparency to 100%
_root["soSound" + this.value].start(0); //Play the piece sound
if (aMoveList[step] != this.value) //If the piece you pressed does not equal the piece you were supposed to press
{
failure(); //failure method
return;
}
step++; //Add one to the amount of steps to do
if (step == aMoveList.length)
{
nextLevel(); //Go to the next level
}
};
}
}
function failure()
{
tMainText.text = "Game Over.";
killPieces();
mStart._alpha = 100; //Set start button transparency back to 100%
aMoveList = new Array(); //Delete array of moves
mStart.onRelease = function() //Recreate the start button
{
startGame();
}
}
function killPieces()
{
for (var i = 0; i < aPieces.length; i++) //Deletes all the functions of the pieces so you cant interact with them
{
delete aPieces[i].onPress;
delete aPieces[i].onRollOut;
delete aPieces[i].onRelease;
}
}
function lightUp(num)
{
clearInterval(ID);
count--;
if (count == 0) //If no more pieces are left to light up, wait for user to input sequence
{
userTurn();
return;
}
if (count == 1) //If the last piece in the list has just been lit up, pick a random light to light up
{
num = Math.floor(Math.random() * 4);
}
else //Set num to the next light to light up
{
num = aMoveList[aMoveList.length + 1 - count];
}
light(num); //Light up the light
}
function userTurn()
{
step = 0; //Sets the step to 0
buildPieces(); //Lets user interact with pieces
}
function light(num)
{
dimIt(num); //dims the num piece
ID = setInterval(pause, 500, num); //Light up the piece for half of a second
}
function pause(num)
{
clearInterval(ID);
unDim(num);
ID = setInterval(lightUp, 50, num); //Creates a 50ms pause between lighting up pieces
}
function dimIt(num)
{
if (count == 1)
{
aMoveList.push(num);
}
_root["soSound" + num].start(0); //Plays the sound when lighting a piece up
aPieces[num]._alpha = 50;
}
function unDim(num)
{
aPieces[num]._alpha = 100;
}
function startGame()
{
first = Math.floor(Math.random() * 4) //Picks first piece
tMainText.text = ""; //Sets the text field to display nothing
for (var i = 0; i < aPieces.length; i++)
{
aPieces[i]._alpha = 100; //Sets all the pieces to 100% transparency
}
mStart._alpha = 0; //Sets the start button to invisible
delete mStart.onRelease; //Deletes the start button onRelease function
buildPieces();
count = 1;
light(first); //Lights first piece
}
function nextLevel()
{
killPieces(); //Disables interacting with pieces
for (var i = 0; i < aPieces.length; i++)
{
aPieces[i]._alpha = 100; //Sets all pieces to 100% transparency
}
count = aMoveList.length + 1;
var timer = getTimer();
this.onEnterFrame = function()
{
if (timer < getTimer() - 1000) //Wait 1 second before starting sequence display after input
{
delete this.onEnterFrame;
light(first);
}
};
}
mStart.onRelease = function()
{
startGame();
};
Thanks Very Much
Mark
[F8] Gun Coding
1. how do I say in a code that the movieclip 'gun' is inside the movieclip 'arm?
2. I have a very dodgy code here...my 'gun' movieclip is inside the 'arm' movieclip. they point to the mouse using the code attached to them.
the gun fires, the bullet doesn't. the bullet doesn't move anywhere, it stays at its starting point...
heres the code, this lot is all attached to my actions layer:
code: z=10;
bulletSpeed = 30;
var radians:Number = gun._rotation *Math.PI/180;
var vx:Number = Math.cos(radians)
var vy:Number = Math.sin(radians)
onMouseDown = function() {
shoot();
}
function shoot() {
attachMovie('bullet', 'bullet'+ z, z);
rad = gun._rotation*Math.PI/180;
_root['bullet'+z]._y=gun._y+ (25 *Math.sin(rad));
_root['bullet'+z]._x=gun._x+ (25 *Math.cos(rad))
_root['bullet'+z]._rotation=gun._rotation;
var vx3:Number = Math.cos(rad) * bulletSpeed+vx;
var vy3:Number = Math.sin(rad) * bulletSpeed+vy;
_root['bullet'+z].onEnterFrame = bulletMove;
z++
}
function bulletMove():Void
{
this._x += vx3;
this._y += vy3;
}
P.S. is it possible to attach a bullet to another layer when it is fired, so that when it hits its target and stays there, it scrolls along with the background (which is on a different layer)?
Coding Help
Actually this is 2 questions 1 on topic and one out of curiosity.
Now I usually don't have a problem doing a gotoAndPlay but for some reason i'm getting errors.
on (release) {
gotoAndPlay (scene, 1);
}
I'm getting nothing...but errors
And the second question. What are the fundamental differences with Actionscript 2.0 and 3.0 because I making the graphics for an experimental flash RPG and want to know what I should use.
New To Coding
hi there
I bougth this component plugin for my Flash CS3 called WaveNav but I am a beginner in coding.
I was going to use this WaveNav-sample that comes with plugin for my navigation. I have 14 "buttons" I need to navigate on my site but as I said I am a beginner in coding.
Can enyone help me seti it up?
below is the as from the sample:
import com.flashrelief.events.WaveEvent;
//create an array of movie clips to use in the navigation
var wordArr=["home","gallery","videos", "blog","portfolio","resume","about us","contact","legal"]
var tArr = [];
for(var i=0;i<9;i++){
var mc = new TextHolder();
mc.alpha = .65;
mc.tField.autoSize = TextFieldAutoSize.LEFT;
mc.tField.text = wordArr[i];
tArr.push(mc);
}
//assign the array to the component
myWave.items = tArr;
// create events for the links
myWave.addEventListener(WaveEvent.MOUSE_DOWN, goDown);
myWave.addEventListener(WaveEvent.MOUSE_OVER, goOver);
myWave.addEventListener(WaveEvent.MOUSE_OUT, goOut);
//
function goDown(e:WaveEvent){
trace("numer clicked: "+ e.num);
trace("targed movieclip: " + e.targ)
}
function goOver(e:WaveEvent){
var mc = e.targ;
mc.alpha = 1;
}
function goOut(e:WaveEvent){
var mc = e.targ;
mc.alpha = .65;
}
Thanks in advance,
solvin
|