PDA

View Full Version : How to use methods from a class?


prowannabe
01-12-2007, 08:54 AM
I have been trying to use a specific method from a ListBase class.. but somehow i dunno how to implement it to my Flex application.. I am at my wits end , if anyone could help me out :(

Following is the specific method in the class
\

selectItem () method

protected function selectItem(item:IListItemRenderer, shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean
Updates the set of selected items given that the item renderer provided was clicked by the mouse and the keyboard modifiers are in the given state. This method also updates the display of the item renderers based on their updated selected state.

Parameters item:IListItemRenderer — The item renderer that was clicked

shiftKey:Boolean — true if the shift key was held down when the mouse was clicked.

ctrlKey:Boolean — true if the ctrl key was held down when the mouse was clicked.

transition:Boolean (default = true) — true if the graphics for the selected state should be faded in using an effect.


Returns Boolean — true if the set of selected items changed. Clicking on an already-selected item doesn't always change the set of selected items.

Tink
01-12-2007, 10:51 AM
What are u actually trying to do?

prowannabe
01-14-2007, 03:19 PM
i think i got a solution to my problem ..but basically iam jus trying to set the image when pressing the selected TileList Items.

somehow i got another question.. I got a SWFloader to play SWF files ..but somehow the SWF had somethings going off the stage. How do I restrict the content so that i would see it normally when i jus open a Flash Player and view it in a specific size and not anything outside of the size?

dr_zeus
01-16-2007, 07:32 PM
You should probably use a mask for that.