ActionScript 2.0 :: FSCommand Not Working In Web Browser
Aug 7, 2009
I've done all of these and everything is ok. but I want to do more. I want to play my flash in a web browser and I used publish to html. but my fscommand doesn't work in the web browser! what should I do?
how does one close a browser window using the FSCommand. The normal 'quit' option works only closes a projector file. But i need to close a browser window.
I hear there is some technical javascript wizadry which allows one to do this.
how does one close a browser window using the FSCommand. The normal 'quit' option works only closes a projector file. But i need to close a browser window.
I published my fla as scorm 1.2 tracking. I ziped up my files and loaded to lms. It will not write the score. It runs and functions ok but does not write score.
I created a simple fla with two frames. Frame two has this code below to write a score to the lms (blackboard).I published my fla as scorm 1.2 tracking. I ziped up my files and loaded to lms. It will not write the score. It runs and functions ok but does not write score.[code]
So iv been flash designing for about a year now, and i thought i was pretty good, however having never usd the geturl script before i am stumped whats going on. my AS is
Actionscript Code: on (release) { getURL("index.html", "_self");} which works fine when playing the movie in the flash preview (pressing ctrl+enter) but as soon as i publish the movie and view it embbeded in an HTML document it doesnt work. this should indicate its my browser settings? however iv tried disabling my pop-up blocker and still nothing.
I have a swf file that works fine on my local drive but doesn't completely work on Safari (or I.E.). I have 7 buttons on the stage. When one is clicked, it plays a mc. When that mc comes to it's final frame, all the other buttons on the stage dissappear (are set to alpha=0). When reverse button is pressed, the frames reverse and all the buttons reappear. However, when I upload the swf file to my server, everything works fine but these buttons do not disappear like they did on my local drive.
I got the code below, reading a picture from an array.While in testmode or directly opening the .swf it works fine, but in a browser the picture is not loaded.
var listener:Object = new Object(); var mcl:MovieClipLoader = new MovieClipLoader(); var holder:MovieClip = item_mc_set.createEmptyMovieClip("holder",_root.ge
I've been working on this project for sometime and finally have everything working to the point of showing it. So when I go to publish and view it in the browser the caurina transitions don't show up. There are now errors coming up during the compile and I am at a lost.
I was wondering if anyone might know why my Alert box doesn't appear when viewing the .swf in firefox when I click on the button that evaluates the code responsible activating the Alert.show command. It appears when I open the .swf in the flash player and inside the 'play movie' command within Flash itself. Do I need to include some type of file in the relative directory?
So I have a contact form that works flawlessly in the Flash development area, but doesn't work in-browser. I've tried in multiple browsers, and it doesn't work in any of them. Here is the relevant AS3 code:
Code: var url:String = "http://******/Scripts/sendContact.php"; var contactVar:URLVariables = new URLVariables(); contactVar.userName = commentName;
[Code]....
On a side note, if this helps any, sendToURL using the POST method doesn't seem to work with anything hosted on this server, but with GET it does.
I'm working on a program that calls a php script and then loads an xml. The program works exactly how I want in the IDE but unfortunately when it is on the server it doesn't work correctly (of course ). Anyways so i've been trouble shooting for quite some time and my guess is that the problem arises somewhere before the php call (when i make it, the variable is shown as undefined by the script). I use navigateToURL in order to test this and the script received the variable when in IDE but not from browser.
AS3 code:[
//this method is called everytime user scrolls. function scroll(e:MouseEvent):void {[code]......
I'm using AS3 and created a MOUSE WHEEL EventListener. It works fine when testing in the Flash authoring program...but not in the browser.(except In IE...which I found odd).I have looked around in different forums and many people have this problem and explanations on why it doesn't workI believe the problem cannot be solved in Flash...but through JavaScript.
I have a flex app that I need to pass FlashVars into. It works great on desktop browsers(chrome, firefox, ie) but for some reason the flashvar is always undefined when i load it on my Android browser(webkit on a droid incredible).
Has anyone successfully passed flashvars into a swf on an Android Device?
I created a xml flash slide show that works great when I select test movie, but when I try to open the swf in a browser like firefox it does not work. The file comes up, but the images never get loaded in.
The XML file calls for the images that are in a child directory. The parent directory has the swf and xml file in it.
There are many posts about how to close browsers, but so far I can't get any of them to work from a custom class. I am new to AS3 so I could be doing something wrong. My class *is* being called and the method *is* executing, but the browser (IE) does not close. I'm wondering if this might be a scope issue of some kind?
i m just making a game for multiple questions, now i want to give some short key to select objective questions like a for 1st object nd b of 2nd object nd enter for submit . Here the sample of code which i used:-
Now when i use a,b,c,d keys in normal window of browser that time it's work properly but when i used fullscreen window of browser that time it's not working.
I am having a issue scaling the swf in the browser. The properties are set in the html tab correctly I think. I published in flash and it scales the movie only on the first and second frame(while the preloader is playing). then it jumps back to the original size of the movie even when the browser window is smaller. My settings are
I am trying to use fileReference.download to allow users to download content from my site. The problem is, when I test it in Flash, it works flawlessly. When I publish it and upload it to my server it doesn't download. It'll bring up the download box... but it wont initiate the download. What I am doing is dynamically creating text boxes using the amount of XML nodes in my xml file. It will then assign the proper download file to that text box/download button. its just not initiating the download in my browser.
I'm running into a problem loading an external swf. Check it out here: [URL]
If it's working right, the top and bottom red areas should end up looking exactly the same.
I have "init.swf" loading "cc_home.swf" into a container. When successful, it should fade up (that animation is in "init.swf") and then load the white text (cc_home.swf). What you're seeing on that page is init.swf on top, and cc_home.swf down below.
When I test init.swf directly from Flash, it works fine. In the browser, though, it doesn't load the movie.
Here's the code I'm using in "init.swf" to load cc_home.swf (which I got from Kirupa):
var mycontainer:MovieClip; var myloader:Loader = new Loader(); var urlrequest:URLRequest = new URLRequest("cc_home.swf") myloader.load(urlrequest);
Using MacOSX 10.4 Tiger Flash Professional 8 Firefox, IE, Safari
I created a flash movie. All of the pictures fade in and out perfect. There is a button on each of the pictures and these buttons take you to the picture�s respective page. When I test the movie the buttons work fine. When I export the movie as (.swf) and try it again the buttons work. I am hosting it on a GoDaddy domain that has been purchased and am referencing it on another site that I own. When I embed it onto my website, the movie plays fine but the buttons are not functional. Here are the things that I have tried to rectify the problem:
- Tried exporting and publishing to Flash Player 7 and 6 DID NOT WORK - Instead of: on (release) { getURL(http:// . . ._self) }
I created a new layer and gave the button an instance name and used it as an action layer:
MyButton.onRelease = function() { getURL(www . . . ., _self) } DID NOT WORK
My Flash file is working but the html will not open and play. I've never had this issue before. I brought into Dreamweaver and saved it out hoping that might make a difference but still the same.
I'm trying to communicate my SWF file with PHP using Zend_Amf. I compile the flash side using Flex SDK 4.Whenever I try to run the swf using the stand alone player (the projector), I always get a NetConnection.Call.BadVersion event. However, when running exactly the same file thorught the player of the browser (even not thoguht a server, just using the file:// kind of address), everything works OK, so I know my code is not completely wrong. However, I added the folder where my swf file is to the global trusted folder; and actually made sure that Security.sandboxType returns "localTrusted".
I am retrieving an flashvars object from JSP file. Like userid = mx.core.Application.application.parameters.userJspid;like this it is retrieving in IE browser. But not in FF (Mozilla), why it's not retrieving is there any code i need to add it for Mozilla specially.