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




Duplicatemovieclip(s) As Clickable Buttons With Unique URLs (help)



Can anyone point me to a tutorial or an example of how this is done?

The best thing I've been able to find was done in Flash 4, and between the translation of the actionscript and the fact that I'm new to using duplicateMovieClip, I'm lost.

I already have a loop in which an array is filled with results, and would like to create buttons(mc's) which are just the text of these results, and have the onrelease action be a getURL() also assigned within the loop.

20 karma points to anyone with information leading to the arrest or capture of a solution to this one!



FlashKit > Flash Help > Flash ActionScript
Posted on: 03-12-2004, 08:17 PM


View Complete Forum Thread with Replies

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

I'm Not Able To Generate Unique Urls For Each Element
hi everyone,
Please check this code:


Code:
for (var i = 0; i < numOfItems; i++) {
// making sure mc's start with 'item1', not with 'item0'
var t = this.attachMovie("item", "item" + (i + 1), i + 1);
t.angle = i * ((Math.PI * 2) / numOfItems);
var url = this["url" + 1];
t.onEnterFrame = mover;
// load in image for this mc
t.icon.inner.loadMovie("" + (i + 1) + ".jpg");
t.r.inner.loadMovie("" + (i + 1) + ".jpg");
//t.path = url[i];
t.onRollOver = over;
t.onRollOut = out;
t.onRelease = released;
}

function released(){
getURL(url);
}
The numOfItems I have currently is 10. I'm passing query from an HTML page.

eg: flashmov.swf?noOfItems=10&url1=link1.html&url2=lin k2.html&url3....and so on.

The problem I'm having is that I'm not able to generate unique urls (ur1,url2...) for each element i.e. MCs. It depends on the no. of Items defined. If no. of Items defined is 8 then it'll sequentially place urls MC1 = url1=link1.html, MC2 = url2 = link2.html and so on...

I think I'm getting clear on this.

Thanks all. I appreciate all the help

Regards,
Soulfly

Buttons& URLs
I'm building a list of buttons for a friend's site, the buttons are all in a single flash document but is they're triggered, they lead to different parts of the site. Do I need actionscript, URL, or something else

URLs On Buttons?
I'm building a start menu for my friend's site, using several buttons
on a single .fla. Each button leads to a different part of the site. Personally, I don't know anything about this site, but how do I make links between these buttons and these different parts of the site?
Any ideas?

Buttons For URLs
I am trying to put 3 buttons in a frame. I want each of them to act as a link to Web pages. If I use just the code for link_btn_one it works great. If I include the code for the other 2 it doesn't work. What am I doing wrong?

Thanks,

Al


Here's my code:


var link:URLRequest = new URLRequest("

Please Help -- Duplicating Mc's To Have Unique Buttons
I am trying to make an updateable gallery by duplicating movie clips, and having each movie clip act as a button that when pressed willl load an image into an imageHolder. I cannot seem to assign a unique variable to each new movie clip. This is the script I have so far...

// make the duplicated MC invisible
this.button_mc._visible=0;

//the current movie being duplicated
current=0;
//how many buttons needed
imageCount=5;
//the space between each button
yIncrement=22;
// the initial offset
yOffset=this.button_mc._y;

this.onEnterFrame=function(){
if (current<imageCount){
var y:Number=current*yIncrement;
this.button_mc.duplicateMovieClip("button_mc"+curr ent, current);
this["button_mc"+current]._y+=y;
this["button_mc"+current].loadMovie("images/wedding/thumbs/image"+[current+1]+".jpg");

//this is where I am having a problem...
this["button_mc"+current].loader=["image"+current];
++current;
} else {
}
};

any help is greatly appreciated.

XML Menu With Unique Sub Buttons
I used a tutorial to create an XML menu, and it works great. (I didn?t use Hasan?s only because I don?t have Flash 8 here.)

The problem is that I cannot get the sub menu buttons to look different that the main menu buttons. Here is the code I am using:

Code:

// generates a list of menu items (effectively one menu)
// given the inputted parameters.  This makes the main menu
// as well as any of the submenus
GenerateMenu = function(container, name, x, y, depth, node_xml) {
   // variable declarations
   var curr_node;
   var curr_item;
   var curr_menu = container.createEmptyMovieClip(name, depth);
   
   // for all items or XML nodes (items and menus)
   // within this node_xml passed for this menu
   for (var i=0; i<node_xml.childNodes.length; i++) {
      // movieclip for each menu item
      curr_item = curr_menu.attachMovie("menuitem","item"+i+"_mc", i);
      curr_item._y = y;
      curr_item._x = x + i*curr_item._width;
      curr_item.trackAsMenu = true;
            
      // item properties assigned from XML
      curr_node = node_xml.childNodes[i];
      curr_item.action = curr_node.attributes.action;
      curr_item.variables = curr_node.attributes.variables;
      curr_item.name.text = curr_node.attributes.name;
      
      // item submenu behavior for rollover event
      if (node_xml.childNodes[i].nodeName == "menu"){
         // open a submenu
         curr_item.node_xml = curr_node;
         curr_item.onRollOver = curr_item.onDragOver = function(){
            var x = this._x + 25;
            var y = this._y + this._height;
               GenerateMenu(curr_menu, "submenu_mc", x, y, 1000, this.node_xml)
            // show a hover color
            var col = new Color(this.background);
            col.setRGB(0xf4faff);
         };
      }else{ // nodeName == "item"
         curr_item.arrow._visible = false;
         // close existing submenu
         curr_item.onRollOver = curr_item.onDragOver = function(){
            curr_menu.submenu_mc.removeMovieClip();
            // show a hover color
            var col = new Color(this.background);
            col.setRGB(0xf4dddd);
         };
      }
      
      curr_item.onRollOut = curr_item.onDragOut = function(){
         // restore color
         var col = new Color(this.background);
         col.setTransform({ra:100,rb:0,ga:100,gb:0,ba:100,bb:0});
      };
      
      // any item, menu opening or not can have actions
      curr_item.onRelease = function(){
         Actions[this.action](this.variables);
         CloseSubmenus();
      };
   } // end for loop
};

// create the main menu, this will be constantly visible
CreateMainMenu = function(x, y, depth, menu_xml){
   // generate a menu list
   GenerateMenu(this, "mainmenu_mc", x, y, depth, menu_xml.firstChild);
   // close only submenus if visible durring a mouseup
   // this main menu (mainmenu_mc) will remain
   mainmenu_mc.onMouseUp = function(){
      if (mainmenu_mc.submenu_mc && !mainmenu_mc.hitTest(_root._xmouse, _root._ymouse, true)){
         CloseSubmenus();
      }
   };
};

// closes all submenus by removing the submenu_mc
// in the main menu (if it exists)
CloseSubmenus = function(){
   mainmenu_mc.submenu_mc.removeMovieClip();
};

// This actions object handles methods for actions
// defined by the XML called when a menu item is pressed
Actions = Object();
Actions.gotoURL = function(urlVar){
   loadMovie(urlVar, "hold");
};
//Actions.message = function(msg){
//   message_txt.text = msg;
//};
Actions.newMenu = function(menuxml){
   menu_xml.load(menuxml);
};

// load XML, when done, run CreateMainMenu to interpret it
menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function(ok){
   // create main menu after successful loading of XML
   if (ok){
   CreateMainMenu(10, 10, 0, this);
      message_txt.text = "message area";
   }else{
      message_txt.text = "error:  XML not successfully loaded";
   }
};
// load first XML menu
menu_xml.load("menuxml.aspx");



Is there a fix to this code, or do I buck up, get Flash 8, and stick with Hasan?

Thanks[/code]

Linking URLs With Buttons
I am trying to learn Flash 5.0, and here's a problem that I CAN NOT fix:
I made a flash movie that is suppose to play when you go to my website, and in this movie I have made buttons linking to my different pages within my site. I know how to have my button link to another page by using the Get URL action. But when I go to test my button out, it will load the website and play the movie (with the button with links) and then automatically goes to the page that is linked to the button. I want to be able to click the button and then go to the linking page.
Now I dont know what the on (release)does, but I tried to type it in and it won't work it says that there are errors, does this even have anything to do with my problem? Can someone please try and help if u understand this.

Thanks
Michelle

Animated Buttons And Urls
So I'm making this site, and I've got a navigation bar with some animated Flash buttons I want to use as links to other areas of my site. I've got the animation part down of the whole process. Here's how I did it.
__________________________________________________ ________

I created a movie clip, and then within the movie clip I've got 2 layers. One with animation and the other with actions. The Actions layer has one more keyframe than my animation layer, so that I could add the stop() action to the beginning and end of the animation. That's all for the inside of the movie clip.

The movie clip as a whole had this actionscript applied to it on my main timeline:

on(rollOver){

gotoAndPlay(2);

}

on(rollOut, dragOut){

gotoAndStop(1);

}
__________________________________________________ ________

So now the animation only plays when a user rolls over it and stops when he doesn't. The problem is I'm not sure where to add the:

getURL("http://blahblahblah.com")

I always get error reports upon exporting it. I've added it to the movie clips actions. I've created a new layer within the clip and applied actions to one of the keyframes there. I'm not sure where it goes, but I'd like my buttons to do more than move. They need to be useful now. Think you guys can help?

Linking Buttons To Different URLs
Hi,

I am using this set of code for a complex button: http://www.kirupa.com/developer/mx20...ton_effect.htm

The last line of the code launches a new window with an URL. Using this code I have created a button. But I want to use the same button object in different instances linking to different URLs. For example as buttons linking to different pages in a Web site. How do I do that?

How To Dynamically Assign Unique Id's To Buttons
Hi there, I wonder if anyone can answer a question thats been bugging me for a while. All i want to do is create a bunch of buttons, each passing a unique id to a function when clicked. Something like this:

function createButtons() {

   for (var i=0; i<buttonArray.length; i++) {
      _root.attachMovie("button_mc", "button"+i, i);
      
     // some code to position the buttons
     _root["button"+i]._x = 0;     
     _root["button"+i]._y = (_root["button"+i]._height)*i;


     _root["button"+i].onRelease = function() {
         //  here is where i get a bit confused
         trace("button " + i + " was clicked");
     }
     // this doesnt work either
     // _root["button"+i].onRelease = doClick(i);

   }

}

im sure theres a really easy answer, Im probably not following best practice for actionscript coding , so any advice would be most welcome!
cheers,
James

Linking Buttons/graphics To Urls
Im fairly new to Flash, and have a novice question for you all.

I can't figure out how to link buttons to urls....

Any Ideas???

Thanks alot...

Adrian
beatz.com

Linking Buttons To Scenes And Urls
I want to play a transition movie (Scene 2) after a button is clicked in Scene 1, then go to the link. I got the transition to work, but if I add in the url, it skips the scene.

Dynamically Adding URLs To Buttons
I have an XML file that has a large group of buttons. (ex below)
code: <unitedstates>
<state name="WA">
<enabled>1</enabled>
<bordercolor>3F3F3F</bordercolor>
<color>336699</color>
<url>http://www.hotmail.com</url>
</state>
<state name="OR">
<enabled>1</enabled>
<bordercolor>3F3F3F</bordercolor>
<color>336699</color>
<url>http://www.gmail.com</url>
</state>
</unitedstates>
I want to be able to dynamically have each of those buttons go to the URL I specified in the <url></url> tag.

This is the code that I am trying to do as I loop through the XML file, but it's assigning it onrelease. I want to assign it at the beginning.

code:
for(var i = 0; i < xmlDoc_xml.firstChild.childNodes.length; i++){
var strURL = xmlDoc_xml.firstChild.childNodes[i].childNodes[3].firstChild.nodeValue;
eval(stateName).onRelease = function(){
trace(strURL);
getURL(strURL, "_self");
}
}

the problem with this is that it assigns the last URL in the XML file to the every button I click on. So in this instance, the WA button AND the OR button will both go to gmail.com because that's the last one it was assigned to.

How do I add the right URL to the right button in that loop and have it stick?

Thanks.

Edit / Input Urls On Buttons
Hello

I have a fla file, with menu ( 5 buttons) and I need to set the urls /destinations
but I have no idea how..

I use flash CS3.

Can someone please explain to me, how this can be done.

Regards,
Casper a.k.a total flash-noob

here is, what actions I can find on one of the buttons (not working): ( found in actions menu under "sprite 39" )

on (rollOver)
{
if (_root.link != num)
{
gotoAndPlay("s1");
}

}

on (releaseOutside, rollOut)
{
if (_root.link != num)
{
gotoAndPlay("s2");
}

}

on (release)
{
if (_root.link != num)
{
_parent["but" + _root.link].gotoAndPlay("s2");
_parent["but" + _root.link].b1.useHandCursor = 1;
b1.useHandCursor = 0;
_root.link = num;
if (_root.bg.bgPlay != true)
{
_root.bg.gotoAndPlay(1);
getURL("index.html", "");
}

}

}






























Edited: 11/20/2007 at 12:05:41 AM by xwishmasterx

Linking Buttons To External URLS
I have several buttons in my project that I want to link to Outside Webpages, what is the the action script to do so?

Example:
When Buttonx is clicked on http://www.x.com opens in a new window.

Thanks in Advance for an replies

Buttons Linking To Urls (error Msgs)
hello,
I have 5 buttons to absolute links w/in site:

on(release) {
geturl("http://www.mysite.com/contact.htm");
}

When I try to publish, I get this error msg:

**error** Scene=Scene 1, layer=contact,
frame=1:line 1: Mouse events are permitted only for button instances
on(release) {


This is true for all buttons.
Please help!
Thanks.

Help Linking Multiple Buttons To Different URLs In Flash CS3
I have a small flash movie with three buttons I would like to link to three different URLs. My code for these is below, however, when I test the movie there is a namespace error (copied below). I assume this is because both buttons are trying to use the same variable but I have no idea how to make this work in AS3.

Can someone please tell me where i need to make changes so the code understand that "thisButton" should take the user to URL#1 and "thatButton" should take the user to URL#2?

This is for my own site and I have to use AS3 as there is an FLV on it as well which requires AS3 to be viewed.


I appreciate any help you can offer in making this code work for both buttons.

THANKS



FIRST BUTTON

//when they click the "light" button go to the www.site/About page

this.lightButton.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
var url:String = "http://site.com/about";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
}
}
);

