Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
cvnbgcbn #1
EVENTS in flex
hi friends,
I am developing an application just like FLEXSTORE sample application.But i
don't get the eventDispatch in the sample. I have navigate through the source
several times. But i don't get the idea. Please any one help me to put some
light on it?.....
regards
cvnbgcbn Guest
-
flex chart data change events
I need to capture an event for when the data is updated in a chart. I take a snapshot of the chart and save it to a file. But when I do it via a... -
Does flex can dispatcher the events by an order
I got a problem with flex dispatcher events: there is a main button to control the other 5 buttons click event,that means when you click the main... -
Flex 2 Project in Flex 3 Swf File Size Increase?
I have imported my Flex 2 Projects into Flex 3, when I compile my code the resulting swf file is 100-200K larger. Why is that? I thought Flex 3 made... -
Not Flex JSP tag lib def in flex-bootstrap.jar (Flex 2Beta 2)
Hi, The taglib.tld file that was in the Flex 1.5 flex-bootstrap.jar isn't present in the Flex2 Beta2 version of that jar. The interfaces are there... -
Is the newest version of flex framework enough good fordeveloping flex rpc services?
Hallo guys, I've already installed the newest version of flex framework (flex2 beta2 version). I already used beta1 version for developing Rpc... -
Greg Lafrance #2
Re: EVENTS in flex
I think you will need to clarify where you are seeing the problem.
Greg Lafrance Guest
-
cvnbgcbn #3
Re: EVENTS in flex
hi,
I got the problem in productCatalogueEvent.In their is function called
"dispatchEvent";I doubtfull here.
If this function is caled here where does it affect?
I can't get wat will do wen this function called?
regards
cvnbgcbn Guest
-
BaliHi #4
Re: EVENTS in flex
I dont have your sample but Events are integral to Flex and it is something
that is a bit different to most programming. Basically dispatching an event is
sending information out to anything that is LISTENING to say that something has
occurred. So, to receive the information you/they define an eventListener
which listens for that event being dispatched. When the event is dispatched,
the listener picks it up and then continues with the processing of the program.
There are lots of sample material for events in the Adobe reference material
so I suggest going through a few examples of what events are, and what they do.
BaliHi Guest
-
Greg Lafrance #5
Re: EVENTS in flex
I would examine the FB3 help on events. Bascially, your UI just sits there
"waiting" for events to be dispatched by other components in response to user
interaction with the UI, or else dispatched by data availability, for example
in an HTTPService or WebService.
I haven't looked at the code, so I don't know how productCatalogueEvent is
being used in the area of code you are examining, but evidently an event was
fired probably because of user activity that accesses the product catalog,
perhaps by filtering what will be displayed.
Spend a couple of hours in the FB3 help system reading up on events and you
will be much clearer on what is going on.
Greg Lafrance Guest
-
otisme #6
Re: EVENTS in flex
A handy way as well to approach the documentation is to look at the events
associated with the particular component in question e.g. button.
Do a search in help docs FB3 for 'button'. You want to find out what events
are associated with button, click 'Events' in the menu section associated with
your find results for 'button', Scroll down until you see a section called
'Method Detail', this is a list of all the methods associated with button
events, e.g 'clickHandler() method
See this kind of info:
protected function clickHandler(event:MouseEvent):void
Default handler for the MouseEvent.CLICK event
Other info here gives other methods e.g mouseDownHandler() method.
so now you have enough info to use in your code eg
<mx:Script>
<


Reply With Quote

