Posts Tagged ‘Tips’

Tips: How To Get The SWF Path In ActionScript 3

presentblue-icon Sometimes we need to get the swf path in our flex/flash project, it can be done with _root._url in actionscript 2, but _root not work in actionscript 3. How to get the swf path in as 3? The following is 2 ways on how to get it.

Hope it will be useful for you.

(more…)

Tips: How To Exactly Resize The Window by Using resizeTo() or resizeBy() methods

Window-icon-256 We can resize the browser window by using the methods window.resizeTo( newWidth, newHeight) or window.resizeBy( DX, DY). But if you are an experienced web development, you probably know the function resizeTo() can not be always so exactly resize the window. Especially unkown the size of contents before loading in different browse.

(more…)