473,473 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Programmically calling a button action

3 New Member
Hello Gurus,

I have a movie that is composed of a picture and 5 buttons below it. When the user clicks button1, a lighting effect occurs, then the image is changed to image1. When the user clicks on button2, the same lighting effect occurs, the the image is changed to image2 and so on.

Now when the movie loads, I want to programmically fire off the actions of button1, button2, button3, button4, button5 in sequence.

Pseudocode:

On movieLoad()

call button1.click()
when button1.click() done call button2.click()
when button2.click() done call button3.click()
and so on.

end moveLoad

How would I go about doing this?

Thx!

Chris
Nov 20 '07 #1
4 2099
cdawson2000
3 New Member
Wow I figured this would be a fairly simple problem. I'm I mistaken? Anyhelp on this question would be greatly appreciated!

Thank,

Chris
Nov 27 '07 #2
rsdev
149 New Member
Wow I figured this would be a fairly simple problem. I'm I mistaken? Anyhelp on this question would be greatly appreciated!

Thank,

Chris
Have you tried writing any code? If so, post here and I'll take a look!
Nov 27 '07 #3
cdawson2000
3 New Member
No I haven't written any code, however, I downloaded the flash source from monstertemplates.com so the code for the button click actions are already coded. I just wanted to modify the movie with my own enhancements

I just wanted to know if there was a way in Flash to fire off a button click event programmically. Other I know it is possible with other scripting/programming languages.

-Chris
Nov 27 '07 #4
rsdev
149 New Member
No I haven't written any code, however, I downloaded the flash source from monstertemplates.com so the code for the button click actions are already coded. I just wanted to modify the movie with my own enhancements

I just wanted to know if there was a way in Flash to fire off a button click event programmically. Other I know it is possible with other scripting/programming languages.

-Chris
There are many different ways to wire an event to a button. So without seeing the code I wouldn't know which to suggest!
Nov 27 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Alexander Straschil | last post by:
Hello! I'm fooling around with a class wich can map cgi-parameters to function named parameter. I have a dic like dic = { 'action': 'myfunc', 'x': 1, 'y': 2,
7
by: Julia Briggs | last post by:
Hello World - I admit I'm new to javascript but I've tried for days to find a solution to my problem. Basically I have 3 unique javascript files that do different screen display events that I...
6
by: Adrian | last post by:
I need to have 2 submit buttons in one form calling the same page. I just need to know which was used. Being able to pass a hidden form input for each would be ideal. How can I do this?? ...
5
by: cwm137 | last post by:
I am trying to call the click event of a button located in a subform called "Order Subform" from a button in the parent. However, since the subform was made with the wizard, it contains a space in...
1
by: Sebastian Santacroe | last post by:
Hello, I've got a datagrid with two columns and no data. I want to add data programmically (from DB). When I try to use sintax like: dataset.Tables("Department").Rows(0).Item("Percentage Used")...
2
by: Agnes | last post by:
I set my datagrid's datasource programmically . However , as the form load, I found that every column width is the same, Question 1) How can i adjust it programmically ??? Question 2) I need to do...
2
by: tee | last post by:
Hi, How do i sort datagridview programmically, current i have the following code but i keep get the error saying "DataGridView control must be bound to an IBindingList object to be sorted.", ...
1
by: SUHASbioinfo | last post by:
Hi All, I have created two web pages (Login page & User Page), Login page has a form of which method is get & action is "\\localhost\login.pl" , and submit button (action = submit), This login...
4
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.