//---end "Light" button

SECOND BUTTON

//when they click the "phones" button go to the www.site/LISTEN page

this.phonesbutton.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
var url:String = "http://site.com/LISTEN";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
}
}
);

//---end "Phones" button



ERROR MESSAGES

**Error** Scene 1, Layer 'phones', Frame 41, Line 6: 1151: A conflict exists with definition url in namespace internal.
var url:String = "http://site.com/LISTEN";

**Error** Scene 1, Layer 'phones', Frame 41, Line 7: 1151: A conflict exists with definition request in namespace internal.
var request:URLRequest = new URLRequest(url);

Total ActionScript Errors: 3, Reported Errors: 3

Giving URLs To The Dynamically Created Buttons.
In the there is a dynamically created movie clip a navigation menu but i just can't find out how to give URL to the buttons dynamically created can someone show me how?thanks

Giving URLs To The Dynamically Created Buttons.
In the there is a dynamically created movie clip a navigation menu but i just can't find out how to give URL to the buttons dynamically created can someone show me how?thanks

Dynamically Set Target URLs On Movie Buttons
Hi all!
I'm trying to set dynamically target URLs on some movie buttons already created in design mode.
The URLs are defined in a XML file that is successfully loaded and parsed into variables. The problem resides on affecting the movie clip in order to link to a desired URL.

