unique function for multiple buttons

Hello

My problem is that I am using the following functions on 10 different logo movieclips. Each movieclip logo has a popup box (another mc) within its timeline with a description in. When I hover over the logo movieclip I want him to call the function of frames forward and on hover the rewindframes function call.


function forwardFrames() {}

onEnterFrame = function () {}

If (_currentframe! = 15) {}

nextFrame();

} else {}

Stop();

delete this ["onEnterFrame"];

}

};

}

function rewindFrames() {}

onEnterFrame = function () {}

If (_currentframe! = 1) {}

prevFrame();

} else {}

Stop();

delete this ["onEnterFrame"];

}

};

}

However I am doing all of this on the main timeline, and the only way I can think to operate currently, it is if I do the following for each mc logo, there must be a better way:

Symbol_1.onRollOver = function() {}

Symbol_1.onEnterFrame = function () {}

If (symbol_1._currentframe! = 15) {}

Symbol_1.nextFrame ();

} else {}

Symbol_1.stop ();

delete this ["onEnterFrame"];

}

};

}

Symbol_1.onRollOut = function() {}

Symbol_1.onEnterFrame = function () {}

If (symbol_1._currentframe! = 1) {}

Symbol_1.prevFrame ();

} else {}

Symbol_1.stop ();

delete this ["onEnterFrame"];

}

};

}

Any advice would be much appreciated, thanks

Daniel

You should be able to use something like the following...

Symbol_1.onRollOver = symbol_2.onRollOver = playFwd;

function playFwd() {}
this.onEnterFrame = function () {}
If (this ._currentframe! = 15) {}
this.nextFrame ();
} else {}
This.Stop ();
delete this.onEnterFrame;
}
}
}

Symbol_1.onRollOut = symbol_2.onRollOut = return;

function rewind() {}
this.onEnterFrame = function () {}
If (this ._currentframe! = 1) {}
this.prevFrame ();
} else {}
This.Stop ();
delete this.onEnterFrame;
}
};
}

Tags: Adobe Animate

