Kindly help with a button to go back and do editing.
Hi All,
Thanks every one for helping me with trivial questions out here.I have one more here.
I would like to have a button "edit" that has the functionality on being pressed would be able to direct to a page with the filled values , so that the user can edit the form and resubmit it.
I have tried the following code , but it doesnt seem to have that effect.Kindly help me out with regrds to this.
<script language="Javascript">
<!--
function button(location) {
top.location = location
//-->
</script>
<form action="./welcome.html" method=post>
<b>Course : <input type="text" name="course" readonly=true value="<%= bean.getCourse() %>" ><br>
<b>Semester : <input type="text" name="sem" readonly=true value="<%= bean.getSemester() %>"><br>
<b>Instructor :<input type="text" name="inst" readonly=true value="<%= bean.getInstructor() %>"><br>
<input type="submit" value="Edit" onclick="button('javascript:history.back(1)')">
</form>Many thanks
AS
Hi All,
Thanks every one for helping me with trivial
rivial questions out here.I have one more here.
I would like to have a button "edit" that has the
functionality on being pressed would be able to
direct to a page with the filled values , so that the
user can edit the form and resubmit it.you want the values to be sent to another page where they can be edited if needed..right?what is it u r trying to acheive with the history.back function....
>
I have tried the following code , but it doesnt seem
to have that effect.Kindly help me out with regrds to
this.
and what is the name of the page u have given here....I mean the filename...can u elaborate ur requirement
<script language="Javascript">
<!--
function button(location) {
top.location = location
//-->
</script>
<form action="./welcome.html" method=post>
<b>Course : <input type="text" name="course"
readonly=true value="<%= bean.getCourse()
%>" ><br>
<b>Semester : <input type="text" name="sem"
m" readonly=true value="<%= bean.getSemester()
%>"><br>
<b>Instructor :<input type="text" name="inst"
t" readonly=true value="<%= bean.getInstructor()
%>"><br>
<input type="submit" value="Edit"
" onclick="button('javascript:history.back(1)')">
</form>Many thanks
AS
Similar Messages
-
Hello,
I need help with a button. I created a button and set it up
so that when you click and hold it, the button becomes lighter in
color (I used Alpha). I want the button to stay this light color
after i release the click. Right now it goes back to the normal
color when I release the click. Can somone help we this?
Thanks!rpofclt wrote:
> Hello,
>
> I need help with a button. I created a button and set it
up so that when you
> click and hold it, the button becomes lighter in color
(I used Alpha). I want
> the button to stay this light color after i release the
click. Right now it
> goes back to the normal color when I release the click.
Can somone help we
> this?
you can't use the button itself if you want to maintain the
DOWN state after
release as button automatically resets itself once the mouse
lives the HIT zone.
Use movie clip instead and on press simply send it to a frame
where there
is DOWN state like image.
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Help with linking buttons to Scenes
Hey,
Rookie to Flash and AS3. Just needed some help with my buttons. Im making a flash program about pancakes (random I know). I have a "Mainmenu" scene and then a "Recipe" scene. I have a button on my mainmenu which takes me to the recipe page when I click it, the code behind the button is
"stop();btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "Recipe");
Then when I arrive at my recipe page I have a button which will take me back to my MainMenu, the code behind that button is:
"stop();btn_home.addEventListener(MouseEvent.MOUSE_DOWN, mouse5DownHandler);function mouse5DownHandler(event:MouseEvent):void {
gotoAndPlay(1, "MainMenu");
So I run my program and the first button works and takes me to recipe page but the button to get to the main menu does nothing, click it and no response or anything
Please helpFirst, hopefully having all your code mushed onto the same line is a copy/paste error, otherwise it should look like...
stop();
btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "Recipe");
If the intention is to click the buttons to make them work, then you should use CLICK instead of MOUSE_DOWN. MOUSE_DOWN can be a persistent state whereas CLICK involves releasing it afterwards.
As for the code to get you back home, where is it located on the timeline? Are you getting any error messages when you try to use it?
One thing you should learn to use is the trace() function. It is useful for troubleshooting. You can use it now to see if your second button is talking to the function at all...
stop();
btn_home.addEventListener(MouseEvent.CLICK, mouse5DownHandler);
function mouse5DownHandler(event:MouseEvent):void {
trace("the button works okay");
gotoAndPlay(1, "MainMenu");
If you don't get that message in the output panel, you'll know the button is not properly coded to work.
Most folks here will recommend you get away from using scenes in a design that includes navigation--they have a history of being problematic. Instead of using scenes, divide the one main timeline up into sections or use movieclips for the sections and manage their visibility... or do a bit of both. -
I'm having a really rough time understanding how to code my interactive menu.
I've posted the files here https://dl.dropboxusercontent.com/u/21231523/Menu_animation.zip.
1. I'd like my first animation to run which involves the buttons swooping in and then coming into the correct positions.
2. When you roll over the buttons, I'd like them to turn red.
3. When you click on the buttons, I'd like them to stay red, and the actual text label rotates 90 degrees. I'd like this to stay this way until the user either clicks on the button again to rotate it back to 0 degrees or when the user clicks on another button and that also causes the button to rotate back and the current button clicked on rotates 90 degrees.
I'd appreciate any help.
Thanks so much.To get the kind of interaction and anoimation you identify you will need to use movieclip symbols instead of button symbols.
-
I am stuck in a photo album with no button to go back! If I press the home button I get back to the main iPhone screen, when I go back to the Facebook app, it brings me straight back to the photo again with no option to et put of there?!
Perform a Reset... Try again...
Reset ( No Data will be Lost )
Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
http://support.apple.com/kb/ht1430 -
My volume button moves rapidly back and forth. It distorts the sound on my movies/music. Why is this happening and how can I make it stop? E
If your iPod Touch, iPhone, or iPad is Broken
Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house on iPhone 5 and 5C. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
You will find respective repair costs in the appropriate link:
iPod Service Support and Costs
iPhone Service Support and Costs
iPad Service Support and Costs
There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task:
1. iResq or Google for others.
2. Buy and replace screen yourself: iFixit -
Creating a button that flips back and forth on iPad in InDesign through DPS
How do I create a button that flips back and forth on iPad in InDesign through DPS. I saw it on a food magzine on an ipad ... it's just a circle with text it in, when you click it the whole circle flips to the other side and there is a different color with different text. The circle does not change position, it just flips. Again, I want to do this so it shows up on the ipad through DPS.
Thanks,
JayYou need to create a Web overlay. There's an HTML example you can download and repurpose in this article:
http://blogs.adobe.com/indesigndocs/2013/02/dps-tips-html5-examples.html -
hi
i am totaly stuck with this problem i have in flash MX
i have a design which is enclosed in a frame produced in
photoshop, the buttons around the frame need to load content to
below the frame.
to do this i made an empty fla file with just an action which
loads the frame.swf to level 2
everything is fine apart from the buttons i have in a movie
clip, what ever i try doesnt seem to load the other content swf
files
this is the WIP site to look at,
SITE
LINK which will prob make sense of my explination...i hope
i have tried _root. , _parent, almost anything really, i have
done a search for this problem but the solutions i've come across
dont work for me
i must be missing something please help
christry giving your movieClips Instance names, and target them
using that, instead of _root and _parent.
if you want all your movies that are loaded externaly to be
Below the frame, simply put your frame on the first or secont layer
in your fla.
If the frame itself is being loaded, you could set it's depth
to something ridiculous like 1000, that way you are sure that
nothing will load on top of it.
also, when you have problems with code, it's always better to
show the part of your code where the problem is, that would make it
much easier for people in here to help you. -
Need help with adding buttons.
I thought I could do this without help but I was wrong. I had to add buttons to my program and before it ran fine with the first four buttons I added but know there are many errors and I believe I messed up the whole thing now. Any advice would be greatly appreciated. Here is my code:
import java.util.*;
import java.text.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.JFrame.*;
import java.io.*;
import java.awt.font.*;
import java.awt.geom.*;
import javax.imageio.*;
import java.awt.image.*;
public class DVDInventory6
public static void main(String[] args)
Scanner input = new Scanner( System.in );
int j;
DVD_Genre [] inventory = new DVD_Genre[5]; // Size of the array
// create DVD object
inventory [ 0 ] = new DVD_Genre( "Rocky", "Action/Drama", 01, 15, 9.95 );
inventory [ 1 ] = new DVD_Genre( "RockyII", "Action/Drama", 02, 13, 14.95 );
inventory [ 2 ] = new DVD_Genre( "Matrix", "Action/Sci-Fi", 03, 23, 14.95 );
inventory [ 3 ] = new DVD_Genre( "MatrixII", "Action/Sci-Fi", 04, 17, 19.95 );
inventory [ 4 ] = new DVD_Genre( "Bambi", "Family", 05, 33, 12.95 );
// Print out a screen title
System.out.println();
System.out.printf("Welcome to DVD Inventory:\n\n");
GUI gui = new GUI();
for(j=0; j<5; ++j)
gui.add(inventory[j]);
double total = 0;
for ( j=0; j<inventory.length; j++ )
total += inventory[j].getvalueofdvds ();
} // end for
gui.setTotal(total);
gui.display();
public static void sortDVD(DVD[] inventory)
//DVD_Genre temp[] = new DVD_Genre[1];
int i, j;
for (i=1; i <inventory.length; i++)
for (j=0; j < inventory.length-i; j++)
if (inventory[j].getdvdName().compareTo(inventory[j+1].getdvdName())>0)
// exchange elements
DVD temp = inventory[j]; //new DVD_Genre [1];
inventory[j] = inventory[j+1];
inventory[j+1] = temp; //temp [0];
}//end method main
}//end DVDInventory6
class DVD
protected String dvdName; // DVD title
protected String dvdGenre; // DVD genre
protected int productnumber; // DVD product number
protected int numberofproducts; // the number of products in stock
protected double price; // the price of the products in stock
public DVD (String name, String genre, int productnumber, int numberofproducts,
double price ) // class dvd constructor
this.dvdName = name;
this.productnumber = productnumber;
this.numberofproducts = numberofproducts;
this.price = price;
this.dvdGenre = genre;
public DVD( String name, int productnumber, int numberofproducts, double price ) //
class dvd constructor
this.dvdName = name;
this.productnumber = productnumber;
this.numberofproducts = numberofproducts;
this.price = price;
public void setdvdName( String name ) // method to set dvd name
this.dvdName = name; // store the dvd name
public String getdvdName()// method to get dvd name
return dvdName;
public void setproductnumber( int productnumber ) // method to set productnumber
this.productnumber = productnumber; // store productnumber
public int getproductnumber()// method to get productnumber
return productnumber;
public void setnumberofproducts( int numberofproducts )// method to set
numberofproducts
this.numberofproducts = numberofproducts; // store numberofproducts
public int getnumberofproducts()// method to get numberofproducts
return numberofproducts;
public void setprice( double price )// method to set price
this.price = price; // price of the products in stock
public double getprice()// method to get price
return price;
public double getvalueofdvds()// method to get valueofdvds
return numberofproducts * price;
} // end class DVD
class DVD_Genre extends DVD
private String genre; // genre of DVD
private double restockingFee; // percentage added to inventory value
//constructor
public DVD_Genre(String name, String genre, int productnumber, int numberofproducts, double
price)
super(name, genre, productnumber, numberofproducts, price);
this.genre = genre;
this.restockingFee = restockingFee;
public void setdvdGenre( String genre ) // method to set dvd genre
this.dvdGenre = genre; // store the dvd genre
public String getdvdGenre()// method to get dvd genre
return dvdGenre;
// Calculates restocking fee based on previous data.
public double restockFee() {
double total = 0;
double restock = 0;
total = numberofproducts * price;
restock = total * .05;
return restock;
public String toString()
DecimalFormat Currency = new DecimalFormat("$0.00");
return "\nDVD Title: " + dvdName + "\nDVD Genre: " + dvdGenre + "\nProduct number: " +
productnumber +
"\nNumber of products: " + numberofproducts + "\nPrice: " + price + "\nValue of
DVD's: " + Currency.format(numberofproducts * price) + "\nRestock Fee: " +
Currency.format(numberofproducts * price * .05);
}// End class DVD_Genre
class GUI {
private DVD[] dvds;
private int nCount;
private double total;
// Creates array DVD[]
GUI() {
dvds = new DVD[5];
nCount = 0;
public void add(DVD dvd) {
dvds[nCount] = dvd;
++nCount;
public void setTotal(double total)
this.total = total;
DecimalFormat Currency = new DecimalFormat("$0.00");
//Displays the arrays contents element by element into a GUI pane
public void display() {
GUIDisplay(dvds, 5);
public void GUIDisplay(DVD[] products, int numOfProducts)
PanelFrame frame = new PanelFrame(products, numOfProducts);
frame.pack();
frame.setVisible(true);
frame.setSize(600, 450);
} // end class GUI
class PanelFrame extends JFrame
private JButton first;
private JButton next;
private JButton previous;
private JButton last;
private JButton add;
private JButton delete;
private JButton modify;
private JButton search;
private JButton save;
JTextField dvdName;
JTextField productnumber;
JTextField numberofproducts;
JTextField price;
private DVD[] products;
private int numOfProducts;
private int currentIndex = 0;
/** Creates a new instance of PanelFrame */
public PanelFrame(DVD[] products, int numOfProducts)
super("Welcome to the DVD Inventory");
this.products = products;
this.numOfProducts = numOfProducts;
setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
setLayout(new GridLayout(6,1,5,5));
showLogo();
showLabels();
showInputFields();
showButtons();
public class MovieGraphics extends Component
private BufferedImage image;
private boolean imageFound = true;
public MovieGraphics()
super();
try
image = ImageIO.read(new File("logo.jpg"));
catch (IOException x)
x.printStackTrace();
imageFound = false;
public void paint(Graphics g)
if (imageFound)
g.drawImage(image,
0, 0, 200, 100,
0, 0, image.getWidth(null), image.getHeight(null),
null);
else
g.drawString("Gary's DVD Krypt", 30, 30);
} // end of class MovieGraphics
public void showLogo()
MovieGraphics myLogo = new MovieGraphics();
this.add(myLogo);
public void showLabels()
JPanel panel = new JPanel();
panel.add(new JLabel("DVD Title"));
panel.add(new JLabel("Product number"));
panel.add(new JLabel("Number of products"));
panel.add(new JLabel("Price"));
this.add(panel);
public void showInputFields()
JPanel panel = new JPanel();
dvdName = new JTextField(10);
productnumber = new JTextField(10);
numberofproducts = new JTextField(10);
price = new JTextField(10);
dvdName.setEditable(false);
productnumber .setEditable(false);
numberofproducts.setEditable(false);
price.setEditable(false);
panel.add(dvdName);
panel.add(productnumber );
panel.add(numberofproducts);
panel.add(price);
this.add(panel);
public void showButtons()
JPanel panel = new JPanel();
first = new JButton("First");
next = new JButton("Next");
previous = new JButton("Previous");
last = new JButton("Last");
add = new JButton("Add");
delete = new JButton("Delete");
modify = new JButton("Modify");
search = new JButton("Search");
save = new JButton("Save");
panel.add(first);
panel.add(next);
panel.add(previous);
panel.add(last);
panel.add(add);
panel.add(delete);
panel.add(modify);
panel.add(search);
panel.add(save);
ButtonActionHandler handler = new ButtonActionHandler();
first.addActionListener(handler);
next.addActionListener(handler);
previous.addActionListener(handler);
last.addActionListener(handler);
add.addActionListener(handler);
delete.addActionListener(handler);
modify.addActionListener(handler);
search.addActionListener(handler);
save.addActionListener(handler);
this.add(panel);
setFields(0);
protected void paintComponent(Graphics g)
public void setFields(int i)
setdvdName(i);
setproductnumber(i);
setnumberofproducts(i);
setPrice(i);
public void setdvdName(int i)
dvdName.setText(products.getdvdName());
public void setproductnumber(int i)
productnumber.setText(String.valueOf(products[i].getproductnumber()));
public void setnumberofproducts(int i)
numberofproducts.setText(String.valueOf(products[i].getnumberofproducts()));
public void setPrice(int i)
price.setText(String.valueOf(products[i].getprice()));
private class ButtonActionHandler implements ActionListener
public void actionPerformed(ActionEvent event)
if (event.getSource() == first)
addClicked = false;
currentIndex = 0;
setFields(currentIndex);
makeFieldsEditable(false);
else if (event.getSource() == next)
addClicked = false;
currentIndex++;
if (currentIndex == numOfProducts)
currentIndex --;
setFields(currentIndex);
makeFieldsEditable(false);
else if (event.getSource() == previous)
addClicked = false;
currentIndex--;
if (currentIndex < 0)
currentIndex = 0;
setFields(currentIndex);
makeFieldsEditable(false);
else if (event.getSource() == last)
addClicked = false;
currentIndex = numOfProducts - 1;
if (currentIndex < 0)
currentIndex = 0;
setFields(currentIndex);
makeFieldsEditable(false);
else if(event.getSource() ==add)
//add actions for add here
if (!addClicked)
resetFields();
makeFieldsEditable(true);
int itemNum = incrementItemNumber();
System.out.println(itemNum);
itemNumber.setText(String.valueOf(itemNum));
currentIndex = numOfProducts;
addClicked = true;
else if(event.getSource() ==save)
//add actions for save here
//we need to call SaveToFile.java
// SaveToFile.save;
addClicked = false;
System.out.println(currentIndex);
if (!updateProduct(currentIndex))
JOptionPane.showMessageDialog(null, "You have reached maximum number of products!");
currentIndex --;
setFields(currentIndex);
else
saveProduct();
makeFieldsEditable(false);
else if(event.getSource() == edit)
//add actions for edit here
// Inventory.edit;
addClicked = false;
makeFieldsEditable(true);
else if(event.getSource() == search)
//add actions for search here
// Inventory.findIndex;
addClicked = false;
String name = JOptionPane.showInputDialog("Enter Product Name: ");
int index = searchName(name);
System.out.println(index);
if (index == -1)
JOptionPane.showMessageDialog(null, "No matching product found! ");
else
currentIndex = index;
setFields(index);
Here are my errors:
C:\java>javac DVDInventory6.java
DVDInventory6.java:460: cannot find symbol
symbol : variable addClicked
location: class PanelFrame.ButtonActionHandler
addClicked = false;
^
DVDInventory6.java:463: cannot find symbol
symbol : method makeFieldsEditable(boolean)
location: class PanelFrame.ButtonActionHandler
makeFieldsEditable(false);
^
DVDInventory6.java:467: cannot find symbol
symbol : variable addClicked
location: class PanelFrame.ButtonActionHandler
addClicked = false;
^
DVDInventory6.java:474: cannot find symbol
symbol : method makeFieldsEditable(boolean)
location: class PanelFrame.ButtonActionHandler
makeFieldsEditable(false);
^
DVDInventory6.java:478: cannot find symbol
symbol : variable addClicked
location: class PanelFrame.ButtonActionHandler
addClicked = false;
^
DVDInventory6.java:485: cannot find symbol
symbol : method makeFieldsEditable(boolean)
location: class PanelFrame.ButtonActionHandler
makeFieldsEditable(false);
^
DVDInventory6.java:489: cannot find symbol
symbol : variable addClicked
location: class PanelFrame.ButtonActionHandler
addClicked = false;
^
DVDInventory6.java:496: cannot find symbol
symbol : method makeFieldsEditable(boolean)
location: class PanelFrame.ButtonActionHandler
makeFieldsEditable(false);
^
DVDInventory6.java:501: cannot find symbol
symbol : variable addClicked
location: class PanelFrame.ButtonActionHandler
if (!addClicked)
^
DVDInventory6.java:503: cannot find symbol
symbol : method resetFields()
location: class PanelFrame.ButtonActionHandler
resetFields();
^
DVDInventory6.java:504: cannot find symbol
symbol : method makeFieldsEditable(boolean)
location: class PanelFrame.ButtonActionHandler
makeFieldsEditable(true);
^
DVDInventory6.java:505: cannot find symbol
symbol : method incrementItemNumber()
location: class PanelFrame.ButtonActionHandler
int itemNum = incrementItemNumber();
^
DVDInventory6.java:507: cannot find symbol
symbol : variable itemNumber
location: class PanelFrame.ButtonActionHandler
itemNumber.setText(String.valueOf(itemNum));
^
DVDInventory6.java:510: cannot find symbol
symbol : variable addClicked
location: class PanelFrame.ButtonActionHandler
addClicked = true;
^
DVDInventory6.java:517: cannot find symbol
symbol : variable addClicked
location: class PanelFrame.ButtonActionHandler
addClicked = false;
^
DVDInventory6.java:519: cannot find symbol
symbol : method updateProduct(int)
location: class PanelFrame.ButtonActionHandler
if (!updateProduct(currentIndex))
^
DVDInventory6.java:527: cannot find symbol
symbol : method saveProduct()
location: class PanelFrame.ButtonActionHandler
saveProduct();
^
DVDInventory6.java:529: cannot find symbol
symbol : method makeFieldsEditable(boolean)
location: class PanelFrame.ButtonActionHandler
makeFieldsEditable(false);
^
DVDInventory6.java:531: cannot find symbol
symbol : variable edit
location: class PanelFrame.ButtonActionHandler
else if(event.getSource() == edit)
^
DVDInventory6.java:535: cannot find symbol
symbol : variable addClicked
location: class PanelFrame.ButtonActionHandler
addClicked = false;
^
DVDInventory6.java:536: cannot find symbol
symbol : method makeFieldsEditable(boolean)
location: class PanelFrame.ButtonActionHandler
makeFieldsEditable(true);
^
DVDInventory6.java:542: cannot find symbol
symbol : variable addClicked
location: class PanelFrame.ButtonActionHandler
addClicked = false;
^
DVDInventory6.java:544: cannot find symbol
symbol : method searchName(java.lang.String)
location: class PanelFrame.ButtonActionHandler
int index = searchName(name);
^
23 errorsand many more errors
such as;
* you need to declare a method called makeFieldsEditable that takes a boolean value
eg private void makeFieldsEditable(boolean editable){
// add your implememntation
}* you need to declare a method called resetFields
eg private void resetFields(){
// add your implememntation
}* you need to declare a method called updateProduct
eg private void updateProduct(int index){
// add your implememntation
}etc -
Help with 2 buttons, 2 animations, and 2 audio clips
Hey everyone,
I'm coming to Edge Animate from After Effects so bear with me here... I'm helping out on a DPS project for a friend and this has me stumped.
I have an Animate project with 2 animations, 2 audio clips and 2 buttons. Let's call them Animation1, Audio1, and Button1. Animation2, Audio2, and Button2. I want to have the composition load and wait for the user to click a button, the easy part. Now I want to have Animation1 play with Audio1 when the user clicks on Button1 but I don't want any of the other elements (Animation2 etc) to play or be visible. Then vice-versa when the user clicks Button2. I've been able to get the Button1 elements to work but then I can still see Button2's elements. The animations are sync'd to the audio files so they need to play in time with each other. I've searched tutorials on the web but I'm probably not looking for the right thing.
Any help is much appreciated.
raresdesign,
The examples you sent got me up and going.
I added an action on each button so when the user clicks one the other gets hidden. But after the audio clip linked to the button pressed plays the hidden button remains hidden. Say I click on button1 and audio1 plays, at the end of the clip button2 is still hidden. I've tried a couple different ways to show both buttons again but with no luck. Any thoughts? I really appreciate your help BTW. -
I need help with a button animation!
Hi,
I hope someone can help with a simple-looking problem which
nonetheless has me stumped!
I have a feeling that I've missed something obvious.
I've created a movie clip to act as a button (I've called it
"abs_button") and placed it on the stage.
My main movie has one frame.
Within the "abs_button" movie clip there are 5 layers.
Labels, actions, default button state, rollover state and rollout
state.
Technically, default button state, rollover state and rollout
state could be on the same layer as they don't overlap, but I've
given each animation its own layer for clarity.
FRAME 01.
Default button state is one frame with a graphic of the
button. Just a label at the start ("abs_up") and a "stop();" action
at the end.
FRAME 02 to 31.
Rollover state is a 30 frame animation. Label at start
("abs_over"), "stop()"; action at the end.
FRAME 32 to 62.
Rollout state is a 30 frame animation. Label at start
("abs_out"), "stop()"; action at the end.
All animations were achieved with tweens.
My initial "abs_button" code:
on (release) {
getURL("targetPage.htm", "_self");
on (rollOver) {
gotoAndPlay("abs_button", "abs_over");
on (rollOut) {
gotoAndPlay("abs_button", "abs_out");
As it stands, the animation jumps to frame 1 of "abs_out" on
rollout.
I need the "abs_over" animation to always play through to the
end, as the "abs_out" is "abs_over" in reverse (i.e. image grows
large on rollover and shrinks again on rollout.
I've tried for 2 days to solve this, but I clearly need help.
My experiments with variables simply didn't work.
I would be grateful if someone could tell me where I'm going
wrong!
Thanks,
Andyuse this:
on (rollOver) {
gotoAndPlay("abs_over");
Since the code is attached directly to the movieclip, you
don't have to
identify the clip. A gotoAndPlay() function takes a frame
number or a
frame label name as its argument, never the name of the clip
that
contains the frame number or name.
Rob
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412.243.9119 -
Little bit of help[ with a button.
Good day all!
I need help making a button. This is what I want to happen.
I have a bunch of text, One of the words "merino" is bule as
to say there is a link hear! And I want an image of the "merino" to
come up, like a "ALT" box. Or have an image in the "ALT" box?
I know how to do this in "Flash" i.e just drop in the image
on the over state of the button event. Easy as pie! This is why I
cant get to grips with Dreamweaver! I hate it!
But I am willing to learn and maybe in time love???
Thanks all!"satrop" <[email protected]> wrote in
message
news:f0o4t7$954$[email protected]..
> Good day all!
>
> I need help making a button. This is what I want to
happen.
>
> I have a bunch of text, One of the words "merino" is
bule as to say there
> is a
> link hear! And I want an image of the "merino" to come
up, like a "ALT"
> box.
>
> I know how to do this in "Flash" i.e just drop in the
image on the over
> state
> of the button event. Easy as pie! This is why I cant get
to grips with
> Dreamweaver! I hate it!
>
> But I am willing to learn and maybe in time love???
HTML is a lot different from Flash! :-)
I believe you could do this using DW's Show-Hide layer
behavior - have
mousing over the link trigger a layer with the image to
appear. Someone else
may have a better idea.
Just FYI, having to mouse over a link in order to get more
information about
it isn't usually appreciated by users. You *might* want to
re-think this
plan..
Patty Ayers | Adobe Community Expert
www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate
Worksheet -
Help with assignment- buttons that control movie clips
I am pretty new to flash and my professor gave us an assignment with little help or tutorials.
He wants us to create a SWF that features a house and it's front yard and two buttons.
One button that says Sunrise, and one that says Sunset.
When I push the sunrise button, the sun needs to rise above the house and stay there. When I push the Sunset button, it needs to set- and then a ufo needs to land on the lawn.
So i think I have a pretty good grasp on the assignment, but the actionscript is throwing me off. How can I make buttons that will control the sun movie clip to rise- stay above the house, and then set? The ufo is a whole new matter. The sunset button should make the sun lower and then a ufo land on the lawn.
Please help explain/link me to the proper tutorials. One thing that i'm worried about is that the sun will rise- and then stay above the house even if i click the sunset button.
Your help is greatly appreciated.Well i can think of a few ways to do this.
Depending on what you have been taught so far you should be able to do this if you know how to make a button, a movie clip, and the basic script for the timeline. ie. play,stop, gotoandplay etc.
I understand you have been set a task and you want the answer straight away. But i doubt he would have given you anything you couldn't handle. Also I learnt more from trial and error and searching the net than from most of my teachers at coll and uni, It's frustrating i know, but the buzz you get when you finally crack it is amazing. Stick in there!
That being said i remember the panic I suffered and like to help so here's a thought:
You could just have the 2 buttons play a basic movie clip. The sky could rotate one way to make the sun rise and add a "stop" in the actions to make it stay there, and to the left to sunset with both images together but not being shown all the time by using a mask. You could even add in the ufo to the clip but this would only work if you added an extra part to the movie so that when the ufo has landed it flys out again and then begins to rotate the sun and moon again. ( buttons would be dissabled during the play modes to avoid chaos) This is just a quick thought. I'm sure there are several ways of doing this depending on how fancy it needs to be.
If your teacher really has given you no notes on buttons,movieclips and actionscript i would sujest Adobe TV. Nice videos that explain step by step. OR try downloading a tutorial file with buttons and movie clips and look at the coding they use in the file. Thats how i have learnt most of it since finishing Uni.
Good Luck
Cobie -
Help With Radio Buttons -- URGENT!!
Hi i am new to using UI compents in flash.
Basically i havnt a clue where to start.
Just some simple action script will help and be much
appreciated if someone can give me it.
Basically i have a question to ask which requires radio
buttons to answer the question.
I have a question and the answers are A, B, C, D.
I want:
A to equal 1
B to equal 2
C to equal 3
D to equal 4
E to equal 5
Would someone be able to tell me how to set up the radio
button so that the value of the radio button is stored into an
array called SCORE.
i dont need a tutor for arrays, i can do them, i just need
help with the radio buttons so a reference to an array would be
enough, eg how to store the answer from the radio button in an
array.
Thank youPlace the radio buttons on the stage and set their parameters
to what you need. Make sure that for each group of radio buttons
you give them the same group name. Then you could use something
like this:
var listenerObject:Object = new Object();
var answerArr:Array = new Array();
listenerObject.click = function(eventObj:Object) {
answerArr.push(eventObj.target.selectedData);
trace(answerArr);
radioGroup.addEventListener("click", listenerObject);
radioGroup refers to the group name for the buttons.
eventObj.target will refer to the actual radio button
clicked.
Tim -
Dear Readers
I am puzzled! lol. I was looking at the Radio 1 homepage
today (www.bbc.co.uk/radio1)
Click Here for Link
On the homepage there is a Flash menu with a series of
buttons titled "300 exclusive" and "Groove-y Mix" etc etc.
These buttons finish their loop cycle even though the
mous-out event has occurred.
Does anyone know hoe to make such buttons? If so it would be
greatly helpful.
Well...I hope I haven't lost too many people.
Yours Sincerely
www.skytemedia.com
Send Me An E-MailOK.... make a movie clip. Call it Button or something.
drag it onto your main movie. Select it and add this action:
on (rollOver) {
this.gotoAndPlay("up");
on (rollOut) {
this.gotoAndPlay("down");
on (release) {
getURL("website.html", "_self");
Now, double-click on the movie clip to open it.
Make three layers ("shape", "actions" and "labels" )
Draw a colored box on the "shape" layer (this will be your
button)
on frame 1 put a Stop action on the "actions" layer
on frame 5 put a Frame Label called "up" (no quotation marks)
on the "labels" layer
on Frame 15 put a Stop Action on the "actions" layer
on frame 20 put a Frame Label called "down" on the "labels"
layer
on frame 30 put a Stop action on the "actions" layer
Now select your "shape" layer, click on frame 5 and hit F6,
click on frame 15 and hit F6, click on frame 20 and hit F6, click
on frame 30 and hit F6.
OK...now you need to make some sort of animation happen with
your boxes. From frame 5 to frame 15. and the reverse, from frame
20 to frame 30.
So when the user rolls over the movie clip (that you called
"button"), THIS (the movie clip) will gotoAndPlay the frame called
"up"
and then it will stop playing at Frame 15 where you put a
Stop Action. When the cursor rolls off, THIS will gotoAndPlay
"down" ...
get it? If you don't understand what Frame Labels and Actions
are, then you first need to do the Flash Tutorial.
Maybe you are looking for
-
The Firefox URL address bar defaults to a search feature if the browser does not recognize the entry as a valid http, https, ftp etc URL. Until recently, it used Google. It is now using Yahoo search and I want to switch it back. Efforts to use Time M
-
Unaable to access my library from new computer
I just purchased a new computer and logged onto ITunes, after downloading program. I had been using my IPod on my old computer. When I connected my IPod on the new computer, I was shown a library that was not mine. Then a message came up saying that
-
Row -level based calculations in OBIEE11g - pivot table
Hi Experts, I have the report with the format.. Where Transaction Amount is my measure and Events is one of the dimension(Event type) and Time is another dimesion (Year & Month columns).. Transaction Amount
-
MP4 videos refuse to play.
I have updated my plugins and extensions multiple times to no avail. I have accelerate hardware unchecked. I just cannot get MP4 videos to play, regardless the site.
-
I just update my FireFox from 3.5 to 4.0.1,but when i try to intall extensions which need FireFox 4.0.*,it report my FireFox was 3.0.8 and cannot intall.when i choice an extension which suport 3.0.*-4.0.*,it works well.