Pass Button Instance Name To A Function When Button Is In ScrollPane?
I have a ScrollPane component which holds a movieclip from my library. I am trying to set up a funtion to read the movieclip.button instance name when I click a button. On a trace, all I receive is "spContentHolder."How can I capture the button instance name when the button resides inside the scroll pane?Thanks.
Adobe > ActionScript 1 and 2
Posted on: 01/21/2009 02:05:47 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Get Instance Name Of Movieclip, Pass Through Function
Using Flash MX 2004, AS 2.0, FP 7
Hello everybody,
I was wondering how to obtain the instance name of a movie clip. I attempted to output it to a text field, using the "on release",
Code:
on (release) {
_root.my_txt.text() = this._name
}
But it returns either null or undefined...
If someone could lend me a hand with this that'd be great...
I am using Using Flash MX 2004, Actionscript 2.0 & FlashPlayer 7
Thanks in advanced
Function To Pass Part Of Instance Name In Argument
I'm trying to write a function that will pass part of an instance name in the argument. This is what I have tried:
Code:
function doit(testvar:Object):void {
testvar+_clip.gotoAndStop(2);
}
doit(test);
I am trying to get the function execute this code:
Code:
test_clip.gotoAndStop(2);
I know this is probably a pretty obvious n00b question, but what am I doing wrong?
How To Get Button's Instance Name On Stage? OR Can A Button Ahve 2 Instance Names?
i have a button the the stage, with an instance name of: "butt1"
the button itself lives inside a movieclip, where it is called thisButton
when flash runs and I click the button I want to output the button's instance name on the stage (i.e. butt1) but i'm only getting the button's instance name in it's own movie
this._name gives me = thisButton
is the name i want stored in a separate property?
edit: sorry - i realise that the problem is that the button code is inside the mc itself, where the button's name is thisButton
Mc Instance Activated By Button How Do I Unload Mc On Click Of Another Button?
I have 4 buttons each with a mc instance attached. on release of button one it plays the movie clip - eg click "about us" button plays a movie clip to open up the company details. But when you click the 2nd button "contact us" I want the first movie to disappear(unload) and the 2nd movie clip to play.
Can anyone help?
Desperate!!!
[F8] Button Inside Scrollpane, Cannot Control MC Outside Of Scrollpane?+emptymc
Hi, first look at the example of how it should work :
http://www.surfacingmedia.com/VIDEOPLAYER2.html
notice the Buttons in the scroller on the right tell the MC on the left to GOTO MC frame i want it too (each frame then holds Player for specific video.)
works great right?
Now when I load this into my main site into an empty movieclip i use for all section content it Does not work at all! sure it loads the first video but the buttons are disabled?
(use link below navigate to photo/video and selet video.)
http://www.surfacingmedia.com/
the code is the same just calls to the videoplayer MC and tells it to goto a certain frame.
it doesnt work when loaded into my empty MC. ?
any suggestions?
If kill the scrollpane altogether, buttons work fine then even loaded into emptyMC. seems once buried in scrollpane its too deep for buttons to work? which for me defeats the purpose kinda.
Note-Flash 8 (i am a code lightweight i used the BEHAVIORS commands gotoand stop on frame select the MC.)
Thanks in advance i will answer some posts while i am here that i can now.
Swapping Scrollpane Content With Button Outside Scrollpane
Hi,
I'm terribly new to flash which is probably why I couldn't solve this with any tutorial out there.
I've got a scrollpane, and outside that I have a few buttons working as a nav bar. I want these buttons to load a different movieclip (which isn't in the stage, it's in the library) to the scrollpane.
Using the tutorial on this site (the one where you add or remove a blue movieclip to the scrollpane) I got as far as adding the movieclip to the scrollpane. Problem is, I need the buttons to unload the current movieclip before loading the new one.
(So for example, if the movieclip called "home" is loaded in the scrollpane and I click on the button "Patterns & Textures" I want that button to unload "home" from the scrollpane and load the movieclip "patterns")
My code so far looks like this:
Code:
scrollPane.setStyle("borderStyle", "none");
var i:Number=0;
var mcMain:MovieClip;
function init() {
scrollPane.contentPath = "home";
mcMain = scrollPane.content;
trace(mcMain);
}
init();
brushes_btn.onRelease = function() {
mcMain.attachMovie("brushes", "brushes"+i, mcMain.getNextHighestDepth(), {_y:50*i+5, _x:5});
i++;
scrollPane.invalidate();
};
Taken from the tutorial.
I'm pretty sure I don't need the + i part because I won't have more than one mc in the scrollpane at once, but I don't know how to remove it without screwing it up.
I'd greatly appreciate any help!
Button Instance From Anoter Button
Hi
how i do to create a Button when click in anoter button?
Thanks and sorry my English.
--
Rodrigo Barrere Brezina
Dpto. Sistemas - Aguas del Valle S.A.
Tel: 430003 - int 233
S.F.del V. de Catamarca - ARGENTINA
(I Guess) An Easy Button Question - How To Make A Function For A Button
Hi!
I have a little button problem. I have plenty of buttons in my presentation which should take the movie to different frame labels. But some of the buttons shouldn't be active from the beginning and they should have a different ("not active") color. Instead of setting enable = false; and color changes for every button, I tried to make a function and then call it. I put it in the first frame. It looks like this:
code:
/*** TRYING TO CALL THE FUNCTION ***/
_root.flowerButton.notActive(this._name);
/*** FUNCTION ***/
function notActive(nameofbutton) {
nameofbutton.enabled = false;
//color change...
}
I don't know if this script is alright or not, it simply doesn't work. I tried many combinations and put trace to the function, but nothing. It looks like I can't call a function for a button like this. Can anybody help me how to make it work? And I would really appreciate an explanation why this code doesn't work.
Thank you!
Poco
Convert Button Event Code To A Function AND 'if,then,else' Statement On A Button Even
mac os X
flash mx 2004
Hi
Can anyone please help me convert the following code from a button event into a function:
on (press) {
paypal = new LoadVars();
paypal.cmd="_cart";
paypal.item_number= myVB2;
paypal.item_name= mvVB;
paypal.upload="1";
paypal.business="ady@atinybitofgod.com";
paypal.currency_code="USD";
paypal.amount= myVB3;
//paypal.handling ="2.00";
paypal.send("https://www.paypal.com/cart/add=","_blank","post");
}
My plan is to have 5 of these (obviously named differently and with slightly diff. values for the variables) and then on a single button's (press) i will have an 'if,then,else' statement, which will call one of these 5 functions depending on the value of another variable in my movie.
is this possible??? I have been spending 2 weeks now posting on numerous threads trying to find a workaround for a different problem, with no joy..so the above is my *hopeful* solution... please ask me if i haven't explained anything clearly enough.....
Thanks so much for your time and any help you might be able to offer...
kindly with crossed fingers,
Cheska
(ps...if you want to try and help my initial problem, you can visit http://www.atinybitofgod.com/kids/paypal.html and see all my code and my swf and the rror i get from paypal when i try to send three variables that reference other variables in my movie.....BUT...since i have had no joy and think that ive tried most peoples suggestions, i'd really like to try to figure out this new 'function' and 'if then else' thing on my button...if that's even possible).
Changing The Function Of A Button Depending On Previous Button Press
Hi all,
this problem has been stressing me out all day! (its probably extremely simple, but i can't get my head round it)
I was wondering if anyone can help me, I'm loading in 5 jpegs from an external file using "loadMovie" and i have 5 corresponding buttons (1-5) to load them with.
I want to change the jpeg the button loads in depending whether a separate navigation button has been pressed -
i.e.
navigation buttons:
-motorbike pics
-car pics
-lorry pics
If a user clicked on "car pics" then the loading buttons 1 to 5 would load "car1.jpg", "car2.jpg" and so on...
similarly if the user clicked on "lorry pics", the same loading buttons 1 to 5 would load "lorry1.jpg" and "lorry2.jpg"
any help and code snippets would be greatly appreciated!
Thankyou!
Pass A String To A Button
I use a textfield on my webpage and i want to pass the string of that textfield to a button.
example :
I set in the textfield the words : click on this button
so on the button should appear click on this button.
Can anyone help me ?
Pass A Sting To A Button
I use a textfield on my webpage and i want to pass the string of that textfield to a button.
example :
I set in the textfield the words : click on this button
so on the button should appear click on this button.
Can anyone help me ?
Use Button To Pass Var To Another Frame
Hi guys im back,
ok so i got a button on frame 110, and i got some code in the actions of frame 120.
I need it so that when you click the button on 110 if passes the var page = therightscene, to the action code in 120, ermm.... look
button code
----------------------------------------
on (release) {
play();
var page = corporate;
}
----------------------------------------
then on frame 120 i got
if (page = corporate) {
gotoAndPlay("corporate", 1);
} else {
}
if (page = polos) {
gotoAndPlay("polos", 1);
} else {
}
and so on and so on....for the full 11 buttons and scenes lol
so the code should be able to recognise which button was clicked and jump to the relevant scene using the page variable, ohh this is so much easier in php.
thanx for lookin guys,
me x
[CS3] Pass Variables To A Button
Hi, I would like to know, how can I pass values to a button, I mean, set the text and url for that button dynamically...
thanks
Pass A Value With A Button For The Nth Time ~
if i have 3 buttons and each has a value and i click one button how can i make the dynamic text display the button value ? how can i pass a value along with a button in this code ?
Code:
while (i<myVars.endbtn){
var thmdesc = attachMovie("description","desc"+[i],getNextHighestDepth(),{_x:xtext, _y:ytext, _width:309, _height:30});
thmdesc.desc1.text = myVars["buttondesc" + i];
ytext=(ytext+35);
//btny=(btny+35);
//desctext.text="testing ";
var thmbut = attachMovie("btn","btn"+[i],getNextHighestDepth(),{_x:btnx, _y:btny, _width:100, _height:20});
var ds:DropShadowFilter = new DropShadowFilter(2,35,0x000000,5,5,5,.8,3,false,false,false);
thmbut.btntext.text = myVars["buttonthm" + i];
thmbut.filters = [ds];
thmbut.onRelease = function(){
selected.filters = [];
thmbut.btntext.text = "test";
desc1.text = thmbut.btntext.text;
}//end function
btny=(btny+35);
i++;}
im very close to just giving up and making the page in php/hml !!
How Can I Pass A Button Value Or Parameter With Url
hi there i just start learning actionscript and i want some help in something.(1st)how can i pass a button value or parameter with url to be like this (index.html?name=anything&age=anything).(2nd)how can i select just one frame to execute an action on it in document content many layer.
thank you and i hope that i clarify my problems.
Getting Flash To By-Pass The Print Button
Hiya people.
Within a multimedia Flash presentation that I am preparing for a company that will be used by the general public, I have a set of Pdf files that are linked a set of buttons, so that some of the Flash presentation can be printed out into information handouts.
The only problem is that the company would like each of the repsective buttons to print out its pdf without the file actually opening up, and therefore someone having to press the standard print button. Does that make sense?!
So basically I would like to know if there is a way of getting flash to print out a file without opening it up infront of the Flash presentation.
Please help!
Cheers
Deadhands
Button Wont Pass Variable Properly
I've been working all day on an insanely annoying problem and I would be grateful if someone could take a look at my FLA files.
http://www.diversus.com/prototype/main3.fla
and
http://www.diversus.com/prototype/menu.fla
Im trying to pass a variable to my main movie clip from my menu swf. Then Im running an if statement to see if the variable has the value "clear", and if it does open a web page (as a test).
This is the if statement:
if (_root.navstat eq "clear") {
getURL("http://www.etherworks.ca");
}
If I place this code, root.navstat eq "clear" in the first frame of my main movie, it does exactly what I want. But inside the menu file, there are movie clips which contain buttons, and one of those buttons does this;
on (release) {
_root.navstat="clear";
}
You would think these would do the same thing, but they dont, and I cant for the life of my figure this out. Will someone look at the files and help?
Thank you
Brett
Pass URLs From An XML File To A Flash Button
Hi All,
I am getting differetn external SWF files in the main.fla file, External Flash files have called up images for my EmptyMovieClip ("imagemc") and text from the XML file, The text and images are coming up in the flash files ok, but i want to pass a URL along with each record that in flash should become the URl for GETURL command, can anybody tell me how to do that please?
I am placing my code in which i am loading the XML file and placing them in variables, and teh XML file code in which i have added the <URL> tag :
First frame of the Main Flash file
Code:
i = 0
Second frame of the Main Flash file
[code]
System.useCodepage = true;
if (i < 0) {
i = 0
}
var meuXML:XML = new XML();
meuXML.load("galeria.xml");
meuXML.ignoreWhite = true;
meuXML.onLoad = function(){
img = this.childNodes[i].childNodes[0].childNodes
texto1.text = this.childNodes[i].childNodes[1].childNodes
fidi.text = this.childNodes[i].childNodes[2].childNodes
cont = this.childNodes.length;
loadMovie(img, "imagem");
}
if ( i == cont){
i = i-1
}
Here is the XML file code :
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<FOTO>
<imagem>music/foto01.jpg</imagem>
<texto>FOTO 01</texto>
<texto2>KIMI GONZALEZ1</texto2>
<url>HTTP://www.yahoo.com</url>
</FOTO>
<FOTO>
<imagem>music/foto02.jpg</imagem>
<texto>FOTO 02</texto>
<texto2>U2 Baby</texto2>
<url>HTTP://www.hotmail.com</url>
</FOTO>
<FOTO>
<imagem>music/foto03.jpg</imagem>
<texto>FOTO 03</texto>
<texto2>KIMI GONZALEZ3</texto2>
<url>HTTP://www.cnn.com</url>
</FOTO>
I am trying to have these URLs in the button of my flash files and these URLs could be passed on via the XML file, PLEASEEE any one help me in that.
I am attching the MAIN flash file and the EXTERNAL SWF which i am calling within teh main file also.
THANKS for the support,
F.
How Do I Set A Variable Of A Button To Pass It A URL Dynamically From Cold Fusion?
I dont have to concern myself with the Cold Fusion end of things, our CF developer(s)will handle that...
I've made some Flash navigational buttons that are to be used on the front end of a very robust Cold Fusion web application.
I cannot hard code the buttons using the getUrl action because the Url will be changing dynamically.
I need to know how to set the variable of a button, so that Cold Fusion can pass it a value for the URL on the fly.
Any help would be greatly appreciated,
jOEL
How Do I Pass Radio Button Var Info To An Input Textbox?
Ok, So I can not get the radio button info to pass to my php page so that it sends me an email. How do I set it up so that if someone clicks one of my radio buttons, that is sends its info to an input text box so that I can pass the textbox info to the php page? I can at least get input textbox info to pass to the php page, so I hope I can make this a work around for my radio buttons not working. Anyone have an example script for doing this?
Thanks
Button To Scrollpane
Does any one know, how to have a button open the built in component "scrollpane"? I can't seem to be able to link the two together. All I need to do is to have the scollpane open when I click the button.
Scrollpane Becomes One ****** Off Button
hi,
on my site at http://www.david-ford.com - i've got a scrollpane... but it appears to be one huge huge button, i.e. the whole movie in the scrollpane is clickable.
any way to avoid this? i want hyperlinks in the scrollpaned movie, but i cant at the minute coz the whole bloody thing is clickable.
the scrollpane loads an external .swf, i.e. http://www.david-ford.com/new_news.swf. it does the same for an internal MC.
helllllllp!
Button Instance Name
Hi, I am trying to indicate the button instance name of a existed button. However, it's fail.
Code:
on(release){
_root.textfieldInstance.text = this._name;
}
Would anyone know what's up?
Thank you for reading my post!
Visit example at:
http://ddlam1.netfirms.com/Instance.swf http://ddlam1.netfirms.com/Instance.zip
(20KB)
Getting A Button's Instance Name..is It Possible
Quick question. I have say 50 buttons in my flash movie, that when clicked need to send their instance name to my php script. Everything works fine and dandy as of now. I'm just wondering if there is a way to use an abstract idea to access these button names. Rather than having to copy and paste the same actionscript block and change the instance name 50 times. I've tried this._name (which actually gives me to the movie clip name) and a few other things, none which seemed to work. Most show up undefined. Anyways, any help on how to accomplish this would be very helpful, as I have 50 movies to this to, and most of them have well over 100 buttons...thanks
[F8] Button Instance
I have a lot of buttons in my library. They're all the same with only the text and url different. The buttons are text only with a font color change on the 'up'.
I thought I could make one generic button and just change the text of the instance. Thus I wouldn't have to go through each new button changing the text for each state. Very time consuming.
Can I do this?
Thanks
How To Get Button Instance Name?
i would like to get the instance name of button when i click on it, then i will get it's name.
i have a button--> btnTry as instance name.
then the code
Code:
on (release){
trace(this._name);
}
but i got nothing in output. appreciate your help
Get Instance (Button) Name
Hi,
I've been trying to get the instance name of the button the user clicks on to help make my code easier to manage etc, how do i get the name of the button they have just clicked on?
I found this code in the flash help, but I can't seem to make it work for a single button, the code here gets the name of every button on the time line.
on (release){
for (i in this) {
if (this[i] instanceof Button) {
trace(this[i]._name);}
}
}
Your help would be much appriciated!
Thankyou
Matt
Using Instance Name Of Any Button
Hi,
I've got a movie that loads images stored on the server in a seperate directory. I do this because preloading all of the images (some 500) would take an awful amount of time. I'm trying to optimize the process so instead of doing
on (release) {
pic = "image2.jpg";
loadMovie("images/"+pic, "_root.blankmovie");
}
for one button and
on (release) {
pic = "image3.jpg";
loadMovie("images/"+pic, "_root.blankmovie");
}
for another and so on and so on like 500 times, I'd like to make a global statement on main movie like
_global.pic = Button._name
and then for entire movie do something like
on {???everybutton???}(release) {
loadMovie("images/"+pic, "_root.blankmovie");
}
but I really have no idea how to tell the movie that the button I'm referring to is the one I just clicked. Any ideas? I'm open to a complete change of thinking here too. I'm kinda new to flash and may be in over my head. If you know of a better way to do this, let me know or if you just know the correct syntax of what I'm trying to do, I'd love some pointers.
tia,
dan
AS2 - Pass Movieclip Instance Name ?
I have a movieclip button on the main stage with an instance name of X. Essentially I just need to pass this instance name from the button to a function. At the moment I have:
Button code:
Code:
var X = _root.X.onPress = Delegate.create (this, buttonClick);
X.button = "X";
Button function:
Code:
function buttonClick ()
{
textBox.text = arguments.caller.button;
}
This works but as I have lots of buttons like this I have to create loads of vars, which is slowing down my movie. Does anyone know if there is another way?
Thanks!
[F8] Can't Change The Links Of A Button Instance... It Changes All The Button Links
Hello all...
I know very basic flash and i'm working off a template. In the template, there are a bunch of images and when you roll the mouse over it, it shows a hand symbol and a short animation on top of the image. Now when I go and change the action script link on the button, all the links within the flash file change. how do i make a change just to the instance of the button?
I've searched the forum but I'm not getting what to do... I need your help.
Here's what HUM said in a previous posting:
If you have a button with code on it that is inside a movieclip
and you then duplicate the movieclip to make other instances ...
then any editing you do to the buttons code will also affect the other instances....to avoid this ...make sure that you duplicate
the buttons as well......so there are new instances of them as well as the movieclips....and that they are all named differently..
obviously duplicating will increase the file size of the SWF and it will take longer to load. is there a more efficient way of doing this?
thanks a million in advance.
this is the code i'm using for the button:
on (release) {
getURL("http://flashkit.com
}
Button Control Of A Scrollpane
I want to know is it possible to control the contents of a scrollpane with a button. I have been reading and reading and found bugger all about this. If someone could tell me yes and briefly on how that would be great.
This is my first website that I am doing in flash, done heaps of other sites using flash content but never fully in flash. WHen I am finished will post a link and let u all see.
Thanks
Trent :P
__________________________________________________ __________________
"well smack my arse and call me Kinky"
Scrollpane And Button Active
I have a scrollpane, a movie clip which loads into it. this clip contains a few buttons. the scroll pane gives the buttons the hover and press states. I can controll these from they styles for the scrollpane fine. However there is no option for a active state that I could find. Is there any way to have an active state? I have tried everything I could think of and search high and low with no luck. so if I have three buttons and first is clicked it will remain as active till one of the others is clicked.
thanks dave
Scrollpane Button Problem
I'm having problems with directing the button to go to a new scene when the button is in the scrollpane. I've tried to look at other forums to see if they answers for it, but I have yet to find anything useful.
I have a several buttons that are in a scrollpane. I want each one to be directed to a new scene. I'm not sure if this would be helpful or not, but they are small images and converted them into a button. I also used the alpha and made it 50%... not sure if that is conflicting it to make it go to a new scene.
Here are the codes I have used so far:
on(release) {
_picmodaa.gotoAndPlay(1);
}
picmodaa is the scene that I want it to go to.
also:
on (release) {
gotoAndPlay("picmodaa", 1);
}
Why is it not working? Anyone? Please help ASAP. Thanks in advance.
Juan
Button In MovieClip/ScrollPane
Hey all,
I am having a problem with a button not working while in a movie clip that is being scolled with ScrollPane.
It goes as following.
Main Timeline > MovieClip(About) > ScrollPane(Which is scrolling the movieclip - Text which has the button on it.
Main Timeline
Movieclip About
Scroll Pane
Movieclip Text
What I am needing is the Movieclip(Text) to work when it is displayed by the scrollpane on the About Movieclip.
I hope that makes sense.
The action script is in the MovieClip (About)
In other words I need the Movieclip (Text) to communicate to the Movielclip (About)
I have tried to use the following code with no luck:
Code:
event.target.root.gotoAndPlay( "organization" );
Please help me out on this. I am probably overlooking something very simple. - Thanks
Accessing A Button Within A Scrollpane
HI,
I need to access a button i have in a movieclip that loads in a scrollpane.
This script is loading in the first keyframe of my scene. musica_mc is the movieclip that is within my scrollpane, and m1_but is my button:
import flash.display.Stage;
import flash.events.EventDispatcher;
import flash.display.MovieClip;
import fl.containers.ScrollPane;
//------------------------------------------
function musicaplay(event:MouseEvent):void {
this.gotoAndPlay("m1");
}
musica_mc.m1_but.addEventListener(MouseEvent.CLICK ,musicaplay);
//------------------------------------------
when i try to link myscrollpane. musica_mc.m1_but.addEventListener(MouseEvent.CLICK ,musicaplay);
i get an error. how can i access my scrollpane??
thanx for your help
Scrollpane Button Colors
Hi All. I'm trying to change the color of the scrollpane arrow buttons when I click on them. Right now it is a greenish color, which is nice but not what I need. I have read everything in kirupa forums about skins, styles and nothing works. I went to macromedia and have read all about skins and styles also and cant find anything. There are some.as files that contain color information for some themes, and I have tried modifying the colors in there but it doesnt seem to affect anything. Maybe I dont knopw what to look for exactly but this is awfully hard. You would think that there should be some options right in flash to be able to change all that easily but no. Also my help doesnt update, it keeps telling me that there are no updates to be downloaded, but I know there is cause my help is pretty incomplete.... So hehe if anyone has any ideas on how to change the colors for stuff in the scrollpane it would be very helpful.
Thank you very much
Ted
Scrollpane Button Colors
Hi All. I'm trying to change the color of the scrollpane arrow buttons when I click on them. Right now it is a greenish color, which is nice but not what I need. I have read everything in kirupa forums about skins, styles and nothing works. I went to macromedia and have read all about skins and styles also and cant find anything. There are some.as files that contain color information for some themes, and I have tried modifying the colors in there but it doesnt seem to affect anything. Maybe I dont knopw what to look for exactly but this is awfully hard. You would think that there should be some options right in flash to be able to change all that easily but no. Also my help doesnt update, it keeps telling me that there are no updates to be downloaded, but I know there is cause my help is pretty incomplete.... So hehe if anyone has any ideas on how to change the colors for stuff in the scrollpane it would be very helpful.
Thank you very much
Ted
Calling Button Instance Name
Hi All!!
I'm writing some actionscript for a button, but I can't get the button's instance name as a string? Anyone know how would I get the button's instance name into a string?? Sorry if this is a bit of a newbie Q.
thanks all
Button Instance Actions
This may seem like a dumb question but when I go to place an action on a button instance, (hit), for some reason my actions are all grayed our and I can't select. I'm trying to do a simple
button link to a url. Any clues?
Flash MX Button Instance Name
Hi
Just wondering, I made some buttons in my .swf, and I am exporting it as Flash Player 5, but when I export,its gives the warning of Flash MX Button Instance names are not supported with Flash 5 player. When I play the .swf in the player, all seems to work well. Will it be ok in a flash 5 player? I think so, but since my player is Flash 6, I'm not positive. Any info on this would be great!
Button Instance On (release)
my students and i are trying to insert a goto action on a button. our actionscript looks like this:
on (release) {
gotoAndPlay ("Scene 2", 2)
}
i personally have made this work in the past. now, though, i'm getting an error that says "Mouse events are permitted only for button instance on (release)".
we're using flash mx.
currently, all of us are getting this error. help!
Fading In An Instance Of A Button
I'm trying to have several buttons fade in during the beginning of my movie. The alpha setting in the color pannel does not seem to controlling the visibility of the instances of the buttons. Is there a different way to perform the desired effect, or am I not doing something that will fade the buttons in? Thanks.
Button Instance Name In Flash5
How do I give a button an instance name in Flash 5 ?? I'm trying to recreate this very simple tutorial : http://www.flashkit.com/tutorials/Ac...-766/index.php
But I guess this guy is using something else than Flash 5. I don't see the field where I can enter a name for the instance of my button.
Thanks
Getting A Button's Instance Name In On(release)
Just wondering if anybody know if there is a way of getting the button's instance name that was clicked inside the button's on(release) function. Similar to UI button where the component is pass to the event handler function, so you know what UI button was clicked. I can convert the button to a movie clip and use this._name to get the instance name, but just want to know if there is a similar way to do it with a button.
Flash 5 Button Instance Name
Hi,
I'm using Flash 5 and I need to hide a button at startup.
I can't seem to get a instance name for a Flash 5 button like in MX.
Normally I would write...
instanceName._visible = false;
.
I tried uisng a movie clip as a button. The visible property executes fine But, as you know the entire movie reacts to the movieclip mouseDown event.
I need help
Thank You
Ike Austin
|