Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 02:05
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  General Conversation (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis, Mattias Robo)
| | |-+  getURL relative path not working
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: getURL relative path not working  (Read 3918 times)
styliani
Server what's that
*
Posts: 1



View Profile Email
« on: 01/28/02, 12:43 »

Hello,

Very good site by the way.

My problem is with getURL in Flash 5. I'm trying to link my executable with an html page located in a sub-folder in the same directory but flash instead of trying to locate the local route it tries to open an http://www site. How can I enable this relative route? In Flash 4 this was done automatically. Is there something I have to do in Flash 5 to activate it? Here is my action, assigned to a button:
on (release) {
   getURL ("javascript:NewWindow=window.open('links/mov.html','newWin','width=400,height=300,left=50,top=50,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); ", "NewWindow.focus(); void(0);");
}

Thanks a lot.
Grin
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #1 on: 01/28/02, 13:02 »

Ok,

That Javascript code you are using will only work when the swf file is located inside of a Browser window - The browswer is needed so that the Javascript can be processed.  If your using this from an executable the Javascript will not work (at least I really don't think so).

on (release) {
   getURL ("links/mov.html");
}

You should be able to use something like that though.
Logged

-Jeff.
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!