Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3
Hi: I use two html pages to do that, the main page only has the information to open the fullscreen, the second page has the swf link. I hope it be useful for you. main page: script language=JavaScript type=text/JavaScript !-- function MachakFull(Ie,other){ //Copyright © 1999 m.milicevic [EMAIL PROTECTED] [EMAIL PROTECTED] x=screen.availWidth; y=screen.availHeight; target = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length)); if((navigator.appVersion.indexOf(Mac)!=-1) (navigator.userAgent.indexOf(MSIE)!=-1) (parseInt(navigator.appVersion)==4)) window.open(other,sub,'scrollbars=yes'); if (target = 4){ if (navigator.appName==Netscape){ var MachakFull=window.open(other,MachakFull,'scrollbars=yes','width='+x+',height='+y+',top=0,left=0'); MachakFull.moveTo(0,0); MachakFull.resizeTo(x,y);} if (navigator.appName==Microsoft Internet Explorer) window.open(Ie,MachakFull,fullscreen=yes); } else window.open(other,sub,'scrollbars=yes'); } function Close_Window() { var mywindow=window.self; mywindow.opener=window.self; mywindow.close(); } //-- /script /head body onLoad=MachakFull('index_01.htm','') body onBlur=Close_Window(); - Original Message - From: Cor [EMAIL PROTECTED] To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com Sent: Tuesday, November 04, 2008 2:04 PM Subject: RE: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3 Thanks Zeh. I noticed the displayState description, but it didn't do the trick for me. Is it possible to attach a fullscreen function to the ESC message, so when a user pushes ESC the app will stay in fullscreen? Kind regards Cor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: dinsdag 4 november 2008 20:00 To: Flash Coders List Subject: Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3 Fullscreen can only be activated on certain events, so you cannot hijack the user browser to set the fullscreen mode. Full-screen mode is initiated in response to a mouse click or key press by the user; the movie cannot change Stage.displayState without user input http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Stage.html#displ ayState If you want the site to work on fullscreen only, then make it in a way that when displayState is set to normal, it displays a warning message and a button that when clicked will get back to fullscreen. You cannot get rid of the ESC message either. Zeh On Tue, Nov 4, 2008 at 3:13 PM, Cor [EMAIL PROTECTED] wrote: /*My goal: I want to start my apps fullscreen whitout giving a user the possibility to scale or to encounter the app within a browser. When I CLICK it goes to FULL_SCREEN, but it doesn't work when I try to do this with other events. Back to NORMAL does work on MOUSE_MOVE but not going back to FULL_SCREEN. How can I set it to FULL_SCREEN automatically? And I also would like to get ride of the message Press Esc to exit fullscreen mode? Every help is welcome! */ //My code in the first and only frame var screenCheck:Boolean = false; // Prevent scaling items on the stage var swfStage:Stage = this.stage; swfStage.scaleMode = StageScaleMode.NO_SCALE; swfStage.align = StageAlign.TOP; // / //container is a movieclip with a textfield and a shape in it. container.addEventListener(MouseEvent.MOUSE_MOVE, fullScreenUP); container.addEventListener(MouseEvent.CLICK, fullScreenUP); function fullScreenUP(e:MouseEvent):void { test.text = fullScreenUP triggered!; if (screenCheck == false) { stage.displayState = StageDisplayState.FULL_SCREEN; screenCheck = true; } else { stage.displayState = StageDisplayState.NORMAL; screenCheck = false; } } /* Kind regards Cor */ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] window.close() doesn't work in player 7.0.69
Hi: Thanks for your answer but I had some trouble implementing. I changed the event onLoad by the event OnUnload and when I try to add the getURL action in flash without a parameter, flash returns an error message because the parameter is required so I used . My html has: html head titleClose Window/title /head !--This file is just a hack to just make the window close itself-- BODY ONUNLOAD=top.close() /body /html And my flash file has on(release){ getURL(); } But this failed. Did I do a mistake implementing your solution? Thanks Carolina Avila - Original Message - From: Merrill, Jason [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 20, 2007 8:40 AM Subject: RE: [Flashcoders] window.close() doesn't work in player 7.0.69 Sometimes this fails due to security settings on the browser - for example, if the window that holds Flash was not spawned by Javascript, then the window is not allowed to close itself - other cases javascript like this will fail completely. As long as Javascript is allowed in some form on the end user's browser, then what we do which works everytime is create an HTML file that has this in it: html head titleClose Window/title /head !--This file is just a hack to just make the window close itself-- BODY ONLOAD=top.close() /body /html Then, make your button in Flash do a getURL() to that file (Do NOT specify a target param) - the Flash file will navigate away from it's own HTML file, and the new HTML file will close itself. So to the user, the Flash file closes itself, even though in reality it just navigated away and another file does the closing. Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carolina Avila Coral Sent: Monday, March 19, 2007 8:21 PM To: Flashcoders mailing list Subject: [Flashcoders] window.close() doesn't work in player 7.0.69 Hi: My client and his employees have flash player version 7.0.69 I tried with a new movie with only a button and the button has the code: on(release){ getURL(javascript:top.window.close();); } Then I tried with a new javascript funcion and with fscommand as you suggest in all emails in the list about close window, but It doesn't work. I tested in flash player 7.0.19 and 8 and 9 and it works. But the client needs the movie works on 7.0.69 with IE and I couldn't find the issue. I aprecciate if you can help me. I uplodad the flash player 7.0.69 installer in my server. http://www.pixelgroup.net/carolina/flashplayer7r69_winax.exe Thanks a lot Carolina Avila __ Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] browser will not quit!!
Hi: My client and his employees have flash player version 7.0.69 I tried with a new movie with only a button and the button has the code: on(release){ getURL(javascript:top.window.close();); } Then I tried with a new javascript funcion and with fscommand as you suggest in all these mails, but It doesn't work. I tested in flash player 7.0.19 and 8 and 9 and it works. But the client needs the movie works on 7.0.69 with IE and I couldn't find the issue. I aprecciate if you can help me. I uplodad the flash player 7.0.69 installer in my server. http://www.pixelgroup.net/carolina/flashplayer7r69_winax.exe Thanks a lot Carolina Avila - Original Message - From: Joey Rivera [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Friday, June 02, 2006 1:10 PM Subject: RE: [Flashcoders] browser will not quit!! Try the following, should close the browser window without a prompt: AS code: // call javascript function closeWindow in html page getURL(javascript:closeWindow()); and add this script in the head of the html page created when you publish your file (same file that loads your swf), JS code: script function closeWindow() { window.open('','_parent',''); window.opener = window; window.close(); } /script This is what I use and works fine for me. Joey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] window.close() doesn't work in player 7.0.69
Hi: My client and his employees have flash player version 7.0.69 I tried with a new movie with only a button and the button has the code: on(release){ getURL(javascript:top.window.close();); } Then I tried with a new javascript funcion and with fscommand as you suggest in all emails in the list about close window, but It doesn't work. I tested in flash player 7.0.19 and 8 and 9 and it works. But the client needs the movie works on 7.0.69 with IE and I couldn't find the issue. I aprecciate if you can help me. I uplodad the flash player 7.0.69 installer in my server. http://www.pixelgroup.net/carolina/flashplayer7r69_winax.exe Thanks a lot Carolina Avila __ Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] SCORM?
Hi: Yes, you can iterate at the end and send all the values to the LMS in order. Sometimes the users can answer a question in a different order as we expected, so if you try to send the value of the fourth question and you didn't initialize in the LMS the first, second and third questions, the LMS will show you an error. So, to avoid it, I first send a zero value for all objectives at the beginning of the exam to avoid these error. In addition, sometimes the users answer a question and the leave the course and return some hours later, in this case you need to commit the result after the user answer the question, because if you send the values to the LMS at the end but the user didn't finish the lesson you will lost the values of the first questions. Let me know if you have more questions. Carolina - Original Message - From: Dave Mennenoh [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, February 01, 2007 8:24 AM Subject: Re: [Flashcoders] SCORM? Thanks for all the info on SCORM, it really helped a lot. Carolina mentioned using objectives to record all 21 answers. Nice idea... But I'm not entirely sure about what you mentioned regarding having to initialize them all first. I have an array of 21 values - can I just iterate that and set the objectives at the end, before closing the LMS? Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] SCORM?
Hi Dave: I use scorm 1.2 version, when I need to more than one score I use objectives. Each objective works like the score, and it can allow you 21 questions, each objective can have min, max and raw. To work with objective you have to know that the objectives are zero-index, and in the beginning of your quiz, you have to initialize them first. You can write an objective if you didn't initialize first, and you cannot initialize the second of you don't initialize the first. The path for objectives are: To know how many objective are: cmi.objectives._count The score of the first objective: cmi.objectives.0.score.raw Min value of the first objective: cmi.objectives.0.score.min Max value of the first objective: cmi.objectives.0.score.max I hope it helps you Carolina Avila - Original Message - From: Dave Mennenoh [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, January 27, 2007 8:38 AM Subject: [Flashcoders] SCORM? I did a small quiz for a client and now they've decided to make it integrate into their LMS. I did some looking and it seems using external interface and calling the LMS like so: ExternalInterface.call(LMSInitialize); should work pretty well. However two things are not making sense to me. I see how I can call LMSSetValue to set the users score but I only see min, max, and raw score entries. The quiz has 21 questions, can I not track the response for each question? Finally, this quiz has a bunch of associated FLV's - 50MB worth. Can the video content be kept outside of the SCO package? Does it need to be included in the manifest XML file? I thought I could just place the flvs on their server and reference them from Flash... that's what I was hoping. Thanks for any insight. Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com