1 Reply Latest reply on Jan 4, 2007 7:18 AM by Hugo_Core

    Importing FLV and SWF

    Xud
      Right now I am learning the basic ropes of Flex 2, I cant seem to find a way to import FLV's and SWF's or any viable resource that shows me how.

      Could anyone point in the right direction of finding out the different way to do this?
        • 1. Re: Importing FLV and SWF
          Hugo_Core Level 1
          Hello Xud, Hope i Help :)

          Let's see..

          Import SWF Files -> Very Simple. Use the SWFLoader Class

          From the Adobe Flex 2 Language Reference :
          The SWFLoader control loads and displays a specified SWF file. You typically use SWFLoader for loading a Flex 2 application into a host Flex 2 application.

          <mx:SWFLoader
          Properties
          autoLoad="true|false"
          loaderContext="null"
          maintainAspectRatio="true|false"
          scaleContent="true|false"
          showBusyCursor="false|true"

          source="No default"
          { You can use this sintax to Embed the file tou your APP @Embed(source='pathFilename' }

          trustContent="false|true"

          Styles
          brokenImageBorderSkin="BrokenImageBorderSkin"
          brokenImageSkin="BrokenImageSkin"
          horizontalAlign="left|center|right"
          verticalAlign="top|middle|bottom"

          Effects
          completeEffect="No default"

          Events
          complete="No default"
          httpStatus="No default"
          init="No default"
          ioError="No default"
          open="No default"
          progress="No default"
          securityError="No default"
          unload="No default"

          Easy isn´t ? :P


          Import FLV Files -> To you import/see a video in your App, you have to use a player, so you use the class
          VideoDisplay .

          From the Adobe Flex 2 Language Reference :

          The VideoDisplay control lets you play an FLV file in a Flex application. It supports progressive download over HTTP, streaming from the Flash Media Server, and streaming from a Camera object.


          <mx:VideoDisplay
          Properties
          autoBandWidthDetection="false|true"
          autoPlay="true|false"
          autoRewind="true|false"
          bufferTime="0.1"
          cuePointManagerClass=""
          cuePoints=""
          idleTimeout="300000"
          live="false|true"
          maintainAspectRatio="true|false"
          playheadTime=""
          playheadUpdateInterval="250"
          progressInterval="250"
          source=""
          totalTime=""
          volume="0.75"

          More help, use the HELP system from your Flex Builder. (F1 Key ;) )

          Hope i guide you,
          Regards Core