| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2002
Posts: 4
|
I'm trying to link a button in a Flash projector to a function call (chromeless window) & am having problems. Rescue me!!
|
|
|
|
|
|
#2 |
|
no sleep til bedtime
Join Date: May 2001
Location: Brighton
Posts: 1,322
|
What kind of function call? If you're dealing with a projector file then I presume it's fscommand, and I don't really understand the idea of a chromeless window in that context (ie, not in a browser)??? Elaborate please...
![]() |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2002
Posts: 4
|
I'm developing a stand alone web browser and I dont want to view the standard menu items and so forth at the top of the window of the next page called. Therefore all links will be opened in a chromeless window 600x600. A remote will follow throughout for extra navigation. This function call must trigger this...
function openIT() { theURL="http://linkX.htm" wname ="CHROMELESSWIN"... using this script... "javascript penIT();"Either this or somehow make the action (mouse click) an exe to trigger this function..either way is OK If you need anymore Nfo, feel free to post back. Kev |
|
|
|
|
|
#4 |
|
no sleep til bedtime
Join Date: May 2001
Location: Brighton
Posts: 1,322
|
Well that should be doable - see the tutorials section on using javascript calls to open new windows but in brief you can go (in the swf):
getURL("javascript: void(0);openIt();");//this could be triggered by a button or just on a frame... and that will call the function in the webpage. Does that answer it? |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Mar 2002
Posts: 4
|
Remember, I am opening a window from a Flash player (standalone) not from the html....
this is what you get from the frame action ...syntax error... The action tries to load the page- http://geturl("javascript:void(0);openIt();");/ sorry archikev1 |
|
|
|
|
|
#6 |
|
no sleep til bedtime
Join Date: May 2001
Location: Brighton
Posts: 1,322
|
Some confusion over terms here - 'chromeless' means to me a browser window without the usual toolbars etc...but if it's a projector file you can't use javascript at all. You could use fscommand("exec" .. to launch the browser and have it start with a page of html containing the javascript needed to make it chromeless, but this is theory for me - I've never done it.
Chip in you "exec" afficionados... good luck with that, |
|
|
|
|
|
#7 |
|
Registered User
Join Date: Mar 2002
Posts: 4
|
You are correct concerning the action. This is where I get stuck. Maybe somehow exec the chromeless to open....
Do you have any ideas about getURL to a page that would only open for mSec. and redirect to the chromeless then close automatically? I've got the script to work to open the redirect which in turn will open the chromeless. Just need to close the redirect without really noticing it even opening. Thanks for the theories so far... Let's whip this one! Kev |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't Javascript call a Flash function and pass parameters??? | gloveny | Other Flash General Questions | 4 | 11-26-2004 07:20 AM |
| [Q] Do we need those forums??? | CyanBlue | General Chat | 59 | 07-27-2004 12:13 PM |
| How to call a servlet from flash | mdevall_sgs | ActionScript 1.0 (and below) | 0 | 06-21-2004 12:52 AM |
| enterframe and load and objects, oh my! | dice | ActionScript 1.0 (and below) | 13 | 07-18-2003 12:07 PM |
| HELP! Flash in iframe to call Javascript in parent | lordcatalien | Server-Side Scripting | 2 | 01-06-2003 06:44 PM |