crop focus area in action script / Flex

17 views
Skip to first unread message

abhishek

unread,
Oct 22, 2009, 2:27:32 AM10/22/09
to ActionScript User Interface Development
hey frnds,
I'm using 1 transparent image and showing 1 big image (uploaded by
user) behind of transparent image.
Some part of transparent image is not transparent thats why user
can see only that part of uploaded image which comes exact under the
transparent image.
Now i want to cut only that part of uploaded image which is exact
behind the above transparent image and visible to users.
Plz tell me how can i crop only that part of uploaded image which user
can see.
I want to crop only that part which is visible.
is any function which allows me to crop only focus area of image ?
Is any idea there ?
thx in advanced,
:)

eo l

unread,
Oct 25, 2009, 11:08:42 AM10/25/09
to as...@googlegroups.com
Myabe your image too big . If you wanna display a rectange of that image you can use a class named "bitmapdata" in actionscript3.0 and use the method named "draw(arguments....)", you can spectify the size with width & height properties , so you can get a croped display shape .
 
about your another problem is how can you get the width and height value behind the above image . don't worry , we have solution to resolve it .
 
  I think if all the application is written in actionscript3.0 , then , you can get the two properties value quite easy .
  another case is if the above image you said is display by html , so , we can via javascript get that image which above layouted ,
  the way of tech layer is actioncript3.0 call the function which written in javascript and for get image width and height . Code like this ,  var _width:Number = ExternalInterface.call("getwidth"); var _height = ExternalInterface.call("getheight");   good luck , guy .
 
pls contact me asap if you have anything else .

2009/10/22 abhishek <abhishe...@gmail.com>



--
Thanks-----...@gmail.com
Reply all
Reply to author
Forward
0 new messages