I've already tried to make this:

boxIdx = 0;
while (boxCurrentNode!=null) {
    boxSubNodes = boxCurrentNode.firstChild;
    eval("btnOrg_" + boxIdx).txtButton.text = boxSubNodes.firstChild.nodeValue;
    boxSubNodes = boxSubNodes.nextSibling;
    eval("btnOrg_" + boxIdx).onPress = function () { this.getURL(boxSubNodes.firstChild.nodeValue, '_self' } ;
    boxIdx++;
    boxCurrentNode = boxCurrentNode.nextSibling;
}

The text boxes are filled correctly but all the "onPress" events points to the URL of the last string on the XML file. It seems that the function created for each movie button is overwrited on all previous movie buttons...

Ideas?

Carlos - a LINUX addict!

Buttons Under Pop-ups Still Clickable
In the interface I am creating, i have pop-ups that are simply movie clips that load via button actions. The trouble is that even thought the pop-ups are over the original interface, they can still be clicked. I don't want this caus it makes the interface look really crappy!
Anyone able to help?!!
koi

Clickable But No Buttons
i am taking a printed catalog and making it interactive for a clients website. i am using flash 8 and have imported the jpgs into a template so that all i have to do is make the jpg a movie clip and then set up links on the page. for some reason certain spots on the page are clickable and take you to a random page on the website, but there is no button in the flash file. i clicked the background and there is no action script there either. i don't know how to trouble shoot it. any suggestions?

Non-clickable Buttons
hello. im working with some buttons and having external JPGS loaded on top of it, than user clicks to close the jpgs and select other thumbnails. but it seems no matter what i put on top of the thumbnails(buttons) they are still clickable.

no matter what i put on top of any buttons in flash, they are still clickable from above(the button choosing mouse icon shows up) is there anyway around this?

Non-clickable Buttons
hello. im working with some buttons and having external JPGS loaded on top of it, than user clicks to close the jpgs and select other thumbnails. but it seems no matter what i put on top of the thumbnails(buttons) they are still clickable.

no matter what i put on top of any buttons in flash, they are still clickable from above(the button choosing mouse icon shows up) is there anyway around this?

Non Clickable Buttons
How can I fix this: I have a button that opens a movieclip, in this case its a window with a close button. I want the other buttons in my movie to be non clickable until I have closed the window. And yes, I have searched in the forums.

Buttons Clickable Through Other Layers
i have a series of thumbnail pictures, which when clicked attach a movie from the library (w/ attachMovie()). the full size picture, which is loaded onto a level higher than all the thumbs, shows up fine (it is above the thumbnails). however, if one clicks on a thumbnail that is BEHIND a full size picture, it will read the click and load another full size pic, DESPITE the fact that the button is covered by a movie clip on a higher level. how i can i prevent this?

i.e. www.geocities.com/shassmir/pics.swf
www.geocities.com/shassmir/pics.fla

..russ..

Maps? Clickable Buttons?
I want to make a map in flash, similar to those at Neopets.com, but I don't know how. is it just to make the clickable items into buttons and try to hyperlink 'em? I don't know. ^^,
And, how do you display the .swf file at the page then?

[F8] Buttons Clickable From Behind The Movieclip ... Help
Hi all,

I've two buttons on stage, clicking any of them opens a movieclop on top covering the whole stage (movieclip contains image); it works fine, but the problem is; both buttons are still clickable from behind the image although it covers the whole stage (no button can be seen).

What should I do to not to let buttons click from behind the image or movieclip?

Clickable Hidden Buttons
I'm doing a site in flash and I've just encountered a problem: buttons underneath other layers (hidden buttons) are clickable (!) It's an abnormal behaviur. Or is something I dont know about ? I suspect there must be something about masks or alpha filling. Anyone had this problem befor?

Here is the link:
http://www.emagist.as.ro/bass.html
be patient its >600k and no preloader yet.

10q 4 help!

Clickable Areas In Mc Buttons
is there any way to make certain areas in a movie clip button clickable and others not? For instance, i have a shape and text inside the button but i only want the shape to be clickable and not the text.

Any ideas?

Thanks, Keith

Clickable Areas In Mc Buttons
is there any way to make certain areas in a movie clip button clickable and others not? For instance, i have a shape and text inside the button but i only want the shape to be clickable and not the text.

Any ideas?

Thanks, Keith

Buttons Still Clickable When A New Swf Is Loaded
Hi everyone,
I made swf1 and have placed buttons on it.
on the click of the button t loads swf2 but the buttons placed on swf1 are still clickable but invisible.
also how to close the loaded swf2 but putting a button on swf2 itself .
Thanks in advance.
Ankit
ankit.k.shrivastava@gmail.com

Swish - Clickable Buttons
I'm only new to Swish, but I'm stuck on something I thought was very simple. I have made a banner, and when a user clicks on it I want a new site to popup in a new window.

I thought something like this ...


Code:
on (press) {
getURL("http://www.test.com","_blank");
}
Should work, but it doesn't for some reason.

Any tips ?

AS3 - Clickable Buttons Under Other Displayobjects?
Something that just has to be possible. Is it at all possible to make a button clickable under another movieclip or sprite?

i've tried various things, and this simply does not work, the focus is always kilt.

Scrolling Movie With Invisible Buttons That Link To External URLs
I need to build a Flash movie similar to the one at www.avantafcu.org, which I'm assuming uses invisible buttons to link to the external URLs. How do I make the buttons travel with the movie as it travels to the left of the viewing area?

TIA for your help.

Buttons Still Clickable Through Loaded MovieClip
I have buttons on my main timeline and i load a movieclip into a container that is placed on a layer above those buttons.

The trouble is that when the new movieClip is loaded, the buttons underneath are still clickable - why is this i cant see them and they are still clickable.

I have also tried loading the external swf into a level of 100, but the buttons are still active underneath the loaded movieclip.

Thanks in advance


gilesb

Lower Level Buttons Still Clickable
I am sure I have solved this prob before but can't remember how and cant find a solution in the help files/tutorials

level0 contains a set of buttons that when level1 is populated with a full "stageful" of stuff including a solid background are still clickable through the stuff on level1! as a I do not wish to set about using button.enable for every possible button that may be on level0 (as what buttons are there will vary depending on when level1 was loaded) how else can I disable them all in one go?

any help would be appreciated greatly!

thanks

Buttons Clickable Through Movie Loaded On Top
http://www.flashkit.com/board/showth...hreadid=346862

In the above thread I explained that my buttons that load another movie on top remain clickable through the top layer. I've used a "parking" frame which is empty to hide them and it's been fine for 6 months on a LAN but we've found that we get stuck at the blank frame when using a 56k modem link. It occasionally happends over ISDN but rarely.

:-(

Buttons Clickable Behind Loadmovie Layer
Anyone else had this problem?:

When I activate a loadmovie, whatever clickable symbols that are underneath it are still clickable -through- the loadmovie layer. Is there a quick way to cover these up?

I tried using a 0% alpha button to cover them up, but I'd prefer it if the cursor didn't turn into the hand, but stayed as a pointer. Using a regular movieclip at 0% alpha doesn't seem to cover up links behind it.



Thanks to whoever has the answer!

Text Buttons, How Do I Make The Whole Bit Clickable?
So, I created some text, broke it apart, effected it, and converted it into a symbol. Now, when the cursor is over the text, it only turns into a little clickable hand thing when it is directly over the stroke. How do I make it so that the general region of the navigation text is clickable, and not just the actual lines of the letters?

Thanks!

Roger

How To Make Hover Over Buttons Clickable?
Hi,

I have the following problem:

I have a button which when you hover over displays 2 other buttons.
I want these button to be clickable, but as soon as the mouse leaves the first one, the two others disappear too quickly...

Sadly nothing I tried solved this, hopefully you know a easy solution!

Thanks!

[F8] Prevent Clips/buttons Being Clickable
Hi,

I have a clip within my main movie (the one in which I load other movies into) and when certain buttons are clicked I alter the alpha of this clip so as to visually darken (almost hide) everything beneath it.

My issue is that buttons and clips that are clickable beneath this clip are still clickable. Is there any way I can stop them being clickable when this clip is viewed?

Thanks

Buttons Clickable Behind Movie Clips
Hi all

I'm having a problem with buttons in my flash app that i'm building: if there is a movie clip in front of a button (see example below), the buttons are still clickable behind the movie clip. Is there a way to make it so that the button isn't clickable without manually disabling it? In the app that i'm building, there is a lot of buttons.

Cheers

Mark

(example at http://www.markdaviesmm.com/button_example.swf)

Making Dynamic Buttons Clickable
Hi

I am looking at this Adobe example for creating an accessible navigation list.

http://help.adobe.com/en_US/AS3LCR/F...xamplesSummary

How and where do I add operability to the buttons for a mouse click event? I figure I need to create an event listener for each child of CustomAccessibleButton... do I have to make the listener when I create it? I don't know how to reference each button after the method creates it from outside the class.

Draggable Menu - Clickable Buttons
Hi all, I've recently completed the draggable menu tutorial, now I'd like to add a little extra functionality by adding left & right clickable arrows that can be used as an alternative to the drag button.

Could someone explain the best way to go about doing this.

Thankyou

Adding A Non-clickable Background To A Set Of Buttons
Hi all,

I've created an as navigation panel similar to the one on google maps to navigate around a bubble chart created in Flex. The problem I'm having is that when there is a bubble(s) behind a button been clicked I end up selecting that bubble(s) as well!

What I'm looking for is some way to put a see-through background behind the nav panel so that bubbles in or around the buttons can't be selected? I've tried putting all the buttons on a canvas and placing also them all on a larger button but so far no luck! I still manage to select bubbles when clicking on a button!

Does anyone have any ideas how I might stop this from happening?

Thanks,
Derm

10 Flash Buttons Each Needin Linking To Seperate Urls In Html Page
I have a group of 10 flash buttons build in flash as a single flash element. I am using this in a html page however need each button on the flash to link to a different htm url. For some reason I cant make it work.

Could someone pease help me in how to do it. The webpage is www.kids-active.co.uk and it is the buttons down the left hand side.

Buttons In Scrollpane Not Clickable.....please Help......this Is My Last Time Bugging
I am having trouble here....

I am using Flash MX.

I have created a scrollpane with a list of pictures linked to it, that worked out great but my problem now is that its not responding when I click on it. Am I not referencing it correctly. If anyone can shine some light on this it will be great and I will stop bugging you guys all day. Thanks.

I have attached what I have done so far hopefully someone can see through my mess.

Its a bit messy, I'm newbie trying to teach himself some Flash.

Clickable Buttons On A Draggable Movie Clip?
I'm trying to create a draggable "map" graphic with clickable buildings on the map. My map is a movie clip with a graphic of a map on the bottom layer and a layer containing the buttons. The problem is, when I make the map movie clip draggable, the buttons become inactive. Is there any way to get this to work?

One solution I was thinking of was to put the buttons in a separate movie clip, and then just reposition the "buttons" movie clip whenever the map is repositioned, but that seems kind of cludgey to me.

Any ideas or help with this?

Thanks!
-Mike

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