Simple Button Listener not so simple

Here is code that works fine without the Listener:
myButton_Zoom = function () {
bt_zoombig_mc._visible = !bt_zoombig_mc._visible;
Now when I try to add a listener it will not listen. Here is
the code with the Listener:
listener = new Object();
listener.myButton_Zoom = function(objEvt) {
bt_zoombig_mc._visible = !bt_zoombig_mc._visible;
myList.addEventListener("myButton_Zoom",listener);
Can anybody please tell me why?

This is the same code as you attached above. It will not work
for 2 reasons.
Will not toggle visibility and will not call a function.
Maybe think from scratch and make 2 buttons:
ButtonUp_mc and ButtonDn_mc
Place ButtonUp_mc on top of the other.
Put the same code on both
If you can achieve the visibility then we are half way there.
Next, make 2 simple functions in the root like:
goto_frame = function () {
nextFrame();
goBack_frame = function () {
prevFrame();
One function is called from either button (goes to next frame
and then goes back)
The goes back function is on the bottom and executes with the
toggle code after
the user has clicked the top button and made it _visible =
false.
Now we need to call these functions when the user clicks
either button so
this function has to appear in the toggle code with the
Listener either embbeded
with the Listener code or, outside following the listener
code.
In short, the button executes the _visible code, then calls
the function.

Similar Messages

  • Simple button script not working

    I am using AS2 and need help figuring out why this simple button script is not working:
    stop();
    buttonWS1.onRelease = function(){
                        gotoAndStop("Stage1and2_Boss",4);
    buttonWS2.onRelease = function(){
                        nextFrame();
    //end
    My buttons are the square letter-puzzles below. They are images that I converted to "symbols" (specifically, buttons). I put their names as above (buttonWS1, buttonWS2, etc.) in the "instance names" boxes.
    I have no idea what is going on. Please help!

    Hi -
    1. Yes, buttonWS2 is the instance name
    2. The only code attached to it is the code I pasted above.
    3. onRelease does not execute because my trace statement does not appear in the output
    Here is the modified code for buttonWS2:
    buttonWS2.onRelease = function(){
                        trace("clicked!");
                        nextFrame();
    Question: It shouldn't matter if I have commented-out code within that set of codes should it?:
    buttonWS2.onRelease = function(){
              //if (puzzleschosenarray[0] == 2 || puzzleschosenarray[1] == 2) {
              // cannot be chosen -- make button non-functional
              //else{
                        //puzzleschosenarray[roundnumber-1] = 2;
                        trace("clicked!");
                        nextFrame();

  • Simple Button.Text not changing properly

    Hi all,
    The WPF learning curve is steep.
    I have pulled my hair over this simple Button.Text change and I can't get it to work.
    In WinForms this works:
    Public Class Form1
    Private Sub BTN_1_Click(sender As Object, e As EventArgs) Handles BTN_1.Click
    BTN_1.Text = "CLICKED BUTTON 1"
    BTN_2.Text = "CHANGED BY BUTTON 1"
    End Sub
    Private Sub BTN_2_Click(sender As Object, e As EventArgs) Handles BTN_2.Click
    BTN_2.Text = "CLICKED BUTTON 2"
    BTN_1.Text = "CHANGED BY BUTTON 2"
    End Sub
    End Class
    I want to do the same thing in WPF
    <Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition/>
    <RowDefinition/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition/>
    <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <Grid Grid.Column="0" Grid.Row="0">
    <Button Name="BTN_1" Click="CLICK_BTN_1">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_1_LABEL_1" Text="Button 1 text" VerticalAlignment="Top" Foreground="#BF000000" >
    </TextBlock>
    <TextBlock Name="CLICK_BTN_1_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 1</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    <Grid Grid.Column="1" Grid.Row="0">
    <Button Name="BTN_2" Click="CLICK_BTN_1">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_2_LABEL_1" Text="Button 2 text" VerticalAlignment="Top" Foreground="#BF000000">
    </TextBlock>
    <TextBlock Name="CLICK_BTN_2_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 2</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    </Grid>
    </Window>
    Class MainWindow
    Private Sub CLICK_BTN_1(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles BTN_1.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CLICK_BTN_1_LABEL_1.Text = "CLICKED BUTTON 1"
    ' CHANGE LABEL 1 ON BUTTON 2
    CLICK_BTN_2_LABEL_1.Text = "CHANGED BY BUTTON 1"
    End Sub
    Private Sub CLICK_BTN_2(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles BTN_2.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CLICK_BTN_1_LABEL_1.Text = "CHANGED BY BUTTON 2"
    ' CHANGE LABEL 1 ON BUTTON 2
    CLICK_BTN_2_LABEL_1.Text = "CLICKED BUTTON 2"
    End Sub
    End Class
    This used to be so simple with WinForms, what am I doing wrong here?
    New to WPF

    Yeah, I saw that as well but now I am stuck again:
    Same project but I have put the buttons in a usercontrol
    <Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Component_Changes"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition/>
    <RowDefinition/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition/>
    <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <Grid Grid.Column="0" Grid.Row="0">
    <Viewbox Stretch="Fill">
    <ContentControl Name="UC_BTN1">
    <ContentControl.Content>
    <local:btn1 Margin="20"/>
    </ContentControl.Content>
    </ContentControl>
    </Viewbox>
    </Grid>
    <Grid Grid.Column="1" Grid.Row="0">
    <Viewbox Stretch="Fill">
    <ContentControl Name="UC_BTN2">
    <ContentControl.Content>
    <local:btn2 Margin="20"/>
    </ContentControl.Content>
    </ContentControl>
    </Viewbox>
    </Grid>
    </Grid>
    </Window>
    btn1.xaml
    <UserControl x:Class="btn1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
    <Button Name="BTN_1" Click="CLICK_BTN_1">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_1_LABEL_1" Text="Button 1 text" VerticalAlignment="Top" Foreground="#BF000000" >
    </TextBlock>
    <TextBlock Name="CLICK_BTN_1_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 1</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    </UserControl>
    btn1.xaml.vb
    Public Class btn1
    Dim CL_BTN2 As btn2
    Private Sub CLICK_BTN_1(sender As Object, e As RoutedEventArgs) Handles BTN_1.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CLICK_BTN_1_LABEL_1.Text = "CLICKED BUTTON 1"
    ' CHANGE LABEL 1 ON BUTTON 2
    CL_BTN2.CLICK_BTN_2_LABEL_1.Text = "CHANGED BY BUTTON 1"
    End Sub
    End Class
    btn2.xaml
    <UserControl x:Class="btn2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
    <Button Name="BTN_2" Click="CLICK_BTN_2">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_2_LABEL_1" Text="Button 2 text" VerticalAlignment="Top" Foreground="#BF000000">
    </TextBlock>
    <TextBlock Name="CLICK_BTN_2_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 2</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    </UserControl>
    btn2.xaml.vb
    Public Class btn2
    Dim CL_BTN1 As btn1
    Private Sub CLICK_BTN_2(sender As Object, e As RoutedEventArgs) Handles BTN_2.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CL_BTN1.CLICK_BTN_1_LABEL_1.Text = "CHANGED BY BUTTON 2"
    ' CHANGE LABEL 1 ON BUTTON 2
    CLICK_BTN_2_LABEL_1.Text = "CLICKED BUTTON 2"
    End Sub
    End Class
    No warnings in the code but the error is: 'Object reference not set to an instance of an object' and I thought I did, obviously not in the right way.
    New to WPF

  • Simple button scripts not working in AS2

    Hi there,
    I am at my wits end. I've tried about 2 dozen tutorials word for word and they don't work and I just keep getting lots of strange errors.
    I have a very simple 4 frame scent with a forward and backward arrow on each frame to link them together. I have an artwork layer, a button layer and an action script layer. The action script layer contains stop(); and the following script in the buttons layer. I adjusted the gotoAndStop frame number accordingly for each frame. Below is an example of one frame. I ran them from frame 5 to 9 as the stop feature wouldn't work on the first keyframe.
    leftButton.onRelease=function(){
    trace("gotoAndStop(9)");
    rightButton.onRelease=function(){
    trace("gotoAndStop(6)");
    When I test the movie (publish it) the buttons don't work at all. I've tried many times to no avail. It just remains frozen on frame 5 and the arrows do nothing.
    Here is a screen shot of my file.
    http://marthalodge.com/Picture2.png
    Thanks for any help.

    Regarding the numbers, I was referring to instance/variable names, not frame labels.
    As far as errors go, the following is errant in that it is missing a closing parenthesis, but it also doesn't make much sense.  What are you expecting it to trace?
    trace(gotoAndStop("eight");

  • Simple email form not so simple UGH!!! Could really use some help!

    All I need is a simple form for name, email addy and comment.  I've been working on this all day/night and am pulling my hair out!!!
    Any help is appreciated!!
    It is sitting here:   http://loonstyn.com/contact-form.html
    Here is the code I'm using (both pages):
    For the form page:
    <HTML>
    <HEAD><title>Contact Form</title></HEAD>
    <BODY>
    <form method="POST" name="contact_form" action="http://www.loonstyn.com/contact-form-handler.php">
    Enter Name: <input type="text" name="name"> <br>
    Enter Email Address: <input type="text" name="email"> <br>
    Enter Postal Address: <input type="text" name="postal_address"> <br>
    Enter Message: <textarea name="message"></textarea><br>
    <input type="submit" value="Submit"><br>
    </form>
    </BODY>
    </HTML>
    For the handler:
    <?php
    $error_occured = "no";
    $name = $_POST['name']; // getting the value of name
    $email_address = $_POST['email']; // getting the value of email address
    $postal_address = $_POST['postal_address']; // getting the value of postal address
    $message = $_POST['message']; // getting the value of user message
    ////////////////// Data Validation ////////////////
    if($name=="" || $name==" ") {
    $error_occured = "yes";
    echo "Error: You have NOT entered your name. Please click on BACK button of your browser and correct this error to proceed.";
    if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email_address)){
    $error_occured = "yes";
    echo "Error: You have NOT entered the correct email address. Please click on BACK button of your browser and correct this error to proceed.";
    if($postal_address=="" || $postal_address==" ") {
    $error_occured = "yes";
    echo "Error: You have NOT entered your postal address. Please click on BACK button of your browser and correct this error to proceed.";
    if($message=="" || $message==" ") {
    $error_occured = "yes";
    echo "Error: You have NOT entered your message. Please click on BACK button of your browser and correct this error to proceed.";
    if($error_occured=="no") {
    $to = "[email protected]";
    $email_from = $email_address;
    $email_subject = "New Message For you";
    $email_body = "You have received a new message. Here are the details: Name = " . $name . ", Postal Address = " . $postal_address . ", Message = ". $message;
    $headers = "From: $email_from";
    mail($to,$email_subject,$email_body,$headers);
    echo "Your message was sent successfully";
    ?>

    Try this contact form. It may give you some ideas for yours. This form is set up to require 3 additional files, a header file, a menu and a footer file. You can pust what ever you want in them. The header and footer are excellent for any repetitive portions that are needed on multiple web pages. Feel free to remove the includes and inject the necessary code to finish the web page.
    <?php
    $pagetitle='Contact';
    include ('header.inc');
    print '<h1>Contact</h1>';
    include ('menu.inc');
    if ($_POST['B1']!=true) {
    print <<<FORM
    <div class="contact">
    <form method="post" action="{$_SERVER['PHP_SELF']}">
      <p><sup style="color: red; font-size: 150%">*</sup>Name:<br /><input type="text" name="T1" size="30" value="" /></p>
      <p><sup style="color: red; font-size: 150%">*</sup>E-mail address:<br /><input type="text" name="T2" size="30" value="" /></p>
      <p><sup style="color: red; font-size: 150%">*</sup>Subject:<br /><input type="text" name="T3" size="50" value="" /></p>
      <p><sup style="color: red; font-size: 150%">*</sup>Message:<br /><textarea name="S1" rows="10" cols="80" style="vertical-align: bottom"></textarea></p>
      <p style="text-align: center"><input type="submit" value="Submit" name="B1" />        <input type="reset" value="Reset"
      name="B2" /></p>
    </form>
    <p><sup style="color: red; font-size: 150%">*</sup>Required</p>
    </div>
    FORM;
    if ($_POST['B1']==true) {
    $to='[email protected]';
    $ip=htmlentities(trim($_SERVER['REMOTE_ADDR']));
    $name=htmlentities(trim($_POST['T1']));
    $email=htmlentities(trim($_POST['T2']));
    $inputsubject=htmlentities(trim($_POST['T3']));
    $subject="A message from a your website";
    $header='From: your name's Contact Page <[email protected]>';
    $message="Name: " . $name . "\nEmail: " . $email. "\nRemote IP: " . $ip . "\nSubject: " . $inputsubject . "\nMessage:\n" . htmlentities(trim($_POST['S1']));
    if (($name==null)||($email==null)||($subject==null)||($_POST['S1']==null)) {
    print "<h3>Sorry, but you did not provide enough information, Make sure all sections are filled in<br />Please try again</h3>";
    print <<<BACK
    <input type="submit" value="Back" onclick = "history.back()">
    BACK;
    die();
    mail ($to, $subject, $message, $header);
    print "<h3>" . $name . "<br />" . 'Thank you for contacting example.com' . "</h3>";
    print "<p style=\"color: rgb(128,128,255)\"><--- Please use menu to navigate from this page!</p><br /><br /><br /><br />&nbsp<br /><br /><br /><br /><br />&nbsp<br /><br /><br />&nbsp<br />";
    include ('footer.inc');
    ?>
    On your form, a word of warning - Never allow input from a user to be used as a value for the mail header. As this allows someone to inject code including javascript into your email. Forcing you to email someone else with spam. It is best to create you fixed value that you know for the mail header and place their input in your message body where it won't hurt anything. And always use htmlentities to strip their inmput from any html tags.
    Good luck...

  • Simple keyboard problem not so simple

    hi
    I have a DV2045, the keys 5 6 - # \ don't work (uk keyboard).  I reinstalled XP with a format and ran Ubuntu live demo.  Still had dead keys.
    No worries, the keyboard is faulty.  Had the laptop sent off for repair and they replaced the keyboard.  Got it back and the keys where still dead.  Ok maybe it was me, reinstalled XP and tested with Ubuntu again, still no luck.  I sent the laptop away again and again they replaced the keyboard, and again the keys didn't work.
    So now it looks like a mainboard issue, but any ideas what has gone wrong?  Its not an obvious group or a row, its seems a random set of keys?

    It doesn't have a ps/2 connection only USB, so using an external keyboard would only test the usb controller.  Your probably right to just chalk it down to a bad controller.  Won't mind but its the second mainboard, and it took them 8 weeks to order one in last time.  I was just hoping for someone to come up with something clever n clear, so I can use it to slap across the engineers heads.  Maybe i'll spit my dummy out and they'll order one earlier, its good to be the customer for a change lol.

  • Simple button highlights in PSD menu not working properly in Encore

    I'm having some trouble making even basic menus this week - I'm working on a couple of projects that need simple menus on their DVDs, but I can't get them to work.
    For one project, it's a simple menu with a photo as the background and two buttons - 'Play' and 'Behind the Scenes'. Each button group consists of a text layer with the button title and a layer called '(=1) Highlight'. The highlight layer is a simple straight line underneath the text. Nothing is overlapping, however the line is not appearing on one of the buttons. The group is detected as a button in Encore, and works when it is linked to the timeline, but the line does not appear
    With the other project I've been working on this week, there's a few menu pages - a main menu, and some chapter select sub menus. These menus look a bit fancier, but the buttons are still fairly simple - they basically consist of a line of text, but this time the highlight is a rectangular outline. I'm having what looks like the same problem with these menus - the highlights aren't displaying correctly. Most of the outlines are missing their bottom lines - so only a three-sided box is appearing.
    I've made plenty of menus before using the same method, and more complicated ones than this too, without running into any issues. I haven't been able to figure out what the problem is, despite starting over and making the menus from scratch several times, and making them one step at a time, importing them into Encore at every step to test. At some point, one or more of the highlights will always stop working. Despite this systematic approach, I'm still baffled. I'm using Photoshop CS5.1 and Encore CS5.1. After running into problems on one computer I tried making menus from scratch on another computer with the same version software but had the same problem.
    Has anyone got any suggestions of things I should try that might solve this problem? I can send an example of a menu that's not working for me if anyone would like to take a look.

    Thank you, everyone, for your continued support.
    I have tried everything suggested here, plus lots more, since I last posted. There are glitches no matter what I do. I don't think it's anything to do with what I'm doing in Photoshop as I've tried using some menus from the Encore library and I'm having the same problem with those. I've also tried using buttons from the Encore library on my menus with the same result.
    But that got me to thinking - perhaps it's just a glitch with Encore's previews. So I tried actually building a DVD image, even with the menus that appeared to be broken, and they turned out to be fine. So it must just be a glitch in the Encore preview.
    I've also discovered another bug while doing this - if you create a menu in Encore, it's always NTSC, even if the project is PAL. It makes a 4:3, 720x480 menu with a PAR of D1/DV NTSC 0.91. Surely, if you've set up a PAL project, and you create a new menu, it should create one that's actually PAL?

  • Simple Button Hit Zone not working

    I am somewhat new to Flash CS4 andt am having a problem making simple buttons in Flash CS4 on a Macintosh: I have made a few buttons with a graphic and can go into them and successfully create the Up, Over and Down stages of the graphic. Then when I create a new box for the hit state (which is larger than the graphic and I have deleted the graphic itself from the hit state) it doesn't want to appear correctly when I test the movie. When I test the movie, the hit state is correct everywhere around the graphic (to the bounds of my hit state box), but is not active where the graphic is. When I go under the Control menu, down to Enable Simple Buttons, the hit zone looks great right in my Flash file, but when I preview it or publish it and look it on different browsers (PC and Mac), I don't get my pointer right over the actual graphic, but get it everywhere around the graphic to the boundaries of my hit box. Why can't I get the actual graphic to be a hot spot in this situation? I have tried leaving the graphic in the hit timeline, and tried putting both the larger box and the graphic in the hit timeline, and still can't get them to respond correctly with the pointer in the browser window. Thank you....

    Well, since the graphic itself doesn't activate my pointer in a web browser, I thought maybe I needed to add both the box and the graphic itself to the hit state. That's what has me puzzled - the box that I use for the hit zone is "active" everywhere but where the actual graphic is...

  • Simple button not functioning?

    I've been staring at this code for an hour. Maybe I need a break? This is a very simple button that just won't accept my touch events.
    I have a movie clip. It's instance name is "boardA." The name of the symbol is "letterA" and it is linked to a class file called "Letters" (which is properly linked, I checked).
    This is the code in the class file:
    public function Letters() {
                this.addEventListener(TouchEvent.TOUCH_BEGIN, createLetter);
                trace (this.letter);
            public function createLetter(e:TouchEvent): void {
                trace ("You clicked it!");
                trace ("eName = " + e.target.letter);
    Yet nothing happens when I click the button. The constructor for the file never executes.
    I even moved the touch event to the main frame "boardA.addEventListener(TouchEvent.TOUCH_BEGIN, createLetter)" and it still didn't work. Nothing when I touch the button.
    What am I missing here?
    Thanks
    Amber

    No. Letters.as is in com/freerangeeggheads/spellmaster. It's linked as such - here is the text.
    The base class is: com.freerangeeggheads.spellwhiz.Letters
    The class is: letterA
    When I click the green check box it tell me it can find the class, and when I click the edit class button it takes me to the proper script file.
    I also have the file imported into my main frame.
    This is the Letters.as file:
    package  com.freerangeeggheads.spellwhiz {
        import flash.display.*;
        import flash.events.*;
        import com.freerangeeggheads.spellwhiz.*;
        public class Letters extends MovieClip {
            public var letter:String = "";
            public function Letters(): void {
                this.addEventListener(TouchEvent.TOUCH_BEGIN, createLetter);
                trace (this.letter);
            public function createLetter(e:TouchEvent): void {
                trace ("You clicked it!");
                trace ("eName = " + e.target.letter);
    Thanks!

  • NOOB: Simple button to insert a new row...

    I have a two column database table.
    It is displayed on an interactive report in two columns.
    I want to create a new row via button with the values of "new" "new" in the two fields.
    I was thinking this should be pretty simple however have not found the right example online to how to achieve this.
    Thanks
    Rob
    Edited by: bostonmacosx on Jun 8, 2012 1:40 PM

    Normally you would add a "New" button to the IA report and redirect to a form page in which you can add a new record.
    So steps are :
    1. Create a form on this table so you can add and edit records on this table
    2. Create a "New" button on your IA report which redirects to this page.
    Regards,
    Bas

  • Simple button help needed!

    I want to make a simple round button that glows when you
    mouse over it and depresses when you click it.
    Apparently to do this I need to use Filters to make the glow
    and bevels. But Filtersonly work on movie clips, buttons and text.
    So I make a circle and convert it into a button symbol
    (Btn1). Then I make another button symbol (Btn2) and use the first
    button symbol (Btn 1) on the Up Over and Down frames of Btn 2.
    Assorted Filters are applied to Btn 1 on the Up Over and Down
    frames to get the effects I want.
    I test the button (Btn2) using Enable Simple Buttons. It
    works perfectly - glows on mouse over and depresses on click. Then
    I try Test Movie -- and the button doesn't work!!!
    Not does it work when exported as a SWF file!!!
    I watched a tutorial video that came with my Flash Pro 8
    Hands-On-Training (HOT) book and he used pretty much the same
    technique -- except he only tested his button with Enable Simple
    Buttons. I'll bet my house his didn't work with Test Movie either!
    The stupid thing, is I was just able to achieve exactly what
    I wanted very quickly using LiveMotion 2!
    What is wrong here? Why is it so impossible to create a glow
    button in Flash? Why has it been easy in Live Motion for years?
    All help appreciated!
    Thanks
    craig

    I thought the nesting button situation might be the problem
    BUT there is no other way to apply Filters to Up, Down, etc. Also,
    a freaking tutorial book described that as a valid method, but
    obviously it ain't.
    I tried using movieclips as well but basically had the same
    problem.
    I mentioned LiveMotion 2 because that ancient program can do
    easily what Flash Pro 8 seems incapable of.
    What is the logic behind not allowing Filters to be applied
    to simple graphics? It's absurd!
    There's got to be a way...

  • Simple button in AS3

    hello everybody,
    in my website I have a simple button that should trigger at
    every click a different frame. Browsing the net I have found the AS
    for the simple button (attached code) that works for a sigle click.
    Would please tell me the AS to give to the button the
    function described above??
    thank you so much

    My line would replace the gotoAndStop(2) that you had in your
    previous code. But I'm not sure that it is what you want. The code
    I gave you will tell the thing you clicked on to go to frame 2 and
    only to frame two.
    I think you are trying to do something different that what I
    thought. I think what you want instead of your gotoAndStop() line
    you just want
    nextFrame();
    Of course you might want to do something special when you get
    to the last frame so you might want to add something like:
    if(currentFrame==totalFrames){
    next.removeEventListener(MouseEvent.CLICK, release);
    next.alpha=.5;
    That would go just after the nextFrame(). That checks to see
    if the current frame is the last one and if so removes the click
    handler from the next button and makes it transparent so it looks
    disabled. (That could be done in a lot of fancier ways, but this
    was just to give you the idea.)
    Does that help?

  • Simple short cuts not working in CC?

    Does anyone know why simple commands are not working in Illustrator CC (Copy, Paste, Undo) This is such an irritating problem as these short cuts are so frequently used. My cloud software is up-to-date. Having upgraded my software I would prefer not to have us CS5 to combat this problem.

    Hi Vaibhav,,
    Thankx for the prompt help!!
    I'm using Submit to SAP button only and I do have xACF installed on my local m/c. I'm able to use buttons and validations on the form but I'm not able to get the values in my WDynpro ABAP Appl. For Eg. : and internal table is bound to a table UI in adobe iForm , I'm able to add row (using formcalc/JScript eventing in Adobe) but I'm not able to get the changed internal table in my WDynpro ABAP application after submit button is pressed.
    Any help will be highly appreciated.
    Regds,
    Aryan

  • Can't get Simple button to Load Movie Clip

    Hi I've looked around for the answer to my question on this
    forum
    but havent found it so here it goes. I am working on this
    company's
    Flash site that was built by an outside studio. I am using
    CS3.
    The url to the site is
    http://www.bubbakeg.com.
    (this link will take you to the main page click the shadow
    graphic
    on the left under Bubba and this will take you to the site I
    am speaking
    of. The site is basically 5 different pages or movie clip.
    What I am
    trying to do is basically change the "Spring Break" middle
    graphic
    (which is a Movie Clip) on the HOME page and add a simple
    button
    that will direct the user to a new page. When I replaced the
    graphic
    with a new Movie clip there was no problem but I have added
    a
    button to load a new page (movie clip) and nothing happens.
    This
    button is in the movie clip of the new graphic which is
    called up
    when the page loads. If i take this button and just put it
    on the
    Main Stage in Scene 1 by itself it works and loads the page
    (movie clip). It does not however when it is embeded in the
    Movie
    Clip. The Flash site is basically 5 different Movie Clips
    loaded into
    an "Empty Clip". This empty clip has a timeline with each of
    the
    clips labeled and with their respective sized placeholders.
    And
    when you click on either the links on the Nav bar or the
    graphic
    for each page it loads that movie clip on the main page. It
    seems
    like the button only wants to work on the main timeline. I
    have
    even replaced the code for the "Contact" button with the code
    for the new button and it worked (opening new page). Here is
    the
    code for the new button that does not work:
    on (release) {
    _root.contentHolder.myHeight = 307;
    _root.contentHolder.newLoc = 9;
    heightAnimation();
    I know the location and height from the above code are
    referring to the placement and sizing of each movie clip
    in the "Empty Clip". As i said before this heightAnimation
    and the resizing of the new clip works fine when the
    button resides in Scene 1 on the Main Timeline but not
    within the new movie clip (graphic Ive created.)
    I will upload the main chunk of the code that resides
    in Scene 1 on the first frame of the "Actions" layer.
    If anyone has any ideas I would appreciate it very much!
    Please let me know if I can provide anymore info.
    Thanks!
    Greg

    change:
    function newLayerBT_CLICK(MouseEvent):void{
    to:
    function newLayerBT_CLICK(e:MouseEvent):void{

  • Is there one simple button or option called "delete or remove duplicates" ??

    is there one simple button or option called "delete or remove duplicates" ??

    to clarify..in winamp you simply click remove duplicates and all duplicate songs are removed. In Itunes it appears you have to click on each individuale song. (yes you can hold the control key and hit delete one time , but when yo uhave hundreds or thousands of songs this is very time consuming
    Surely there must be a faster simpler way??????
    Message was edited by: IanLeg
    NO THIS DIDS NOT SOLVE ANYTHING i'M ADDING TO MY ORIGINAL QUESTION. I DID NOT SAY IT SOLVED IT
    THE ITUNES APPLE CRAP IS REDICULOUS

Maybe you are looking for