Hey for the 1st problem
try using the ClassFactory
A ClassFactory instance is a "factory object" which Flex uses to generate
instances of another class, each with identical properties.
You specify a Generator class when you construct the factory object. Then
you set the properties property on the factory object. Flex uses the factory
object to generate instances by calling the factory object's newInstace()method.
1st declare a global ClassFactory class
like this
private var item: ClassFactory;
.....
..
..
..
private function someMethod():void
{
...
...
item=new ClassFactory(TextRange);///what ever u need it will give u a new
instance
item.length=4;//set its value/properties according to your need
}
Hope this helps you!![:)]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---