Adding scene to a button

Hi, I want to trigger a scene to play (well, stop technically) when the play game button is clicked but I keep getting error messages. This is the code I'm using:
play_btn.addEventListener(MouseEvent.CLICK, playgame);
function playgame(event:MouseEvent):void{
       gotoAndStop("roomescape");
Can anyone see what I'm doing wrong? Please describe in basic terms if so!

If roomescape is the scene name, then you should also specify the frame.  Try putting a 1 (no quotes) as the first argument in your gotoAndStop call...
gotoAndStop(1, "roomescape");
Just a word of warning... using scenes with navigation is chancy stuff... can often fail unpredictably thru no fault of your own.  You would do better to use the one timeline and just create different sections along it for what you are using scenes to do.

Similar Messages

  • User exit/ BADI in f-32 / f-28 for adding application tool bar button

    Hi Experts,
    There is a requirement, for adding application tool bar button in the Transaction codes F-32 / F-28 / Feba_lockbox. So that while clearing documents with reference document, they can upload the data(Reference Documents) from local file and after the data is fetched for clearing, they need to download the data to local file for verification. If the data is verified to be okay, then they can go ahead with simulation and posting. They need this verification to be done in excel sheet, so need to download the data into local file.
    I found a BADI in that screen is BADI_LAYER but I don't think it is relevant.         
    Any help is apreciated!
    Is there any EXIT ? Because I can not find it too.
    Regards,
    Nitin

    where you did the enhancement?
    I have to create the IDOC once Clear docuemnt is created.. It may help me.

  • ALV Grid default values for new rows added with Add/Insert buttons

    Hi!
    Help, please,  to find a way how to set default values for new rows added with Add/Insert buttons in
    ALV Grid.

    I have found salution:
    ALV Grid u2013 Insert row function
    Sometimes we need to assign some default values when we create a new row in a grid using standard ALV Append row button. In our scenario we will see how to assign default values to Airline Code (CARRID), Flight Connection Number (CONNID) and Flight date (FLDATE) when a new row is created. To do that we need to handle DATA_CHANGED event in the program like mentioned below.
    Definition of a class:
    Code:
          CLASS lcl_event_receiver DEFINITION
    CLASS LCL_EVENT_RECEIVER DEFINITION.
      PUBLIC SECTION.
    METHODS:
         handle_data_changed
         FOR EVENT data_changed OF cl_gui_alv_grid
         IMPORTING er_data_changed
                           e_ucomm.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    Implementation of a class:
    Code:
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
      METHOD HANDLE_DATA_CHANGED.
        DATA: dl_ins_row TYPE lvc_s_moce.   " Insert Row
          FIELD-SYMBOLS: <fs> TYPE table.    " Output table
    Loop at the inserted rows table and assign default values
        LOOP AT er_data_changed->mt_inserted_rows INTO dl_ins_row.
          ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
          loop at <fs> into ls_outtab.
            ls_outtab-carrid  = 'LH'.
            ls_outtab-connid  = '400'.
            ls_outtab-fldate  = sy-datum.
            MODIFY <fs> FROM ls_outtab INDEX sy-tabix.
          endloop.
        endloop.
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    Register the events to trigger DATA_CHANGED event when a new row is created.
    Code:
        CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
          EXPORTING
            I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
        CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
          EXPORTING
            I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.

  • Adding text to a button.

    Can anyone tell me how to add text to a button I created? If it changes anything, it is a sub-menu button

    Hi:
    Sorry if it sounds like a RT_M answer, but look in the User Manual for the topic Adding Text to a Button and you'll get the step by step procedure.
    If it don't answer your question or you mean something different come back please !
      Alberto

  • Updating/Adding Scene Button

    Created basic iDVD movie (my first -yes!). Subsequently added new chapter in iMovie, and would like to update/add scene button to iDVD project. In reading posts, apparently I need to "delete existing movie and re-import." If this is the correct procedure, how is delete - reimport safely and cleanly done? Thank you very much.
    MacbookPro   Mac OS X (10.4)  

    If I were doing this, i'd burn a disc image first of the existing/working iDVD simply as a safegaurd (provided one has the available HD space to do this plus a brand new modified project). If not, at least burn it to DVD as a backup.
    Delete the encoded assets in iDVD. Now drag the entire iDVD project to the trash. Empty it. Restart the computer.
    Now go back into the original iMovie project and make the necessary modifcations. Once it's completed & previews exactly as you want it with all the correct/amended chapters & buttons then create a disc image and burn to Verbatim DVD-R at 4x or slower using Apple's DU or Roxio Toast.
    Note: To use chapter markers set in iMovie in your iDVD project, you can add the iMovie to iDVD using the export features built into iMovie and iMovie HD. You can also use the Media pane in iDVD to add iMovies with chapter markers.
    IMPORTANT: If you share an iMovie project as a QuickTime movie using the Full Quality option, iMovie HD doesn't include chapter markers in the QuickTime movie.
    Hope this is Helpful and good luck.
    (3) G4 PM's/(3) S-Drives/Sony TRV900/Nikons/6FWHD's/PS7/iLife06/FCPHD/DVDSP/etc. Mac OS X (10.4.8) My ichatav AIM account is: SDMacuser1 (Please use Text chat prior to video)

  • Adding scene selection button

    How do I add a button that links to the scene selection on the disc menu?

    When you add Scene Markers to your Timeline, PrE will automatically add the link from a Scene Selection Button (from either the Main Menu, or a Scene Selection Menu, depending on the chosen Template) automatically, and will even create any necessary Scene Selection Menus, to accommodate the number of Scene Markers that you have.
    In PrE, such linking is done automatically, and requires not input from the user, beyond the creation of those Scene Markers, and the choice of Menu Template.
    In many other authoring programs, and especially full-featured programs, like Adobe Encore, those links ARE done manually.
    Good luck, and hope that helps,
    Hunt

  • Adding a branchgroup to a live scene with swing buttons

    Hi, please have a look on the following code.
    I want to add "objects" in a live scene.
    I've planned to do this by attaching a new branchgroup
    to an existing alive structure.
    The code of the new branchgroup is in the action of a swing button.
    // method "addObject" called by the button
    private class addObject extends BranchGroup implements ActionListener {
    public void actionPerformed(ActionEvent event){
    BranchGroup obj = new BranchGroup ();
    // Creation of a sphere
    Sphere sphere = new Sphere (0.3f);
    System.out.println(sphere);
    obj.addChild (sphere);
    obj.addChild (this);
    System.out.println("add action");
    System.out.println(obj);
    // definition of the button
         private JButton ajout = new JButton("Ajout");
         JPanel p2 = new JPanel();
    ajout.addActionListener(new addObject());
    p2.add(ajout);
    // code to attach the branchgroup
         BranchGroup b2 = new addObject();
    System.out.println("br "+b2);
    objRoot.addChild(b2);
    objRoot.compile();
    return objRoot;
    But, the Sphere is not seen on the scene
    even if the action on the button seems to work.
    And if i do twice, i get this error :
    Exception occurred during event dispatching:
    javax.media.j3d.MultipleParentException: Group.addChild: child already has a parent
         at javax.media.j3d.GroupRetained.checkValidChild(GroupRetained.java:442)
         at javax.media.j3d.GroupRetained.addChild(GroupRetained.java:451)
         at javax.media.j3d.Group.addChild(Group.java:266)
         at applet3d.Scene3D$addObject.actionPerformed(Scene3D.java:588)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    Anyone can help ?
    Thanks

    I've changed the code a bit.
    I don't have the exception anymore, and when i press the button, i really create instances of sphres, but they are not seen in the Scene.
    Any idea someone ?
    package applet3d;
    import java.awt.*;
    import java.awt.GraphicsConfiguration;
    import java.awt.event.*;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.behaviors.mouse.*;
    import com.sun.j3d.utils.behaviors.keyboard.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import javax.swing.*;
    public class Scene3Db extends JFrame implements ActionListener, MouseListener {
         private static final long serialVersionUID = 1L;
         private SimpleUniverse su;
    private BranchGroup sceneBG, mainBG, shapeBG, objRoot;
    private TransformGroup mainTG, shapeTG, cameraTG;
    private BoundingSphere bounds;
    private Material material2;
    private static int mycount = 1;
    //declaration des elements du gui
    private JLabel etiq1;
    private JCheckBox couleur;
    //constructeur
    public Scene3Db() {
    Container contentPane = getContentPane();
    //BorderLayout bl = new BorderLayout();
    //setLayout(bl);
    GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
    Canvas3D c = new Canvas3D(config);
    contentPane.add("Center", c);
    JPanel p1 = new JPanel();
    p1.add(presentationPanel());
    contentPane.add("North", p1);
    JPanel p2 = new JPanel();
    JButton ajout = new JButton("Ajout");
    addObject addObjBG = new addObject();
    ajout.addActionListener(addObjBG);
    //objRoot.addChild(addObjBG); //pb !
    p2.add(ajout);
    contentPane.add("South", p2);
    SimpleUniverse su = new SimpleUniverse(c);
    BranchGroup scene = createSceneGraph(su);
    //scene.setCapability( BranchGroup.ALLOW_BOUNDS_READ );
    su.getViewingPlatform().setNominalViewingTransform();
    su.addBranchGraph(scene);
    addWindowListener( new WindowAdapter() {
    public void windowClosing(WindowEvent e) {System.exit(0);}});
    setSize(800,600); //Taille Fenetre
    show();
    repaint();
    //cr�ation du graphe de sc�ne
    public BranchGroup createSceneGraph(SimpleUniverse su) {
    //cr�ation d'un BG racine de l'arbre 3D
    //BranchGroup objRoot = new BranchGroup();
    objRoot = new BranchGroup();
    objRoot.setCapability( BranchGroup.ALLOW_PICKABLE_READ );
    objRoot.setCapability( BranchGroup.ALLOW_PICKABLE_WRITE );
    objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
    objRoot.setCapability(BranchGroup.ALLOW_DETACH);
    objRoot.setCapability(Group.ALLOW_CHILDREN_READ);
    objRoot.setCapability(Group.ALLOW_CHILDREN_WRITE);
    objRoot.setCapability(Group.ALLOW_CHILDREN_EXTEND);
    //cr�ation d'un bounds pour le fond et la lumi�re
    BoundingSphere bounds =
    new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
    Color3f bgColor = new Color3f(0.05f, 0.05f, 0.2f);
    Background bg = new Background(bgColor);
    bg.setApplicationBounds(bounds);
    objRoot.addChild(bg);
    Color3f light1Color = new Color3f(1.0f, 1.0f, 0.9f);
    Vector3f light1Direction = new Vector3f(4.0f, -7.0f, -12.0f);
    DirectionalLight light1
    = new DirectionalLight(light1Color, light1Direction);
    light1.setInfluencingBounds(bounds);
    objRoot.addChild(light1);
    BranchGroup sceneObj = new BranchGroup();
    //cr�ation d'un TG pour la gestion d'�chelle
    TransformGroup objScale = new TransformGroup();
    Transform3D t3d = new Transform3D();
    t3d.setScale(0.4);
    objScale.setTransform(t3d);
    sceneObj.addChild(objScale);
    //cr�ation d'un TG pour permettre la modification des objets visuels
    TransformGroup objTrans = new TransformGroup();
    objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    objScale.addChild(objTrans);
    MouseRotate myMouseRotate = new MouseRotate();
    myMouseRotate.setTransformGroup(objTrans);
    myMouseRotate.setSchedulingBounds(new BoundingSphere());
    sceneObj.addChild(myMouseRotate);
    MouseTranslate myMouseTranslate = new MouseTranslate();
    myMouseTranslate.setTransformGroup(objTrans);
    myMouseTranslate.setSchedulingBounds(new BoundingSphere());
    sceneObj.addChild(myMouseTranslate);
    MouseZoom myMouseZoom = new MouseZoom();
    myMouseZoom.setTransformGroup(objTrans);
    myMouseZoom.setSchedulingBounds(new BoundingSphere());
    sceneObj.addChild(myMouseZoom);
    //Canvas3D c = new Canvas3D(null);
    //PickHighlightBehavior pickBeh = new
    //PickHighlightBehavior(c, objRoot, bounds);
    BranchGroup b2 = new addObject();
    objRoot.addChild(b2);
    //System.out.println("br "+b2);
    objRoot.addChild(sceneObj);
    //objRoot.addChild(b2);
    objRoot.compile();
    return objRoot;
    public JPanel presentationPanel() {
         JPanel panel1 = new JPanel();
    etiq1 = new JLabel
    ("Modelisation d'un environnement naturel en 3D / � 2005 cnam ubo");
    panel1.add(etiq1);
    return panel1;
    //fonction ajout d'objet
    private class addObject extends BranchGroup implements ActionListener {
    private addObject () {
    this.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
    public void actionPerformed(ActionEvent event){
    BranchGroup obj = new BranchGroup ();
    // Cr�ation d'une sph�re
    Sphere sphere = new Sphere (0.3f, Sphere.GENERATE_NORMALS, 20);
    System.out.println(sphere);
    Transform3D sphereRandromTransform = new Transform3D ();
    sphereRandromTransform.setTranslation(new Vector3d(randomCoord(),randomCoord(),randomCoord()));
    TransformGroup sphereTG = new TransformGroup (sphereRandromTransform);
    sphereTG.addChild(sphere);
    obj.addChild(sphereTG);
    this.addChild(obj);
    System.out.println("action ajout");
    System.out.println(obj);
    private double randomCoord () {
    double coord = Math.random();
    return coord>=0.5?-coord*5:coord*5;
    public void mouseClicked( MouseEvent e ) {
    public void mouseEntered( MouseEvent e ) {
    public void mouseExited( MouseEvent e ) {
    public void mousePressed( MouseEvent e ) {
    // if (e.getSource()==reset) {
    //setNominalPositionAndOrientation();
    public void mouseReleased( MouseEvent e ) {
    //mode = STILL;
    public void actionPerformed(ActionEvent e) {
    Object target = e.getSource();
    if (target == couleur) {
    if (couleur.isSelected()){
    //scene.pickBeh;
    public static void main(String[] args) {
         try {
    //D�finition du type d'affichage boite de dialogue
    //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
              } catch (Exception exc) {
    System.err.println("Erreur de chargement L&F: " + exc);
    new Scene3Db();
    }

  • Ideas for Adding a Quick Print Button to VA01 Overview Screen

    Problem Statement:
    Our users would like a "quick print" button on the VA01/VA02 application toolbar that immediately spools the Order Confirmation output to the printer.  Our users want to print the output on demand, i.e., they do not want the output to automatically be printed when the order is created because a printout is not always needed.  We already have condition records created with Dispatch Time set to 3 - Send with application own transaction.  However, it takes 7 or more clicks to print the output on demand by navigating the menu (Extras > Output > Edit...Further Data...etc.) and changing the Dispatch Time to 4 - Send immediately when saving.  This is a big ergonomic issue and a time killer.
    Although the number of clicks to print are less when printing the output from the VA02 initial screen (via menu Sales document > Issue Output To), this is not acceptable when creating new orders.  Really need an on-demand, quick print button on the VA01 screen.  As an aside, we have a totally custom transaction for preparing sales order data (shopping cart-like way of finding materials and entering required data) that then calls VA01 and fills in all of the information.  When saving in VA01, the user is returned to our Z-transaction so asking the user to subsequently run VA02 to print is not practical.
    Current Output Determination:
    We have custom output type ZBS0 (copy of BS0).  Condition records for print medium are set to Dispatch Time = 3.
    Questions:
    1.  Searching these forums, it appears custom code (extension or user exit?) can be written to call RSNAST00, or something similar, to automatically send output having a Dispatch Time = 3.  Where can I find more information on exactly how to do this?
    2.  Do transactions VA01 and VA02 (Overview screens) have extensions that allow a print button to be added to the application toolbar?  We would want to call the custom printing code from the button to send the output.
    Any feedback on how others have solved this problem would be greatly appreciated.
    Warm Regards,
    Rob
    P.S.  Using GuiXT is not an option for us.

    HI
    We had similar issues with printing packing list and picking list by the warehouse people.
    We created a new ztransaction with input fields of delivery number, output type, number of copies and a check box for repeat output(in case if the output was already printed).
    You can also create a new Z-transaction with input fields of Sales order number(mandatory field), output type (Default it with value of ZBS0), number of copies (default it with 1) and a check box. On executing the transaction You can provide a message if the output was already printed so that the user can select the check box to repeat the output and execute. You can also print multiple SO by giving a range value if required.
    If you do not want the user to enter the new ztransaction every time, try providing a menu path to the new z-transaction from the existing z-transaction which you are using for order entry.
    Hope this helps you.
    Thanks,
    Arun.S

  • Adding text to a button, and related button fun

    Ok, I'm new to AS3 (only been doing it for a couple weeks
    now, never really learned AS2), so help would be great, especially
    as the deadline was more then a week ago (not all my fault there)
    I put a text field inside a button and tried to put text in
    that button's text field via the following:
    hmm.. I'm new to the forum I guess... don't know if it added
    the code, the code is: instancenameofbutton.textfieldinstance.text
    = "play";
    Well that seems not to work... so how do I make it obey my
    auth-or-a-tah?
    Am I perhaps just slash dot syntax impaired?
    Trouble seem to be that putting text over the button blocks
    the event.. Is there another way to skin this cat?
    A related problem I haven't been able to fix is.. I have a
    text field with dynamic text.. numbers, and I want it to be bold.
    Where I'm at in trying to figure out the solution is that bold
    dynamic text needs to be specially embedded.. Well, I follow what
    the help system tells me to do.. and nothing seems to actually
    work. Is there a bug here or something?
    Ok, one last related thing.. I'm following the book on
    "things thou shalt not do" in that I have a good amount of moving
    transparent gradients... well 2 of them actually.. but then other
    transparent stuff all over the place that.. could be pushing things
    a little far. The frame rate's about 14 fps, screen size is only
    about 600x450, I am on an 8 core mac pro with a better then
    standard graphics card... seems to me that I've been able to get
    away with worse on older version of Flash on a G3 power mac bad in
    the day....
    Well when I tried to dynamically load mp3s, that's when
    things started going down hill! now buttons blink, sometimes aren't
    responsive at all.. I'm thinking maybe its that I've over laded the
    player and ought to think pulling back...
    I have on gradient spinning shape thing that I was
    controlling by actionscript using the enter frame thing.. when I
    disabled the code.. well things worked fine again... accept that
    one of my buttons stopped working.. which is mysterious... cause as
    far as I know the code wasn't touching that at all.. so I went back
    to buggy vill, cause at least then my buttons work! (most of the
    time).
    So the only thing I can think to try and do is to try and
    optimize stuff... the projects a bit of a rush job.. so it's "a
    little hack-e" ( well I confess that at my best things are probably
    "a little" hack-e, so this is really bad)
    So I'm thinking of just changing the code over to a timer
    thing, will that make it all groovy? I mean do you think? I seem to
    remember hearing something, somewhere, about the enter frame thing
    as having some issues somewhere...
    What's also kind of strange is that stuff gets strange when
    the mp3s are loaded.. There's only 4 of them, small little
    snippets.. which probably total only about 1MB or so.. so why
    should that make it trouble? Admittedly there's not a lot of
    compression on them, and there stereo but?
    Anyway.. I guess I'm just wondering if any of this sets of
    any red flags for anyone who actually knows what they are doing..
    probably not describing things well enough.. but you know, any help
    is appreciated :)

    same questions, same answers
    I'm new to AS3 too. I know the kind of frustration you face,
    especially when it comes to finding out the how's. So I'm giving
    answers rather than telling people where to look for them (for
    now).

  • Adding a new toolbar button in IC to Save the transaction

    Hi,
    I want to add a new custom button to my IC Toolbar which would do save. I have gone through some blogs( http://it.toolbox.com/blogs/sap-crm/how-to-add-buttons-to-the-ic-webclient-toolbar-46764 ) and able to get a new button and subscribe an event to that button but the now which APIs to use to save the current transaction. Currently in the standard IC web UI , End button does the save and ends the call but my requirement is to only save.
    Please help on the save. I am on SAP CRM 5.2
    Thanks,
    Saurav.

    Closing this thread as I have raised same Question in other forum which is IC specific.
    Re: Adding new button in IC Toolbar to SAVE current transaction

  • Flash - Issue when adding scenes/keyframes

    Hi, very new to flash,
    Basically I have an existing site which is built in Flash CS6, each page is built on a single layer with one frame and is embeded into an HTML document.
    What I am trying to do is add a preloader to this sites pages, I have no issues in adding the preloader and code to make it work.
    What I am having issues with is when I add either a new scene or keyframe to put the preloader on, the images I have on the main scene/keyframe become very distorted after publishing.
    I have played with the publishing output settings i.e JPG vs PNG,  and done a thorough search online but cant find anything.
    Any help would be much appreciated..
    Thanks

    Any help would be appreciated ..

  • Problems adding  url link to buttons in action Script 3

    each time I added it link 1 to the button on file i get these error messages-  
    1046: Type was not found or was not a compile-time constant: link1.
    1180: Call to a possibly undefined method link1.
    Warning: 3594: exec is not a recognized method of the dynamic class RegExp. var r:Object = p.exec(s);  
    This is the code I am using:   import flash.net.navigateToURL; import flash.net.URLRequest;  var link_one:link1;  link_one = new link1(); stage.addChild(link_one);  link_one.addEventListener(MouseEvent.CLICK, buttonClickHandler);  function buttonClickHandler(event:MouseEvent):void { var url:String = "http://www.masterpiececorp.com/ARMREF.htm"; var request:URLRequest = new URLRequest(url); navigateToURL(request); }    I have no other problems with link 3 or 4, just link 1  I still cannot get my urls link to movie clips on the flash  
    Can you upload flash here? if not I have a image capture I can use to have you look at my buttons  and action script code. i have been to every forum I know and not any have been helpful at all. This is my last hope.
    Very frustrated newbie  Gina T
    Message was edited by: gtaylor0406

    The way you had your code originally would be correct...
    var link_one:link1;
    link_one = new link1();
    addChild(link_one);
    The 1046 error is indicating it doesn't recognize the link1 class.  So the first thing you need to make sure of is that you have assigned the link1 class designation to whatever symbol that is in the library.

  • Adding actionscript to a button?

    For some reason, my actionscript on my button is not working.
    I did a button in Photoshop, imported into the library, dragged it
    onto the stage and what it does is fade in and then stays normal,
    which I have converted into a button. But now when I click that
    button and add actionscript:
    "on (release) {
    getURL("
    http://www.google.com");
    It doesn't work for some reason. =/
    my problem:
    http://mu.thesixthdesign.com/banner_backupExact.html
    Try clicking 'free trial' or demo'; I haven't added any
    actionscript to most of the other buttons yet, since it's not
    working. >_<
    Any help is super appreciated.

    Adriennee wrote:
    > For some reason, my actionscript on my button is not
    working. I did a button in
    > Photoshop, imported into the library, dragged it onto
    the stage and what it
    > does is fade in and then stays normal, which I have
    converted into a button.
    > But now when I click that button and add actionscript:
    >
    > "on (release) {
    > getURL("
    http://www.google.com");
    > }"
    >
    > It doesn't work for some reason. =/
    Action looks a OK.
    Perhaps you apply it after you apply the tween ?
    If you add action after you add the tween, the action only
    appear
    on first or last frame of the tween, not throughout.
    Try to add an action first than apply the tween.
    Other than that... not sure, it all looks ok.
    Perhaps you could upload it somewhere so we can check out the
    source
    file.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Adding Script to a Button?

    Is there a way to add JavaScript to a button when creating an Interactive PDF in InDesign (CS6)? This Interactive PDF is being turned over to other developers, who need to tack on a Certificate/Completion process, which is called to from a script that I need to place in the document somewhere.
    Other issues: I know this is probably doable by opening the interactive PDF in Acrobat and adding the script from there - but I have to save the Interactive PDF as a SWF (the developers' process eliminates interactivity from a PDF.)
    Any ideas? Help?

    Perhaps the definition of windows is the issue. Flash swf
    movies are self
    contained in a web browser window web page. So opening an
    external image in
    a MovieClip is simply redrawing the Flash swf.
    If you are thinking of windows within the Flash movie, they
    will have to be
    within the confines of the Flash movie that is first
    launched. You can have
    MovieClips with externally loaded content appear as windows
    and even be
    draggable, but they will not be a separate web browser
    window.
    If you need the web browser to open another window and then
    load another
    Flash movie in it that does the loading, then you need to use
    getURL("
    http://www.domain.com/pagewithotherflashmoviecontainingloadjpg.html/",
    "_blank");
    However it seems it would be less files to simply use html in
    the other
    window page to show the jpg without the Flash movie doing the
    loading unless
    you are using Flash to animate the jpg in some fashion like a
    fade in or
    out.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "Chicca81" <[email protected]> wrote in
    message
    news:e92am7$58n$[email protected]..
    >I need some help to understand and find a way to script
    the loading of
    >pictures
    > on different window. I already tryed to use behaviours:
    adding the
    > following
    > script to a button:
    >
    > on (release) {
    >
    > //load Graphic Behavior
    > _root.Contenitore.loadMovie("Cornice 10.jpg");
    > //End Behavior
    >
    > }
    >
    > When I do test the movie though I realised that it
    doesn't work as I
    > expected.
    > The picture "Cornice 10" loads on a what I think to be a
    new window: the
    > Movie
    > Clip "Contenitore" but it doesn't appear to a different
    window. How should
    > I
    > procede then?
    >

  • Adding icon to a button

    Hello
    When I put a JButton on a frame I see in Property Inspector , Visial tab a icon section which it's follow is "<none>"
    how I can use it for adding a icon to the button
    my mean is I want add an icon to button by Property Inspector , but I don't know how I can do it
    can you say to me ?
    thanks

    Hi,
    I don't think the property inspector will help you adding the icon because it needs to be added from the class loader path. In an older JCLient Demo we used the following class
    public class ImageLoader
       public ImageLoader()
       public ImageIcon getImageIcon(String name)
          return new ImageIcon(getClass().getResource(name + ".gif"));
    }This then could be called when setting the icon to a JButton at runtime, passing the icon name to it
    Frank

Maybe you are looking for