Hi,

get the two tgas render and form in two XMLList.  Using a for loop and
Search algo(any)
u will be able to find which two id's are same.

Once you get that you can associate the two together

About the second question:
when you create a itenrenderer dynamically u use Classfactory
Every classfactory object has a properties array
You can define a public variable in a itenrenderer say theID and obj
obj contains all the asset data for that renderer

In ur main file pass this to properties array as
renderer,properties = {theID:id,assetObject:obj};
where id is the id from the XML and obj is a object containing info
about all asset data

flex initializes these varible when it creates a renderer
automatically with the values that u passed

Just use the info from assetObj in ur renderer.

Regards
Nitin

On Mar 10, 8:29 am, kartik kp <[email protected]> wrote:
> Hi, I have an xml code something like this-
> ----------------------------------------------------------------------------------------------
> <root>
> <render>
>  <head>
> <transition id="fadeIn" type="fade" subtype="" dur="3s"/>
> <transition id="fadeOut" type="fade" subtype="" dur="3s"/>
> <layout>
>   <root-layout width="480px" height="360px" backgroundColor="0"/>
>   <region id="rootRegion" dur="15s">
>     <region id="background" soundLevel="100%" top="0px" left="0px"
> width="480px"          height="360px" z-index="0"/>
>     <region id="foreground" soundLevel="100%" top="0%" left="0%"
> width="480px" height="360px" z-index="1"/>
>   </region>
> </layout>
> </head>
> <body>
> <par region="background" begin="0s">
>   <img>
>     <meta name="assetsource" content="stock"/>
>     <src>http://s3.amazonaws.com/JivoxStockImage/000003296736.jpg</
> src>
>     <width>102.49999999999999%</width>
>     <height>97.5%</height>
>     <left>0%</left>
>     <top>0%</top>
>     <clipBegin/>
>     <clipEnd/>
>     <begin>0s</begin>
>     <dur>15</dur>
>   </img>
>   <audio>
>     <meta name="assetsource" content="stock"/>
>     <src>http://audio.mp3</src>
>     <clipBegin/>
>     <clipEnd/>
>     <begin>0s</begin>
>     <dur>15s</dur>
>   </audio>
> </par>
> <par region="foreground" begin="0s">
>   <img>
>     <meta name="assettype" content="user"/>
>     <src>http://image.png</src>
>     <width>20%</width>
>     <height>20%</height>
>     <left>41.5%</left>
>     <top>25.555555555555557%</top>
>     <begin>2s</begin>
>     <dur>10s</dur>
>     <id>BA6B7CF0BD9080CAD7A02199483224EA61A6E08A</id>
>   </img>
>   </par>
>   </body>
>  </render>
>
> <form>
>       <map formId="BA6B7CF0BD9080CAD7A02199483224EA61A6E08A"
> type="image" label="Logo" />
>       <map formId="F635A9123082A15834389030382683C55EB29E75"
> type="text" label="Company Name" />
> </form>
> </root>
> --------------------------------------------------------------------------------------------------------------
> Here I need to match formId in 'form' with that of 'id' in 'render'
> and create the form dynamically in flex.
>
> I am able to get the xml file via the httpservice. All I need to know
> is how to match it and render the form dynamically!!

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