ActionFleo
09-25-2008, 06:49 PM
Hello,
I'm actually trying to learn with flex 3 builder and I have seen the following website:
www.letyourworriesgo.com (http://www.letyourworriesgo.com)
I aim to do something similar with flex if it's possible..?
Could you help me throughout the steps of this project, my first problem is to load some picture from an xml file.
Here is the structure of the xml, so first the path of the image, then the position from the top, from the left, which layer the image have to be in, the title and description of the picture.
<object>
<image>images/leef.png</image>
<top>310</top>
<left>4505</left>
<layer>4</layer>
<title>Title of the image</title>
<desc>Desciption of the image that will be display with an over effet, one of the last stage of my project...</desc>
</object>
And for now I load the xml and "try" to put the image on the swf file thanks to that:
<mx:XML id="positions" source="positions.xml" />
<mx:Zoom id="zoom" />
<mx:HBox id="hBox">
<mx:Repeater id="rep"
dataProvider="{positions.object.image}">
<mx:Image source="{rep.currentItem.@src}"
toolTip="{rep.currentIndex}:{rep.currentItem.@alt}"
/>
</mx:Repeater>
</mx:HBox>
I know there is no layer in flex but something similar.. am I right?
So I would like to load the information from the xml, then display the picture where I want on the screen and then use a kind of parallax effect to move between the new different layer....
Any help will be useful!
I ask myself sometimes if it is more "just" a flash project or flex is appropriate to do what I try to do here.
Maybe I'm not clear enough, if thats the case feel free to ask any question.. and excuse my English, I'm not a native speaker.
I'm actually trying to learn with flex 3 builder and I have seen the following website:
www.letyourworriesgo.com (http://www.letyourworriesgo.com)
I aim to do something similar with flex if it's possible..?
Could you help me throughout the steps of this project, my first problem is to load some picture from an xml file.
Here is the structure of the xml, so first the path of the image, then the position from the top, from the left, which layer the image have to be in, the title and description of the picture.
<object>
<image>images/leef.png</image>
<top>310</top>
<left>4505</left>
<layer>4</layer>
<title>Title of the image</title>
<desc>Desciption of the image that will be display with an over effet, one of the last stage of my project...</desc>
</object>
And for now I load the xml and "try" to put the image on the swf file thanks to that:
<mx:XML id="positions" source="positions.xml" />
<mx:Zoom id="zoom" />
<mx:HBox id="hBox">
<mx:Repeater id="rep"
dataProvider="{positions.object.image}">
<mx:Image source="{rep.currentItem.@src}"
toolTip="{rep.currentIndex}:{rep.currentItem.@alt}"
/>
</mx:Repeater>
</mx:HBox>
I know there is no layer in flex but something similar.. am I right?
So I would like to load the information from the xml, then display the picture where I want on the screen and then use a kind of parallax effect to move between the new different layer....
Any help will be useful!
I ask myself sometimes if it is more "just" a flash project or flex is appropriate to do what I try to do here.
Maybe I'm not clear enough, if thats the case feel free to ask any question.. and excuse my English, I'm not a native speaker.