Hi vinod,
I observed the thing here is that iam creating a new object
and this is the problem. The effect was hideed when creating the object
so iam trying to use timer or visiblity false to start effect after the
object was completely
created.
I f u have any ideas plese write me

Thanks...

On Fri, Mar 27, 2009 at 11:21 AM, Vinod M Jacob <[email protected]> wrote:

>
> I think the code is fine.....Anyway when are loading the Datagrid with
> the data ?
>
> sankar swaroop wrote:
>
> > Hi guys,
> >
> > I got a problem with zoom effect.
> > Here i am creating an object to a custom component like this:
> > This is a custom component with datagrid getting data from database in
> it's
> > creation complete.
> > *
> >
> > private* *var* ObjSchAdmin:compSchAdminGrid = *new* compSchAdminGrid();
> >
> > and then i added this as achild to canvas like this with an effect in a
> tree
> > itemClick:
> > *
> >
> > if*(ccaccordion.treeadmin.selectedit...@label == *"School Admin"*)
> >
> > {
> >
> > comp_Effect(ObjSchAdmin);
> >
> > CanvasComp.addChild(ObjSchAdmin);
> >
> > }
> >
> > *}*
> >
> > *and Here is the effect function:**
> >
> > private* *function* comp_Effect(target:Object):*void*
> >
> > *{**
> >
> > compZoom.end();
> >
> > compZoom.target = target;
> >
> > compZoom.zoomWidthFrom = compZoom.zoomHeightFrom = 0;
> >
> > compZoom.zoomWidthTo = compZoom.zoomHeightTo = 1.0;
> >
> > compZoom.duration = 1000;
> >
> > compZoom.Play();
> > *
> >
> > *}
> > *
> >
> > But my problem is, when i click for the first time the effect is not
> >
> > working. Its working for the second time.
> >
> > Is there any fault in my code or any changes that should be made.
> >
> > Thanks in Advance
> >
> > Shankar swaroop
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to