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!
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-31-2005, 02:34 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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!
Fscommand Popup Windows
ok im having trouble making this script work:
<HTML>
<HEAD>
<TITLE>stuff</TITLE>
</HEAD>
<script LANGUAGE="JavaScript">
<!-- Hide
function stuff_DoFSCommand(command, args)
{
if ( command == "this1" )
{
myWin=window.open("", "Click_Image_to_Close_Window", "width=480,height=326,status=no,toolbar=no,menubar =no,,scrollbars=no");
myWin.document.open();
myWin.document.write("<html><head><title>Click Image to Close Window");
myWin.document.write("</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 link=#000000>");
myWin.document.write("<center><a href='javascript:close()'>");
myWin.document.write(args);
myWin.document.write("</a>");
myWin.document.write("</font></center>");
myWin.document.write("</body></html>");
myWin.document.close();
}
}
// done hiding -->
</script>
<script LANGUAGE="VBScript">
<!--
Sub stuff_FSCommand(ByVal command, ByVal args)
call stuff_DoFSCommand(command, args)
end sub
// done hiding -->
</script>
<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<OBJECT WIDTH=764 HEIGHT=548 ID="stuff">
<PARAM NAME=movie VALUE="stuff.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="stuff.swf" name="stuff" quality=high bgcolor=#FFFFFF WIDTH=764 HEIGHT=548></EMBED>
</OBJECT>
</BODY>
</HTML>
As you can see all the movie and ID info work
in the args field(whatever u call it) is:
<img src="images/Untitled-26.jpg" border=1><br>
i have seen other ways to make pop up windows
and this is the best way for me in this situation cause i dun wanna make an html file for every image,
and right now i have the entire javascript part as a JS command in a flash getURL command (takes up too much space) so can any1 help me make this work?
p.s. i have double checked that the fs command line is this1
Fscommand And GetURL
I know you can't pass multiple parameters to javascript with fscommand because of certain security issues. What makes it ok to do so with getURL. What's the difference?
GetURL Or FScommand
Hello
I am creating a cd / multimedia presentation in flash... its my first time.. I have made some basic flash intros and site for the web though.
For the Flash Projector file is it better to use FScommand to load an HTML page that will be in the same directory as the projector file or is GetURL ok...
I have used GetURL and it works fine whenever I test my work using Control>Test Movie.
Will it work ok in my cd presentation.
Thanks for your help.
Eric B
Using Fscommand To Open Javascript Windows?
Hi
I'm at a pretty basic level of programming - I hope someone can help with this...
I need a button in my flash movie to open a new window in the browser with a html file inside it. Since I need to specify the size of the window and switch all the toolbars off, I imagine I would have to use javascript.
I know I can use fscommand to do this but I have no idea how...
Fscommand Vs. GetURL - Mac IE Problem
okay, so i've read some of the posts on this subject, and it seems that i cannot use fscommand to open new browser windows on a mac running internet explorer (correct me if i'm wrong).
that being the case, i was trying to come up with some solutions, and the only one i could think of was the following:
1. run a browser check when my site loads,
2. if the browser is mac IE, go to version 1 which replaces all fscommands with getURL,
3. otherwise go to version 2, which uses fscommand
the only problem with that solution is that i need to upload two versions. anyone have a solution that doesn't require two versions?
also, another quick question. if i try viewing version 1 (the one using getURL) on a PC, when i click on the button that is supposed to open a new window, the new window opens and loads the appropriate content, but the parent window goes blank. why is that? here's the getURL code i'm using:
on (release) {
getURL("javascript:window.open('filename.html','wi ndowname','width=600,height=600,status,scrollbars' );");
}
thanks.
GetURL + Fscommand Limitation
In flash as1, there seems to be a character limitation for the getURL and fscommand methods. I believe getURL only allows a paramater of up to 512 characters, and fscommand is about the same.
Does anybody know of a work around, to call a javascript function, without this character limitation?
Thanks in advance..
Redefine GetURL And Fscommand
Hi there,
I'm trying to build a little flash app that detects when a loaded movie uses getURL or fscommand. I'd like to try and kind of redefine these functions globally. I can redefine getURL on a MovieClip using:
MovieClip.prototype.getURL = function ....
but that only works when you use this.getURL on a button, not plain old global getURL.
Does anyone know how to override these global functions and redefine them?
Thanks for your help.
Mark.
FSCommand - Open Multiple Diff. Windows ?
I've got 6 buttons in my flash movie. Now what I want is that each button opens up a new browser window with different content than the other buttons. I tried this with the FSCommand, giving each button a different FSCommand like "openWindow1", "openWindow2", and so on.
So the javascript in my html file looks like this :
...
{if(command=="openWindow<B>1</B>"){ openNewWindow()}}function openNewWindow(){setTimeout(window.open('pic1.html' ,'newwindow1','height=200,width=300,toolbar=no')), 0}
{if(command=="openWindow<B>2</B>"){ openNewWindow()}}function openNewWindow(){setTimeout(window.open('pic2.html' ,'newwindow2','height=200,width=300,toolbar=no')), 0}
...and so on. Pity it doesn't work, a new browser window does open, but it is always the same and same content for all buttons.
Would be nice if you guys could help me out. Thanks in advance
Can Fscommand Open A Specific Folder In Windows Explorer?
I'm creating a CD for PCs which, from the autorun window, has a button which launches an Explorer window, but I want it to open to in a specific directory or folder.
I've managed to launch the Windows Explorer application, using
on (press) {
fscommand("exec", "explorer.exe");
}
where explorer.exe is located within the fscommand directory, but I don't know the syntax for a PC to find the correct directory (not the root directory).
Any ideas?
Also, a bonus would be to open the Explorer application at a specific size.
Many thanks
Can Fscommand Open A Specific Folder In Windows Explorer?
I'm creating a CD for PCs which, from the autorun window, has a button which launches an Explorer window, but I want it to open to in a specific directory or folder.
I've managed to launch the Windows Explorer application, using
on (press) {
fscommand("exec", "explorer.exe");
}
where explorer.exe is located within the fscommand directory, but I don't know the syntax for a PC to find the correct directory (not the root directory).
Any ideas?
Also, a bonus would be to open the Explorer application at a specific size.
Many thanks
FSCommand And GetURL/navigateToURL Bug In Flash Player 9
If you use getURL/navigateToURL or FSCommand in your projects that target the Flash 9 player then you need to read this. It explains a lot of problems that you may have seen with those commands since the Flash 9 player appeared on the scene...
FSCommand and getURL Bug in Flash Player 9
GetURL/fscommand Restarts Main Movie - Urgent
In our flash mx web app i use getURL/fscommand to download
a file from our server. after the file download the main movie restarts for no reason if you click on any button.
I have tried a zillion different combinations from frames
to popup windows, but still the same thing happens.
And in case you're wondering, yes i have the target set to the correct window/frame, etc, and the file actually gets loaded from there, but my main movie still restarts.
any ideas will be appreciated if anyone has ever had this before.
thanx
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
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]
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 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?
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?
Multiple Windows Open With "getURL"
Hi there-
I'm using getURL("http://www.hotmail.com", "_self");
...to open a new window when the target is clicked. My problem is that even the briefest of clicks (I know, all are usually pretty brief...) opens at least 3 windows with the same Hotmail address. If I click another 1 or two times, I've got 10, 15, 20 window that are open. What's going on?
Thanks in advance for any help / ideas!
Jens
GetURL("FSCommand:fullscreen", "true");
What is the different between this actionscript
getURL("FSCommand:fullscreen", "true");
and
fscommand("fullscreen", "true");
there are designer use getURL and idon't know what is the different
sorry about my language
Problem In Running A Flash MX-2004 Application On Windows 98 Adn Windows NT.
Hi all
I have this problem ......here it goes.....
Actually I developed a Flash MX-2004 application which has to run on both mac and windows platforms.
This application does the funciton of a dictionary and has 46 xml files and close to 13000 sound files.
This application runs fine on most Windows platform, however it doesnt work on Windows 98 and Windows NT where though the intro animation comes & the home screen loads....the application part of the program doesnt load.
Why is this so??? I am totally clueless...please help....
Do I have to make the intro and exit animations as separate swf files adn call them????
Please help....
Flash Popup Adverts/windows That Aren't Windows
Hi there
Just wondering if anyone knows any links to tutorials to make those flash adverts you find on websites? They are actual popup windows but flash boxes that appear above a webpage.
I think they use div layers as well as some flash? But im not sure where to find a tutorial!
For an example visit:
http://www.channel4.com/4car/news/index.jsp
(you might need to click on several pages down the left to get one to appear)
Any help on this would be a great help.
Thanks
How Do You Get Pdf Fscommand Script Into Fscommand
I'm trying to link to a pdf file. I have viewed others messages about creating a .dat file, but it mentions about making sure this is in the fscommand folder. Please can someone detail how this complete process should be done?
If this wont work on a Mac, then that leaves me with the GetUrl command only. As I want this to be a CD Rom not web page I need to link to the html pages offline (if this is my only option) and I have a projector file, where should these htm files be?
Thank you.
How To Create 'Windows' Windows With Flash?
I'd like to create a windows system like the one we use on windows. This is what i really like:
Yo have some buttons. When u click on any of 'em a popup window opens (inside could be text, image or movieclips or all of 'em). Last window it opens always shows up on top and if u select one that it's behind this comes automaticly to the top. I'd love too if u could minimize 'em and also if eacho one opens into a new swf.
There is a example of what I want here:
http://senocular.com/flash/source.php?id=0.49
But in that example everything is in the same swf, and as I said some lines before I want each window to open into another swf.
...........hope u can help me. Thanks!
Windows Emulator.... Having Trouble With Minimizing The "windows".
I'm creating a website that will behave kinda' like Windows. I have a basic menu that when you click on an option, a window will open up. You can drag the windows and close them. However, I'm having trouble with the minimizing part.
Lets say that I have 3 "windows" (each is a movie clip) called "win1", "win2", and "win3". Each window has an instance of a minimize button. When you click the button, the window should minimize to the bottom of the screen, and line up in the order that it was minimized in (just like Windows). I figured out how to get them to minimize, but I can't get them to sort themselves correctly.
Lets say that I just minimized all three windows in this order:
win1, win2, win3
Now, if I click on win1 to maximize it, I want win2 and win3 to shift over to the left to take the place of win1. Then, if I minimize win1 again, it should go to the end of the row. Resulting in this order:
win2, win3, win1
Does anyone know of any code that I could make these windows sort themselves when they are minimized and maximized?
Thanks!
Lee
Interesting Issue With Flash And Windows - Flash Start With Windows?
Hey guys,
I'm programming a flash application that would run on a user's desktop (using MDM or similar programs to convert to a transparent background EXE).
My client would like to have the users select weather they want to application to start with windows or not. I would like to know how to make my flash application start with Windows without manually adding it (the users won't have to add it to the startup folder themselves). Can flash write to the registry? Can a third party program do it for me? The client wanted to EXE to run without an installation. Thank you very much!
Yuval Karmi
|