Buttons and Event Handlers

In Flash 8, I could script a button this way:
button1.onRelease = function() {
img_mc.gotoAndPlay(1);
How would I do something similar in CS3?

onClick = 'functionName(argument1, argument2,...)'
typically you define a method that conducts necessary work(if any) and then loads a new page.

Similar Messages

  • Html buttons and event handlers

    There are three html buttons, each of them takes the user to a particular page once selected. I know an onClick method as follows but what comes after this??:
    out.println("<P ALIGN=CENTER ><INPUT TYPE=submit value=ENTER onClick...............>");
    If anyone knows let me know.
    thanks in advance,
    raj

    onClick = 'functionName(argument1, argument2,...)'
    typically you define a method that conducts necessary work(if any) and then loads a new page.

  • [JS] Basic question about event listeners and event handlers

    I am very new to the whole topic of event listeners and event handlers.  I'd run the test for the following problem myself, but I don't know where to start, and I just want to know if it's impossible -- that is, if I'm misunderstanding what event listeners and event handlers do.
    Say I have an InDesign document with a text frame that is linked to an InCopy story.  Can I use an "afterImport" event listener on the text frame to perform some action any time the link to the InCopy story gets updated?  And will the event handler have access to both the story that is imported, and the pathname of the InCopy file?
    Thanks.

    Thank you, Kasyan.
    Both of those are good solutions.
    We are currently using InDesign CS4 and InCopy CS5.  I'm hoping to get them to purchase the whole CS5 suite soon, since I'd like to start writing scripts for InDesign CS5 as soon as possible, as long as I'm going to have to be doing it in the not too distant future anyway.  The greater variety of event handlers sounds like it might be something that is crucial to the project I'm working on, so that adds to the argument for getting CS5.
    Thanks again.  You have no idea how helpful this is.  I made some promises to my boss yesterday that I later realized were  based on assumptions of mine about the InDesign/InCopy system that didn't make any sense, and I was going  to have to retract my promises.  But after reading your response I think I can still deliver, in a slightly different way that I had been thinking before.
    Richard

  • IOS Home Button and Event.ACTIVATE/Event.DEACTIVATE

    Hi all,
    I read tons of questions re iOS Home Button and Event.ACTIVATE/Event.DEACTIVATE. Everything should work well if you set the proper listeners and save/restore your app state upon receiveing these events.
    My question is: Is there a way to tell difference between a Home Button press and an iOS notification alert or incomming call? In both cases, AIR will dispatch Event.DEACTIVATE, however I want to know if the user pressed the Home Button or if he just received an SMS/Calendar alert, and adapt my app state accordingly - i.e. if it's a Home Button press, change my app state to "Main Menu", otherwise (SMS/Calendar/alert) I will pause execution.
    NOTE: I don't want to override the Home Button behaviour, just want to tell if it's a Home Button press or SMS/Calendar/alert, and react accordingly. The iOS documentation states that in case of SMS/Calendar/alerts, (void)applicationWillResignActive:(UIApplication *)application is dispatched, and in case of actually going to background state (i.e. Home Button pressed) (void)applicationDidEnterBackground:(UIApplication *)application is dispatched.
    Thanks

    Any luck with this yet? I'm having the exact same issues but on a different device, the Kindle Fire.
    I need to determine whether a user hit the Home button, or hit the Quick Settings button (that accesses controls like volume). Air treats both events equally by broadcasting Event.DEACTIVATE. Unfortunately, the Amazon Appstore approval team thinks otherwise...
    It seems like there should be a simple, no-brainer way to track these events, but I'm beginning to suspect Air just is not capable. In that case, if you're developing for Kindle Fire, you may want to avoid going with Adobe.

  • Array of buttons and Event Structure

    I have a the same problem... I was wondering if you were able to find a soln.
    I have literally thousands of buttons and each button as a unique key code and unique name.
    For Example :  
    Button Name    – Key code #
    PUSH              - 1
    POP                 - 2
    PULL               - 3
    The way I program this simple algorithm is deadly painful. 
    1)      I create 1000 buttons by going to control->buttons.
    2)      Then I have to go through one by one to change the Boolean text to “PUSH,POP,PULL…”  
    3)      Then used the Event Structure, adding in all the controls names “PUSH, POP, PULL..” In side each event, I placed the key codes “1,2,3..”
    I have search and tried for weeks to find a better way, and still nothing comes to mind.  
    Please help.

    Hi Ben,
    Thank you for your reply, I have attached my try_code and a picture of the code I currently have.  I  am new in Labview, but I am confident that, there must be a easier way to make an array of buttons with different button name and an associated number to that button.  
    The 1st file, is to show you want I am currently doing, (painful)
    The 2nd file attached is some of the things i tried, I had great hope with my try_code, array_jan25.  But I couldn't get it.  I think I am very close.
    Thanks again,
    Attachments:
    ThePainfulWay.doc ‏63 KB
    Array_jan25.vi ‏42 KB

  • Radio Buttons and Event Structures

    Guys, I am hoping for some help here on something I probably should know but cant figure out how to do.  I am using a set of radio buttons and an event structure to run a UI.  The radio buttons are acting as both a user input and indicator of current status selected by the user.  I have the event structure set to run on value change of the radio button.  All works great unless the operator decides that he wants to repeat the selection that the radio button is already set to.  The event structure does not recognize this as a change of value and will not execute.  Is there a way to set the event structure up to run even if the same selection of the radio button is made a second time?  I attached a crude example to this post.  Basically everytime I press the button, I want an entry made into the text box, regardless if the selected item was already pressed.  Any thoughts.
    Troy
    Attachments:
    Radio Button Test.vi ‏16 KB

    Instead of hacking around the inherent nature of radio buttons, why not just use a Cluster?  Its behavior in the UI is more customizable.  Check this out:
    I just replaced your radio buttons with a cluster, and added a little logic to the event structure to get it to behave the way you describe.  I've attached the VI below, saved in 8.2, if you want to try it out.
    Hope this helps,
    -D
    Message Edited by Darren on 11-07-2006 10:45 AM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    cluster_buttons.png ‏7 KB
    Cluster Test.vi ‏17 KB

  • Problems with .chart-plot-background and event handlers

    Hello. I'm trying to add event handlers to my chart so that the user can be allowed click within the chart itself to perform certain actions like dragging, zooming, etc. To avoid having to deal with handling mouse clicks that lie outside the chart itself (for example on the axes), I've found that:
    .chart-plot-background
    is the Region that gives me the entire chart and nothing else. However, when I attach mouse listeners to this Region, the event is only registered on half of the cells in the chart. If you've seen the default JavaFX Chart background layout, you know that it contains alternating rows of cells with slightly different coloring. I've found that only the rows with the lightest gray coloring actually register a mouse click on them, which makes me believe the dark grey cells are not part of the .chart-plot-background, but something else on top.
    To me, this feels like an oversight in how the regions of the chart are defined. Why can I not get a listener to work on the whole chart and nothing else? Currently the only workaround seems to be to take the Region:
    .chart-content
    instead, and compute the difference between this region and the .chart-plot-background in order to manually suppress mouse clicks that lie outside .chart-plot-background.
    Anyone have suggestions? Is this worth issuing on the JavaFX Jira?

    Hello,
    I'm not an expert on controls, but here is my guess based on your description: when you register an event handler on a "background" node, it is called only when the mouse hovers over the background node - I suppose the light gray is the background with the light gray cells being transparent and dark grey cells being filled. So the behavior seems correct - you can't expect the events to be delivered to background when it is covered by other nodes. I think you really should register the handler on the entire chart and filter out the events you don't want to handle. This however should not require much of computing the difference between the regions, it should be possible to do just something like
    if (!background.contains(event.getX(), event.getY())) {
        return;
    Provided that the background doesn't reach under the axes as well. Note that if there are any different transforms between the background and the node with the handler registered on it, you may need to recompute the coordinates by
    background.sceneToLocal(event.getSceneX(), event.getSceneY());
    And use the contains method on that.

  • How to write events and event handlers?

    Any samples?
    Thanks

    You can generate your custom events and it is very easy.
    You will have to extend the EventObject class in order to make an class representing the event.
    Iam giving a brief eg:
    class MyEvent extends EventObject
    MyEvent(Object source)
    super(source);//source which generated the event.
    //your own code
    interface MyEventListener
    public void myEventPerformed(MyEvent e);
    class abc
    java.util.ArrayList arr;
    abc
    arr = new java.util.ArrayList();
    public synchronized void addMyEventListener (MyEventListener l)
    arr.add(l);
    public synchronized void removeMyEventListener (MyEventListener l)
    arr.remove(arr.indexOf(l));
    protected void notifyTransEvent(Object source)
    MyEvent tEvent = new MyEvent(source);
    Iterator itr = arr.iterator();
    Iterator itr = arr.iterator();
    while(itr.hasNext())
    ((MyEventListener)itr.next()).myEventPerformed(tEvent);
    Now anyone implementing the MyEventListener inetrface can be added in the ArrayList.The ArrayList is the list representing the interesting parties who want to receive the event.When registered they will receive the event.
    This class abc is just like an component which on certain situations generate event.You can call notifyEvent in any case where you want the event to be generated.
    You will then add this class to your main class as this
    class xyz implements MyEventListener
    abc obj;
    xyz()
    obj.addMyEventListener(this);
    public void myEventPerformed(MyEvent e)
    //your handling code
    Hope this example will suffice.

  • Events and Event Handlers

    Hi,
    I need to get the index of a specific line in a table. Selection mode is set to none. The first column contains a menu with two menuActionItems. When I choose an actionitem my event handler is called with parameter WDEVENT TYPE CL_WD_CUSTOM_EVENT. As I understand you have to use this parameter to get the index from the table line.
    I have tryed with the following code in my event handler method:
    DATA:
            node_lines TYPE REF TO if_wd_context_node,
            elem_lines TYPE REF TO if_wd_context_element,
            l_index TYPE i.
      elem_lines = wdevent->get_context_element( name = 'LINES' ).
      l_index = elem_lines->get_index( ).
    This does not work. The elem_lines is initial after I try to get it.
    Hope that someone can guide me in the right direction.
    Thanks,
    Morten

    hi ;
    this will work
    DATA: mod_cell TYPE  salv_wd_t_table_mod_cell,
            wa_mod_cell TYPE LINE OF salv_wd_t_table_mod_cell,
            msg TYPE string.
      mod_cell =      r_param->t_modified_cells.
      wd_comp_controller->set_material_dtl( ).
    LOOP AT mod_cell INTO wa_mod_cell.
      msg = wa_mod_cell-index .
      msg = mod_cell-index .
    l_message_manager->report_success( msg ).
    Or else try this.
    wd_event is return parameter
    data: index type i.
    index =  wd_event->get_context_elementget_index->get_index( ).

  • Event Handlers and Callbacks:  Best way to handle?

    I'm writing an actionscript class. I'm wondering how to deal
    with call backs and event handlers within my class. In particular,
    I'm wondering how I might structure my class so that developers
    using it can choose which arguments get passed to the callback
    function as they code. I've been googling and haven't found any
    particularly useful information on this.
    As far as I can tell, it would appear that the parameters
    passed to any callback function are determined at the time I write
    my class as this anonymous function example illustrates.
    var myObj:Object = new MyClass('foo', 'bar');
    myObj.onLoad = function(arg) {
    // the args passed to this anonymous function are dictated
    by the actionscript defnining MyClass
    I have also seen an approach using named functions and a
    class method for setting the event handler which allows a developer
    to pass some object to be used for scoping the named function but
    this also results in the parameters for the callback being
    predetermined by the actionscript that defines the class
    function myLoad(arg) {
    // the args passed to this function are also dictated by the
    actionscript defining MyClass
    var myObj:Object = new MyClass('foo', 'bar');
    myObj.setOnLoadHandler(this, 'myLoad');
    As far as I can tell, neither approach would let a developer
    specify any parameters for the callback functions (onLoad() in the
    first example, myLoad() in the second example). Which of these
    approaches is considered 'best practice'? Also, what would I do if
    I wanted to specify that the callback should operate on a
    particular movieclip on my timeline? How can I pass that
    movieclip's parameter to the callback function?

    You can download the Library from this link. Inside is an example that shows how to handle windows messages/events.
    http://zone.ni.com/devzone/cda/epd/p/id/4394

  • Order of elements and events.

    INTRO
    Hi Oracle community.
    A while ago I started a thread here on the forum where I had put three different subjects to be treated. The user jsmith guided me saying that I was supposed to separate things, dividing each subject in a separate thread. The original discussion is at the following link:
    Interesting things, however, unknown? StackPane, animations and filters.
    ABOUT
    So in this discussion, I will be talking about input events and maybe about event filters. I created a JavaFX 8 (b123) application that checks the mouse click on certain nodes. Basically I have a panel of buttons. Behind this panel, I have a scroll pane with rectangles. The rectangles are contained within a Group, and the buttons are in a VBox. The Group is set as ScrollPane content. VBox and ScrollPane are within a StackPane, which becomes the root of scene graph. If we observe the nodes tree, we'll find the following scenario:
    IMAGE
    Here is my source code:
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.geometry.Pos;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ScrollPane;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.StackPane;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    public class ScrollTest extends Application
        //                                                                                                       MAIN
        public static void main(String[] args)
            Application.launch(args);
        //                                                                                                 INSTÂNCIAS
        // CONTROLS
        private Rectangle[] rectangles;
        private ScrollPane scrollP;
        private Button[] buttons;
        // LAYOUTS
        private StackPane root;
        private Group group;
        private VBox vbox;
        //                                                                                                  INÍCIO FX
        @Override public void start(Stage estagio) throws Exception
            this.iniFX();
            this.confFX();
            this.adFX();
            this.evFX();
            Scene cenario = new Scene(this.root , 640, 480);
            estagio.setScene(cenario);
            estagio.setTitle("Programa JavaFX - RDS");
            estagio.show();
        /** Just instantiate JavaFX objects.*/
        protected void iniFX()
            // CONTROLS
            this.rectangles = new Rectangle[5];
            this.scrollP = new ScrollPane();
            this.buttons = new Button[6];
            // LAYOUTS
            this.root = new StackPane();
            this.group = new Group();
            this.vbox = new VBox();
        /** Just sets the JavaFX objects.*/
        protected void confFX()
            // CONTROLS
            for(int count = 0 ; count < this.rectangles.length ; count++)
                this.rectangles[count] = new Rectangle();
                this.rectangles[count].setWidth(Math.random() * 100 + 20);
                this.rectangles[count].setHeight(Math.random() * 100 + 20);
                this.rectangles[count].setFill(Color.rgb((int) (Math.random() * 255) , (int) (Math.random() * 255) , (int) (Math.random() * 255)));
                this.rectangles[count].setTranslateX(Math.random() * 600);
                this.rectangles[count].setTranslateY(Math.random() * 600);
                this.rectangles[count].setRotate(Math.random() * 360);
            for(int count = 0 ; count < this.buttons.length ; count++)
                this.buttons[count] = new Button("Button - " + count);
            // this.scrollP.setVbarPolicy(ScrollBarPolicy.ALWAYS);
            // this.scrollP.setHbarPolicy(ScrollBarPolicy.ALWAYS);
            this.scrollP.setPrefSize(400 , 400);
            // LAYOUTS
            this.vbox.setAlignment(Pos.CENTER);
            this.vbox.setSpacing(20);
            // This doesn't solve my problem.
            // this.vbox.setMouseTransparent(true);
        /** Just create the realtion between nodes, and the root.*/
        protected void adFX()
            for(int count = 0 ; count < this.rectangles.length ; count++)
                this.group.getChildren().add(this.rectangles[count]);
            for(int count = 0 ; count < this.buttons.length ; count++)
                this.vbox.getChildren().add(this.buttons[count]);
            this.scrollP.setContent(this.group);
            this.root.getChildren().add(this.scrollP);
            this.root.getChildren().add(this.vbox);
        /** Just add some events to some nodes for debugging.*/
        protected void evFX()
            this.vbox.setOnMousePressed(new EventHandler<MouseEvent>()
                @Override public void handle(MouseEvent e)
                    System.out.println("Mouse pressed inside VBox.");
            this.scrollP.setOnMousePressed(new EventHandler<MouseEvent>()
                @Override public void handle(MouseEvent e)
                    System.out.println("Mouse pressed inside ScrollPane.");
            if(this.rectangles.length > 0)
                this.rectangles[0].setOnMousePressed(new EventHandler<MouseEvent>()
                    @Override public void handle(MouseEvent e)
                        System.out.println("Rectangle pressed.");
                        rectangles[0].setFill(Color.rgb((int) (Math.random() * 255) , (int) (Math.random() * 255) , (int) (Math.random() * 255)));
    THE PROBLEM
    I wish I could click the mouse on VBox buttons, but also in the scroll pane, and in it's internal contents (the rectangles). I tried changing the VBox mouseTransparent property to true, and modify mouseTransparent to false on each VBox button, but that did not work. I've been reading the JavaFX documentation talking about routing events, and found the following:
    The route can be modified as event filters and event handlers along the route process the event. Also, if an event filter or event handler consumes the event at any point, some nodes on the initial route might not receive the event.
    Could it be that VBox is filtering events so they do not reach ScrollPane? Or is this being done by StackPane in some other manner? Does anyone have any idea what I could do?
    In any case, I thank you for your attention.

    You might need to modify the event dispatch tree so that the events get beyond the VBox. I'm not saying this is the right thing to do, but something worth looking at.
    root.setEventDispatcher(new EventDispatcher() {
    @Override
    public Event dispatchEvent(Event event, EventDispatchChain tail) {
    tail.append(group.getEventDispatcher());
    return tail.dispatchEvent(event);
    There is some info on event processing at Handling JavaFX Events: Processing Events | JavaFX 2 Tutorials and Documentation

  • Event handlers question

    Which event handler is called first when navigating from a page? Say I am passing parameters from page 1 to page 2. In page 2, will the onCreate get called first or onRequest get called first?
    In onRequest, I have
    calmoyr = request->get_form_field( 'calmoyr' ).
    In OnCreate, I have
    select * from /bic/aNCN_O01300 into table itab
    where CALMONTH = calmoyr.
    For some reason, the select statement is not taking any value for calmoyr. It is getting the value from the previous page but the select statement is not working.

    page1:
    * event handler for checking and processing user input and
    * for defining navigation
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    * Optional: test that this is an event from HTMLB library.
    IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
    * See if upload is triggered from button
      DATA: event TYPE REF TO CL_HTMLB_EVENT.
      event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
        DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
        button_event ?= event.
      ENDIF.
      CASE event->id.
        WHEN 'Submit'.
          DATA: cmy TYPE REF TO CL_HTMLB_INPUTFIELD.
          DATA: fid TYPE REF TO CL_HTMLB_INPUTFIELD.
          cmy ?= CL_HTMLB_MANAGER=>GET_DATA(
                              request = runtime->server->request
                              name    = 'inputField'
                              id      = 'calmonthyear'
          IF cmy IS NOT INITIAL.
            calmoyr = cmy->value.
          ENDIF.
          fid ?= CL_HTMLB_MANAGER=>GET_DATA(
                              request = runtime->server->request
                              name    = 'inputField'
                              id      = 'FACID'
          IF fid IS NOT INITIAL.
            facid = fid->value.
          ENDIF.
          navigation->set_parameter( 'calmoyr' ).
          navigation->set_parameter( 'facid' ).
          navigation->next_page( 'ToTest' ).
      ENDCASE.
    ENDIF.
    layout of page1:
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = " ">
        <htmlb:form>
    <htmlb:group id     = "ZBOOKMARK"
                     design = "SAPCOLOR"
                     title  = "Selection Criteria for Bookmark Search"
                     width  = "100%" >
               <htmlb:groupBody>
    <htmlb:gridLayout id = "FiletypeGrid"
                                      cellSpacing    = "3"
                                      columnSize     = "4"
                                      rowSize        = "5" >
                            <htmlb:gridLayoutCell   rowIndex = "1"
                                                    columnIndex = "1"
                                                    horizontalAlignment = "right" >
                                 <htmlb:textView text = "Please choose Calendar Year/Month: "
                                         design = "EMPHASIZED"/>
                           </htmlb:gridLayoutCell>
                           <htmlb:gridLayoutCell   rowIndex = "1"
                                                    columnIndex = "2"
                                                    horizontalAlignment = "right" >
                                 <htmlb:dropdownListBox id ="calmonthyear"
                   nameOfKeyColumn   = "calmonth"
              nameOfValueColumn = "calmonth"
              table             = "<%=itab%>" >
    </htmlb:dropdownListBox>
                      </htmlb:gridLayoutCell>
    <htmlb:gridLayoutCell   rowIndex = "2"
                                                    columnIndex = "1"
                                                    horizontalAlignment = "right" >
                                 <htmlb:textView text = "Choose FACID (Optional): "
                                         design = "EMPHASIZED"/>
                           </htmlb:gridLayoutCell>
                           <htmlb:gridLayoutCell   rowIndex = "2"
                                                    columnIndex = "2"
                                                    horizontalAlignment = "right" >
                                 <htmlb:inputField id ="FACID"
                                                 maxlength = "10"
                                                 />
                           </htmlb:gridLayoutCell>
    <htmlb:gridLayoutCell   rowIndex = "3"
                                                    columnIndex = "1"
                                                    horizontalAlignment = "left" >
                                 <htmlb:button id = "Submit"
                                             text = "Submit"
                                             onClick = "Submit"
                                             design = "EMPHASIZED"
                                             width = "75" />
                           </htmlb:gridLayoutCell>
    </htmlb:gridLayout>
    </htmlb:groupBody>
    </htmlb:group>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

  • Multiple event handlers for one button

    I'm trying to create a button with 2 event handlers, such
    that when you roll-over the button, a submenu pops up, and when you
    click the button, you go to a certain frame. I feel like this
    shouldn't be hard at all, but it's not working. Below is the
    actionscript I have tried. Both event handlers work as I want them
    to if alone, but the on(release) functionality does not work when I
    try to put them together.(I have Flash 8). Thanks for your help!
    on (release) {
    _root.gotoAndStop("one1");
    tellTarget (_root.navigation) {
    gotoAndStop (1);
    on (rollOver) {
    this.gotoAndPlay("links");
    tellTarget (_root.navigation.introduction) {
    gotoAndStop (1);
    tellTarget (_root.navigation.overview) {
    gotoAndStop (16);
    tellTarget (_root.navigation.coronary) {
    gotoAndStop (1);

    this code is ok, it seems that when u rollover on the button,
    the event is fired and it keeps on running the time u r on it. i
    think just add
    delete this.onRollOver inside rollOver event.

  • Event Handlers for Dynamic Buttons

    Hi, I hope someone can help. I just can't figure out how to
    solve this problem:
    I am creating an number of buttons dynamically that
    correspond each to a filename read from a directory. The problem is
    I don't know ahead of time how many buttons (files) I will have so
    I create them dynamically in action script. -- this much I can do.
    What I can't figure out is how do I assign each of these
    dynamically created buttons individually specific event handlers?
    ie. I need to know which file icon you clicked on and then take
    action based on that info.
    for example: "folder" is a button icon I have linked from my
    library - i name each instance "folder"+i -- what I need to do is
    do something for folder1, folder2 etc.
    for (i=1;i<numdirs;i++) {
    graphics.attachMovie("folder","folder"+i,depth);
    graphics["folder"+i]._y= coordy2;
    // want to put an event handler here for each
    graphics["folder"+i] button
    I wanted to do something like:
    graphics["folder"+i].onRelease = function() {
    test_txt.text = i;
    but each button I click on gives me i= numdirs (ie the max
    number -- for example 6 if there are 6 files, I can't identify
    which button you actually clicked on -- button1 through 6 all
    deliver the number 6 to test_txt.text)
    I hope that makes sense - if someone can take a swag at this
    and point me in the right direction I will be very appreciative.
    Best Regards,
    Tom

    There is other way to do that.. whenever you call a
    attachMovie or loadMovie
    function there is a return value that corresponds to the
    actual movieclip
    created on the flash movie. ie
    for (i=1;i<numdirs;i++) {
    var temp_mc:MovieClip =
    graphics.attachMovie("folder","folder"+i,depth);
    that new reference temp_mc is the newly created movieclip and
    you can do
    whatever you want with it, ie:
    for (i=1;i<numdirs;i++) {
    var temp_mc:MovieClip =
    graphics.attachMovie("folder","folder"+i,depth);
    temp_mc._y = 30
    temp_mc.id = I
    //even assign new funtions to events
    temp_mc.onRelease = releaseFunction
    function releaseFunction(){
    trace("do something on the release event")
    <DIV>&quot;charmcityMD&quot;
    &lt;[email protected]&gt; wrote in
    message
    news:ed2l97$n8$[email protected]..</DIV>> THANK YOU
    soo
    much -- I have been pondering this and scanning the web for
    hours. Your
    solution is perfect. I very very much appreciate your help.
    >
    > Best Regards,
    > Tom

  • On old macbook photos would just go into iPhoto my hitting iPhoto button.  On the Mac Pro when I hit iPhoto button they "swish" into some document file on dock and I can't get them into my photos and events. Can anyone please help.  Gabrielle

    I am having major trouble trying to get photos into IPhoto.  On my old macbook, I just had to hit the IPhoto button - I have hundreds of photos and events but now I have this MacPro when I hit the Iphoto button the photos just "disappear" into a document file on the dock and the photos are all contained in some kind of arcs....I'm not computer literate and spent 2 years in one on one just learning IPhoto  Could some one out there please help me.?

    What version of iPhoto are you using?  Where are the photos coming from that go into the document on the Dock?  What iPhoto button are you referring to?
    OT

Maybe you are looking for

  • Lenovo U310 (Lenovo BootShield technology)

    Hey guys, I just bought my Lenovo U310 Ultrabook today and I absolutely love it. I decided to fomat my computer to start fresh with a clean install of Windows 7 64x. My question is do I have to enable Lenovo BootShield technology? Is it a driver or i

  • In need of some audio help

    Im fairly new to Premiere and haven't really encountered this problem before. I used a Nikon E4200 to create this video and when I play back the audio the sound cuts out where I've highlighted the track. If anybody could help me figure out what this

  • How to convert a password protected pdf file?

    How do I convert a password protected pdf file to Word?

  • How to hanlde SOAP with gzip

    Hello, For a client we have to implement (de)compression into (SOAP) Web Services. We receive/send SOAP messages with compressed data (some 2MB, which is uncompressed some 75MB). The (de)compression needs to be done with gzip. What is the Oracle solu

  • DROID II GLOBAL UNABLE TO SYNCH CONTACTS ON TOYOTA 4 RUNNER

    PHONE SYNCHS FINE BUT TRANFERRING CONTACTS HAS FAILED ON NUMEROUS ATTEMPTS.  OTHER POSTS INDICATE YOU CAN MOVE CONTACTS TO SIM CARD.  THAT DOES NOT WORK. DOES ANYONE HAVE A FIX OR A PHONE NUMBER TO MOTOROLA. VERIZON HAS BEEN NO HELP - JUST NICE PEOPL