1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Flash code...

Discussion in 'Graphics & Multimedia' started by mozgu, Aug 3, 2006.

  1. #1
    Hi guys,
    I've got a problem. I wanna make an swf file for my coppermine gallery - for files from YouTube etc. Coppermin gallery doesn't permit to have an external link (to external host) to files from gallery so i have to make flash file with youtube video loaded. For wmv I can create file like this:

    <Asx Version = "3.0" >
    <Title > toyota-rav4</Title>
    <Param Name = "AllowShuffle" Value = "yes" />
    <Entry>
    <Duration value = "00:01:1.999" />
    <Author > www.superzooi.com</Author>
    <Param Name = "Bitrate" Value = "346000" />
    <Param Name = "FileSize" Value = "2572074" />
    <Param Name = "FileType" Value = "wmv" />
    <Param Name = "Is_Protected" Value = "False" />
    <Param Name = "Is_Trusted" Value = "false" />
    <Param Name = "IsVBR" Value = "False" />
    <Param Name = "MediaType" Value = "video" />
    <Param Name = "SourceURL" Value = "http://webotron.online.fr/cpg-ng/albums/auto-rave4/06100307_rav4.wmv" />
    <Title > Who will drive today?</Title>
    <Param Name = "type" Value = "local" />
    <Param Name = "UserPlayCount" Value = "1" />
    <Param Name = "WMFSDKNeeded" Value = "0.0.0.0000" />
    <Param Name = "WMFSDKVersion" Value = "9.00.00.2980" />
    <Ref href = "http://webotron.online.fr/cpg-ng/albums/auto-rave4/06100307_rav4.wmv"/>
    </Entry>
    </Asx>

    and it works. But i need file with extension .swf to open flash player. Can somebody write how the same code has to look like in .swf ?
    I've tried this

    <object><param name="movie" value="http://www.youtube.com/v/0XxI-hvPRRA"></param><embed src="http://www.youtube.com/v/0XxI-hvPRRA" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

    but it doesn't work :(
    Please, help me :(
     
    mozgu, Aug 3, 2006 IP
  2. Lonesight

    Lonesight Banned

    Messages:
    718
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can always go to kirupa.com they have alot of flash experts on their site
     
    Lonesight, Aug 7, 2006 IP
  3. slickricky

    slickricky Active Member

    Messages:
    240
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #3
    If you're using the load movie function, you can set it to load the movie as a variable name.

    Something like: loadMovie(target, _root.MyMovieURL);

    MyMovieURL is the variable, then in your html code do something like this...

    <param name="movie" value="http://urltoMySWFfile.swf?MyMovieURL=http://www.youtube.com/v/0XxI-hvPRRA"></param>


    Not sure if that's what you're asking for, but hope it helps.
     
    slickricky, Aug 11, 2006 IP
  4. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #4
    This might be because, last time I checked, Flash doesn't allow the loading of anything from a domain other than where it's hosted.
     
    sketch, Aug 14, 2006 IP
  5. slickricky

    slickricky Active Member

    Messages:
    240
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #5
    That's not true. I load images from my server to files on my desktop all the time.
     
    slickricky, Aug 15, 2006 IP
  6. Buga

    Buga Guest

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Flash 9 introduced: AllowNetworking option
    When it's set to never, like MySpace has done for all flash files, geturl and loading remotely no longer works. Bad for widgets.
     
    Buga, Aug 15, 2006 IP