Similar Questions

  • Unique portfolio for multiple schemas in a database

    Hello

    Is it possible to create a unique portfolio for multiple schemas for the same database.

    for example: I have several users Test1, Test2 and so on in a Testdb database, then I create a unique portfolio for these users to the same database and connect?

    The PES is designed to be used on the client side - each customer can have its own PES with its letters of nobility.

    Contains the credentials: tbs_alias, username, password. Having the right (wallet_location and sqlnet.wallet_override = true) sqlnet.ora parameters, when you try to authenticate to the database at: sqlplus / @tns_alias, then the portfolio is looking for tns_alias and the username and pwd will be taken.

    This means that the tns_alias must be unique in the wallet. If you want multiple users to use the same portfolio and connect to the same database, you will need to create multiple aliases tns (different names but pointing to the same listener) for each user

  • Intercept a button for multiple buttons

    Hello.

    I am currently doing a VI in which I Boolean mutiple buttons in several groups (more than 100 buttons spread out over 4 groups). What I want is that, when a sense of belonging to a group touches the other buttons in the same group go to a shutdown state. I already accomplished this through a Structure of the event. I create a folder for each button press and inside I loop through each of the references to the whole group. This loop for writing a value of FALSE for all other buttons in the same group.

    However, with this method I still create a case of the event for each of the different buttons and copy their respective lines inside the box. The idea I have is to create a sort of Structure of the event that detects ANY button on my VI and the node 'CtrlRef' of the structure of the event and get the reference of the button that was recently used so that I can put all other controls, with the exception of this one for FALSE.

    Any help would be appreciated.

    Greetings,

    Luis.

    Thank you already, I solved my problem.

    The solution is in the picture.

  • same function for all buttons of mc?

    I am putting together a simple flash anim - and have little about 25 buttons I need to fade in and out on working capital. I think remember me there is a way to apply the same function to all buttons - as long as most and State labels in the mc are the same. Could someone let me know what I should look in to achieve this? Thank you.

    The just loop allows you to add your listeners to each button - btn1 - btn25. If you don't want to do it this way, you can place all the buttons into a container and just add listeners to the container... something like:

    myButtonContainer.addEventListener (MouseEvent.MOUSE_OVER, showHighlight, false, 0, true);
    myButtonContainer.addEventListener (MouseEvent.MOUSE_OUT, removeHighlight, false, 0, true);

    function showHighlight(e:MouseEvent) {}
    e.target.gotoAndStop (2);
    }
    function removeHighlight(e:MouseEvent) {}
    e.target.gotoAndStop (1);
    }

    Note the use of targets, instead of currentTarget in the listener functions. And you can use gotoAndPlay if you wish... I just used stop to illustrate.

  • Function for 20 buttons need

    The buttons are on stage with the names of Instance ButID10 - ButID32.

    Can anyone help with this? Any help is appreciated. I create a table? Thank you.

    We don't want the code below, I know:


    for (var i: uint = 10; i < 32; i ++) {}
    Chart06 ["ButID" + i.ToString ()] .addEventListener (MouseEvent.MOUSE_OVER, buttonIDChart06Over, false, 0, true);
    Chart06 ["ButID" + i.ToString ()] .addEventListener (MouseEvent.MOUSE_OUT, buttonIDChart06Out, false, 0, true);

    }

    function buttonIDChart06Over(e:MouseEvent) {trace (i);
    popUp01.x = Chart06 ["ButID" + i.toString ()] .x;
    popUp01.y = Chart06 ["ButID" + i.toString ()] there;
    addChild (popUp01);
    popUp01.PopUpTextID00.htmlText = popupList [i-1];
    popUp01.filters = [myDropShadowFilter];
    }
    function buttonIDChart06Out(e:MouseEvent) {}
    removeChild (popUp01);
    }

    Yes, he does.  but the value of i replace when the listener to the button is added to when check you in the listener function.

    If your 20 buttons are movieclip buttons using:

    for (var i: uint = 10; I)<>

    . Ivar Chart06 ["ButID" + i.ToString ()] = i;
    Chart06 ["ButID" + i.ToString ()] .addEventListener (MouseEvent.MOUSE_OVER, buttonIDChart06Over, false, 0, true);
    Chart06 ["ButID" + i.ToString ()] .addEventListener (MouseEvent.MOUSE_OUT, buttonIDChart06Out, false, 0, true);
           
    }

    function buttonIDChart06Over(e:MouseEvent) {}

    trace (e.currentTarget.Ivar);
    popUp01.x = Chart06 ["ButID" + e.currentTarget.ivar.toString ()] .x;
    popUp01.y = Chart06 ["ButID" + e.currentTarget.ivar.toString ()] there;

    addChild (popUp01);
       popUp01.PopUpTextID00.htmlText = popupList [e.currentTarget.ivar - 1];
    popUp01.filters = [myDropShadowFilter];
    }
    function buttonIDChart06Out(e:MouseEvent) {}
    removeChild (popUp01);
    }

  • I want to handle unique table for multiple files

    In the previous post... I have my doubts to playback of multiple files... I got has done that with your help...

    I have the storage to the table... in I want to store all the data or a group of file data...

    If I run the VI. data that present in the last executed file will be stored in the table... I want to go forward... so I want everything to go further

    Move and connect the 'empty array constant' connected to the shift register to inside of the loop on the outside for the shift of the loop register.

    Published: photo for illustration.

  • copy a unique profile for multiple users on a domain of PC

    I want to copy a profile to use with multiple account domain on one PC user. I have a PC on the field with 20 + users who will be all the same except for the e-mail.

    Hi Kevlarkev,

    The question you have posted is better suited in the TechNet forums. Please see the following link for more information.

    Windows XP IT Pro category

  • Report unique unique dimension for multiple hierarchies

    I am trying to add multiple hierarchies in a single dimension in a single report. To create the hierarchy in BI admin, I followed the instructions found here

    Oracle BI EE 10.1.3.3/2 & amp; #8211; A Dimension & amp; #8211; Several hierarchies & amp; laquo; Business Intelligence & am...

    and here

    https://forums.Oracle.com/thread/2440305

    My Patient hierarchy looks like in this

    All Patients-> gender-> ID Patient

    All Patients-> age-> ID Patient group

    When I drag and drop the second hierarchy in Oracle BI answers said criteria the following "...". "you can add as a hierarchy by dimension to a report. I guess what I'm trying to do is not possible!  :-)

    Q1: Is this feature indeed not taken in charge or I do something wrong?

    Q2: If it is can not supported someone explain why?

    Version Oracle Business Intelligence 11.1.1.6.0

    (a) reports different levels of 2 hierarchies is not supported. As explained below, you cannot use OLAP to get the values of aggregation across levels of hierarchies: H1 and H2.

    However, if you wish, you can report it to the lowest level, Patient, common to these two hierarchies and show the age group as well as the attributes of sex corresponding to each patient. This becomes reports Patient / the lowest level. You can of course use the features of the reporting as obiee tool to use a Pivot object (for example) and exclude the Patient as Id columns, name, etc. and get obiee to perform syntheses located in the reporting layer and get recaps of interests. OBIEE Pivot measures allowing aggregation using the Min, Max, Sum, Count, etc running sum. OLAP facilitates this solution, but does not particularly help in aggregation (given that the aggregation is now made in obiee and not according to the rules of definition of aw olap cube). It acts as a source of information at the lowest level stored in the cube. Would result in a degradation of performance, but it can be acceptable/managed according to volumes/data report.

    NOTE: For/Pour / solution solution workaround, use the common areas, nonhierarchical columns, of the OBIEE presentation layer.

    (b) not supported: OLAP Cubes contain summaries pre-calculees (or calculated dynamically) at different levels of each hierarchy. This contributes to faster performance reports. 2 hierarchies to the succession of defeats same time allowing objective feature. A cross-combination of levels across different hierarchies requires a dynamic recalculation of the detail records to get the right values for, say, age group: 30-39 and sex: male. Summaries of H1 at the level of the age for the age group: 30-39 cover all genres and can decompose in male/female w/o of recalculation. Similarly H2 summarized level sex sex: male covers all age groups. This fragmentation is not possible except through workaround / solution explained in (a).

    Hope that helps.

  • Validation for multiple buttons

    Hello

    A form that a validation should be done after pressing the button record OR create. In the menu dropdown I choose only one. Is there a way to get there without creating 2 validations (or 2 pages)?

    Thanks, fried

    Published by: fried Sep 20, 2010 05:04

    Hello

    In this scenarios do not use the key when condition.
    Use either APPLICATION IS CONTAINED in EXPRESSION1 with

    CREATE,SAVE
    

    in the expression 1
    or PL/SQL Expression with

    :REQUEST IN ('CREATE','SAVE')
    

    in the Expression 1.

    Kind regards

  • Spectrum X 360: Function for the spectrum x 360 keys

    The arrows with the function key act as page, up, down, start and end. I want to use these keys a lot. Is there a way to set the keyboard for functions are reversed? On my Mac, I can by default the function for on button. Such a feature would make page upward, active down without the function key and the active arrows with the function key.

    Thank you very much for the comments and you are right that to access the function keys on the arrow key you will need to hold down the FN key.

    If I hear of a different method on changing these options with the arrow keys will let you know.

  • reversal function on multiple MC

    Hi all

    I'm trying to encode a variable rolling for a sequence of MCs on stage.

    I have 3 buttons (clips) on the scene, and every time it is switched I do a different movieclip appear.

    So I did it in a root Timeline frame script:

    put an empty container on the stage movieclip

    containerMC = _root.createEmptyMovieClip ("container", this.getNextHighestDepth ());

    button 1 - 'but1' is my instance name related and content 1 my movieclip content

    But1.onRollOver = function() {}
    trace ("you have switched on the clip '" + this ._name + "'.");
    newContent = _root.attachMovie ("Content1", "container", containerMC.getDepth ());
    newContent._x = 300;
    newContent._y = 200;

    };

    and so on for each button (1, 2 and 3).

    As you can imagine that if there were 20 buttons there is a lot of overlap of the irrational.

    Is what I considered, as they are sequential I should be able to read 'but' + i and 'content' + I and I could push the button names and content in a table.  The thing I have a problem with, it's how can I write the function so that it checks what clip is reversed and then attach the corresponding content movieclip?

    Finally, I would like the script to check how many buttons is on the scene and simply iterate to this number (so I don't have to specify how they are to go either numOfButtons = 4), but do not know how to go on this issue.

    As you can see that the code could be the same for each button, if I could read the overthrown movieclip and attach the service varied.

    Basically what I'm trying to do is a single function for all buttons to overthrow appointed but1 for but n.

    Any guidance would be appreciated.

    Chris

    I have an error in removeF().  This should be:

    function removeF() {}
    for {(obj in containerMC)
    If (typeof (containerMC [obj]) == "movieclip") {}
    containerMC [obj] .removeMovieClip ();
    }
    }
    }

  • Copy of a slide with a 'model' for the buttons to show and hide across multiple slides

    Here's my problem... I'm going through many different products that each have a similar style click on each slide.  The user can choose from 5 different catergories, when you click on one of the 5 buttons it shows the appropriate text box and hides one of the other visible text that can be opened from clicking on any other category.  When all the 5 keys were pressed game re bar appears allowing the user to continue.  It works just like a champion on a slide.  Here's my problem, although I need to duplicate this slide about 200 times.  When I duplicate, the name of the element in the text boxes so any change so my actions advanced making hide / display is no longer working.  Do I really have to create a new tip action for each text box for each slide with a unique name for the element? (I know that I can't have the same text on several slides box item name... at least I don't think I can).  I can do this, but there must be a quicker way?  What Miss me?

    I am using Captivate 5.5

    Very brilliant way to beat the system, I am impressed.  A problem, however, the text box must have a gray background to make the text readable, and for some reason when the variable positions within the text are it is overlooking the sid on the left of the box by a character.  Everything else seems to fit but not that. See slide below and the "Drytime" box to the right illustrates my problem.

  • Should I me Integrator unique ID to multiple requests for payment service provider?

    Hello-

    My company manages the management of subscriptions for several digital content publishers. We are putting in place direct payment API signInWithCredentials, and. Al for a particular provider and I'm curious to know how extend us these same APIs to handle applications from different vendors?

    Do I need an integrator ID from Adobe to the unique address for each provider, or are they assigned us to a unique ID? If a unique ID, how to direct calls to the database specific to the seller? How did Integrator ID related to the URL/Service Service Auth URL?

    Thank you

    William

    N ° the API contains "appId" and "appVersion" on each method so that your application can detect which application requests information of law.  Make sure that breast of the DPS App Builder, you check the box "Send AppId and AppVersion".  There is no reason to ever do not select no not this box - even if at the end of the day, you choose to ignore the additional parameters.

    While I'm on the subject... also ignore the dates of coverage and Don ' t bother sending ProductID in the body of the request for payment.  This has caused a lot of confusion.  If you really know what they are and why a digital system of their desire, then go ahead.  But for 99% of the use cases, they are useless.

  • Vista will not recognize the projector connected for multiple display

    I'm under a system dual boot with Windows XP and Vista.  When running under XP, I doesn't hurt to connect a projector to my laptop and extend the desktop on the projector for meetings and others.

    When I am running Vista, it does not even recognize that the projector is connected.  However, once I have connected the projector, if I reboot the system, it will then display on the projector.  If I disconnect the projector, the screen does not reappear on the screen of the laptop, I have to restart, with the projector removed for office reappear on the screen of the laptop.  I'm hoping to get multiple monitors to work with Vista, as it does in my XP boot.

    For the purpose of the next presentation running in XP is not an option.

    Hi cptrigeek

    Try these steps and check if that helps:

    Method 1: We can try to perform a power cycle of the projector.

    Remove the cable from the power of the projector and this continues for 5-10 minutes. Also do the same for the laptop, Dungeon, it off. Then put back in place and start the projector. Now, start the laptop as well. Connect now. Now, you will need to install the driver for it (if there is one). After which, you need to configure the settings of the laptop.

    Method 2: Check the following steps:

    1. connect the projector to your Windows PC. NOTE: the following steps apply if you use your PC in MIRROR mode only.

    2. on the screen of the computer, right CLICK on the desktop and select Properties.

    3. click on the SETTINGS tab. If you want that your displays in mirror (what you see on laptop, it's what the public sees) you must make sure that the box "extend my desktop to this monitor" is DISABLED. If you see a box of "mirroring", remember to check it out.

    4. drag the slider to 1024 x 768 screen. As a general rule, the external monitor may limit this parameter. If your screen is higher, it might not display on the projector, then you want to test this until you're ready to take the floor. Drag the color to highest (32 bit) if available or medium (16 bit) quality if the first is not available.

    5. now select FN and press the function key. This key is usually given by a small screen icon, the CRT/LCDtext and is usually found on F8 or F5 even. Press the appropriate operation button ONCE and wait. After a few seconds, the second screen should light up. Be patient, it may take up to 5 seconds. On the projector, it may take up to 10 seconds for the projector to detect your system and switch. Note: a second press of this function (in general) will switch to monitor EXTERNAL only. A third press stop INTERNAL onlyand the circle for each push after that. Also note that some laptops can do this sequence in a different order, so learn your system so that you can quickly to the desired mode.

    6. click on the ADVANCED button. If 'apply the new settings to display without restarting' is not selected, select it. Under screen refresh rate, select 60 Hz. click APPLY and CONFIRM the choice. Click OK to close the ADVANCED options dialog. Close the display properties dialog box. You should now see a mirroring of your monitor on the second monitor.

    7. test: A test, disconnect the second monitor. put your mobile PC to sleep. He wakes up and let it fully come (login if necessary), and then reconnect the external monitor. On some machines, he needs to quickly display the screen in the last known state (you may need to wait up to 10 seconds). If it is not correctly displayed, press the switch function, ONCE. Yet once, note that it can take up to 10 seconds to view, so be patient. If only the projector display now, some pressure on the function switch key should provide for both screens again. If you can't get the projector to display, check all your connections and settings above.

    8 Note that when you use the projector, after pressing the function for changing the monitor button, it may take up to 10 seconds for the monitor find and block on your machine. Just wait. Pressing on the keys new fkey can simply ruin your settings or turn off the projector.

    9. not all laptops work the same way. Please make sure you learn how your work before you get to your presentation.

    (Not mirrored)

    1. If you do NOT want mirrored poster (display of different internal and external), CHECK the box next to the line that reads "extend my Windows desktop to this monitor." This SHOULD result in the external monitor display an image which is an EXTENSION of the current desktop.

    2. in the settings dialog box, the internal monitor appears as a '1' and externally as a '2 '. Click ONCE on the '2 '.

    3. with '2' selected, drag the Screen Resolution slider to the left or to the right until the resolution reads "1024 x 768". Also affect the quality of the highest (32-bit color) if available or average (16 bit) if the first is not available.

    4. click on the ADVANCED button. If 'apply the new display settings without restarting' is not selected, select it.

    5. Select the MONITOR tab. Under screen refresh rate, select 60 Hz. click APPLY and CONFIRM the choice. Click OK to close the ADVANCED dialog box. Your system is now set for an extended desktop. When it is connected to the screen, you may need to use the function switch key to turn once more on this option, but on systems that I tested, the extended desktop comes just when the monitor is connected. Yet once, I suggested some tests with this mode of knowing how your laptop will perform when connected to an external monitor before coming to speak.

    6. notes that, in this mode, items moved to the extended desktop can be "lost" it if the external monitor is disconnected because they live on the extended desktop is no longer available. Also note that if the extended desktop is turned on, this part of funds 'second' can continue to live, which means that the cursor and the object can be moved off the screen in this sector and not be visible on a single internal monitor. To resolve this problem, do a right-click on the desktop, select Properties, select settings, click on the '2' box and UNCHECK the extend option. Items left on the extended desktop should now align the right edge of the internal display.

    See also: http://windowshelp.microsoft.com/Windows/en-US/Help/16152337-a45c-4a1a-b302-cfd95399ce071033.mspx#EQB

    Understand multiple monitors: http://windows.microsoft.com/en-US/windows-vista/Understanding-multiple-monitors

    Set up multiple monitors: http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-multiple-monitors

    Multiple monitor issues: http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-multiple-monitor-problems

    After back and let us know if it helped to solve your problem.

    Thank you and best regards,

    R uma - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Disable the column key functional for an individual of forms

    Hi all

    I have a block of multiple registration details in my form with fields (type, point, wt, vehicle number etc.). Keys are already scheduled for functional use as f3 to copy.

    In my form, I want to use the copy function to get to the fields as type, point, wt, but not for the vehicle number column. IE type, point, maybe same wt columns but number of vehicle may not be same (according to customer requirement). They will not accidentally copying the same number of vehicle.

    For this I need to disable the copy (F3) function for this vehicle only number column.

    Is there a workaround for this...

    My version of the form is 10g

    Thanks in advance

    Concerning

    JaKes

    the KEY-F3-trigger has nothing to do with the F3 function key. In client-server F3 is associated with the DUPLICATE_ITEM function, so you should use the KEY-DUPITM-trigger.

    Also, if you implement a release BUTTON, it replaces the functionality by default, so you must manage the service for yourself.

    As for the OP functionality should just be deleted at one, the simplest solution is to create KEY-DUPITM-relaxation so precise and simple insert a value that is NULL. inside.

Maybe you are looking for

  • Replacing the battery warranty

    * I had my lap top for 8 months and a few weeks ago I noticed that I was getting notifications he had a problem with my battery performance *. * Now, the my battery is not high at all... *. * I thought I had read that the warranty does not cover the

  • application development Toolkit and Windows 7 64-bit - unhandled exception

    Quite simple - I wanted to 'install' TypeDifer.exe as the tool of comparison for '.seq' files in perforce P4V visual client for I can browse and review the differences before check-ins, etc.. I installed the https://lumen.ni.com/nicif/us/nilabstypdif

  • Service Pack 3 for Vista?

    Re Vista, given the size of the updates since SP2, Microsoft will publish a Service Pack 3 for Vista?

  • Cannot install old programs insce change computer Windows 7

    I have a lot of games and programs that are not installed on my computer.   I have a new Windows 7 and slowly tried to reinstall many of my programs and games.  For the most part, I get the message is not Compatible with this system.  Contact softwar

  • LR will not export with NR

    I just downloaded the subscription of the CC and I am trying to edit a few photos on the sky at night.Photos of math have a matter of noise. When I change the picture how I want it and make it nice and dark blacks, and reduce noise, so the stars look