Re: [Flashcoders] NoCache XML
For those who need a little more tighter control of no-cache on their webserver. You can evidently control your no-cache via an .htacess in the required directory. http://www.askapache.com/htaccess/apache-speed-cache-control.html It also looks like you can set the no-cache per file type, i.e - .swf I got this from someone on my PHP list. Thought it was interesting, so I am passing it on. HTHs someone Karl On Apr 5, 2010, at 8:29 PM, Nathan Mynarcik wrote: The nocache in the SWFObject is so the swf isn't cached. I also use the same treatment for the XML that is loaded into the swf. That along with the META tags that call for no caching and that does the trick. I guess for safety purposes, I could add your script as well. Might be overkill, but if it prevents every browser from caching, so be it. Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Monday, April 05, 2010 8:14 PM To: Flash Coders List Subject: Re: [Flashcoders] NoCache XML Hi Nathan, Are you adding the no-cache to the html page or to the swfobject that loads? I noticed on your site that you have the no-cache in the swfobject. Maybe if the no-cache was associated with the html file that the swfobject was embedded/placed in, it would work? I believe, but no proof atm, that the code I supplied will make sure nothing in the html will cache. Not the html page nor its contents. But I can not validate that atm. JAT Karl On Apr 5, 2010, at 6:29 PM, Karl DeSaulniers wrote: It seems to be working for me, but I do not have an XML being read. I put it at the very top. Before any HTML and it makes the page reload every time. I tested with different text on the page every time I uploaded to the server and it showed. Maybe take the code I supplied and try it once? Make sure that php code gets read before anything else on the page. Hth Gl Karl Sent from losPhone On Apr 5, 2010, at 5:20 PM, Nathan Mynarcik nat...@mynarcik.com wrote: I know I used the meta tags to control cache and that still didn't fix. I'm interested to see if this is any different. Please share your findings. Thanks, Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com -Original Message- From: Karl DeSaulniers k...@designdrumm.com Date: Mon, 5 Apr 2010 17:09:09 To: Flash Coders Listflashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] NoCache XML Hi there, Just thought I'd share some code I found. Seems to be a no-cache method that works. Nathan, I know you said you figured out your issue, but for anyone else looking for a no-cache code, here you go. ?php Header( Cache-Control: no-cache); Header( Cache-Control: must-revalidate); ? I believe if this php is put before the !DOCTYPE html PUBLIC... of your HTML, It will control the headers of the document and will not let the page cache. I am going to test myself, but has anyone used something like this? I want to find a simple solution to this no-cache thing, I am thinking I have found it. Please let me know if there is an easier way. Thanks, Karl On Mar 31, 2010, at 7:41 PM, Nathan Mynarcik wrote: Figured out this issue. The NoCache method worked fine. I was trying to use the information before it was set in it's variables. Thanks Steven and others for their replies! Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com -Original Message- From: Steven Sacks [mailto:flash...@stevensacks.net] Sent: Friday, March 26, 2010 10:45 PM To: nat...@mynarcik.com Subject: Re: [Flashcoders] NoCache XML You should use Firebug in Firefox to see what's going on. That or Charles. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ 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 Karl DeSaulniers Design Drumm http://designdrumm.com ___ 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 Karl DeSaulniers Design Drumm
Re: [Flashcoders] Full screen with AIR 1.5
John R. Sweeney Jr wrote: But when I publish to a AIR app it creates a swf not a exe and the fscommands only work in exe's, if I remember right. I'm using AIR because I'm using the HTMLLoader to load a clients website, inside of our kiosk. Fully incorrect. the fscommands fully depend on what application it is that embeds the flash player. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Full screen with AIR 1.5
I don't know about AIR, but this AS3 code works for exes, standalone swfs, and html-embedded: stage.displayState = StageDisplayState.FULL_SCREEN Btw, have you checked if stage is not a null? As3 requires that the object that calls the stage is a child of the stage. If you're calling it from anything that's not a movieclip/sprite that's already part of the stage's display list, it will fail. Workarounds: place your code in the Main class or movie clips placed on the stage in the IDE. Alternatively, use ADDDED_TO_STAGE listener on movie clips or get the reference from a stage child. Cheers, Karina -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of John R. Sweeney Jr Sent: 07 April 2010 1:50 To: Flash Coders List Subject: Re: [Flashcoders] Full screen with AIR 1.5 But when I publish to a AIR app it creates a swf not a exe and the fscommands only work in exe's, if I remember right. I'm using AIR because I'm using the HTMLLoader to load a clients website, inside of our kiosk. Thanks, John on 4/6/10 11:51 AM, Glen Pike at postmas...@glenpike.co.uk wrote: Hi, Not sure about this, but we have been publishing for AIR from CS3 - My app has the old fscommand(fullscreen) element in it too - which seems to work fine ;) Glen John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interactive Inc 945 Washington Blvd. Hoffman Estates, IL 60169 Office/Fax: 847.310.5959 Cellular: 847.651.4469 www.ondemandinteractive.com ___ 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] Full screen with AIR 1.5
So if the AIR compile creates a swf, not a exe, do you have any idea on how to make the app run full screen? Thanks in advance, John on 4/7/10 5:14 AM, Henrik Andersson at he...@henke37.cjb.net wrote: Fully incorrect. the fscommands fully depend on what application it is that embeds the flash player. John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interactive Inc 945 Washington Blvd. Hoffman Estates, IL 60169 Office/Fax: 847.310.5959 Cellular: 847.651.4469 www.ondemandinteractive.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] IE8 - Strange display behaviour
Hi all, I have been experiencing some strange display behaviours with IE8 lately. I did a module for Joomla that displays a Flash based menu. In IE8 it loads fine the first time, but as soon as I change page, the menu doesn't show anymore. If you have the IE Developper Toolbar, you'll see in the Scripts Console the traces from Flash (gotta love ExternalInterface.call(console.log, trace from flash) !! ) So with that I know all the data is here, I know wich menu item is supposed to be visible and yet, nothing shows. Could it be the CSS ? or the Flash Player in IE8 ? (got the latest version). I'm using SWFObject 2.2 for embedding. Tested on WinXP. Safari, Firefox and Opera all display the menu. the website is http://www.creativeflats.com Hope someone can help me figure this out ! thks ! Alain ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Zinc question about focus
I didn't realize there was a Zinc forum, but for the sake of anyone curious about my post, here's the solution I discovered: I just had to add another line of code (any arbitrary line would do) to bring the mdm.System.exec(filePath); call back to the exe to avoid a first click that does nothing but sets focus. The arbitrary line of code brings that missing focus back. My line of code was: var refocusMe:String = refocus me; That solved the issue. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] ArgumentError: Error #2015: Invalid BitmapData??
I am fairly new to Actionscript 3 and am hoping someone will be kind enough to point me in the right direction. I am getting the following error and am not where the problem is. This is supposed to creates a grid which I am trying to populate with one of two bitmaps copies of two different movieclips based on data that I am bringing in from an xml file. ArgumentError: Error #2015: Invalid BitmapData. at flash.display::BitmapData() at pi.ui::GridLayout() at pi.ui::TotalEmployeeVBox/addViews() at pi.ui::TotalEmployeeVBox() at ProgChart_fla::MainTimeline/onLoadXML() package pi.ui{ import flash.display.MovieClip; import flash.display.BitmapData; import flash.display.Bitmap; import flash.geom.Rectangle; import flash.geom.Point; import flash.events.Event; public class GridLayout extends MovieClip { private var nItems:uint; private var nRows:uint; private var padding:uint; private var nCreated:uint; private var tallestItem:Number; private var lastItem:Object; private var _totalEmployees:Number; private var _divEmployees:Number; private var _percent:Number; private var canvasBitmap:Bitmap; private var canvasBitmapData:BitmapData; private var canvasRectangle:Rectangle = new Rectangle(0,0,621,237); private var areaRectangle:Rectangle; private var blankFlipBoardArray:Array; private var generalFlipBoardArray:Array; private var xPos:Number; private var yPos:Number; private var currentBlitFrame:int = 0; private var buffer:Number; public function GridLayout(totalEmployees:Number, divEmployees:Number):void { _totalEmployees=totalEmployees; _divEmployees=divEmployees; _percent = Math.ceil((_divEmployees/_totalEmployees)*100); nItems=120; nRows=5; padding=3; nCreated=0; tallestItem=0; buffer = 10; xPos = 0; yPos = 0; var blankFlipBoard:BlankFlipBoard = new BlankFlipBoard(); blankFlipBoard.x = 0; blankFlipBoard.y=0; var generalFlipBoard:GeneralFlipBoard = new GeneralFlipBoard(); generalFlipBoard.x = 0; generalFlipBoard.y=0; canvasBitmap = new Bitmap(); canvasBitmapData = new BitmapData(621,237); canvasBitmapData.fillRect(canvasRectangle, 0xFF); canvasBitmap.bitmapData = canvasBitmapData; canvasBitmap.x = 0; canvasBitmap.y = 0; addChild(canvasBitmap); var generalFlipBoardBMD:BitmapData; var blankFlipBoardBMD:BitmapData; var generalFlipBoardArray = new Array(); var blankFlipBoardArray = new Array(); for(var i:int = 1; i=blankFlipBoard.totalFrames;i++) { blankFlipBoard.gotoAndStop(i); blankFlipBoardBMD = new BitmapData(blankFlipBoard.width, blankFlipBoard.height); blankFlipBoardBMD.draw(blankFlipBoard); blankFlipBoardArray.push(blankFlipBoardBMD); } blankFlipBoard.gotoAndPlay(1); for(var j:int = 1; j=generalFlipBoard.totalFrames;i++) { generalFlipBoard.gotoAndStop(j); generalFlipBoardBMD = new BitmapData(generalFlipBoard.width, generalFlipBoard.height); generalFlipBoardBMD.draw(generalFlipBoard); generalFlipBoardArray.push(generalFlipBoardBMD); } generalFlipBoard.gotoAndPlay(1); areaRectangle = new Rectangle(); areaRectangle.width = 23; areaRectangle.height = 45; addEventListener(Event.ENTER_FRAME, onEnterFrame); generalFlipBoard = null; blankFlipBoard = null; } function onEnterFrame(e:Event):void { canvasBitmapData.fillRect(canvasRectangle,0xFF); currentBlitFrame = currentBlitFrame+1; if(currentBlitFrame = generalFlipBoardArray.length) { currentBlitFrame = 47; } var currentGeneralFlipBoardFrame:BitmapData = generalFlipBoardArray[currentBlitFrame]; var currentBlankFlipBoardFrame:BitmapData = blankFlipBoardArray[currentBlitFrame]; for (var i:int=0; inItems; i++) { var destinationPoint:Point = new Point(xPos, yPos); if (ibuffer){ canvasBitmapData.copyPixels(currentBlankFlipBoardFrame,areaRectangle, destinationPoint); } else if (i_percent+buffer) { canvasBitmapData.copyPixels(currentGeneralFlipBoardFrame,areaRectangle, destinationPoint); } else { canvasBitmapData.copyPixels(currentBlankFlipBoardFrame,areaRectangle, destinationPoint); } //if we are not on the very first item if (nCreated!=0) { //have we reached the max col for this row if (nCreated%nRows==0) { xPos=xPos+23+padding; yPos=0; } else { xPos=xPos; yPos=yPos+45+padding; } } nCreated++; } } } } Thanks in advance! M McCoy ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] changing url without reloading page/swf in as2.0
Hi list I've seen a site a while back that as you went through it, it would change the url without reloading the page/swf. I want to know how do i build a Flash navigation as the movie plays or if click on buttons have it change the url and the html text but leave the swf playing? I am using flash action script 2.0 thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] changing url without reloading page/swf in as2.0
http://www.asual.com/swfaddress/ http://www.padizine.com/blog/swfaddress-tutorial-for-actionscript-2-0/ C: -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Amol Sent: Thursday, 8 April 2010 3:33 PM To: Flash Coders List Subject: [Flashcoders] changing url without reloading page/swf in as2.0 Hi list I've seen a site a while back that as you went through it, it would change the url without reloading the page/swf. I want to know how do i build a Flash navigation as the movie plays or if click on buttons have it change the url and the html text but leave the swf playing? I am using flash action script 2.0 thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] changing url without reloading page/swf in as2.0
http://www.asual.com/swfaddress/ From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Amol [a...@yonearth.com] Sent: Thursday, April 08, 2010 12:33 AM To: Flash Coders List Subject: [Flashcoders] changing url without reloading page/swf in as2.0 Hi list I've seen a site a while back that as you went through it, it would change the url without reloading the page/swf. I want to know how do i build a Flash navigation as the movie plays or if click on buttons have it change the url and the html text but leave the swf playing? I am using flash action script 2.0 thanks ___ 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