Buttons within Complex Buttons

Hi all - i'm trying to create a navigation system fairly
indentical to this one:
http://www.thefieryfurnaces.com/
I am using a complex button with actionscript, however I
can't get any of the navigation buttons to work on top of this. I'd
like them to be complex buttons also ... can anyone help me work
around this? Tearing my hair out!
Cheers //
Heath.
Actionscript for the complex buttons i'm using below:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
this.onRollOver = function(){
rewind = false;
play();
this.onRollOut = function(){
rewind = true;

One thing to get straight right away is that these buttons
inside of movieclips. The buttons make the movieclips play, which
is where the slideout effect comes in. The words are also buttons,
with the over state containing the bouncing ball movieclip. All of
these buttons are contained inside of another movieclip which make
it looks like they are inside a sliding menu.
What was the question again? haha

Similar Messages

  • How can I execute an external program from within a button's event handler?

    I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE)
    I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and especially stored procedures written in SQL).
    I tried what I'd do in a standalone program (as shown in the appended code), but it didn't work. Instead I received text saying the program couldn't be found. This error message comes even if I try the Windows command "dir". I thought with 'dir' I'd at least get the contents of the current working directory. :-(
    I can probably get by with cgi on Apache's httpd server (or, I understand tomcat supports cgi, but I have yet to get that to work either), but whatever I do I need to be able to do it from within the button's event handler. And if I resort to cgi, I must be able to maintain session jumping from one server to the other and back.
    So, then, how can I do this?
    Thanks
    Ted
    NB: The programs that I need to run do NOT take input from the user. Rather, my code in the web application processes user selections from selection controls, and a couple field controls, sanitizes the inoputs and places clean, safe data in a MySQL database, and then the external program I need to run gets safe data from the database, does some heavy duty number crunching, and puts the output data into the database. They are well insulated from mischeif.
    NB: In the following array_function_test.pl was placed in the same folder as the web application's jsp pages, (and I'd tried WEB-INF - with the same result), and I DID see the file in the application's war file.
            try {
                java.lang.ProcessBuilder pn = new java.lang.ProcessBuilder("array_function_test.pl");
                //pn.directory(new java.io.File("K:\\work"));
                java.lang.Process pr = pn.start();
                java.io.BufferedInputStream bis = (java.io.BufferedInputStream)pr.getInputStream();
                String tmp = new String("");
                byte b[] = new byte[1000];
                int i = 0;
                while (i != -1) {
                    bis.read(b);
                    tmp += new String(b);
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + tmp);
            } catch (java.io.IOException ex) {
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + ex.getMessage());
            }

    Hi Fonsi!
    One way to execute an external program is to use the System Exec.vi. You find it in the functions pallet under Communication.
    /Thomas

  • Get the value of a selected radio button within a ToggleGroup

    All
    Please see the script below. All I'm trying to do is to identify the selected radio button within a ToggleGroup. This has been working in JavaFX 1.2.
    This is JavaFX 1.3 running on NetBeans 6.9 (beta) on Ubuntu 10.04
    Does anyone know why this is no longer working?
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.control.RadioButton;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Toggle;
    def levelGroup = ToggleGroup {};
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        // here I want to capture the value of the selected toggle
        // the outputted value is always 'null'
        println("level toggle = {selected.value}");
        println("selectedToggle = {levelGroup.selectedToggle.value}");
    Stage {
       scene: Scene {
          width: 300
          height: 300
          content: [
             HBox {
                    translateX: 100
                    translateY: 67
                    spacing: 20
                    content: [
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Easy"
                            selected: false
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Medium"
                            selected: true
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Hard"
                            selected: false
    }

    Actually, your code above wouldn't have worked in JavaFX 1.2 as we only added the value property to the new Toggle mixin in 1.3. I believe what worked for you in 1.2 was when you referred to text, which is not a property on Toggle, so you need to cast the selected variable from Toggle to a RadioButton, which does have a text property. For example, this would work:
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        println("level toggle = {(selected as RadioButton).text}");
        println("selectedToggle = {(levelGroup.selectedToggle as RadioButton).text}");
    }Alternatively, instead of casting like this, you can store a value in the value property of the Toggle mixin class, which is extended by RadioButton. For example, your code could be changed to the following (in particular note that the only change is the addition of the value properties in each of the RadioButton):
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.control.RadioButton;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Toggle;
    def levelGroup = ToggleGroup {};
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        println("level toggle = {selected.value}");
        println("selectedToggle = {levelGroup.selectedToggle.value}");
    Stage {
       scene: Scene {
          width: 300
          height: 300
          content: [
             HBox {
                    translateX: 100
                    translateY: 67
                    spacing: 20
                    content: [
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Easy"
                            selected: false
                            value: "Easy"
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Medium"
                            selected: true
                            value: "Medium"
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Hard"
                            selected: false
                            value: "Hard"
    }This approach saves you from having to cast from Toggle to RadioButton. This second approach is actually very powerful, as you can store any object in the value field, and can then easily retrieve it at a later point when the user selects the desired RadioButton. Of course, you can just use it as in the simple case above as well.
    I hope that helps.

  • Play a Movie Clip on a frame In Main SWF from a button, within 2 MovieClips

    I’m using AS2, Flash 8
    I have a frame on my main Timeline Called “Gallery” within this frame I have 2 movie clips, which I need to work together:
    One is called:
    Gall_Lge_1
    Which contains 37 frames.
    Each frame has a different movie – basically 37 different photos which pop up on each frame.
    (MC’s named Lge_1, Lge_2, Lge_3 etc)
    The second Movie Clip I have on here is called:
    gall_strip_mc
    Which contains a movie clip called strip1 , (which is set to scroll its contents controlled by buttons on ”Gallery”- which works) inside that is a movie clip called strip_all , and contains one frame with 37 buttons/photo thumbnails, (Buttons named btn1, btn2, btn3 etc which I require to link each individual button to the corresponding photo/frame in Gall_Lge_1  …
    So,
    btn1 will go to and play Lge_1(Frame 1 of Gall_Lge_1)
    btn2 will go to and play Lge_2(Frame 2 of Gall_Lge_1)
    I’m stuck and can’t get it to work..
    Here is the site – under ‘Gallery’ so you can see what I’m trying to achieve
    http://www.blueshelldesign.com.au/draft/
    (I’ve placed in Back and Next buttons next to ‘Gall_Lge_1’ so you can see how its suppose to look when the thumbnails from ‘gall_strip_mc’ are clicked)

    First, you do not use quotes when you are specifying a frame number, so try changing that first.  The only time you use quotes for that argument is for frame label strings.
    If it still won't play, are you sure that the button is coded properly and executes the function when clicked?  You should put a trace in the function to make sure.  Also, you could try using _root instead of _level0... I forget the difference, if any, but _root will definitely get you to the main timeline.
    btn2.onRelease = function() {
         trace("btn2 clicked");
        _root.Gall_Lge_1.gotoAndPlay(2);

  • How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???

    I have the following situation
    MainMove.swf is doing a loadmovie of SecondMovie.swf
    The Button that loads SecondMovie.swf also disables other buttons in MainMovie.swf
    on (release) {
        _root.intro_btn.enabled = false;
        loadMovieNum("SecondMovie.swf", 2);
    How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???
    Using AS2 is this current project
    Thanks

    lol Sorry bout that I'm brand new here and was looking for the option to remove the post from the other location.

  • Button within a movie clip not working

    Hiya,
    I have a movie clip within my swf website that is basically
    an icon that you roll over to produce the menu. The movie clip has
    coding inside it to produce the rollover effect. This is as
    follows:
    stop();
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    this.onRollOver = function(){
    rewind = false;
    play();
    this.onRollOut = function(){
    rewind = true;
    Whilst this coding works fine for this movie clip, for some
    reason the buttons within the movie clip that appear as you
    rollover them will not work when pressed. I am trying to get them
    to navigate the main timeline, i.e. coding as follows:
    on (release) {
    _parent.gotoAndPlay("home")
    _parent should be correct, I've tried it without and with
    _parent._parent however still it has no effect. From what I can see
    everything should be working fine.
    Is there some reason why buttons will not work within this
    sort of roll over effect movie clip?
    Thanks for your help.

    you can't assign mouse handlers to a parent movieclip and
    expect a child movieclip to respond to mouse events: the parent
    will intercept those events.
    to remedy, either assign all your mouse handlers on the child
    generation movieclips or use a hitTest() for one of the
    generations.

  • Controlling the main time line of a movie via a button within a movie on a different level.

    Hi there!
    I have two movie is two different levels,
    Level 5 is my base movie and I am loading another movie on
    top of this into level 10.
    Once the user clicks onto a button within the movie on level
    10, I would like the animation in level 5 to stop (the animation
    runs on the main root timeline of level 5).
    Once the user clicks on a different button within the movie
    on level 10, I would like the animation on the main timeline of the
    movie in level 5 to start again from the point where it previously
    left off.
    Is this possible?
    It would be great if someone could help me out with this.
    Thanks, midi_ie

    midi_ie wrote:
    > Hi there!
    > I have two movie is two different levels,
    > Level 5 is my base movie and I am loading another movie
    on top of this into
    > level 10.
    > Once the user clicks onto a button within the movie on
    level 10, I would like
    > the animation in level 5 to stop (the animation runs on
    the main root timeline
    > of level 5).
    >
    > Once the user clicks on a different button within the
    movie on level 10, I
    > would like the animation on the main timeline of the
    movie in level 5 to start
    > again from the point where it previously left off.
    > Is this possible?
    _level5.gotoAndPlay("someLabelframe");
    Use your regular action to target timeline or movie clips,
    just define the level number at the beginning of the path.
    Pretty much it :)
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Can I place a "Return Button" within a clip?

    Is it possible to place a button within a video clip that would enable a user to return to the previous menu? I am using submenus and to return to the submenu requires going back to the main menu and then back into the submenu.
    24 inch iMac   Mac OS X (10.4.8)  

    Is it possible to place a button within a video clip that would enable a user to return to the previous menu?
    short answer is no. However you can add a button for the main menu
    If you have a project with submenus, you can add a button that viewers can click to go back to the main menu.
    To add a button for the main menu:
    Open the menu where you want to add the button and choose Project > Add Title Menu Button.
    Hope this helps.
    SDMacuser

  • The buttons in main the vi get locked after opening a vi reference in a subpanel and using buttons within the subpanel.

    I am trying to open a reference to a vi in the subpanel of the main vi. However after the vi opens in the subpanel and after pressing a few buttons in the subpanel the buttons in the main vi get locked, i.e. I can't even close the main vi or control anything else. Is there any way how I can avoid this happening?

    > The buttons in main the vi get locked after opening a vi reference in
    > a subpanel and using buttons within the subpanel.
    >
    > I am trying to open a reference to a vi in the subpanel of the main
    > vi. However after the vi opens in the subpanel and after pressing a
    > few buttons in the subpanel the buttons in the main vi get locked,
    > i.e. I can't even close the main vi or control anything else. Is there
    > any way how I can avoid this happening?
    This is most likely happening because in either the top or sub panel,
    there is an event structure that is queuing events, and is set to lock
    the panel until the events are handled, and because of the logic in the
    diagram, the events aren't being pulled from the queue.
    So, you have a deadlock. You are waiting
    on the panel. The panel is
    waiting on the diagram. And the diagram is waiting on something else.
    So, if there are indeed event structures involved, determine where in
    the diagram things are delaying. Also, if you do not need the panel to
    lock until the event is handled, you can change the setting in the
    events dialog on the structure. But the events will still be queued
    until the diagram starts executing.
    Greg McKaskle

  • Call a external SWF by press the button within another SWF file but the second SWF file play Externely

    Hello Guyz.
    i am working on Macromedia Flash 8 and i just want to call a external SWF when i press the button within another SWF file.......but the second SWF file play Externely............can any one knows the code.... AS2

    try this
    http://www.actionscript.org/forums/showthread.php3?s=&threadid=28123

  • Submit button within Interactive adobe form

    Hi,
        We have developed an Interactive adobe form and inserted a submit button within it We have installed ACI also.We tried putting the submit button both within the adobe form body and also within the webdynpro java view. In both the cases pressing the submit button does not result in any action. Please advise on what we are missing. We checked the forums for similar issues and found out that we are abiding by most of it.
    thanks
    anantharam

    Hi Anantharam,
    Please create and action in your view and attach it to your Interactive form UI element's onSubmit event. By doing this, whenecver you press the Submit button in the form, this action will be invoked. You can place any methots/code that you want to execute on click of submit button.
    If you are using the button outside the form, then you try printing one of the values that you filled in the form which is binded to context. This way you can test.
    If you are using WDP activex UI element s in the form then you need to have ACF installed on the machine and also ensure that the displayMode property of Interactive form is set to ActiveX.
    Hope this helps!!
    Regards,
    Arafat

  • Hyperlinks within a button / button within a rollover button?

    Hi folks,
    I'm quite the newbie here (print designer trying my hand at multimedia news projects), so I apologize in advance for sounding stupid a bit too often.
    OK, so I'm working on a project, and it's going OK. What I want to do is for the user to rollover a button/object, and a little pop-up box will show up, and it will have some text/photos/... Pretty routine stuff. That I can accomplish without a problem...
    Now, what I want to add in there is also a hyperlink that will open a Web page in a new window. And that's where I get stuck. It won't let me.
    I assume it's because part of the rollover thing in the button symbol. That's how I'm doing it so far.
    So, is there anything I can do going that route, or do I need to take another approach?
    I'm thinking the other option would be to create a movie clip, which would hold the pop-up box and the photos and the like, then make a button within that which would hold the hyperlink. Then, I could create an object right on the timeline with a rollOver that would trigger the movie-clip instance.
    Does that make any sense?
    I'm using CS3, but I also have access to CS4 if needed.
    Thanks in advance for your help!

    Hi Ned,
    Thanks for the reply. I think I know what you mean. So anything that's triggered with a button cannot have anything inside triggered again.
    To put it pretty simply, this is what I have:
    There's a fever chart, and there are several points that I would like highlighted along the way.
    So, when I roll over, say, the highest point, a balloon of sorts would pop up. It would have some text and photos and whatnot, but it would also have hyperlinks.
    So... What's the best way to approach it?
    I'm thinking the balloon of sorts would be its own movie clip, and all the goodies would be inside of it.
    Now, to trigger it, should there be an object converted to a symbol to trigger it? Then, should I do a on(rollOver) kind of thing? When I roll over it, it would play that instance.
    Or, the other option would be to do a rollover that would go to a certain layer/frame and play that.
    What do you think?
    Again, I'm sorry about my ignorance.
    Thanks!

  • What does the "complex" button do in the side menu ? Flex time menu

    hello
    can anyone please advise me what the "COMPLEX" button does ?

    http://help.apple.com/logicpro/mac/10/#lgcpa77a4a3f
    Look under Polyphonic in the list.
    What it means: Straight Polyphonic would be for a single instrument playing chords. ie: guitar, keyboard, voices...etc.   The Complex setting would be for a mixture of instruments.

  • Center Button Within Region

    How do I center a button within a region? I tried 'align="center"' but this seemed to be ignored. The button is at the left of the screen. Also, what are the 'display points' (Page Template Region Position 1-8) used for, and why is there a specification for column position of 1-9? Could these be attributes that will allow my button to be centered on the window instead of on the left?
    Thank you!

    Question was answered on another post.

  • Button within Region

    Hi,
    Previously, I created a screen that had a Password field and next to it a button marked as 'Approve'. When the user filled in his password and clicked the button, the Approved By field wouild be filled in and the DML update process would update the record. I checked for :REQUEST in ('SAVE', 'APPROVE'). I had tested this and it worked.
    Sometime after the testing, I upgraded to Apex 2.2. I just built another screen that, in effect, cloned the Approve processing and found that I cannot make it work and that the original screen does not work as it used to. The session state shows that the appropriate values are being set/calculated and the debug process shows that the DML process is 'running' but no update is occurring. If I do a 'normal' update via a SAVE button at the top of the region, the DML process stores the record and if the session state for the Px_Approved_BY screen field has been set by the Approve process then its value goes into the data base record too.
    I think the difference in behavior is caused by the fact that SAVE button has a Database Action attribute of SQL Update action associated with it while the Approve button within the region has no data base action attribute.
    Is there a way to get around this new 'feature' without moving the Approve button to a non-intuitive position in the screen?
    thanks,
    Peter

    Peter - Can you put an example on apex.oracle.com and show us what is not working?
    Scott

Maybe you are looking for

  • Idoc to File(AS2)

    Hi, I am workingon IDOC to File(AS2) scenario. When i execute the mapping in IR it executes succesfully and gives the data in the specified File format. but when i test the interface, i am getting the output file in IDOC format where in  it has to be

  • Whycan't  i move songs manually  around in playlists

    why can't i manually move songs around in playlist

  • How to delete in Webstart the history of the address bar?

    Hello, each jnlp-URL called in the Webstart Viewer of Java 1.4 (and probably at the higher versions, too) usually is added to the history of the Webstart address bar, displayed by clicking the dropdown button right. How can this addess bar history be

  • Camera Connection Kit and MIDI keyboard: device not supported

    I have a Roland RD-700SX stage piano and would like to be able to play sounds from my iPad 2 synth app (Sunrizer) via the real keyboard. Got the camera connection kit and plugged into the Roland, but the iPad tells me the RD device is not supported.

  • Adobe Flash Player Fails to Play Videos

    Hi, Although I have repeatedly uninstalled and re-installed Adobe Flash Player, I continually get asked by various websites to load it as if it were not there. Most video clips will not play with the exception of some YouTube videos which ask me to l