Make an object invisible when button clicked

For my newspaper i am creating each page has a next button and a previous button. I have assigned the previous button on one page to attach the movie of the page previous to it and then tested my movie. However when i click the previous button the movieclip does load but loads behind the starting moveiclip. So what i want to do is when the previous button is cliked, that page (movieclip) with the previous button on its dissappears and the previous page loads.
Thanks for any help.

Hi,
You obviously didn't read my post at all...
Nagikun wrote:
i no i made a mistake in that code as i pasted the wrong one it should have been:
s_prev.addEventListener(MouseEvent.CLICK, attachMovieclip);
s_prev.addEventListener(MouseEvent.CLICK, hidePage);
function hidePage(event:MouseEvent):void {
Page1.visible = false;
function attachMovieclip(event:MouseEvent):void {
var addPage0:Page0 = new Page0();
addPage0.x= 0   
addPage0.y= 0
addChild(addPage0);
were Page0 is the main page and Page1 is the page that needs to be invisible when the previous button is clicked
function hidePage(event:MouseEvent):void {
Page1.visible = false;
Where are you declaring the Page1 variable here?????  You must include a statement such as:
var myVar:Page1 = new Page1();
and then you must add Page1 to the stage.
Message was edited by: markerline

Similar Messages

  • None of my addons or extentions work any more since installing 3.6.6. When I go Tools/Add-ons it just goes 'ding' [makes an error noise] when I click on any oth the options and then firefox freezes up.

    None of my addons or extentions work any more since installing 3.6.6. When I go Tools/Add-ons it just goes 'ding' [makes an error noise] when I click on any of the options and then firefox freezes up and I have to go to the task manager to shut firefox down.
    == This happened ==
    Every time Firefox opened
    == when i updated to 3.6.6

    Delete the files extensions.* (extensions.rdf, extensions.cache, extensions.ini) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry.
    See "Corrupt extension files": http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    If you see disabled extensions that are not compatible on the next start in "Tools > Add-ons > Extensions" then click the "Find Updates" button to do a compatibility check.

  • Download the PDF Form as a attachment when button click in BSP application

    Hi All,
    I have scenario, when button click in the BSP application PDF Form want to download in the IE (like one window open with Open,Save and cancel button).
    I have written this code:
    data: pdf type fpformoutput-pdf.
    < Logic for populate value to pdf field ....
    .>
    response->set_header_field(
                         name  = 'cache-control'
                         value = 'max-age=0' ).
      response->set_header_field(
                         name  = 'content-disposition'
                         value = 'attachment; filename=webforms.pdf' ).
      response->set_data( data   = pdf ).
    Once button is clicked pop up is opened and closed automatically because of browser or adobe reader issue.
    How can I resolve this problem ?
    In the IE i need to change any settings ?
    IE version = 7.0
    Adobe reader = 9.0
    I have tried in the same code with IE = 6.0 and adobe reader 8.1.2 its getting download the pdf form working fine.
    The same think i want in IE 7.0 and adobe reader 9.0, what needs to be done ?
    Regards,
    Boopathi M

    Hello Ravi,
    Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.
    Best regards,
    Thomas

  • Encountered error og-00609 when button click to display chart

    hi
    this application uses forms 6i client server environment, graph control is being used with og.interept libray,
    passing parameters run times thru forms to charts.
    issue is that, system is doing uncertain behavior sometimes it shows graph smoothly but when constantly click at button it shows "OG-00609: internal pl/sql execution error"
    when i close graph server and run form again, and click at button to shows charts it works properly untill shows above error again.
    below is the code is being used to run charts.
    begin
    declare
    pl_id ParamList;
    query0 varchar2(256);
    begin
    query0 := 'select deptno, sum(sal) from emp where deptno in( '||:dept1||','||:dept2||') group by deptno;';
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_id);
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'dept1',text_PARAMETER,:dept1);
    Add_Parameter(pl_id,'dept2',text_PARAMETER,:dept2);
    if :ch_type = 'pie' then
    og.interpret('e:\mas\emp2.ogd','g1',query0,true,pl_id);
    og.close('e:\mas\emp2.ogd','g1');
    elsif :ch_type = 'bar' then
    og.interpret('e:\mas\emp3.ogd','g1',query0,true,pl_id);
    og.close('e:\mas\emp3.ogd','g1');
    end if;
    END;
    end;
    thanks
    i'd be appreciated on early reply.
    ali

    Metalink Note: 1078734.6
    Problem Description:
    ====================
    You are integrating forms and graphics. You are using the og.interpret which comes with the og.pll, to update a chart.
    You are using:
    OG.INTERPRET('graph.ogd', 'chart', 'DO_UPDATE;', TRUE, pl_id);
    You get the following error during runtime.
    OG-00609 INTERNAL PL/SQL EXECUTION ERROR
    Problem Explanation:
    ====================
    1.The procedure(Do_Update) that you are referencing does not exist in the graph(.ogd file).
    2. There is a bug if you are trying to specify .ogr as extension in
    your graph name or no extension.
    Solution Description:
    =====================
    1. Make sure that the name of the procedure that you are using in the
    OG.INTERPRET, exists in the graph file. DO_UPDATE is not a
    built-in procedure.
    2. The name of the graph should have the .ogd extension only. If you
    give a .ogr extension or no extension, it would give you an error.
    .

  • How to make the page expired when user click back

    how to make the page as expired when i click back button on the browser.
    i want a better way.
    actually i have a timer.when it reaches 00.00 then the expired page will be called automaticlly using location.href="expired.jsp" then if the user clicks back it should not show the previous page.this concept is applied with paging concept
    response.setheader is not working ...
    i have redirect when click back using
    <body onunload>....i call another page here.
    but it is not a good way.
    so pls help me to solve this problem
    using session or another good way

    Use this instead.
    Frame.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);

  • When button clicked help

    I have buttons for help, back, next, finish, cancel.
    initially I have the back and finish buttons setEnable(false)
    but when I click on Next button I want the Back button to be setEnable(true)
    I wrote the following
    //ActionListener for jButton_Next Of NavigationButtons Panel
    newNavigationButtonsClass.jButton_Next.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    newNavigationButtonsClass.jButton_Back.setEnabled(true);
    When I click on the jButton_Next the jButton_Back is not enabled. May I know what I can change in this to get this working. Thanks.

    Is the code where you initially disable the button
    getting called again somehow? I'd check to make
    sure this code isn't getting called again after you
    enable the button within actionPerformed.

  • How can I make IPhone 4 "invisible" when Bluetooth is switched on?

    How can I make my Iphone 4 invisible when Bluetooth is switched on???
    Peter

    If your phone is not jailbroken, they will not be able to connect to it. It will not be discoverable unless you go into the bluetooth settings page on the phone, which makes it discoverable. If people are attempting to connect to it, I'll lay odds that FAST&FURIOUS is correct in his guess that your phone is jailbroken. If that's the case, all bets are off. Jailbreaking compromises the security of your device as well as rendering the warranty void.

  • Some affect on buttons when button click

    Dear All,
    I have 6 buttons in windows phone application page with Custom Control Template. I have also capture "Pressed" VisualState and change the button color which working fine.
    However when any button click then I want to hide a all other buttons for 2 seconds and keep this Pressed button (in Pressed visual state) visible only. Is there any way to achieve this goal in "Pressed" VisualState?
    I capture "Click" event of button and in this click, tried following codes
    btnNearest.Opacity = 0;
    btnInstructions.Opacity = 0;
    btnFavorities.Opacity = 0;
    btnServices.Opacity = 0;
    btnInformationi.Opacity = 0;
    Thread.Sleep(2180);
    this.NavigationService.Navigate(new Uri(sUrl, UriKind.Relative));
    However all buttons does not hide, but it looks when it navigate to new page then button hides but not during "Thread.Sleep".
    Is there any way to hide all buttons for just 2 seconds and keep Pressed button visible (in Pressed state)?
    Thanks in advance.
    M. Irfan

    Dear Vineet24,
    Thank you for your message. It was good work-around but I am afraid, it does not work for me. Actually I am using Custom Template of button so only changing Button color will not help in this case. Following is the custom template which I used
    on all buttons
    <phone:PhoneApplicationPage
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    ........>
    <phone:PhoneApplicationPage.Resources>
    <ResourceDictionary>
    <Style x:Key="CircleButtonTextOnlyStyle" TargetType="Button">
    <Setter Property="HorizontalAlignment" Value="Center"/>
    <Setter Property="VerticalContentAlignment" Value="Center"/>
    <Setter Property="FontFamily" Value="/Fonts/DroidKufi-Regular.ttf#Droid Arabic Kufi" />
    <Setter Property="Foreground" Value="White" />
    <Setter Property="FontSize" Value="18" />
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="Button">
    <Grid RenderTransformOrigin="0.5,0.5">
    <Grid.RenderTransform>
    <CompositeTransform Rotation="-5.75"/>
    </Grid.RenderTransform>
    <vsm:VisualStateManager.VisualStateGroups>
    <vsm:VisualStateGroup x:Name="CommonStates">
    <vsm:VisualState x:Name="Normal"/>
    <vsm:VisualState x:Name="MouseOver">
    <Storyboard>
    <ColorAnimation Duration="0" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="#a9873c"/>
    <ColorAnimation Duration="0" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="#a9873c"/>
    </Storyboard>
    </vsm:VisualState>
    <vsm:VisualState x:Name="Pressed">
    <Storyboard>
    <ColorAnimation Duration="0:10:59.9" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="#a9873c"/>
    <ColorAnimation Duration="0:10:59.9" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="#a9873c"/>
    </Storyboard>
    </vsm:VisualState>
    </vsm:VisualStateGroup>
    </vsm:VisualStateManager.VisualStateGroups>
    <!--Data="M 10 20 L 70 17, 145 20, 110 130 70 128 50 130 Z"-->
    <Path x:Name="buttonPath"
    Data="M 5 20 L 80 23, 50 95 25 95 Z"
    StrokeThickness="40"
    StrokeLineJoin="Round"
    Stroke="#464646"
    Fill="#464646" />
    <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
    HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </ResourceDictionary>
    </phone:PhoneApplicationPage.Resources>
    Thank you once again.
    M. Irfan

  • How to return java objects on the button click

    hello all,
    i wonder if any body let me know ,how to return java objects on button click,
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    class base
         base()
              JFrame frame = new JFrame("Base class Message Dialog Box");
              JPanel panel = new JPanel();
              JButton buttonchildone = new JButton("Child class one");
              buttonchildone.addActionListener(new ActionListener(){
                   public actionPerformed(ActionEvent e)
                        childone ch1=new childone();
                   return ch1;
              JButton buttonchildtwo = new JButton("Child class two");
              buttonchildtwo.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e)
                        childtwo ch2=new childtwo();
                        return ch2;
              panel.add(buttonchildone);
              panel.add(buttonchildtwo);
              frame.add(panel);
              frame.setSize(300, 300);
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         void show()
              System.out.println("Base class show() method");
    public class mainmethod
         public static void main(String[] args)
              base baseobj=new base();
    here my aim is to achieve dynamic polymorphism by button click's ,where based on the button click i can send back an object of childone or childtwo classes
    thanks and regard
    Mac
    Message was edited by:
    LoveOpensource

    You probably need to rethink your design. Where are these child classes going? What is using or consuming them? I agree with the message above about a button instantiating a parent field variable to one child or the other depending on which button is pressed.
    Message was edited by:
    petes1234

  • Stopping audio and starting another audio when button clicked

    Hello,
    I have a multiple slide document, and I want sound to stop
    when they click the "Next" button, and another audio clip to start.
    Here is what I have so far:
    //audio
    x = new Sound();
    x.attachSound("Slide1");
    x.start(0, 0);
    musicplay = true;
    forward_btn.onRelease = function() {
    gotoAndStop("2");
    numbering eq numbering++;
    So I just want it to play audio clip "Slide2" when they click
    forward_btn, and I want "Slide1" to stop.
    Thanks!

    Attach your second sound file to the frame that will play the
    second sound. Then try adding stopAllSounds() before the
    gotoAndStop("2"); to get the first sound to stop playing and then
    play the second sound.

  • Display rows when button clicked

    Hi
    I have a few text fields in the jsp .
    After them, i have search button .
    When i click it, list of rows should be displayed
    underneath the search button in the same jsp/page .
    Any idea how can i do it?
    thanks
    chandra

    Sure, it can be done.
    Just have one file with your form and the jsp code to display results. Put the jsp code in a conditional loop (if submit == null). What this would do is that if submit is null, only the form will be displayed, else the form will be displayed and the results of the search will be displayed.
    Hope it helps.

  • How can I make Quicktime stop opening when I click a streaming media link?

    I was very happily using Windows Media Player 9 for streaming video in Firefox, and it was working fabulously, until I installed Flip4Mac, and now when I click on a link within a web page to open a standalone player for steaming video (please see "Click here to open standalone player" link below web cam window on www.tappedintoelephants.com) it opens Quicktime instead of Windows Media Player. I would like it to go back to using WMP for the standalone player when I click that link. I tried unchecking the "steaming media" box in Quicktime MIME settings, I've uninstalled Flip4Mac, and reinstalled WMP, but still, when I click that link, it opens Quicktime and crashes the browser. Could anyone please tell me how I can tell Firefox to once again use WMP instead of Quicktime for the standalone player? As I said, unchecking the streaming media checkbox in QT MIME settings had no effect. Thank you very much. I appreciate your help!

    I think what you should try is Settings>General>Accessibility>Vision>Speak Auto-text>Off.

  • How do I make my submenu appear when I click on a link?

    I am trying to make my submenu reappear once you click on the catalogue link, how do I do this?
    This is the new uploaded website:
    http://www.darbymanufacturing.com/test_website2/index.html
    CSS:
    Here is my nav code:
    ul#nav {
    margin:0 auto;/*---centers nav----*/
    padding:5px 0 0 0;
    font-size:12px;
    width:960px;
    #nav li {
    list-style-type:none;
    display:inline;/**-----this makes menu and submenu horizontal-------**/
    #nav li a {
    float:left;
    display:block;
    padding: 3px 10px;
    background:none;/**--if i want to add an image code is url then select imgage-----**/
    margin:0 5px 0 0;
    text-align:center;
    text-decoration:none;
    text-transform:uppercase;
    color:#fff;
    font-weight:bold;
    }/**--links for all list items--**/
    #nav li a:hover {
    color:#9BCDFF;
    }/**----hover color for all links----**/
    #nav ul {
    clear:both;
    display:none;/*----makes submenu disappear----*/
    #nav li.active-page a {
    color:#666;
    Is this written properly? Do I need to add anything for other browsers?

    Look at SuperFish Nav-Bar Style:
    http://users.tpg.com.au/j_birch/plugins/superfish/#sample4
    Also see "Persistent Page Indicator on Site Wide Menus"
    http://alt-web.com/Articles/Persistent-Page-Indicator.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How do i make a zoom work when I click a clickbox or button?

    Hi (I'm using Captivate 5.5)
    What I currently have is a screenshot of anti-virus software and I want the user to click on specific parts of the image to activate a zoom to see the text better.  I'd like to have several clickboxes or buttons for the user to click on to active the zoom area then hide the previous zoom boxes so there aren't loads of zoomed in areas on the screen at the same time, can this be done?  I've tried using the hide/show function on one click box to show the zoom function but the zoom has already loaded with the slide and when I try to hide the zoom function again the zoomed in area won't disappear, I've also tried putting a white box over the zoom area but it still comes through....help!!
    What I want is:
    Clickbox or button - User clicks - the zoom function appears and zooms in
    Clickbox or button - User clicks different area - the previous zoom disappears - the new zoom area loads and zooms in
    etc....

    Hi there
    I've done this before and it's quite fun. (at least it is to me)
    What I did was to use different slides. So you have one slide that has all the different hot areas that may be zoomed. Each area is hot by virtue of a Click Box object that points to a specific slide. Then on the slide where the click leads, you insert the zoom area. That slide will also have a button or click box that allows your viewer to return to the original slide.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Adding array item when button clicked

    When a button is clicked I want to take text from 4 different text fields and add them to the end of their respective arrays. I declared the array's as class arrays in a different JFrame, is it possible to take the text from this new JFrame's Textfields and add it to the arrays. Here's the code
      NewJFrame.AirlineName.add(jTextField1.getText());NewJFrame is the original frame, then it pops up a new frame when a button is clicked. They add text to the textfields and click add. It will then take the text and add it to the arrays.

    rhino17 wrote:
    That might be the problem. I'm creating a whole new Jframe, not a dialog box. Using a dialog will probably make the GUI work more smoothly and will allow you to display and retrieve information modally, but won't change basic object to object communication.
    I'm new to this whole Java Business ( HS student, learning w/o an actual teacher) . I'll do reasearch on a dialog box, or if u have a quick link to a tut that would be great. [How to Make Dialogs|http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html]
    And i did not understand BDLH's original message, he sounded like he was trying to be a ... you get the point.If you stay around this board for long, you'll see that BDLH is one of the nicer posters around. He'll kid at times but almost always in a gentle fashion. I however can be a flaming &#97;sshole at times.
    Is there a way to retrieve more than one input value?Absolutely. For instance if you used a JOptionPane, you could place a JPanel within it that has several JTextFields, and easily extract this information. But note that there are always messy quick and dirty ways of doing this that don't scale well as your project grows or changes. What BDLH was suggesting was to keep your logic and your GUI separate and your class coupling loose so as to avoid these pitfalls. Also know this. If you see him disagreeing with something someone here says (including or especially me), I'd go with his interpretation over mine any day as he's a pro.

Maybe you are looking for

  • Data is not being downloaded properly in EXCEL

    Hi, When i am tring to download any data from SAP , for example user list from Tcode SM04 to excel, its coming in one single row from prodction server , whereas its working fine from IDES Srver. please assist , Thanks, Irfan.

  • Why does lion not have front row

    why does lion not have front row and what can i do to get it i loved the ease of use

  • LSMW using IDoc

    I tried to to use IDoc in lsmw.In 13th step i got an error "Partner profile not generated for message type ........".In Inbound Idoc processing what to do?pls give the steps to proceed

  • Newbie with easy question

    I have a <SPAN class=GraySubTitleBoldund>Sound Blaster Audigy 2 ZS and want to hook up my Sony Handycam DCR-TRV260. <SPAN class=GraySubTitleBoldund>It appears the ieee394 on the Sound Blaster is a 6 pin. <SPAN class=GraySubTitleBoldund>Is that correc

  • [Broadcasting] Service 7.0 and Workbook 3.x

    Hi, I am having trouble broadcasting 3.x workbooks with the SAP BW Precalculating Service 7.0 When I refresh the workbook from the BEx Analyzer, everything is fine but when the Broadcaster does it I get : - either a 'Run-time error 91' popup - or a '