1 Reply Latest reply on Apr 13, 2007 11:22 AM by ntsiii

    Need Help for my Appli

    deak_wue
      hello,

      at the moment i make my first flex application. it´s working, but i have a problem with it.
      in the app i load pictures (jpg) but i like to change the jpg into swf´s.
      is this possible?

      my code:

      quote:

      <?xml version="1.0" encoding="utf-8"?>


      <Application xmlns=" http://www.adobe.com/2006/mxml" xmlns:local="*" height="400" width="750" layout="absolute" viewSourceURL="download/index.html" backgroundGradientColors="[#040158, #050e99]">

      <Binding source="sel.value" destination="shelf.selectedIndex" />
      <Binding destination="sel.value" source="shelf.selectedIndex" />


      <Array id="dataSet">
      <String>img/photos400/photo00.jpg</String>
      <String>img/photos400/photo01.jpg</String>
      <String>img/photos400/photo02.jpg</String>
      <String>img/photos400/photo03.jpg</String>
      <String>img/photos400/photo04.jpg</String>
      <String>img/photos400/photo05.jpg</String>
      <String>img/photos400/photo06.jpg</String>
      <String>img/photos400/photo07.jpg</String>
      <String>img/photos400/photo08.jpg</String>
      <String>img/photos400/photo09.jpg</String>
      <String>img/photos400/photo10.jpg</String>
      <String>img/photos400/photo11.jpg</String>
      <String>img/photos400/photo12.jpg</String>
      <String>img/photos400/photo13.jpg</String>
      <String>img/photos400/photo14.jpg</String>
      <String>img/photos400/photo15.jpg</String>
      <String>img/photos400/photo16.jpg</String>
      <String>img/photos400/photo17.jpg</String>
      <String>img/photos400/photo18.jpg</String>
      <String>img/photos400/photo19.jpg</String>
      <String>img/photos400/photo20.jpg</String>
      <String>img/photos400/photo21.jpg</String>
      </Array>

      <SWFLoader id="blabla" source="img/photos400/test.swf" autoLoad="true" />

      <local:DisplayShelf id="shelf" horizontalCenter="0" verticalCenter="0"
      borderThickness="3" borderColor="#FFFFFF" dataProvider="{dataSet}" enableHistory="false" width="100%"/>

      <VBox
      horizontalAlign="center" verticalAlign="middle" x="141" y="360">



      <HBox>
      <Label text="Selection:" color="#f0f0f0"/>
      <HSlider liveDragging="true" id="sel" minimum="0" value="0" maximum="{shelf.dataProvider.length-1}" snapInterval="1" width="380" />
      </HBox>



      </VBox>


      <VideoDisplay id="vid" source="video.flv" autoPlay="false" x="130" y="60" width="488" height="278" visible="false"/>
      <Button id="myButton" label="Play Teaser!" click="vid.play()" />
      </Application>