Referencing Buttons (simple)
I feel like chump at the moment... you guys are the only ones i can turn to for a quick answer.
All i need to know is how to referrence buttons and assign actions to them. I don't want to put the code directly on the button instance, but rather referrence the button from an actions layer.
Here is what I had.
HTML Code: DRW.onRelease=function() { trace ("Hello")}
DRW is the instance name of the button.
Eek!
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 05-31-2004, 08:30 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Simple Referencing Problem
Having a problem getting data to display in my dynamic text fields. have a movieclip and onRollOver it laods a movie clip to the stage which has the dynamic text fields in it. but at the moment it just displays: _level0.popout1.add1 However if i put the movieclip on the stage and give it the same instance name ("popout") it then displays the values and not the above. At the moment it has been assigned an identifier of "popout" in the library. Can anyone explain why?
Simple Question About Referencing Forms
I have what I hope is a simple question. Could someone please provide a primer on how to reference forms (and things contained in forms) in AS2? Specifically, I am having trouble referencing a form loaded into another form. Here is my form structure:
Application
Form1
Form2
Loaded into Form1 is an swf containing another set of forms, with this structure:
NewApplication
NewForm1
NewForm2
So, how do I reference NewForm1 from Application and vice versa?
Thanks.
-Brian
Simple StartDrag() Referencing Problem?
Ok, this is simple stuff, I'm pretty sure I'm just being a complete nonce here but I just cant work it out....
Pretty simple, I have a function that's called from one point in the movie (I put a trace in this function so it is being called correctly). This function amongst other thing contains a startDrag() for a button. This button, when you click it, is what calls the function and also is the button that I want to make draggable.
The setup is like this:
_root -> MC1 -> MC2 -> button
So _root has in it MC1 which has in it MC2 which in turn has in it the button. the function code is on the _root timeline, and is called when you click the button and the button is also the subject of the startDrag() content of the function.
I use a with() command in the function to save a bit of code, in this case:
with(MC1.MC2){}
The startDrag() command in this with command this is then set like this:
button.startDrag(false, var, ious, para, meters);
Pretty straightforward huh? The problem is the button just wont drag! I cannot for the life of me work out why, its starting to drive me round the bend! I have also tried the old way of referencing:
startDrag("button", false, var, ious, para, meters); and also
startDrag(button, false, var, ious, para, meters);
I have also traced the boundary parameters to make sure they are right and even taken them away completely to no affect. My conclusion is I must be referencing the button incorrectly, but to me the code all looks good, can anyone else spot anything?
Referencing Buttons In A MC
I am having an issue with displaying HTML documents in a Dynamic Text box.
To better summarize it here is what I am doing.
I have a movie clip that contains my button objects. Now when I click a button in the movie clip I would like it to load content into a dynamic text box that is locate outside of the movie clip. It is located on the main timeline where I have the site I am trying to create layed out.
What I would like to do is either have the button in the MC when clicked call to a function on the main timeline, or have its output be on the main timeline. I keep running into errors with the function being undefined (when it is written ion the main timeline) or the dynamic text box not existing (when it is written on the mc timeline).
Any help would be greatly appreciated.
What Is The Simple Equivalent For Referencing The _root Timeline?
I've got a .swf (movie B) that gets loaded into a clip in my main movie(movie A). Movie B needs to control another clip within movie A.
In AS2, i would simply start off with a _global var on the main _root timeline, like this:
_global.home=this;
then, later in my seconday movie (movie B) i would reference that timeline simply like: home.myClip.gotoAndStop("whatever");
What is the simple equivalent for referencing the _root timeline? I've tried _parent with no results.
I'm looking forward to utilizing classes more, but for now I've got timeline code (on a single frame at least), with aspirations of moving toward a 'class-based' development style.
thanks for any help!
Simple Problem - Referencing Objects By Variable Name
I have a simple function that dynamically creates text fields. My text field name is referenced by var thisTextField. Problem is, when i try to do things with my text field, actionscript shoots back an error as such:
There is no property with the name 'text'.
How am i supposed to apply properties to my object if my objects name is a variable?
Code:
function showProducts() {
var products:Number = 0;
var thisTextField:String = "product" + products + "_txt";
for (var itemID in _global.rtsData[_global.rtsPos]["products"]) {
this.createTextField(thisTextField,1,25,75,350,50);
trace(thisTextField);
thisTextField.autoSize = true;
product+products+_txt.text = _global.rtsData[_global.rtsPos]["products"][itemID]["products_name"];
products++;
}
_root.products_mc.gotoAndPlay("fadeIn");
}
MC Buttons Within A MC Referencing Another MC Within The Same Scene....oh Boy
I have an array of buttons in a MC, these buttons are themselves MC's as they have RollOver and RollOut animations on them.
What I want to do is make these buttons reference another MC within my scene. I am using a controller for this navigation.
This is code I am currently using on the MC buttons:
onClipEvent (load) {
this.onRollOver = function() {
this.onEnterFrame = this.nextFrame;
};
this.onRollOut = function() {
this.onEnterFrame = this.prevFrame;
};
this.onRelease = function() {
this._root.main.play();
this._root.controller.gotoAndPlay(20);
};
this.stop();
}
and when I try to use the navigation I get the following error:
Target not found: Target="main" Base="_level0.controller"
I am getting a horrible sinking feeling that I have for gotten something very fundamently simple. This is my first big flash project and am still getting to grips with actionscripting and stuff like that.
I cant attach the file to this post as it is too big, even when I zip it. So if you want to see the file you can grab it from
www.excellence.co.za/Navigation5.zip
Thanks in advance to anyone who can offer advice/help
[F8] Referencing Buttons Not On Frame1
Hi, I'm hoping someone might be able to help me with my problem.
I have a movieclip(MC_2) nested inside another movieclip(MC_1). MC_1 is on the first frame of my main timeline. My actionscript is also on the first frame of my main timeline on its own layer.
My basic problem is that I can't seem to reference buttons in MC_2 if they are not on frame 1. I have also tried adding the code to the button but that doesn't work either.Is this something to do with the buttons not existing when the script is executed?
Can anyone help me with this?
Any help is much appreciated.
AS 2 Referencing Buttons Not On Frame1
Hi, I'm hoping someone might be able to help me with my problem.
I have a movieclip(MC_2) nested inside another movieclip(MC_1). MC_1 is on the first frame of my main timeline. My actionscript is also on the first frame of my main timeline on its own layer.
My basic problem is that I can't seem to reference buttons in MC_2 if they are not on frame 1. I have also tried adding the code to the button but that doesn't work either.Is this something to do with the buttons not existing when the script is executed?
Can anyone help me with this?
Any help is much appreciated.
Simple Problem - Referencing Object Array Properties
Sure this is dead straightforward. My flash creates a bunch of objects with x and y properties. These all get pushed into an array and then my .NET aspx page gets the array as an argument. This seems to be an ArrayList (although the documentation seemed to say it would be a HashTable) of ASObjects. How do I then refereence the x and y properties of the ASObject - is this what is now referred to as a Key?
Referencing Dynamically Created Buttons
I am creating a set of buttons from an array of information and need to know how to reference those buttons after they are created. I've clearly got some sort of syntax error and it's driving me nuts.
Here's the function (within a ProdSelectSystem class) that creates the buttons (which works just fine. The buttons work and do what they are supposed to do):
Code:
//--------------------------------------------------------------------
public function doInit(_systemData:Array):Void
{
systemData = _systemData;
listItems = new Array();
attachButtonItems();
}
//---------------------------------------------------------------------
/*
Attach a button clip for each data item in our systemData array
call init() on the new clip passing it an ID and data items
*/
private function attachButtonItems():Void
{
var exportName:String = "mcNLProdButton";
for(var i:Number = 0; i < systemData.length; i++)
{
var item:MovieClip = this.attachMovie(exportName, "Item_" + i, i);
item.init(this, i, systemData[i]);
listItems.push(item);
} //end for
} //end function
The problem comes when I try to reference these buttons later elsewhere. Since the instance name given in the loop via the this.attachMovie is "Item_" + i, I was under the assumption that I could use (for example for the _alpha property of the second created button) _root.Item_1._alpha. When I try that, however, I get "undefined".
I'd appreciate all thoughts on the subject.
TIA,
CP
Referencing Buttons Back To A Higher Layer
Hi
I'm having problems linking buttons back to a higher level in Flash MX.
I'm trying to link a button back to the original file from a movie that has been loaded into a layer on top of it (eg, layer 2, 3, etc)
For example:
My index page = layer 0
I want to load a movie onto layer 2. I need a button in that movie (on layer 2) which will take me back to the index page on layer 0.
All my attempts to do this have so far failed.
Can anyone help? (I'm sure it's something really simple I've overlooked)
Cheers
Rob
rjb@ace.edu.au
Problems Referencing Buttons From A Higher Level
On my index page, I have a movie clip with a series of buttons. The button(s) need to load a movie, which I've managed to do in 2 different ways:
1. By loading movies into a movie holder
on (release){
goToAndPlay("scenemain", "framelabel1");
_root.loadMovie("movie1.swf", movieHolder);
}
2. By loading the movie onto a separate level
on (release) {
_root.loadMovie("movie1.swf", level1);
}
Both of these ways work. However:
From the loaded movie (movie1.swf) I need to have a button which goes back to the index page EITHER:
a) By removing the movie which has loaded
Or
b) By linking back to the main movie on the Index page.
The following button code I've tried doesn't work:
on (press) {
_root["newclip"+(level-1)].removeMovieClip();
}
Can anyone help, or tell me what's wrong with this button code?
Cheers
Rob
Referencing Buttons From Class That Extends Movieclip
I'm attaching actionscript classes to my movie clips by extending the MovieClip class and specifying the AS 2.0 class in the linkage properties in the library – with the intention of having basically no code in the FLA.
This works fine and I can respond to events and reference objects contained within that movie clip by declaring a variable with the same name as the object's instance name in the class.
PROBLEM is that the object has to be present on the first frame of the MC, or the class just doesn't know about its existence. I have a short animation on the timeline, and then the btnOK button appears for the first time a few frames later. Problem is that I can't setup any sort of event handler or listener, because when the class is initialised on the first frame it doesn't seem to know about the button.
So in the below code... if the btnOK is on the first frame of the timeline, it traces, otherwise btnOK is undefined.
Code:
class myMC extends MovieClip {
var btnOK:Button;
function myMC() {
btnOK.onPress = function() { trace("clicked") };
}
}
Yeah sure I could place the button on the first frame and show/hide it as needed but that wouldn't be ideal and would make me want to vomit.
By the way, I'm talking about normal everyday button symbols, not the Button component.
Any ideas?
Cheers.
Referencing Author Time Buttons On The Stage?
I have some buttons on the stage that were manually placed during authoring. They all have their own instance names manually assigned already. I need to code them thru my Document Class. How do I get reference to them?
I know how to do this if I am placing them from the library at runtime, but not this way.
Thanks
Simple Buttons In A Simple MC
everything is so simple. a simple MC that contains some simple buttons. its a drop-down-menu. but the buttons wont work :S
im sure its something really easy... let's hope i'm right
Simple Buttons...not So Simple
ok I have a problem that is driving me insane. I have 3 buttons. No actionscript just simple, hover over- text appears, click button- sound plays. All 3 created the same way only different text and different sounds. Only 1 of the 3 works!! Nothing is over layed. I just don't get it. I have tried different sound, different text, different text placement, removing the other 2 buttons (leaving only one that doesn't work) My teacher has tried everything and still these simple buttons dont work. Please help!! (Again these are not actionscript!! Just simple buttons)
-HaPPyHeLL
A Simple One?: Buttons Within MC's
Hey all,
I'm having trouble getting a button embedded within a MC to communicate with a scene.
I've tried giving a frame within the targetted scene a label...nothing.
I tried giving the path e.g. _root.scene2.gotoAndPlay(1)
...again nothing.
Any ideas?
Note: I used AS to move the buttons from one position in first scene to another position in the 2nd and 3rd scenes.
Thanks.
Simple Buttons
Can someone help? I would like to make a button and I am lost as to how to do it.
Can someone go thru each step with me?
I appreciate any help I can get.
Thanks,
Simple Buttons
how do you make a simple button in a flash like to a url out side your site?
I know how to get a button but i don't know how to make t work?
Simple Buttons
i am basically very new to flash and i am already hooked. how do i make simple buttons like play, pause, continue, stop. i know this is very simple but please i need help!
thanks.
AS2 And Simple Buttons
what do I have to do to use a simple button vs. a component button. I've got a model view controller design for a clock (from the essential actionscript 2.0 book by Colin Moock) that I want to use fancy looking buttons for. The "startBtn" is a component and currently works, so I know the mvc relationship is set up right. The "testBtn" is a simple button with an instance name of test and doesn't work. Either I haven't registered is correctly or... I don't know what. Any thoughts or suggestions are welcome.
code
-------------------------------------
public function makeTools (target:MovieClip, depth:Number,
x:Number, y:Number):Void {
// Create a container movie clip.
var tools_mc:MovieClip = target.createEmptyMovieClip("tools", depth);
tools_mc._x = x;
tools_mc._y = y;
// Create UI buttons in the container clip.
startBtn = tools_mc.createClassObject(Button, "start", 0);
startBtn.label = "Start";
startBtn.enabled = true;
startBtn.addEventListener("click", getController());
testBtn = tools_mc.test;
testBtn.enabled = true;
testBtn.addEventListener("click", getController());
}
---------------------------------------
Help With Simple Buttons....
Alright... this has gotta be an easy answer... but I'm not sure how to do it...
I created four square buttons...
When I rollover them... on the "down" action I make it go from grey to orange in color...
When the button is clicked... it want it to move to the bottom of the page and shrink... but I want it to STAY orange so the person visiting the website knows they are visiting THAT section...
However, After I click the button... it goes back to grey
How do i get it to STAY orange???... I've tried a buncha things... and I don't want to trial and error anymore... So any help would be greatly appreciated...
This is probably really easy... but I can't reason it out right now... haha
... crap... now sitting here thinking about this... After I get it to stay orange... how do i make button 2 become orange and button 1 then become grey again when I click button 2...
Or in better english... How would I turn off the orange by clicking 2, 3, or 4...???
ugh... I made this harder now... it's late... or early... ugh.. i hope this makes sense...
Well if anyone knows the answer to either question... thanks alot... I'm going to bed... hopefully tomorrow monring I'll have an email...
Thanks
- Mikey
Simple Buttons
ok, this is so simple...
i make a button with ONE circle that drops down(5 frames)i make a transparent button on top of it... frames 5-10 is that circle going to the center of the stage...frames 10-15 is that circle going back to the bottom of it... at frame #5 i stop the animation... in the same frame i put a rollover(play) in the action script for the transparent button, that sends the animation to the frame #10 where i order it to stop... frame #10 has another order for the transparent button and it's a rollout(play) which send the animation through frames 10-15, adn at the end i order it to go back to the frame #5...
this whole thing works - circle comes down, you roll over - the circle moves to the center, you roll out - the circle moves down to the bottom.....
except for one thing - when you moove to fast across the button i guess the animation doesnt get to execute the "play" command that's triggered by the "onrollout" script in the frame #10 so my circle stays in the center untill you roll over it again....
what do i do?
Simple Buttons
I have a 3 frame file. I want the appropriate buttons to go to correct frame and stop. This code worked until I added the last function. When I added the last function "reflex", instead of stopping on frame 3, it goes into an endless loop. Please help. Thanks. Gretchen
stop();
function yoga(event:MouseEvent):void
{
gotoAndStop(2);
}
yoga_btn.addEventListener(MouseEvent.CLICK,yoga);
function home(event:MouseEvent):void
{
gotoAndStop(1);
}
home_btn.addEventListener(MouseEvent.CLICK,home);
function reflex(event:MouseEvent):void
{
gotoAndStop(3);
}
reflex_btn.addEventListener(MouseEvent.CLICK,reflex);
Simple XML Buttons
I'd like to set up my buttons so that the text is defined by the data in an XML document. I've done a search and I only find complex XML drop-down menus, which I don't need.
How can I simply use XML to define text within a button?
Thanks!
Simple XML Buttons
I'd like to set up my buttons so that the text is defined by the data in an XML document. I've done a search and I only find complex XML drop-down menus, which I don't need.
How can I simply use XML to define text within a button?
Thanks!
Simple Buttons Have No Effect
I have loaded movie2.swf into layer 1 of MainMovie.swf. using this code:
======================================
on (release) {
loadMovieNum ("movie2.swf", 1);
}
======================================
This works fine.
In movie2.swf I am using buttons from the shared libray of MainMovie.swf. These appear on stage fine but the actions attached to them seem to have no effect.
=====================================
on (release) {
gotoAndPlay ("two");
}
=====================================
With 'two' being a frame lable in movie2.swf.
Have I made this clear?
Can anyone suggest why this movie won't play properly.
I found that when I used a none shared button the code worked, what's wrong?
cheers
Len.
Simple Text For Buttons
Hey!
Im wondering what the easiest method to have a little textbox display a textmessage below you mouse-pointer while draging it above a button (ie. the effect you get with html, with the
PHP Code:
"<img src="blabla.jpg" alt="This text">" )
?
Using "on (rollOver){-something here-}" should do the trick, or?
Isnt there some easy standard function that I can put in the -something here- space?
Thanks.
Problem With MX Simple Buttons
I taught myself how to do alot in Flash 5 and even did presentations for my former employer. At my new job, i built some buttons for the website with the typical get url command in MX for the website. They work fine in explorer, but when I try them in Netscape, they will not work.
Also, when i try to make a button play, next, or any command, wether or not it is in the same timeline or another movie clip, it will not work.
Can anyone explain? I didn't think mx whould be all that different from 5 as far as functionality. I am running Windows 2000. Could that be what is causing the problems?
Really Simple Question To Do With Buttons
hi! I m a beginner at Flas and I wwas just wondering whether anyone could help me. I am making a simple web bpage using flash but I need to link all of my pages together. I want to use buttons on my page that link to my pages. How do I go about this and do i have to use action script? Please help if u can thank you!!!
Simple Actionscript And Buttons
I have a on (rollOut){} action on a button. In this button, on the 'OVER' keyframe, I have a movie. This movie is text that is animated and has a stop(); action for frame1. The animation is called About_Us_Anim. On frame 30, it has another stop command. From frame 30 to 36, it fades out to the original position.
Here is my delimma
I need the fade-out to happen when the mouse rolls off the botton. How can I use an actionscript to tell About_Us_Anim to play(); frame 31++? from the main button named About_Us?
I also have About_Us (button) telling this.anim1.play(); on rollOver();. When the mouse rolls off the button -- rollOut(){ }; how can I tell Anim1 to go to frame ## and play from there?
2 diff questions -- same problem.
Any help is appreciated.
--Will
Simple Scoll Buttons
Hello -
I'm trying to do a simple scroller -
I have a dynamic text box (ing) and next to it I have an up button and down button. These buttons will control the scrolling.
on (press) {
Move the text in _root.ing up or down dependng on the button pressed
}
how would one go about doing this?
Thanks in advance - I know it's simple...
Cole
Simple Buttons Question
hey,
I have a bunch of buttons on my site on the left hand side, and when you click them, an external swf opens. The problem is....after that button is clicked, i would like it to have a white rectangle behind it and have it stay there, so the users know's which link is he on. On "mouse over" i have a simple "white text effect" that plays.
Baljinder
This Is How To Make Buttons(the Simple 1's)
i am using flash MX(professional 2004)u should be able to follow me with any version of Flash. open up flash then press Ctrl+F8. choose button. this may not be easy to understand but i don't like making titorials i am only making it because when i was a so called newb i wanted to learn. getting on with it. after u chose button, you should be in a different screen, if ure not reed through again, anyway u should be in a new screen and u should be able to see 4 frames called, Up, Over, Down and Hit. don;t add any other frames after them. the Up frame is what u can see when absouletly nothing is being to the button, the Over frame is what u can see when the mouse is over the button, the down frame is what u can see when the mouse is being pressed, and the hit frame is the sensor kinda thing for the Over frame u don't see that frame in the button when the button is in the movie. ok draw a shape in the Up frame then click the Over frame and press F6 that should put the same frame in as the one be4 now change the color of the shape. then click the Down frame and press F6 and change the colour of the shape again. Now on the hit Frame just press F6 again, but if u have text on a shape delete the text from the hit frame, and it ure shapes for the first 3 frames of the button are text draw a chape around them on the hit frame so it doesn't leave any text out, but if ure not using text u don't have to worry about that.
if u r haing any other diffuculty with ure buttons email me
bboy_elmo@hotmail.com
u can ask me other things about flash and some things about Swift 3D or anything else.
Simple Question... Buttons
hi,
i am very new to flash and need help scripting a button to launch an email program (the default preferred). its a contact button. can anyone quickly help?
Iterating Through All Simple Buttons
I have a map of the U.S. I'm turning each state into a simple button. I want to iterate through each simple button instance and create event listeners for each simple button (rather than writing all that code 50 times). How do I do the iteration? This is what I have:
function addButtonListeners(btnInstance:SimpleButton)
{
btnInstance.addEventListener( MouseEvent.ROLL_OVER, handleRollover);
btnInstance.addEventListener( MouseEvent.ROLL_OUT, handleRollover);
}
addButtonListeners(Montana);
addButtonListeners(NewMexico);
(and so on 50 times)
There must be a better way!
Simple Buttons Question
I know this is a really simple question. But here goes.
I have a simple website that I'm trying to make to get into CS3 and for some reason I can't get the buttons working. They are just supposed to jump to a named frame and play. Here's the code for one of them.
home.addEventListener(MouseEvent.CLICK, clickHome);
function clickHome(event:Event):void {
trace("Home");
gotoAndPlay("Home");
}
Thank you for the help in advance.
Help With Simple Buttons Problem
Take a look at the buttons... I did the buttons animation for roll out and roll on placing MC's on UP (for roll out) and OVER (for roll on)... The problem is whenever I press these buttons to change to a certain frame, they reload once again doing that roll out animation... What i wish to do is that it only animates the roll out sequence when the mouse has already gone over the button and then rolls out... Take a look at the URL to understand what I mean...
http://unorthodoxmedia.com/MO3.html
Greetings!
PS: If you could attach an MX (ver. 6) .fla file explaining how to fix the problem, it'd be great.
Simple Question About Buttons
Hello All,
Does anyone know the actionscript for linking another html or flash page to a button. On release...something...something....
Big Problem With Simple Buttons
I have a strange problem, im creating my website and each sections is a external .swf that loads on top using this code
stop();
_root.about.aboutmask.gotoAndStop (2);
loadMovie("about.swf", "_root.about.aboutmask");
Then each sections has buttons that opens pop-ups.
If i go into the flash section the buttons work fine, but in any other sections they dont work unless I have click a button inside the flash section before..
Then they all work in each section???
Please if anybody has any suggestions the site is
www.eggmedia.org
below is the AS im using on the buttons
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "ants.htm";
target_winName = "ants";
width = 320;
height = 240;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
Making Simple Buttons
ive been trying to make a simple button but theres text on top of it! i need the text there but its
stopping the hit area of the button when the mouse is over the text! can anyone help with this?
Scroll Buttons(simple I Know...)--help Please
Can someone point me in the direction of a tutorial to scroll a text field down and up with the press of the 'down' and 'up' button? I realize this is very simple, so if you could be so kind to take 20 seconds and let me know, thanks! Take care.
Victor.
Simple Buttons Question
hey
Im a newbie to flash.So here it comes
I want my button to do several things.
So far it does
on (release) {
_root.contents.loadMovie("p1.swf");
}
How will the script look if i want to add lets say :
on (rollover) {
_root.contents.loadMovie("square.swf");
}
Great forum!
Simple Buttons Switching On And Off, Help
please see attached to see where i'm at...
http://www.upload2.net/page/download.../test.fla.html
i have about 25 buttons, i want each on to send to a different info page at the bottom and to go grey when pressed, if another button is press, it previously selected should go back to it's first state, sounds really easy but i can't figure it out. Cheers
Buttons With Links (very Simple)
i have some buttons that i've used "behaviors" to make links for just some pretty standard buttons, but upon opening the page Check out hotdogheavensandwichexpress.com it opens up to the urls mentioned in the behaviors without a click. should i have done this as an action script? they are buttons not symbols. thanks!
I Have A Simple Problem With Buttons... Please Help
Hello,
When you have a button, and you put something over it - in my case it is a transparent part of a bitmap - How do you make the button work through it? as in make the thing in front of it not block it?
I've literally hit a brick wall and am being a proper dummy. If anyone can help me with this stupidly simple problem I'd be really greatful!!
Thanks, TD
Help With Simple Buttons (odd Thing)
Hi!
This is the issue... I created a flash map divided into certain zones. When you click in each zone it takes you to a different web page (in the same window). It's an easy one. The thing is, when you go back (either if you press the "volver" link or the browser's back button) the map links don't work anymore. You have to reload the browser or type the page again. I've tested this in IE6 and IE7 in different computers and happened the same. The flash is embedded with swobject (in a class) to remove the annoying border every flash object has for default, but I really don't think that could be the problem.
If you wish to see how the map works you can see it here (it's in spanish): http://www.chocolatefondue.es/es/franquicias click on any of the available zones and then go back to see what happens. I really appreciate if anyone could help me solve this issue.
Later!!!
Really Simple Problem With Buttons.. Please Help.
Hey all, I am trying to set up two buttons, one that will step forward one frame, the other step backward one frame, all on the same timeline. The only thing I want to happen is for there to be a limit on how far back and forward the buttons can step on the timeline.
This is what I had thus far but was not working:
back_btn.onRelease = function() {
if(_currentframe>=32) {
gotoAndStop(_currentframe-1)
}
}
forward_btn.onRelease = function() {
if(_currentframe<=39) {
gotoAndStop(_currentframe+1)
}
}
So I stripped it down to this just to make sure I had the base of it written properly:
back_btn.onRelease = function() {
gotoAndStop(_currentframe-1)
}
forward_btn.onRelease = function() {
gotoAndStop(_currentframe+1)
}
and now it goes to a completely different scene alltogether! I have no idea why that is...
Anyone have any ideas? I would really appreciate it!
Thanks.
-D-
|