situation | |
Internet browsers are keeping a lot of files as cache. As you may clear this cache for their options, doesn’t do the entire job always. Also, if the system crashed and you want to transfer your data to another disk, these files are too many and completely rubbish. Here is a way to delete these files manually. | |
problem | |
How to delete Temporary files, from internet and from other applications manually? You may delete them safely! | |
difficulty level | |
0/10 :))) | |
compatibility | |
win xp, win vista, win7 | |
solution | |
In xp systems C:\Documents and Settings\<user name>\Local Settings\Temp C:\Documents and Settings\<user name>\Local Settings\Temporary Internet files C:\Documents and Settings\<user name>\Local Settings\Temp\Cookies (here are the cookies) In Vista and win7 systems C:\Users\<user name>\AppData\Local\Temp\ C:\Users\<user name>\AppData\Local\Microsoft\Windows\Temporary Internet Files To delete these files permanently without moving them to recycle bin and waste a lot of time, hold the shift key down during the right click and delete. By this way the system will not transfer the files to recycle bin but will notifies you also that deletion will be permanently. | |
Flexache, is the pain you feel in your brain when you coding on Adobe’s Flex Builder, Flash builder with Flex SDK and Actionscript in general. The pain is starting from the eyes, as you can’t believe what you see and is getting deep in your head as you can’t fix. In this blog I‘ll give you painkiller to get out of a lot strange troubles showing solutions and techniques in Flex.
Wednesday, 15 June 2011
How to delete Temporary files, from internet and from other applications manually?
Sunday, 12 June 2011
Flex4, how to wait object to be completely initialized; how to give time to objects to be completely initialized
Suppose that you have an Object called Circus. This object is too complex (like a real circus). The follow init() function creates the circus it but in real programming world the Circus object is not prepared because the Circus must be render its components, update several graphics objects .
internal function init():void{
//create my.. circus…
myCircus=new Circus(“My X-circus");
//initialize
myCircus.x=10; myCircus.y=40;
//play
myCircus.play();
myCircus.cashier.addMoney(100.50); //this might be wrong, as the circus in not ready yet!
}
This problem occurred on simpler objects also… like the Flex’s Label. If on “applicationComplete” you apply a value to “text” property of a Label a text (i.e. “hellow world”) and right after you try to get the “width” of the Label object, you might be get WRONG value, a not real width; this because the Label object is not yet prepared.
Well, how to get that an object is completed? With Flex’s Label, the event you must Listen is the “FlexEvent.UPDATE_COMPLETE” and not other “UPDATE_COMPLETE” because Flex offers and other from other Eventxxx classes. Note that this is working in Flex 4.0.
So… the Circus object must supports and dispatch once upon a time the “FlexEvent.UPDATE_COMPLETE” to continue in safe way the calculations with its properties.
But, what happen if the Circus doesn’t supports this event? Unfortunately this is happening in real world with several 3rd party components / object.
Bellow there is a solution that is not so professional but it is the only chance to make it work! ;) What I do here is that I am working for a while with Event.ENTER_FRAME, with this way I give some time to then whole application and its running objects to complete uncompleted calculations.
//this is my own counter to count the passed time.
internal var myWaitCounter:int;
internal function init():void{
//create my.. circus…
myCircus=new Circus(“My X-circus");
//initialize
myCircus.x=10; myCircus.y=40;
//prepare and activate my listener pf ENTER_FRAME event
myWaitCounter=0;
addEventListener(Event.ENTER_FRAME,Handler_WaitForCompletion);
}
internal function Handler_WaitForCompletion (e:Event):void{
//add to my counter the time
myWaitCounter+=1000/ Object(FlexGlobals.topLevelApplication).stage.frameRate;
//if, 500ms (0,5sec) passed, then call the start() after remove then listener
//in general it is very important to remove the listeners where you don’t need any more
if (myWaitCounter >=500) {
removeEventListener(Event.ENTER_FRAME,Handler_WaitForCompletion);
start();
}
}
protected function start():void{
//now you are ready to play with you circus safely!
myCircus.play();
}
Saturday, 4 June 2011
Flex, Determining which server/domain a SWF is hosted on
situation | |
Here’s a handy tip which can help you when deploying Flex applications on mulitple servers (such as a staging/production server). Basically you can listen for the Application tag to dispatch the applicationComplete event, grab the URL of the SWF using the loaderInfo.url property, and then use the URLUtil.getServerName() method to parse out the server name. | |
problem | |
adobe flex4 flex 4.0 AS3.0 Determining which server/domain a SWF is hosted on | How to get the domain where the swf is hosted ---- > page: dn | |
difficulty level | |
0/10 :))) | |
compatibility | |
flex4, as3 | |
solution | |
In prior version of Flex 4.0 use this: URLUtil.getServerName(Application.application.loaderInfo.url); In 4.0 use this: because Application is no longer available in 4.0 URLUtil.getServerName(FlexGlobals.topLevelApplication.url) | |
Tuesday, 31 May 2011
Flex4, trace function is not working anymore!
situation | |
This is known bug! This problem occurred when you exported a “release” previously; thenceforth the trace() messages are not appeared in the console window. !!! If you are beginner on Flex, read the "attention" at the bottom of this post! !!! | |
problem | |
adobe flex4 AS3.0 Flex4, trace function is not working anymore! ---- > page: dn | |
difficulty level | |
3/10 :)) | |
compatibility | |
flex4, as3 | |
solution | |
Try 1 1. Clean the build: Project -> Clean -> Clean project (select this one specific from the list) -> ok 2. “Debug” the application (pressing the “bug” button); rebuild will be done 3. The problem should be solved! Otherwise try try2. Try 2 1. Restart the Flex / Flash builder IDE 2. Restart the browser with Adobe Flash Debugger Player 3. Clean the build: Project -> Clean -> Clean project (select this one specific from the list) -> ok 4. “Debug” the application (pressing the “bug” button); rebuild will be done 3. The problem should be solved! | |
attention | |
Important note for beginners: You should “debug” the application (pressing the “bug” button) and not “run” the application (pressing the “play” button) to see the trace() messages at the console window. In “run” mode the trace() message are omitted. | |
excel... if function... with add comparison... how possible could it be??? [research!]
| situation | |
| how idiot excel could be??? TOO MUCH… so many years are passed and Microsoft is sleeping! They haven't implement yet a parser to the world's famous application for calculations… excel “shame on you microsoft!!!” | |
| problem | |
| What is the fucken syntax for ADD comparison in IF function of excel | |
| difficulty level | |
| 0/10 :| microsoft SUCKS | |
| Compatibility | |
| All f*cken excel versions | |
| solution | |
| The follow formula =IF(AND(1=1;2=2);"this is true";"this is false") returns “this is true” the follow formula =IF(AND(1=1;2=3);"this is true";"this is false") returns “this is false” with similar way use the OR comparison good luck and don’t forget that microsoft sucks | |
| Attention | |
| microsoft sucks | |
Sunday, 29 May 2011
free cpu temprature / thermometer!!! (at last, a good one)
Learn how hot is your cpu for you!
download it from here
or from this link
it is free and it works in most of the cpus!
Tuesday, 24 May 2011
flex4, how to make an image brighter, i.e. for focus purposes, without modify it
| situation | |
| how to make easy(!) modifications in Image components with out modifying their data. The data modification (image modification) requires a lot cpu resources as result low performance. | |
| problem | |
| adobe flex4 AS3.0 how to make an image brighter, i.e. for focus purposes, without modify it > page: dn | |
| difficulty level | |
| 2/10 :) | |
| compatibility | |
| flex4, as3 | |
| solution | |
| - drop a Label on the Image component to cover it, clear text property - on this Label... set as background color the white color - also set as blendmode the "overlay" value - also set as backgroundAlpha the value 0.5 - now... on runtime play with "alpha" property of the Label with values 0..400 | |
Subscribe to:
Posts (Atom)