Labels

Wednesday, December 9, 2009

Monday, December 7, 2009

Flex: Difference between invalidatelist and invalidatedisplaylist

visit:

http://stackoverflow.com/questions/74269/what-is-the-difference-between-invalidatelist-and-invalidatedisplaylist


invalidateList tells the component that the data has changed, and it needs to reload it and re-render it.

invalidateDisplayList tells the component that it needs to redraw itself (but not necessarily reload its data).

Flex: ComboBox Prompt Property

visit:

http://kb2.adobe.com/cps/000/1fecccba.html

Flex: Difference between rollOver and mouseOver

visit:

http://polygeek.com/1519_flex_the-difference-between-rollover-and-mouseover

http://www.zedia.net/2008/difference-between-mouseeventroll_over-and-mouseeventmouse_over-in-as3/


The basic difference is that rollOut checks to see if the mouse is over the component that is listening for the event or a child of the component. mouseOut doesn’t do that so it fires causing the style to change before it can be corrected by mouseOver firing again.

Sunday, December 6, 2009

Good website for design and measurement related tools.

http://www.iconico.com/

Flex: HBox implementation in reverse order

Implement below given code and see the magic. Your HBox will display its children in reverse order. Same can be done for VBox and other containers.

package com
{
import flash.display.DisplayObject;

import mx.containers.HBox;

public class MyHBox extends HBox
{
public function MyHBox()
{
super();
}

public override function addChild
(child:DisplayObject):DisplayObject
{
this.addChildAt(child,0);
return child
}

}

}

Wednesday, December 2, 2009

10 topics I want to learn

already started with a few:
1) Flex
2) ActionScript
3) Flash
4) Photoshop
5) Adobe Air
6) ColdFusion
7) BlazeDS
8) WebORB
9) PureMVC
10) Cairngorm

Friday, November 27, 2009

PHOTOSHOP

a STUNNING Photo Sharing and Editing website. Dare not miss it.

visit:
www.photoshop.com

Thursday, November 19, 2009

'Joy of Giving' Sunday @ Multidots

http://picasaweb.google.com/gupta4net/JoyOfGivingSunday?feat=embedwebsite#

Flex: FlowBox Container

A container which would lay its child components out in a horizontal manner like an HBox, but unlike an HBox, it wraps the child components into a new row when they exceed the available width. Ditto for vertical direction.

visit:
http://www.munkiihouse.com/?p=60

http://www.munkiihouse.com/flexapps/FlowBox/Main.html
(view source enabled)

Monday, November 16, 2009

Sunday, November 15, 2009

Excellent Example Of Using Flex-Ajax Together.

http://www.google.com/finance?q=goog
  • Ajax is very good for content-centric applications, while Flex is very good for interactive, media, and data-centric applications.
  • If your application is somewhere in between the two sides of that spectrum, then you can use the Flex Ajax Bridge to combine the two technologies.
http://www.google.com/finance?q=goog

Saturday, November 14, 2009

Flex: Error #2148

Only local-with-filesystem and trusted local SWF files may access local resources.

Solution (a workaround maybe):

Add the following arguments to the compiler (via Properties - Flex Compiler) :

-use-network=false

Tuesday, November 10, 2009

Flex: Slow response time of weborb/remote object call?

If you are experiencing very slow response time of weborb or a remote object call in flex, just make sure you have installed latest version of flash player and flash player debugger for whichever browser you are using to run your swf or flex application. This is my experience and the trick worked. Hope it might solve your problem.

Get them here:
http://www.adobe.com/support/flashplayer/downloads.html

Monday, November 9, 2009

Flex: Stop Event Propogation

Stopping propagation

During any phase, you can stop the traversal of the display list by calling one of the following methods on the Event object:

You can call either the event's stopPropagation() method or the stopImmediatePropagation() method to prevent an Event object from continuing on its way through the event flow. The two methods are nearly identical and differ only in whether the current node's remaining event listeners are allowed to execute. The stopPropagation() method prevents the Event object from moving on to the next node, but only after any other event listeners on the current node are allowed to execute.

The stopImmediatePropagation() method also prevents the Event objects from moving on to the next node, but it does not allow any other event listeners on the current node to execute.

(source: Adobe Livedocs)

Flex: Magic line to remove event listener.

event.currentTarget.removeEventListener( event.type, arguments.callee);

Sunday, November 8, 2009

Flex: Difference between event.target and event.currentTarget properties in an event object.

In Flex, an event object is created whenever an event is dispatched. The event object has two important properties – event.target and event.currentTarget. The event.target property references the event dispatcher while event.currentTarget property refers to the node which is currently being checked for event listeners. While event.target property stays the same throughout the event flow (capturing, targeting and bubbling phases), the event.currentTarget property changes on each node.

For example, if an event is fired from a TextInput component placed inside a Panel, event.target in this case will be TextInput throughout the event flow while event.currentTarget will vary from Application to Panel to TextInput as the event object goes up or down the flow chain.

An important point to note over here is that when an event is fired from a component, event.target property does not necessarily reference the component which dispatched the event. It may refer to a subcomponent which is part of that component. This means that if you click on a button’s label, the event object’s event.target property won’t be button (as you might have hoped) but will be a subcomponent (within the button class) – UITextField (renders label in a button).This is a very important point while handling events. In this case, if the button component was listening for the click event, the event handler will be called if you are using event.currentTarget property since (sooner or later) event.currentTarget will refer to the button component as the mouse event bubbles through the chain. But, if you were using event.target property, the event handler will never get called as a subcomponent (UITextField) fired the event and is referred to in event.target property. Hence, you should always use event.currentTarget property instead of event.target.

