![]() |
|
||||||||||
|
|||||
|
Регистрация: Nov 2005
Сообщений: 2
|
I try the flex 3 beta 2 today.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white"
xmlns:views="ne_views.*">
<mx:XML id="imagesXML" source="../data/images.xml" />
<mx:HBox id="hBox">
<mx:Repeater id="rep" dataProvider="{imagesXML.image}">
<views:THUMBNAIL
imageData="{rep.currentItem}"
/>
</mx:Repeater>
</mx:HBox>
images.xml
</mx:Application>
<?xml version="1.0" encoding="utf-8"?> <images> <image src="../images/Button.png" alt="Button" /> <image src="../images/ButtonBar.png" alt="ButtonBar" /> <image src="../images/CheckBox.png" alt="CheckBox" /> </images> THUMBNAIL.mxml <?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
verticalScrollPolicy="off"
horizontalScrollPolicy="off">
<mx:Script>
<![CDATA[
[Bindable]
public var imageData:Object;
]]>
</mx:Script>
<mx:Image source="{imageData.currentItem.@src}"
/>
</mx:Canvas>
The problem is around mx:Image instance.The source path isn't set. How wait for the XML to load before firing and event callback . Can you help me? |
|
|||||
|
Регистрация: Dec 2003
Адрес: Москва
Сообщений: 176
|
May be, you just should write:
? Beacuse your "imageData" is: and there is no "currentItem" tag |
![]() |
![]() |
Часовой пояс GMT +4, время: 03:31. |
|
|
« Предыдущая тема | Следующая тема » |
|
|