GetURL Local File (windows) ?
Hiho
getURL("file://c:/bla.lnk");
I want to call a windows .lnk file but i will be asked to open or to save. Can I do it without notification ? [Edited by borisp on 07-04-2001 at 11:15 AM]
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-04-2001, 12:07 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- GetURL With Relative Local File
- GetURL...trying To Link To Local Htm File On Intranet...very Frustrating
- Launching A Local Html File From Local Swf ( Flash 8.)
- Problem With Local File And Local Link
- GetURL Local Url Problem
- GetURL Local Problem
- GetURL: Local Vs Server
- Opening Local Files With GetURL
- GetURL() With Parameter On Local System
- How To Open Local Directory With GetURL() ?
- GetURL And Local Files In Folders
- Flash Local Connection Within Multiple Windows Problem
- Flash Local Connection Within Multiple Windows Problem
- GetURL, Local Files & Passing Variables
- GetUrl From Local Flash To Distant Server
- Problems With GetURL And Local Frame Targeting In FP9
- Problems With GetURL And Local Frame Targeting In FP9
- IE7 Local Trusted SWF GetURL Fails Silently.
- Firefox Can't Open Local HTML Files With GetURL
- Firefox Can't Open Local HTML Files With GetURL
- Set Browser Size On Geturl Java Not Working On Local Cd
- Set Browser Size On Geturl Java Not Working On Local Cd
- GetURL And Windows XP/IE
- GetUrl With Different Windows
- GetUrl With Different Windows
- GetUrl Opens Two Windows
- GetUrl Opens Two Windows
- Resizing Windows With GetURL?
- GetURL Launching TWO Windows
- Customizing GetURL Pop Up Windows
- Customizing GetURL Pop Up Windows
- GetURL Does Not Work In IE6 On Windows XP
- GetURL Actionscript For Pop-up Windows
- GetURL Opening 2 Windows
- Opening New HTML Windows With GetURL
- Disabling GetURL POST To Windows
- GetURL, _blank, Force New Windows?
- Help - GetURL, FSCommand, Javascript (not About Pop-up Windows)
- Help - GetURL, FSCommand, Javascript (not About Pop-up Windows)
- HELP GetURL Results Twice Opening Of Windows
- Help - GetURL, FSCommand, Javascript (not About Pop-up Windows)
- Opening Pop Up Windows With A Variable Passed To GetURL
- Popup Windows Won't Open With GetURL Javascript On Some Pc's
- [F8] GetURL Opens Multiple Browser Windows
- [Flash8] .send And GetURL Open Two Windows
- Using GetURL To Activate Windows Media Player Events
- Problem With: Local Folder Path, With .swf File Inside A .html File
- Please Help How To Get The Full File Path( The File Which Is In Local System) In Flash 8
- Local Flash File And File Installations From A Server
GetURL With Relative Local File
I know that similar questions have been asked but mine Just Won't Work(tm).
I want to open a local html file from Flash using a relative path.
I've tried a static path like this:
getURL("file:///E:/Flash/CCP Flash/cimtool_title.htm", "_blank");
That works ok but I don't want a static path, I need it to be relative.
I tried this:
getURL("file:///cimtool_title.htm", "_blank");
and it doesn't work...
poo.
Can anyone help me? I would be grateful.
GetURL...trying To Link To Local Htm File On Intranet...very Frustrating
I will be extremely grateful if someone can help. I'm a newbie, by the way.
Trying to set up a getURL to link to a local htm file, NOT a page on the internet. All the tutorials I have read tell me how to link to a file on the internet eg. getURL("http://www.sitename.com")
I'm trying to set up an intranet site for my training college where students can access training resources etc on the local network. Therefore my getURL needs to point to a local file, not one on the internet.
I'm trying to link to a .htm file that resides on my computer.
Does the htm file have to be in the same folder as the .fla file??
How do I do this??
I'm working on a Mac, Os X, MX 2004, if that makes any difference.
I am frustrated to the point of tears, and have wasted numerous hours trying to work this out, and I would really appreciate if someone could help me out.
Launching A Local Html File From Local Swf ( Flash 8.)
Hello everyone i am having a problem launching a local html file from my swf. i have a button called print that when clicked it is supposed to open the local html file and print out the content. this is the code i used on the button
on (release){
getURL("folder/folder/file.htm","_self");
}
i also tried scripting it on the time line when that didn't work.
any ideas?
Thanks,
kool
Problem With Local File And Local Link
Hi to everybody,
I have installed a new version of flash player (9,0,28,0) and when I open a local file like:
c: estindex.html
When I click into some link that point to some local file like as:
c: est est.htm
I don't obtain nothing the page still remain index.html.
If i put the test directory into some server everithing working fine.
I have tried to change some machine and i have tried some old flash file but still the same!
How can solve it without upload all file everytime into some web server and without install some local web server?
Thanks in advance to everybody for any tips and sorry for my bad english!
John
GetURL Local Url Problem
I'm trying to set up a text box that you can type in an address and then click a button and it will go there. it works if i type in an http:// address but if i type in something local it doesnt display that directory in a pop up web browser. I have tried typing things like c:/ and the button doesnt act like it's active. if i type file:///c:/ it doesnt respond either. Though it work if i do it local on my computer though just not on a website. Any idea what I can do to make this work?
GetURL Local Problem
Hi i have a getURL loac file problem:
i have this in my swf:
PHP Code:
sms();
function sms(){
getURL("overzichtEN.html");
}
the swf is on my desktop and the file overzichtEN.html aswell..but when i open the swf the only thing i see is a browser window without an url in it..
hope someone can helpe me with this
thanks in advance.
GetURL: Local Vs Server
Hi --
Long time reader, first post...
I am developing a site for a client, and am trying to enable the backbutton using Robert Penner's method. Even with my forum search-fu skills, I still have a couple of questions lingering:
1) Is there and easier way to enable the browser back button other than Penner's script and the one hybrid method outlined here? (And the named anchors...they annoy me)
2) My getURL actions open pages in a new window no matter what when tested locally, but when I upload them to my server, they work just fine. This is quite annoying for testing, having to upload everytime I need to test. Is there some function/parameter I need to enable/disable? Here is my HTML to call the Flash (using the ActiveContent update in Dreamweaver/Flash):
Code:
<script language="javascript">
AC_FL_RunContent(
'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width','100%',
'height','100%',
'id','mymovie',
'align','top',
'src','mymovie',
'quality','high',
'scale','noscale',
'wmode','transparent',
'bgcolor','#d1d5f4',
'name','sisters',
'pluginspage','http://www.macromedia.com/go/getflashplayer',
'swliveconnect','true',
'movie','mymovie' ); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="mymovie" align="top">
<param name="allowScriptAccess" value="always">
<param name="movie" value="mymovie.swf">
<param name="quality" value="high">
<param name="scale" value="noscale">
<param name="wmode" value="transparent">
<param name="bgcolor" value="#d1d5f4">
<embed src="mymovie.swf" quality="high" scale="noscale" wmode="transparent" bgcolor="#d1d5f4" width="100%" height="100%" name=mymovie swLiveConnect=true align="top" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
Any help would be appreciated. Thanks!
Opening Local Files With GetURL
I know this may sound simple and probably is, but I can't figure it out. I'm using Flash MX and want to know how to open a local file using the getURL command. I am using a mac to create the files and the end product will be a CD-rom for PC.
Here's an example of what I want. If I have a file on a mac drive and the path is machd/files/xxx.txt, how would I input that address in Flash using the getURL so it will open up that file.
Also for the PC side I will need how to specify the path for a CD-rom for the file to open.
Any help on this matter would be much appreciated.
Wedge
GetURL() With Parameter On Local System
I am passing a parameter along with the url "getURL("XXXXXXX.html?xx)"
it works fine on the http:// service, but does not work on the local system c:/XXXXXXXX.html?xx.
On my local system it eliminates the parameter and links only "XXXXXXX.html",
Else i have to pass the parameter through javascript, it works fine!
Is there any way i can get the parameter through getURL().
any sort of information will be appreciated.
Thanks.
How To Open Local Directory With GetURL() ?
Hi,
I should have a solution to open a directory on a local computer/network with flash. I've tried the code beneath. It works in the Flash IDE but not
when I call the *.swf through a html page.
Are there any other solution around?
//open C: directory on
getURL("file://C:");
GetURL And Local Files In Folders
I'm having a problem where I link to files locally that I want to open in a browser. The actionscript is the basic:
on(release) {
getURL("sites/index.html", _blank);
}
The problem is that when the link is clicked, the browser opens but gives me some Microsoft error about not being able to rename the My Documents folder. The only way it works correctly is if the browser is already open and it doesn't have to start it up.
I've linked to other files in folders before in Flash, I don't understand why this is any different. I need to get this figured out quickly though. Any help would be great!
Thanks!
Flash Local Connection Within Multiple Windows Problem
Hi
I've got quite a difficult problem so please, bare with me on my description
Okay. There's a problem with a flash audio player -i'm making- on a website. The website has clips throughout the site to listen to music samples. This is done by using small swf's which send the link via localconnection to the main player, which then plays the relevant clip.
However, if the user opens more than one window there are problems. All the clips link to the audio player in the original window, which is okay, however, if the user closes that original window then the clips won't play at all!
I found, what I think may be, a part solution made by Mirandir. It uses a simple port randomizer method so the clips only link to their relevent player. However, There are multiple clips on one page, and it only creates this bond between one clip and the others can't work.
A way that we tried to get this to work was to find ways with javascript to figure out in which open browser window stuff is. Do you know if Javascript could know if it’s in window number one, two etc? Or would it count each frame as a new window somehow?
This could potentially be a solution for the problem as we might be able to tell the player and the player clips via javascript that they’re in window number 5 etc. What do you think – could this be done this way?
Any ideas you can offer would be gratefully appreciated
Thanks in advance
-Luke
Flash Local Connection Within Multiple Windows Problem
Hi
I've got quite a difficult problem so please, bare with me on my description
Okay. There's a problem with a flash audio player -i'm making- on a website. The website has clips throughout the site to listen to music samples. This is done by using small swf's which send the link via localconnection to the main player, which then plays the relevant clip.
However, if the user opens more than one window there are problems. All the clips link to the audio player in the original window, which is okay, however, if the user closes that original window then the clips won't play at all!
I found, what I think may be, a part solution at Flashkit. Someone made a method which uses a simple port randomizer method so the clips only link to their relevent player. However, There are multiple clips on one page, and it only creates this bond between one clip and the others can't work.
A way that we tried to get this to work was to find ways with javascript to figure out in which open browser window stuff is. Do you know if Javascript could know if it’s in window number one, two etc? Or would it count each frame as a new window somehow?
This could potentially be a solution for the problem as we might be able to tell the player and the player clips via javascript that they’re in window number 5 etc. What do you think – could this be done this way?
Any ideas you can offer would be gratefully appreciated
Thanks in advance
-Luke
GetURL, Local Files & Passing Variables
Hi,
I've got a multi-frame HTML setup, designed to run from the local HD, with a Flash 5 movie in the centre frame, and some javascripts in the top frame's page.
I want the flash movie to be able to pass some variables to the top frame, not by javascript directly, but by loading (or reloading) the top document with some supplied variables:
ie GetURL("top.html?a=b&c=d", "TOP")
where TOP is the name of the top frame
This works fine on the Mac under IE, locally & off a server, fine on the PC off a web server, but fails under IE under Windows when running off the local drive... the document.location property of the top frame remains as
file://local/hd path/top.html
when it should be
file://local/hd path/top.html?a=b&c=d
Is this a known Flash / IE limitation? Anyone got a workaround suggestion? Any advice appreciated, otherwise I'm going to have to use Javascript so pass the variables directly.
cheers,
Hugh
BTW, I've used the GetURL("top.html", "TOP", "GET") syntax as well and it makes no difference, I'm concatenating my own string to specify the variables to pass.
GetUrl From Local Flash To Distant Server
Hello,
I have the following problem :
- the page index.html displays a flash animation.The page is on the hard
drive of the computer. In this animation, there are some links to some
html pages.
the links are like that :
getUrl ("
Problems With GetURL And Local Frame Targeting In FP9
I have a two frame page - the left frame is a custom flash Tree object that parses an IMS-compliant manifest (basically a tree menu structure) and the right frame displays the loaded page/object in that manifest. If i run this from a server, it works fine and displays all links in the right frame. But if I run it from a local or network drive it opens all links in _blank.
Adobe have a technote on the new allowScriptAccess and getURL in FP9 (http://www.adobe.com/go/50c1cf38) but dont mention anything about this issue (that i can locate).
Can anyone confirm that targeting frames locally via getURL under FP9 is now not possible?
Cheers,
Darren
Problems With GetURL And Local Frame Targeting In FP9
Hi all - have a strange issue that I cant seem to find any help for from other forums (including Adobe forums) so thought I might try here...
I have a two frame page - the left frame is a custom flash Tree object that parses a number of IMS-compliant manifests (basically an XML tree menu structure) and the right frame displays the href of the tree object that is clicked. If i run this from a server, it works fine and displays all links in the right frame. But if I run it from a local or network drive it opens all links in _blank.
Adobe have a technote on the new allowScriptAccess and getURL in FP9 (http://www.adobe.com/go/50c1cf38) but dont mention anything about this issue (that i can locate). I also cannot see how opening all pages in _blank can fix any "security" issues.
Can anyone confirm that targeting html frames locally via getURL under FP9 is now not possible or has been changed? or is this a bug (sorry - undocumented feature)?
Cheers,
Darren
IE7 Local Trusted SWF GetURL Fails Silently.
i've got my swf in the local trusted sandbox by using an installer that created a trustFile as documented by this technote:
http://www.adobe.com/devnet/flash/ar...ity_print.html
"local trusted" should give me all access, but IE7 will not perform a simple getURL:
Code:
getURL("javascript:alert('you clicked me')");
firefox will perform this action.
the swf is local access only (i've tried the network only as well) and there is a file located in this directory that gives the swf trust status.
Code:
C:Documents and SettingsYourUserNameApplication DataMacromediaFlash Player#SecurityFlashPlayerTrust
To recreate my problem, place a txt file in the above directory with a absolute path to your text swf (example: C:Documents and SettingsakennedyDesktopdemoLauncherfiles) then create a swf with a simple button that calls the javascript above.
the html embed code should have these parameters added:
"allowscriptaccess", "true"
"allowNetworking", "all"
you can check what sandbox you are in by using this code on a dynamic text field:
Code:
poo_txt.text=System.security.sandboxType;
can anyone get IE7 to communicate with javascript locally?
could someone please confirm?
thanks,
Firefox Can't Open Local HTML Files With GetURL
When Firefox is a the default browser getURL("localfile.html") will not work properly.
What happens is Firefox opens a blank tab then a second tab which can't locate the local file. Firefox then uses Google to try and locate a public website. So if you’re local files are within My Documents, Google redirects you to the page http://support.microsoft.com/kb/236621 "Cannot move or rename the Documents and Settings folder" which is the best match for a "documents and settings" search with "I'm feeling lucky".
Now here's the weird thing. Once one Firefox window is open, any more getURL functions will work. It doesn't work if you have two getURL functions on the same button but if you push the same button two times, the first will produce the error the second will work correctly.
Using getURL("localfile.html", "_blank") doesn’t change anything either.
Works fine with IE set as your default browser. No idea what a Mac does.
Using:
Publishing from Flash 8 Pro
Firefox version 1.5
IE version 6
Published as Action script 1.0 or 2.0 (makes no difference)
Published as player 7 or 8 (makes no difference)
Final published file is to be an EXE. Symptoms still happen when using the SWF file. When the SWF is embedded into a html page, everything works because a Firefox window is obviously already open.
Please help.
Set Browser Size On Geturl Java Not Working On Local Cd
I have been stuck on this for a month now.
It's crazy but no matter what I do I cannot specify no toolbar , window height and width for my offline projector version- it seems the java popup just won't work offline with a relative address. So what to do?
Set Browser Size On Geturl Java Not Working On Local Cd
I have been stuck on this for a month now.
It's crazy but no matter what I do I cannot specify no toolbar , window height and width for my offline projector version- it seems the java popup just won't work offline with a relative address. So what to do?
GetURL And Windows XP/IE
Hi,
I made a site ( http://www.zwartopwit.com ) where a pop-up is build in to upload files to the server. if the pop-up is blocked you can press on a open upload button.
behind this button is a getURL(javascript:newWin() ) method.
this works for most of the users, but some complain they can have a upload screen. some of them had one before and now it's not wroking anymore. Nothing changed on the site or the script. they are all win XP/ IE users.
does anybody has a clue what causes this, or maybe an other way to open a browser window...
thx
Stefan
GetUrl With Different Windows
I have two separate browser windows with a flash movie in one. The flash movie has several buttons for navigation in the other browser window. Well, that is how it is supposed to work, but I can only get it to open the url in the current browser (replacing the flash movie) or an entirely new browser. Is there any way to control the content of one window from another like you would if they were frames?
Thanks for the help.
GetUrl With Different Windows
I have two separate browser windows with a flash movie in one. The flash movie has several buttons for navigation in the other browser window. Well, that is how it is supposed to work, but I can only get it to open the url in the current browser or an entirely new browser. Is there any way to control the content of one window from another?
Thanks for the help.
GetUrl Opens Two Windows
the site i designed is fullscreen using a frameset to avoid scrollbars. i have buttons with geturl action. sometime 2 windows open. can this be?????
thanxxxx
GetUrl Opens Two Windows
I have a button which shoud open a new browser window wit getUrl("http://www.example.at", "blank"). Sometimes this action opens two windows. Can this be?????
any ideas
Resizing Windows With GetURL?
I have a small floating Flash banner (200x150) on a site which has a getURL button within. When a person clicks on the button, it leads to a larger page. I have the new page load in '_self' rather than '_blank' because there is no need to leave the banner around after they follow its link.
When they click on the button, it brings up the new page, but keeps the same size window--which isn't good because the majority of the information is not visible within the dimensions of the banner window. Is there anyway to insert a new window size in the GetURL?
GetURL Launching TWO Windows
I am creating a demo designed to run on a CD-ROM. In the demo is a button that when clicked should open a browser window and go to a specific site. I have been using just getURL to achieve this. Works great on PC but on the Mac it opens two windows (one window goes to my site, one to the default homepage).
Any ideas? Thanks in advance for your help!!
Customizing GetURL Pop Up Windows
I am using the getURL function to open a jpg in a new browser window, which works fine.
on (release){
getURL("images/picture.jpg", _blank);
}
However, I desperately want to customize the browser window that pops up so that it has no menu or toolbars, and I wish to have it sized to fit my image(s).
I was wondering if anyone knew a way this can be done. I've found out many ways to do this opening from an html page ( window.open(blah blah) ), but I can't figure out how to spawn a customized pop-up from within an swf.
If anyone could help or give some suggestions, I would be very greatful.
Customizing GetURL Pop Up Windows
I am using the getURL function to open a jpg in a new browser window, which works fine.
on (release){
getURL("images/picture.jpg", _blank);
}
However, I desperately want to customize the browser window that pops up so that it has no menu or toolbars, and I wish to have it sized to fit my image(s).
I was wondering if anyone knew a way this can be done. I've found out many ways to do this opening from an html page ( window.open(blah blah) ), but I can't figure out how to spawn a customized pop-up from within an swf.
If anyone could help or give some suggestions, I would be very greatful.
GetURL Does Not Work In IE6 On Windows XP
Hi there,
I have a flash movie with with thumbnails using
Code:
on (release) {
getURL("javascript:MM_openBrWindow('showroom_1.html','popWindow','width=490,height=490,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no')");
}
to launch a pop-up window.
I have made this site with Flash MX on Mac. This works fine on Mac but when I tested it with IE6 on Windows XP I get "URL not found" message in the same window without any pop-up window. This sound like the browser concerned is not reading javascript within the function. Does anyone know how to correct this?
Rio
GetURL Actionscript For Pop-up Windows
I have been attempting to create a Flash file which incorporates buttons that will open up pre-sized windows. I have researched this on Macromedia's site and followed their tech note: 14192 (I'm not to the point where I'm ready to write my own script)
This is the process I followed - I am certainly overlooking something simple because this script is not that intense.
Within Flash I added the following actionscript to the button (I'm testing this out on only one button until I get it to work)
on (release) {
getURL("javascriptpenNewWindow('http://www.premierbaseballschool.com','thewin','height=300,width=400,toolbar=no,scrol lbars=yes') ");
}
the syntax checks out okay
I publish this "Flash Only" to my root directory on my personal server
I insert the Flash file into my PHP document and add the following script to the HEAD
<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</SCRIPT>
When I open the web page the Flash file runs as intended, but the button does not fire (open up the pop-up window).
?? - seems I'm missing something here, but have yet to find my error - a second pair of eyes may see the error in my ways. -- Thanks! Les
GetURL Opening 2 Windows
hello everyone.
i just added a blog to my site with a buttom symbol to get to it. When I test my page everything works fine, but when I upload it to the server when I go to the site it loads two pages of my blog page and the second one is the wrong address. it takes the web address and doubles it. Is there someone who can help. Thanks a bunch
http://www.scotlandorbust.com
Opening New HTML Windows With GetURL
i am trying to open a new window using the getURL command. I can do it using the _blank and it will open the URL in a browser window.. however, I do not know how to make the size of the window a certain size... can i specify the width and height of the new window that i am opening up? any help would be appreciated.
Disabling GetURL POST To Windows
I have a form that submits standard a form questionaire (name, email, phone, address, etc.) to a ASP file. Unfortunately during the submission the link either changes to the ASP file (if I set the target to _self or "") or to a new window (if I set the target to _blank). How do I keep the URL from changing? Thanks!
GetURL, _blank, Force New Windows?
Hi,
I am using this code to open a new window:
on(release){
getURL('http://www.domain.co.uk/',_blank);
}
In the new window/ site I also have a flash movie which has:
on(release){
getURL('http://www.domain_two.co.uk/',_blank);
}
but this opens in the same window, and NOT another new window (_blank)
How can I make the buttons ALWAYS open in a new window.
Many many thanks,
Ben.
Help - GetURL, FSCommand, Javascript (not About Pop-up Windows)
There seems to be like 8000 threads on how to make pop-up windows. This isn't one of them.
I'm working on an eLearning program that uses SCORM. All of the stuff out there makes use of FSCommands to communicate with the Learning Management System, which is worthless on the Mac. I know you can use getURL to access javascript functions. I've already tested that, and simple things work fine (like popping up an alert).
I need help with implementing the specific stuff here. It's more complicated than a simple alert or pop-up, and I'm getting nowhere. Any hints would be appreciated.
Setup:
Javascript fragment: (the function name and "LMSSetValue" are the important things.) This is straight from the macromedia template you get when you publish a flash file with the SCORM tracking html.
Code:
function Loader_DoFSCommand(command, args){
var LoaderObj = g_bIsInternetExplorer ? Loader : document.Loader;
// no-op if no SCORM API is available
var myArgs = new String(args);
var cmd = new String(command);
var v = "";
var err = "true";
var arg1, arg2, n, s, i;
var sep = myArgs.indexOf(",");
if (sep > -1){
arg1 = myArgs.substr(0, sep); // Name of data element to get from API
arg2 = myArgs.substr(sep+1) // Name of Flash movie variable to set
} else {
arg1 = myArgs
}
if (!APIOK()) return;
if (cmd.substring(0,3) == "LMS"){
// Handle "LMSxxx" FScommands (compatible with fsSCORM html template)
if ( cmd == "LMSInitialize" ){
err = (APIOK() + "")
// The actual LMSInitialize is called automatically by the template
}else if ( cmd == "LMSSetValue" ){
err = SCOSetValue(arg1,arg2)
The normal FSCommand actionscript function:
Code:
function apiSetScore(nMin,nMax,nRaw) {
fscommand("LMSSetValue", "cmi.core.score.min," + nMin);
fscommand("LMSSetValue", "cmi.core.score.max," + nMax);
fscommand("LMSSetValue", "cmi.core.score.raw," + nRaw);
}
The getURL I'm trying to replace the FSCommands with:
Code:
getURL("javascript:Loader_DoFSCommand('LMSSetValue', 'cmi.core.score.raw,' + nRaw)");
I'm definitely hitting my apiSetScore function fine. I put an alert javascript in there and that works. But the DoFSCommand is not doing anything. I really need some help guys!
Help - GetURL, FSCommand, Javascript (not About Pop-up Windows)
There seems to be like 8000 threads on how to make pop-up windows. This isn't one of them.
I'm working on an eLearning program that uses SCORM. All of the stuff out there makes use of FSCommands to communicate with the Learning Management System, which is worthless on the Mac. I know you can use getURL to access javascript functions. I've already tested that, and simple things work fine (like popping up an alert).
I need help with implementing the specific stuff here. It's more complicated than a simple alert or pop-up, and I'm getting nowhere. Any hints would be appreciated.
Setup:
Javascript fragment: (the function name and "LMSSetValue" are the important things.) This is straight from the macromedia template you get when you publish a flash file with the SCORM tracking html.
Code:
function Loader_DoFSCommand(command, args){
var LoaderObj = g_bIsInternetExplorer ? Loader : document.Loader;
// no-op if no SCORM API is available
var myArgs = new String(args);
var cmd = new String(command);
var v = "";
var err = "true";
var arg1, arg2, n, s, i;
var sep = myArgs.indexOf(",");
if (sep > -1){
arg1 = myArgs.substr(0, sep); // Name of data element to get from API
arg2 = myArgs.substr(sep+1) // Name of Flash movie variable to set
} else {
arg1 = myArgs
}
if (!APIOK()) return;
if (cmd.substring(0,3) == "LMS"){
// Handle "LMSxxx" FScommands (compatible with fsSCORM html template)
if ( cmd == "LMSInitialize" ){
err = (APIOK() + "")
// The actual LMSInitialize is called automatically by the template
}else if ( cmd == "LMSSetValue" ){
err = SCOSetValue(arg1,arg2)
The normal FSCommand actionscript function:
Code:
function apiSetScore(nMin,nMax,nRaw) {
fscommand("LMSSetValue", "cmi.core.score.min," + nMin);
fscommand("LMSSetValue", "cmi.core.score.max," + nMax);
fscommand("LMSSetValue", "cmi.core.score.raw," + nRaw);
}
The getURL I'm trying to replace the FSCommands with:
Code:
getURL("javascript:Loader_DoFSCommand('LMSSetValue', 'cmi.core.score.raw,' + nRaw)");
I'm definitely hitting my apiSetScore function fine. I put an alert javascript in there and that works. But the DoFSCommand is not doing anything. I really need some help guys!
HELP GetURL Results Twice Opening Of Windows
Hi there,
I'm working in a big firm with big team. We have many links to browse daily, internally through a server to open the files and work. To make it easy for the team, I have designed a small tool, something like favorite links and gave all the urls. Now comes the problem. I used the get URL function. The getURL function works but it is coming in twice, in two windows like a repeatition.
The problem is the getURL is actually working as per its defined function, it is opening in browser. And at the same time, as per the script, it is also opening from the server too. So two ways it is working. But I need to get the result only in one window. Either in browser or in normal window.
Please help!!! Example of my link is given below:
on(release){
getURL("R:/abc/123/xyz/files", "_blank");
}
If I open in html the link is working only one time. But published exe is resulting in two windows for getURL function.
Is it because of the internal server?
Is there any alternative way similar to getURL?
Help - GetURL, FSCommand, Javascript (not About Pop-up Windows)
There seems to be like 8000 threads on how to make pop-up windows. This isn't one of them.
I'm working on an eLearning program that uses SCORM. All of the stuff out there makes use of FSCommands to communicate with the Learning Management System, which is worthless on the Mac. I know you can use getURL to access javascript functions. I've already tested that, and simple things work fine (like popping up an alert).
I need help with implementing the specific stuff here. It's more complicated than a simple alert or pop-up, and I'm getting nowhere. Any hints would be appreciated.
Setup:
Javascript fragment: (the function name and "LMSSetValue" are the important things.) This is straight from the macromedia template you get when you publish a flash file with the SCORM tracking html.
Code:
function Loader_DoFSCommand(command, args){
var LoaderObj = g_bIsInternetExplorer ? Loader : document.Loader;
// no-op if no SCORM API is available
var myArgs = new String(args);
var cmd = new String(command);
var v = "";
var err = "true";
var arg1, arg2, n, s, i;
var sep = myArgs.indexOf(",");
if (sep > -1){
arg1 = myArgs.substr(0, sep); // Name of data element to get from API
arg2 = myArgs.substr(sep+1) // Name of Flash movie variable to set
} else {
arg1 = myArgs
}
if (!APIOK()) return;
if (cmd.substring(0,3) == "LMS"){
// Handle "LMSxxx" FScommands (compatible with fsSCORM html template)
if ( cmd == "LMSInitialize" ){
err = (APIOK() + "")
// The actual LMSInitialize is called automatically by the template
}else if ( cmd == "LMSSetValue" ){
err = SCOSetValue(arg1,arg2)
The normal FSCommand actionscript function:
Code:
function apiSetScore(nMin,nMax,nRaw) {
fscommand("LMSSetValue", "cmi.core.score.min," + nMin);
fscommand("LMSSetValue", "cmi.core.score.max," + nMax);
fscommand("LMSSetValue", "cmi.core.score.raw," + nRaw);
}
The getURL I'm trying to replace the FSCommands with:
Code:
getURL("javascript:Loader_DoFSCommand('LMSSetValue', 'cmi.core.score.raw,' + nRaw)");
I'm definitely hitting my apiSetScore function fine. I put an alert javascript in there and that works. But the DoFSCommand is not doing anything. I really need some help guys!
Opening Pop Up Windows With A Variable Passed To GetURL
Hi,
I have a flash movie that opens separate pages with a url defined by the variable url:
the code looks like:
url="http://www.mydomain.com/"+var1+"/"+var2
getURL(javascriptpenNewWindow(url,'winname','hei ght=408,width=800,left=0,top=0,toolbar=No,location =No,scrollbars=No,status=No,resizable=No,fullscree n=No')
in the html file I have the openNewWindow function defined by:
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
my question is - it doesnt work, but it does if I hardcode the url instead of using the variable. Can anyone help?
thanks
Kevin
Popup Windows Won't Open With GetURL Javascript On Some Pc's
i started using javascript popup windows inside my actionscript in MX2004 pro like this;
getURL ("javascript:windowName=window.open('clipLoad','ne wWin','width=x,height=y,left=0,top=0,
toolbar=No,location=No,scrollbars=No,status=No,res izable=No,fullscreen=No'); windowName.focus();void(0);");
it works fine for me and loads of other people, but on some systems (mac and win), nothing happens. the systems it didn't work on don't have brutal popupblockers.
help. cheers
[F8] GetURL Opens Multiple Browser Windows
Hi! I'm on a time crunch and I'm not sure if I'm in the right place or not. But I have a movie that was working just fine. I added one link and now, when I click my buttons it opens the external website 3 times. i.e. when I click button 1 it opens the URL for button 1 in 3 seperate windows. Anybody had this problem and know how to fix it?? Here is my actionscript...Thanks!
btn1_btn.onRollOver= function(){
myScreen_mc.gotoAndStop(1);
}
btn1_btn.onPress = function() {
getURL("art/index.html","_blank");
}
btn2_btn.onRollOver= function(){
myScreen_mc.gotoAndStop(2);
}
btn2_btn.onPress = function() {
getURL("smoosh/index.html","_blank");
}
btn3_btn.onRollOver= function(){
myScreen_mc.gotoAndStop(3);
}
btn3_btn.onPress = function() {
getURL("collage/dream.html","_blank");
}
btn4_btn.onRollOver= function(){
myScreen_mc.gotoAndStop(4);
}
btn4_btn.onPress = function() {
getURL("Napoleon/index.html","_blank");
}
btn5_btn.onRollOver= function(){
myScreen_mc.gotoAndStop(5);
}
btn5_btn.onPress = function() {
getURL("http://www.lynnsschoolofdance.com/","_blank");
}
btn6_btn.onRollOver= function(){
myScreen_mc.gotoAndStop(6);
}
btn6_btn.onPress = function() {
getURL("javajoes/index.html","_blank");
}
btn7_btn.onRollOver= function(){
myScreen_mc.gotoAndStop(7);
}
btn7_btn.onPress = function() {
getURL("Flash/cow7.html","_blank");
}
btn8_btn.onRollOver= function(){
myScreen_mc.gotoAndStop(8);
}
btn8_btn.onPress = function() {
getURL("leather/index.html","_blank");
}
btn9_btn.onRollOver= function(){
myScreen_mc.gotoAndStop(9);
}
btn9_btn.onPress = function() {
getURL("http://www.touringfans.com/index3.html","_blank");
}
[Flash8] .send And GetURL Open Two Windows
Hi everyone,
I really hope you can help me with this.
I have a Flash form sending variables to an ASP script (bono.asp) in order to print a discount bonus. The bonus grafic is then shown in a new window for the user to print with his/her data on it. (name, address, etc).
Well, the problem is that it not only opens a new window with the bonus (without the data ), it also opens the bonus in the current window (with the data), forcing the user to "go back" to the flash website and loading the entire animation again.
This is the code in the Flash form asociated to the Button:
on (release){
variables = new LoadVars();
variables.nomclub=nombreclub.text
variables.cedclub=cedulaclub.text
variables.telclub=telefoclub.text
variables.mailclub=emailclub.text
//send variables to basedatos.asp, to put data in the company DB
variables.send("basedatos.asp", "", "POST");
//send variables to bono.asp, to show the bonus with the data
variables.send("bono.asp", "", "POST");
var targetUrl:String = "bono.asp";
getURL(targetUrl, "_blank");
}
In the ASP file (bono.asp) all I do is Request the variables and put them in the proper place.
Hope you can help me, thank you in advance
Using GetURL To Activate Windows Media Player Events
I am attempting to use javascript functions to control an embeded Windows Media player through a flash strip containing buttons.
The command that I'm currently using
on (press) {
getURL ("javascript:document.MyWindowsMedia.Play();");
}
attempts to reload the video.
On my graphical buttons I am using the following Link.
< a href="#" onclick="document.MyWindowsMedia.Play();"
What would be the flash equivilent(sp) command for the HTML above?
Problem With: Local Folder Path, With .swf File Inside A .html File
hey i have:
index.html
in the root of the "folder-structure".
and a photoslide.swf file inside
flashfiles/photoslide.swf
other files inside :
flashfiles/
is
flashfiles/pic1.jpg
flashfiles/pic2.jpg
flashfiles/pic3.jpg
now the index file is at root of the file structure and the photoslide.swf file is embedded in the index.html file.
and then the photoslide.swf file loads in the jpg files.
But it doenst work. unless i put the pictures inside the root level of the file structure. And by doing this i lose some of my options. anyway around this? obviously i could jsut set the photoslide.swf file to load files from the path flashfiles/pic1.jpg. But if i do this i must edit every photoslide.swf file in every flashfiles fodle ri have on the server. I have 10.
So my question is as following;
Is there a way to set the photoslide.swf file to always read from the folder the photoslide.swf file is? and not the folder it is embedded in.
thanks from Neptunesnectar
Please Help How To Get The Full File Path( The File Which Is In Local System) In Flash 8
Hi All,
It would be great if any one can help me about how to get the full file path( the file which is in local system) in flash 8.
i do not want to use any server side uploading or downloading....i just want to view the image in loader component when we select image from any location in the hard disk using browse dialog box.
here is my incomplete code ??? !!!
import flash.net.FileReference;
import mdm.FileSystem;
var lo:mx.controls.Loader;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
_root.pa.text = file.name;
////////////////////////////
//////////////////
}
var fileRef:FileReference = new FileReference();
var bro:Button;
fileRef.addListener(listener);
_root.bro.onRelease = function(){
fileRef.browse([{description: "Images", extension: "*.jpg;*.gif;"}] );
};
It would be great if any one can help on this issue...
thanks
Jiby
Local Flash File And File Installations From A Server
Hello all, just a query that I have.
Is there any way for a local Flash file to communicate with a server and download a file, and then install it in a predetermined directory?
For example, if a file package BOOK1 is available on a server, can I get Flash to download it and place it in the current directory that it is in? Will this require network sockets or passing of variables between javascript or the like?
Thanks in advance.
|