473,385 Members | 1,838 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,385 software developers and data experts.

Flash Buttons Query!

Hi there,
i'm a novice at flash and am trying to make the buttons that i have made link to my other pages. I have done this using the typical getURL phrase.
My site has 2 frames, one is for the flash buttons, and the other to show the main pages.
However, my main trouble is:

When testing my site on local desktops, the link works on some but on others a new window appears (when instead it should load in the mainframe)

Is there any reason why it's work on SOME Pc's and not others, as the code doesn't change!? I thought it might have something to do with FLASH versions. I am using studio 8 at the moment, but i don't see why it shouldn't work on a higher version even if it is the case...or even internet browsers!!!. Any suggestions???

CODE:
on (release) {
getURL ("contact.html" window = "mainFrame")
}

Like i said, works fine on some, not on others.
Jun 25 '07 #1
2 1448
r035198x
13,262 8TB
Hi there,
i'm a novice at flash and am trying to make the buttons that i have made link to my other pages. I have done this using the typical getURL phrase.
My site has 2 frames, one is for the flash buttons, and the other to show the main pages.
However, my main trouble is:

When testing my site on local desktops, the link works on some but on others a new window appears (when instead it should load in the mainframe)

Is there any reason why it's work on SOME Pc's and not others, as the code doesn't change!? I thought it might have something to do with FLASH versions. I am using studio 8 at the moment, but i don't see why it shouldn't work on a higher version even if it is the case...or even internet browsers!!!. Any suggestions???

CODE:
on (release) {
getURL ("contact.html" window = "mainFrame")
}

Like i said, works fine on some, not on others.
Moved to Flash forum .
Jun 25 '07 #2
This is a function I have been using to call javascript from flash. It works way better than getURL(), plus it will return a value from a javascript function if needed (returns false if not).

place this in flash:
Expand|Select|Wrap|Line Numbers
  1. function runJSFunction(fn){
  2.     import flash.external.ExternalInterface;
  3.     js_response = ExternalInterface.call(fn);
  4.     if(js_response != ""){return js_response;}else{return false;}
  5. }
  6.  
  7. // implementation:  runJSFunction("[function name]");
  8.  
put the javascript function on the html page.
This will not work locally only off a server.

-J
Jun 26 '07 #3

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

Similar topics

8
by: tmb | last post by:
1 - Can you build an entire web page or site with Java... sorta like you can with Flash? 2 - Can you do... .. Drag & Drop .. Push Buttons .. Hot Spot .. Hot Object .. Pull Down's (combo...
18
by: Simula | last post by:
I am developing an HTML javascript application and I want to preserve state in a way that can be book-marked. I chose HTML anchors as a means of preserving state. When the application changes...
0
by: Vladi | last post by:
Hello everybody, I have a asp.net 1.1 page which has the following controls: 4 Images whose src points to an image.aspx file which returns a different jpg from a DB 1 flash object on top of those...
1
by: sagittario | last post by:
Hi all , i am really hoping some1 could help me with this.. i have attached a flash swf as the header inside my ajax code. this flash swf contains the buttons inside it. so i need an action...
1
by: sagittario | last post by:
Hi all , i am really hoping some1 could help me with this.. i have attached a flash swf as the header inside my ajax code. this flash swf contains the buttons inside it. so i need an action...
1
by: Rudeolf | last post by:
Hi there, i'm a novice at flash and am trying to make the buttons that i have made link to my other pages. I have done this using the typical getURL phrase. My site has 2 frames, one is for the...
1
by: patronise | last post by:
My problem is that I'm wrestling to make the LoadMovie and UnloadMovie functions work for me. Here is the layout of my flash file: I've got several seperate flash files and I can jump to any one of...
0
by: tgips | last post by:
I am creating slide shows using the screens option on Flash 8. I have inserted forward Buttons and Back Buttons to move through the screens. I am using the Behaviors panel to prescribe the actions....
1
by: knkweb | last post by:
Linking pages with buttons in flash? Hi: I have this problem in actionscript (flash). I was wondering if someone can help me out. I am a junior programmer, and I really needed to do this for...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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:
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
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
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...

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.