473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

onclick in flash

I have problem with onclick in Flash, Please help....

I have a javascript function that says the following:

<script type="text/javascript">
function startLoading() {
Element.show('mainAreaLoading');
Element.hide('mainAreaInternal');
}
function finishLoading() {
Element.show('mainAreaInternal');
setTimeout("Effect.toggle('mainAreaLoading');", 1000);
}

function loadContent(id) {
startLoading();
new Ajax.Updater('mainAreaInternal', 'rpc.php', {method: 'post', postBody:'content='+ id +''});
finishLoading();
}
</script>

I make a link in html that goes like this:

onclick="loadContent(1);"

Now, my problem is, how do i do the same link on a button in Flash........?
Apr 16 '07 #1
2 19126
kestrel
1,071 Expert 1GB
using action script for linking is a bit different.

you can use onlick or mousedown or what ever you please, but heres the code

getURL("http://www.scottmanning.com/", "_blank");

basically opens up the specified page, in this case, in a new window
Apr 17 '07 #2
I know about the getURL statement, but not the method i'm looking for here. What i want to do is get some content loaded which i get from a file i have (rpc.php)

If i put the javascript in my index.php document and call the function in a link, onClick="(loadContent(1);" it works fine.

What i'm looking for is a way to do this with actionscript, and the getURL function is not the solution.
Apr 17 '07 #3

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

Similar topics

9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
6
by: Dave Mennenoh | last post by:
I have a Flash based video player that uses a javaScript function on the page to modify variables within the Flash. This is so, external, jpg, thumbnails can change the video without reloading the...
0
by: sabian08 | last post by:
Please help a newb! Any suggestions are appreciated! My goal is to have all checkboxes=true up to today's month when the "Fiscal Year" checkbox is clicked. Right now, I'm having trouble with the...
1
by: donradii | last post by:
Hello all, I am new here and am new the world of javascripting. I am having a heck of a time trying to accomplish something that i conceptually know what i want to do but can not seem to get it...
9
by: whitgurley | last post by:
I've searched the web as well as I can for a solution to this problem but have found nothing and just don't know enough about JavaScript to figure out what's going. What I'm trying to do is convert...
2
AMT India
by: AMT India | last post by:
I am using a javascript event of onclick for flash <div id="banner_sky" onclick="LogBannerClicks('bannerId_sky')">Flash Path (flash comes here)</div> but the function LogBannerClicks() is not...
1
AMT India
by: AMT India | last post by:
Hi, I am using a javascript event of onclick for flash <div id="banner_sky" onclick="LogBannerClicks('bannerId_sky')">Flash Path (flash comes here)</div> but the function LogBannerClicks()...
8
by: Dan Rumney | last post by:
All, I have a web page (copied below) with 3 images on it of fixed dimensions. Each image has a map associated with it In the maps, there are a number of areas with an onClick handler...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.