actionscript 3 - Flex image component not canvas container when added to canvas -


Adding a Flex image component to Max: Canvas Component With Horizontal and Vertical Scroll Policies "I "But when I add the image to the canvas, it does not extend to show the full image (scrollbar is not active).

  & lt; Mx: canvas id = "myCanvas" minWidth = "0" minHeight = "0" horizontal ScrollPolicy = "at" vertical ScrollPolicy = "on" & gt; & Lt; / Mx: canvas & gt;  

and add the script to the image

  var newImg: Image = new Image (); NewImg.source = $ value.sourceImg; NewImg.x = $ value.positionX; NewImg.y = $ value.positionY; NewImg.scaleX = $ value.ScaleX * _scaleRatio; NewImg.scaleY = $ value.scaleY * _scaleRatio; NewImg.rotation = $ value.rotation; MyCanvas.addChild (newImg);  

OK, so I had to use clipCOntent = true to get me the clip content = " False ", I thought it would clip the image and anything could be scrolled out of the border, it actually just clips and does not provide a scroll.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -