JohnnyOpcode / degrafa

Automatically exported from code.google.com/p/degrafa
1 stars 0 forks source link

when an event coming from a flex object added to surface , suppose to change a degrafa object property , degrafa's object will not be updated #85

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. adding objects to surface
surfaceGalleriesDisplay.addChild(grpFrame); //rect that used as a frame for
an image - added object is a GeometryGroup
surfaceGalleriesDisplay.addChild(im); //Flex Image
surfaceGalleriesDisplay.addChild(grpThump); //another rect used as mask for
the image               
                    surfaceGalleriesDisplay.addChild(detailsCanvas);//a flex canvas object
over the image

2.hook to the canvas (details canvas) ROLL_OUT event
details.addEventListener(MouseEvent.ROLL_OUT,hideItemDetails);

3.event handler will change the image frame (rect inside a geometryGroup)
stroke
var stroke:SolidStroke = isOver ? strokeWhite : strokeBlack;

var frame:RoundedRectangle =    
grpItem.frame.geometryCollection.getItemAt(0) as RoundedRectangle;
frame.stroke = stroke; //THE PROBLEM

the actual stroke reference is updated on the object ,
but the view doesn't change event after a call to invalidate

Original issue reported on code.google.com by alon.ag...@gmail.com on 27 Aug 2009 at 12:02

GoogleCodeExporter commented 8 years ago
the only way to resolve this
is to change the property using or something like that
setTimeout(itemSelectionEffect,1);

Original comment by alon.ag...@gmail.com on 27 Aug 2009 at 2:40