do you know how to resize image on canvas such that while resizing the
resize icons dont go out of canvas??

On Fri, Dec 19, 2008 at 10:55 PM, HISSAM <[email protected]> wrote:

> 1st keep all your containers in array collection
> the iterate thru array collection like this
>
> for(i=0;i<containerarrayCollection.length;i++)
> {
>           tmpcanvas=containerarrayCollection[i] as canvas;
>          for(j=0;j<tmpcanvas.numChildren;j++)
>           {
>                  if((tmpcanvas.getChildAt(j)) is Image )
>                   {
>                      stringImageinfo+=
>                     (tmpcanvas.getChildAt(j) as
> Image).x+";"+(tmpcanvas.getChildAt(j) as
> Image).y+";"+(tmpcanvas.getChildAt(j) as Image).source;
>                  }
>                  else
>                     if((tmpcanvas.getChildAt(j)) is TextInput )
>                   {
>                      stringTexteinfo+=
>                     (tmpcanvas.getChildAt(j) as
> TextInput).x+";"+(tmpcanvas.getChildAt(j) as
> TextInput).y+";"+(tmpcanvas.getChildAt(j) as
>                        TextInput).text;
>                  }
>           }
>
> }
>
> I hope this logic helps u
> pls reply
>
>
>
>
> On Fri, Dec 19, 2008 at 2:56 PM, Kalpesh Mahida <
> [email protected]> wrote:
>
>>  Hi All,
>>
>>
>>
>> I have a thumbnail of swf/image files now I want to add particular
>> swf/image to canvas containers and then want to add some more images to
>> selected swf/image using drag and drop method I know it is possible but
>> latter on I want to save data of the canvas containers like 1) the name and
>> path of the swf/image file 2) details of all images dropped on selected
>> swf/image file with their X and Y co-ordinates. can anyone provide me the
>> useful information……
>>
>>
>>
>> Following image might get some insight of the problem, I have thumbnail on
>> the left panel and the middle one is the main container which holds selected
>> swf/image file now I want add some images from the library which is there on
>> right side panel when I clicked on "*Click Here*" button I want to store
>> information about current swf/image file and info about all images which are
>> dropped on swf/image with their dimension and X Y co-ordinates
>>
>>
>>
>> I'll be thankful for your help
>>
>>
>>
>> Kalpesh Mahida
>>
>>
>>
>> [image: prob1.PNG]
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> >>
>>
>
>
> --
> -----------------------------
> Warm Regards,
>  HISSAM,
>  Soft Engg,
>  iThinkLabs Pvt Ltd.
>  India.
> website:http://www.ithink-labs.com
>            http://www.yureekah.com
> ------------------------------
>



-- 
-----------------------------
Warm Regards,
 HISSAM,
 Soft Engg,
 iThinkLabs Pvt Ltd.
 India.
website:http://www.ithink-labs.com
           http://www.yureekah.com
------------------------------

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

<<inline: image002.jpg>>

Reply via email to