PLease Explain How To Create These Buttons
http://www.2advanced.com
I am trying to re-create the buttons on the top.
I have my buttons, when the mouse is over, i want it to flicker like above.
I can make the button, and i can make a flicker movie (with alpha).
When i do Ctrl+F8 and create button, how do i make sure that the flicker comes above the button?
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 07-08-2003, 07:04 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash Buttons Have Gone Bananas. (issue Kind Of Difficult To Explain)
Hi.
Ok, so I'll cut the foreplay and get right to the main event...
Firstly let me apologize for how poorly I am going to explain this, since I have no clue what is happening. But I have uploaded the .fla and .swf files for you to see. Link is at the bottom of this post.
I've created a flash webpage, with four buttons.
The buttons are images, with a movie clip as the roll over.
But what seems to be the problem is that something from the buttons has created little links all over the page, which are connected to the four main real buttons.
But when I search through the .fla I see no linked/button symbols in these areas.
Here is an image of the areas with these phantom buttons.
It's kind of difficult to explain.
Example: The button is in the center of the page, and works fine. But if a move my mouse around to other parts of the page there seems to be phantom invisable links, that are some how connected to the button, since when I roll over these 'phantom' links the movie clip animation for the button starts.
Below is a link to the zip file containing the .fla and .swf of the project I'm working on.
-- Link to .fla and .swf files --
Any help will be much appreciated, and let me apologize again that I couldn't explain it better.
Thanks in advance.
Lots of love.
- Chris
EDIT: A couple cigarettes later, and a few bangs of my head against a hard concrete wall and I have discovered that the problem has to do with the movie clips that I have for the roll over.
I tried to just cover the affected areas with the box tool, making the box transpartent, but that didn't work.
How To Create Buttons On The Fly?
Hi,
This is my plan: a Flash movie reads an external file like this named myMenu.txt:
option01=HOME&option02=EMAIL&option03= ... etc.
Now I want to create buttons on the fly with the caption of the buttons read from the txt file. This means that the first button will have the HOME captio in this example...The main question is, how can I create an instance of a symbol, movieclip or button RUNTIME.
Thanks in advance!
Baseman
How Do You Create Buttons (.jpg) ?
Hello! I'm very new to flash and would like to know how do most people draw/design their buttons?? Are you using Photoshop? or some other software? I'm having a hard time
Create Buttons On The Fly
how would i generate 10 buttons on the fly, and give them all the same source code, but a variable is changed.
For example, for button #1, the source code would be:
on (release)
{
gotoAndStop(1)
}
for button #1:
on (release)
{
gotoAndStop(2)
}
so, for example, just the frame number would be equal to the button number. But these buttons need to be created on the fly. so how would i go about doing that?
How To Create Tab Buttons
I want to know that how can I make this type of tabs and load images and text from database with ASP
http://www.northchurch.org/AIDS/index.html
How Do I Create Buttons Like...?
Check out this site: http://www.fluidesign.com
I like how they did their buttons and I'm curious to know how this was done. I assume they used scripting for the motion (since it moves so smoothly) but also I like how a button, once pressed, stays that way until another button is pressed. I'd appreciate any help on how to achieve something similar to this. Thanks!
How To Create This Type Of Buttons?
Ultrashock buttons.
Hi,
I just want to create and understand buttons for my menu as the way ultrashock.com created their menu buttons.
You know -home,entertainment etc.-
P.s: I don't want to copy them I just want to create buttons with similar highlight effect.Could anybody explain it to me?
Can´t Create Buttons In New Document?
Hi,
my problem: I can´t create buttons in a new document. Using the document that is given for the "button-lesson" (button.fla) I haven´t got any problems, I can modify the button that is already there and I can create new ones, too.
But everytime I try it in a new document, it doesn´t work (touching the surface of the button doesn´t change the button, neither makes that the mouse becomes a hand).
I know it should be VERY simple, but I just can´t find the mistake, so here a brief description of what I do (using Flash MX):
1) Insert New symbol
2) draw some kind of button
3) add keyframe in the timeline for over
4) change color of the button while keyframe "over" is selected
5) same with down
6) return to stage and drag the button from the library to the stage
Thanks for any help!
Daniel
Create Menu Buttons
In my website I am trying to design a few menu buttons with text next to them. These buttons are similar in style to the ones included in the FLASH MX tutorial (stiletto.fla). When the mouse moves over them they "fill-up" with color from bottom to top.
Anyway....what I want to know is: is it possible to put text next to the button and make it animate in a way that when people move over the text, the button next to it animates (in the way explained above).
I hope this is clear enough....
Thanx to anybody who will be able to help me!
Stefano S.
Dynamically Create Buttons?
Hi,
I am creating text dynamically using createEmptyMovieClip() and createTextField(). This works fine, but I want to be able to perform actions when someone moves over this text, as well as have the text be able to link to other scenes in my movie.
The only way I can think of to do this would be to create buttons overlaying the text on the fly as well. But I can't find any info on how to do this.. if it's even possible.
I've attached my .fla here for anyone that would like to have a look to see if they can solve my problem.
Can I Create Buttons With Actionscript
so...i know how to create an empty movie clip and such ....but how do i make them buttons or create a button
please let me know, none of my books tell me and i tried to search for it
Create Buttons At Runtime
hello again guys! does anyone know how to create buttons at runtime? i mean not the component btns but the common ones.... that would be helpful
thanx in advance
Create Radio Buttons With AS Only
How do I create Radio Buttons with AS only?
I searched the reference and found the RadioButton and RadioButtonGroup classes, but somehow I have no idea how to create and group them and add them to my mc.
My approach would be somehow straight forward like this:create an instance of RadioButton 1
create an instance of RadioButton 2 [...]
somehow group them
set coordinates realtively to the parent mc
Wrong approach?
Best Way To Create Dynamic Buttons?
Hi, another "newbie" question I think...
I'm creating an Internet app in Flash that will use several types of screens, and the main user-control element is buttons (For OK, Advance, Play, etc.)
The standard button "component" doesn't work for me, because I need a very specific graphical look, with close control over the exact placement and operation of an icon on the button.
So basically I want to "roll my own" buttons, using the Button object with my own graphics, and placing a caption and icon(s) on top. The buttons need to be dynamic, too, so I can create and delete them at will, change their captions, icons, etc...
What is the best way for me to go about this, architecturally? My ideas so far:
1) Use symbols for the buttons, and programatically create labels and graphics to put on top of them. Possible, but highly annoying, since I have to keep track of the positions of 3 elements together, for adding, deleting, modifying... I tried putting the label and graphics in the symbol, until I realized that you can't modify an individual instance...
2) Create my own component. This looks like a huge hassle, though, that I'd rather avoid.
Really, I'm just looking for a simple way to create and modify buttons dynamically with my own special graphics, ideally without all the overhead of components and everything... Are these two the only possiblities, or am I missing something else?
Thanks
Michael
How To Manually Create Buttons...
I have seen tutorials on how to manually create buttons using Movie Clips and then changing the properties to track it as a Button.
I tried to use the tutorial but it seems like the MX 2004 version doesn't look the same way or the tutorial was wrong. Do any of you know how to manually create buttons using a Movie Clip in Flash MX 2004 or know of any tutorial that explains this?
The reason I want to do this is to use the on (RollOut) effect in order to display a motion tween.
Thanks
Mike
How To Create These Animated Buttons?
I have been trying to create rollover buttons.
When the mouse is moved over a button an animation is played.
I am just not having any success.
Can someone show me how they are created please?
I am a basic user in Flash MX.
Thank you
Bash
Can You Create Buttons Using Only Actionscript?
Is it possible to create buttons using only actionscript? If it is, would you be kind enough to point me in the right direction of a tutorial or such that could explain it to me? Just figured out how to use createTextField today and wanted to see if there was something similar to that for buttons.
Thanks for the advice.
[Flash8 AS2] Create Buttons With AS2
Hello, I got this code from a book, but cant understand why do I need the second var to create and show the buttons.
To resume, this code creates four buttons just with AS.
Shouldn't just one var should be enough?
I tried with just one var, but it just show one button, instead the four of them.
Thanks.
var baseMovieClip:MovieClip = _level0;
var tempMovieClipHolder:MovieClip;
for (var i:Number = 0; i < 5; i++)
{
// Create a movie clip
baseMovieClip.createEmptyMovieClip(“buttonClip” + i, ;
baseMovieClip.getNextHighestDepth());
tempMovieClipHolder = baseMovieClip[“buttonClip” + i];
// Assign an ID to a timeline variable tied to the button
tempMovieClipHolder.buttonID = i;
// Draw something inside the button so it can be seen and clicked on
tempMovieClipHolder.lineStyle(1, 0x333333);
tempMovieClipHolder.beginFill(0x6666AA);
tempMovieClipHolder.moveTo(0, 0);
tempMovieClipHolder.lineTo(50, 0);
tempMovieClipHolder.lineTo(50, 25);
tempMovieClipHolder.lineTo(0, 25);
tempMovieClipHolder.lineTo(0, 0);
// Position the button
tempMovieClipHolder._y = 10;
tempMovieClipHolder._x = i * 60 + 10;
// Make the button clickable. Pass along the ID that was assigned
// to the button’s timeline
tempMovieClipHolder.onRelease = function()
{
handleButtonClick(this.buttonID);
}
}
function handleButtonClick(buttonID:Number)
{
trace(“Clicked on button number: “ + buttonID);
}
Trying To Create Dynamic Buttons In AS3
Hi everyone,
still continuing to fumble my way with as3. I'm trying to write a class that will create my movieclip buttons dynamically, and assign some text to a dynamic text box inside it, based on the argument I pass to the method in this class. I've got a movieclip in my library with the linkage shown below -
And I've got this so far in its own AS file -
Code:
package com.willgoldstone.tutorials {
import flash.display.MovieClip;
public class Mybtn extends MovieClip{
public var btnName:String;
public function Mybtn(n:String) {
btnName = n;
create();
}
private function create(){
trace("new button that is named "+btnName+" has been made, thank you");
var button1 : MovieClip = new MovieClip();
addChild(button);
button1.textSnapshot = btnName;
}
}
}
And on frame 1 of a new as3 FLA file, I have this -
Code:
import com.willgoldstone.tutorials.Mybtn;
var button1:Mybtn = new Mybtn("Winnifred");
Its giving the following errors in output -
And I'm really not sure what this all means!
All I want to do is instantiate a copy of this movieClip in my library and assign a value to its dynamic text field.. should be fairly simple?!
Any help really appreciated!
Many thanks
Will
How To Manually Create Buttons...
I have seen tutorials on how to manually create buttons using Movie Clips and then changing the properties to track it as a Button.
I tried to use the tutorial but it seems like the MX 2004 version doesn't look the same way or the tutorial was wrong. Do any of you know how to manually create buttons using a Movie Clip in Flash MX 2004 or know of any tutorial that explains this?
The reason I want to do this is to use the on (RollOut) effect in order to display a motion tween.
Thanks
Mike
How To Create These Animated Buttons?
I have been trying to create rollover buttons.
When the mouse is moved over a button an animation is played.
I am just not having any success.
Can someone show me how they are created please?
I am a basic user in Flash MX.
Thank you
Bash
Dynamically Create Buttons
I need to create x number of buttons depending on how many rows there are in a database. I've been searching the net for a few days now and found a couple of tutorials, but none of them worked. Any ideas?
How Do I Create Start Stop Buttons?
I need to create start stop buttons for a flash movie that contains only music. It's for samplers for songs by my mates band (I'm bulding their site.)
Please help I know very little actionscript!!!
Trying To Create Buttons Form My Site...
Ok, i have my button design. They're is the actual button design, plus text i made to a symbol, and it's 10% faded out. I want to do this - When your mouse rolls over it, i want it to fade into 100%, and make it a hyperlink. Then (if possible) when the mouse rolls off it, i want it to fade back out and make a sound.
Thanks for reoplying!
How Do I Create Reusable Elements (buttons)?
Hi,
I am not entirely new to Flash, but I haven't got familiar enough that I can create efficient (reusable) designs.
The issue that I am facing right now is how to create a button template that I can use throughout my flash movie without recreating a new one each time. I would like to be able to modify the template so that all buttons created from that template could cascade the change. THe only difference between the different buttons is the button text.
In the OO world, I would do something like button = new funkyButton("buttonMessage");
How can I do this in Flash in order while keeping the same keyframes?
Thanks for any pointers.
aminefoo
Dyn Create Buttons And Its Landlers Problems
i want to create buttons handlers dynamicly for each button his own handler dynamicly and this is the code i am stuk in
var dwnspeed=20;
for(i=0;i<10;i++){
eval("_root.l"+i+".bb").onRelease = function(){movdown(i);}
}
/*
l1.bb.onRelease = function(){movdown(l1);}
l2.bb.onRelease = function(){movdown(l2);}
l3.bb.onRelease = function(){movdown(l3);}
l4.bb.onRelease = function(){movdown(l4);}
l5.bb.onRelease = function(){movdown(l5);}
l6.bb.onRelease = function(){movdown(l6);}
l7.bb.onRelease = function(){movdown(l7);}
l8.bb.onRelease = function(){movdown(l8);}
l9.bb.onRelease = function(){movdown(l9);}
l10.bb.onRelease = function(){movdown(l10);}
*/
function movdown (letter) {
frstpos = getProperty(eval("l"+letter), _y);
var downlimit=100;
l2.dofun.onEnterFrame= function() {
pos = getProperty(eval("l"+letter), _y);
if (pos<downlimit+frstpos) {
setProperty(eval("l"+letter), _y, pos+dwnspeed);trace(letter);
}
}
}
then the thing is hapen is the all buttons takes the same "letter" value so all buttons has the same function parameter so all do the same thing which is undesirable thing (the files is attached and all scripts in the .as file)
thankx to all of u
How Do I Create Moving Buttons In Menu
I have a typical set of four buttons arranged horizontally to create a menu. When the user clicks any of the buttons, the clicked button needs to move to the first position. When clicked, the clicked button needs to move to a y position slightly above the the rest of the buttons. Simultaneously, the button currently in the first position needs to move to a y position slightly below the rest of the buttons. Next the remaining two unclicked buttons need to move together (if they are not already together) opening up position four. Next, the clicked button moves horizontally to a position directly above the first position. Simultaneously, the button that originally occupied position one moves in the opposite direction horizontally to a position directly below position four. Finally, both of the bottons will move vertically in the respective directions necessary to position themselves next to buttons in position and three.
Since the buttons may originate from a different position each time clicked I need to use a series of conditional statements to determine which direction to move and how far. For some reason I only see the end result of the conditional statements and not the actual movement. What do have to do to see the movement?
New And Want To Learn How To Create Flash Buttons
Hi every body im here to learn and create flash buttons as u mite have seen at this site flash buttons im very new to the hole flash thingy so if u could add me to your msn or just send me a basic easy tutorial on how to make these buttons that would be great ohh yeah and what program do i need for this fash buttons.
Regards
Mattyfinster
Create Radio Buttons In A Loop
I don't know where to go for this one. I want to create your basic multiple choice problem.( question: A, B, C, D)
I have an array of options that I will be getting from a dataset. There are going to be about 4( could be 5 could be 3 depending on the problem).
Is there a way that I could do something like this:
myArray:Array = new Array();
// get all the values and push them into my array
while(myArray is not at the end)
{
create a new radio button with the corresponding data
}
Does anybody have any suggestions?
Create Buttons At Runtime? Vanishes?
Hello!
Im trying to create some buttons at runtime... flash 8.
The idea is to load some external file (here a .jpg) and turn it into a button, for what ever use.
For this i used the code below (from macromedia), but when the button is pushed, it disappears...??? Why? With just the trace command, its ok, but with everything else, its gone...
Any ideas??
Code:
code:
// Creates a parent movie clip to hold the container.
this.createEmptyMovieClip("my_mc", this.getNextHighestDepth);
// Creates a child movie clip inside of "my_mc".
// This is the movie clip the image will replace.
my_mc.createEmptyMovieClip("container_mc",this.get NextHighestDepth);
// Use MovieClipLoader to load the image.
var my_mcl:MovieClipLoader = new MovieClipLoader();
my_mcl.loadClip("somePicture.jpg", my_mc.container_mc);
// Put event handler on the my_mc parent movie clip.
my_mc.onRelease = function() {
// trace("It works");
_root.createEmptyMovieClip("someClip",this.getNext HighestDepth);
someClip._x=200;
trace(someClip._x);
};
How Do U Create Buttons That Output Text?
Hey im new to this site and relatively new to actionscript and am seriously struggling on tryin to create buttons which will output text. For example create an "A" button that when u press makes an "A" appear on a text field. I am trying to make an interactive keyboard on Flash 8 and its just not happening!! pleaaaaase if anyone knows how to do it, could u let me know asap...thanx!
I Wanted To Create Dynamic Buttons 1 And 2
hi
i wanted to create dynamic buttons 1 and 2
and when i click the button 1 image appears and also for the 2nd button another image.
images should come from xml
and there is a zoominng button to zoom the image and the normal button to bring back the image to 100 %
im doing a project
will anybody help me out
writing some code for it
Create Buttons Based On XML Data?
Hi all,
I'm trying to figure out how to make a button (basically just clickable text) with AS that gets its text form an XML file, and also has an onRelease event that is defined based on data from the same XML file.
I'm using XPath to get the data from a list and loop through each instance and create a button for each one retrieved, but I don't actually know how to create the buttons ith the data I'm retriveing from the XML file.
Would anyone know where to start on that?
Thanks!
Importing Text To Create Buttons
Is it possible to create a text field for buttons that pulls a line of text from a text file to create the button text? For example, if I want a button to display the text "Ethnic", can it pull the word "Ethnic" from a text file thus allowing anyone to change the text of that button by simply editing the text file? I did much looking but can't find if it's possible.
Many thanks in advance,
Rob
How To Create Buttons Outside The Stage Area
I am able to create my flash project and make it function they way I intended, however, I need to be able to place the buttons, that control the flash, outside of the flash stage, in a different location on the web page, is this possible ?
How Do I Create Play And Stop Buttons?
i have made a banner for my website which has some mp3 playing in the background.
i want little 'play' and 'stop' buttons underneath it so that they play and stop the music in the banner.
they can be part of the banner but preferably not.
the music in the banner is the only music/sound effect on the page.
so, what do i do?
Create Smart Menu Buttons
What I want to achieve is to create six menu buttons that fade out once I hit on button. Let's say I have
home, news, about, work, contact, guestbook
Hit news and all other buttons fade 90%, then. When I move the mouse over the other again they appear with the link color. Let's say red.
I was thinking to create six different buttons (mc1, mc2...) and tell target them. But I was hoping someone else may be have done similar stuff and can share action-scripts on this.
TIA
Dave
Create A Pause And Play Buttons
Hi i have got 2 files 1) shell.fla and 2) box.fla. The shell.fla will load the box.swf.
I need to create a pause and play button in shell file to control box.swf.
My box.fla is built in such a way whereby it is moive clip within movie clip within movie clip therefore i cannot use the stop() script to control it.
Please help.. i needed a button that stop and play all movie clips.
Thanks
Dynamically Create Buttons From XML File
I've got container clips positioned on a map where buttons need to be placed ...The container clips are named button0, button1, button2, etc. all the way up to 109, the total number of "status" entries in my XML file. I have 4 buttons in my Library which need to be assigned to lots on the map based on "status": Sold, For Sale, Ensemble, Other. How do I go about automatically attaching movie clips to those container clips based on the info in an array?
Here's what I have so far, with one of my hand coded buttons to show what I need it to do:
ActionScript Code:
var lotStatus_array:Array = new Array(); /*this sets the variable for the array that keeps track up Lot Status (sold, Ensemble, pending, etc.)*/
var PathToButton = _root.mainMap.map.pan; /*path to the movie clip the Buttons are laoded into*/
/* This sets variable for the popup window function
that is called by all the buttons on the map.
This way I don't have to type it out each time */
var popup = function()
{
_root.createEmptyMovieClip("lot35_mc", _root.getNextHighestDepth());
_root.lot35_mc._x=20;
_root.lot35_mc._y=20;
_root.lot35_mc.attachMovie("lot35", "lotinfo", 1);}
//end popup variable
//Generate Buttons Status for lotplan, based on XML file
function GenerateButtons(xmlData){
nTotalButtons = xmlData.firstChild.childNodes.length;
//fill arrays
for (var i = 0; i < nTotalButtons; i++) {
lotStatus_array.push(xmlData.firstChild.childNodes[i].childNodes[4].firstChild.nodeValue);
}
//create the info buttons:
var button1A:MovieClip = PathToButton.button1.attachMovie(lotStatus_array[1], "INFO", PathToButton.getNextHighestDepth());
button1A.onRollOver = function() {
_global.Xlot = 1; } /*this sets the Child node value so the popup window knows which lot information to pull from the XML*/
button1A.onPress = popup; /*this calls the varialbe set above, which opens the info box */
I've got 5 additional maps to do, so is there an easier way for me to attach these several hundred buttons, or do I need to go ahead an start a fresh pot of coffee and start coding?
Thanks in advance!
rvt
PS...why is my [as] code not appearing in a box? it appeared in a box, with scroll bars when I previewed the message before posting...odd... should I use [code] brackets instead?
Create Buttons And Paste Into Different File
Hi all, is there anyway I can create a seperate flash file, really just for ease, create all my buttons alongside action script. Once achieving this paste it into my main file. The reason being I feel it is easier to work on one area, as I am finding it difficult to work with everything in one scene. This would be a big help in the production stage with the know how, can anyone help me here?
Trev
Create Smart Menu Buttons
What I want to achieve is to create six menu buttons that fade out once I hit on button. Let's say I have
home, news, about, work, contact, guestbook
Hit news and all other buttons fade 90%, then. When I move the mouse over the other again they appear with the link color. Let's say red.
I was thinking to create six different buttons (mc1, mc2...) and tell target them. But I was hoping someone else may be have done similar stuff and can share action-scripts on this.
TIA
Dave
BUTTONS: Problem With An Effect Im Trying To Create...
Hey,
I want to make a button, that when you put your mouse over it, it creates an animation, for example, that the BG color of the button fades from white to #999999 grey. Thats the easy part, BUT, when a user clicks the image, after clicking it, the "mouse Over" effect of fading from white to grey repeats, when i want it to be, that when you click it, it still remains grey the whole time, untill you take the mouse off the button. An example of what i want to do are the buttons @ http://www.port-all.com/v4. The buttons at the left hand side (Order Now, Become a Member, Hosting Solutions or Link to port all)
So that when you click them, it doesnt go back to the "mouse over" effect, just stays grey in my case.
Thank you
Create Buttons Out Of Existing Stuff On Scene?
I have a screenshot that I am using on a scene. I want to use something that is in the screenshot as a button. How do I turn it into a button? I tried using the lasso tool and selecting the area and converting to a symbol but the option to convert it to a symbol is greyed out. Is there a better way to do this? Any help would be GREATLY appreciated.
Thanks,
~*~*DEANNE~*~*
Is It Possible To Create Buttons Inside Scrolling Text Box?
Hi -
I have built a scrolling text box. I want it to act as a menu for other parts of the site, so that it's contents can contain links, and even call functions. But, I can't seem to figure out how to do it, or even if it is possible.
Any suggestions?
Thanks!
Jeff
Anyone Know How To Create Code For Buttons Instanced In Runtime Using AS2.0?
Hi.
I wanted to create three events that worked with buttons I've already created, but which I'll make instance copies of during runtime.
They're navigation links, which will have a mouseover, mouseleave and buttonUp events.
I could have this information in an XML file, for the number of button instances to create, and a record for each one giving the mousOver text (or button text) and were to navigate to when the button is clicked.
I think I have to set up "Listeners" for this? I'm not sure if thats right. I've found one tutorial similar to this, on www.ultrashock.com, its basically a program with NO code in the .fla file, all of it is in .AS files. I'm not sure if thats were I needed to go.
Any advice or links to sites/tutorials that might help out some?
Thanks
How Do I Make Buttons Create Popups In Flash?
okay I know how to create a pop up window usually with the code:
<a href="#" onClick="MyWindow=window.open("'index.html','MyWin dow','toolbar=no,location=no,directories=no,status =no,menubar=no,scrollbars=no,resizable=no,width=60 0,height=500,left=240,top=100'); return false;">
But how do I do something like this in Flash? Create a popup window when I click a button?
How Do I Make Buttons Create Popups In Flash?
okay I know how to create a pop up window usually with the code:
<a href="#" onClick="MyWindow=window.open("'index.html','MyWin dow','toolbar=no,location=no,directories=no,status =no,menubar=no,scrollbars=no,resizable=no,width=60 0,height=500,left=240,top=100'); return false;">
But how do I do something like this in Flash? Create a popup window when I click a button?
|