Saturday, November 7, 2009

Popups in Flex using PureMVC

I was searching for the issue of how to use popups in flex using PureMVC.

I ultimately stumbled upon the following blog which I thought will be very useful for this purpose.

http://www.newtriks.com/?p=76

Listen to Events dispatched from flex Pop-ups.

  • When sending events from your pop-up window, remember that they aren’t dispatched in exactly the same manner as with other components.
  • In general, events work much as you would expect, with one variation: events from pop-ups don’t travel down the inheritance chain to the main application root.
  • Instead, events dispatched from pop-up windows are terminated at the window root.
  • This is because the pop-up manager is the parent of the pop-up window.
  • As a result, events launched in the pop-up don’t bubble up to the main application page, which is the eventual parent of any object in the main application.
  • Popups within a Flex application are not children of the application container, but are instead children of the SystemManger.
  • I can instead attach my listener to:
    Application.application.systemManager

    Then my listener will hear all bubbling events within the system, regardless of whether they originate within a Popup or a standard UIComponent.

Tuesday, September 8, 2009

Know about:

What is Software Escrow?

When you contract with someone to write software for you, one decision, implied or explicit, is whether the source code belongs exclusively to the developer, or whether you get a copy. If you do, you have the safety of being able to have someone else make changes or fix bugs in the future, but the developer is giving up some of his or her potential control of that software. If the developer retains the source code and you don't have access to it, then you are dependent on the developer for all future updates. Typically developers will charge more if you get the source code.

That's where software or source code escrow comes into play.

As part of arranging for your software to be written, you and the developer can agree that a copy of the source code will be given to a neutral third party - an escrow agent. The agreement would then specify under which conditions that agent would be allowed to release the source code to you. For example one of the conditions might be the developer's bankruptcy or going out of business for other reasons. By using software escrow, the developer is protected as long as it makes sense for them to retain control, and you are protected should the developer disappear. (Naturally other conditions might trigger the release, but the developer's going out of business is a clear example.)

Software escrow is not fool proof. For example, what happens if the escrow agent goes away? And escrow typically adds some cost to your transaction.

Google-up more information.

Tuesday, September 1, 2009

Thoughts that can make your day.

  • "Pain Is Inevitable.Suffering Is Optional."
  • "The Best Things in Life Are Free."
  • "It's the possibility of having a dream come true that makes life interesting." - The Alchemist.

Friday, August 28, 2009

Campus 2 Company.

Looking for MBA Training in a good company? Your search ends here.
visit our venture:
campus2company.net

There's loads of other stuff too. Just check it out. I bet you will find it useful and worth visiting again.

Saturday, August 15, 2009

Pacific-Entertainment



If you are a fan of the Saw movie series then rest assured that the tradition will be respected on Halloween 2009: Saw VI will give you a bloody day. Jigsaw (Tobin Bell) will still be there to tease the livings and Mark Hoffman (Costas Mandylor) will be back too.

But his time, the director isn’t David Hackl. The job is taken over by Kevin Greutert who was the former movie editor on all of the Saw movies: so he isn’t a newbie, and knows damn well the universe of Saw. So Saw 6 is in good hands.

---------------------------------------------------------------------------------------------------


In The Ugly Truth, A romantically challenged morning show producer (Katherine Heigl) is reluctantly embroiled in a series of outrageous tests by her chauvinistic correspondent (Gerard Butler) to prove his theories on relationships and help her find love. His clever ploys, however, lead to an unexpected result.

---------------------------------------------------------------------------------------------------
---Garfield.-------




Here are some nice Dilbert's one liners:

1. I say no to alcohol, it just doesn't listen..
2. A friend in need is a pest indeed.
3. Try & try, if you don't succeed, then CHEAT
4. Work is fine if it doesn't take too much of your time.
5. When everything comes in your way you're in the wrong lane.
6. The light at the end of the tunnel may be an incoming train..
7. Born free, taxed to death.
8. Everyone has a photographic memory, some just don't have film.
9. Life is unsure; always eat your dessert first.
10. Smile, it makes people wonder what you are thinking.
11. If you keep your feet firmly on the ground, you'll have trouble putting on your pants.
12. It's not hard to meet expenses, they are everywhere.
13. I love being a writer... what I can't stand is the paperwork.
14. A printer consists of 3 main parts: the case, the jammed paper tray and the blinking red light.
15. The guy who invented the first wheel was an idiot. The guy who invented the other three, he was the genius.
16. The trouble with being punctual is that no one is there to appreciate it.
17. In a country of free speech, why are there phone bills?
18. If you cannot change your mind, are you sure you have one?
19.. Beat the 5 O'clock rush, leave work at noon!
20. If you can't convince them, confuse them.
21. It's not the fall that kills you. It's the sudden stop at the end.
22. I couldn't repair your brakes, so I made your horn louder.
23. Hot glass looks same as cold glass. - Cunino's Law of Burnt Fingers
24. The cigarette does the smoking you are just the sucker.
25. Someday is not a day of the week
26. Whenever I find the key to success, someone changes the lock.
27. To Err is human, to forgive is not a Company policy.
28. The road to success..... Is always under construction.
29. Alcohol doesn't solve any problems, but if you think again, neither does Milk.
30. In order to get a Loan, you first need to prove that you don't need it.

------Here comes The Best-----------------

31. All the desirable things in life are either illegal, expensive, fattening or in love with someone else.