Results 1 to 2 of 2

Thread: Variable in .swf's URL

  1. #1
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Variable in .swf's URL

    I wonder if it is possible to do the same sort of thing that gets done in pHp, but for flash:

    File: /player.swf

    I want to call "video1.flv" that is in the same directory, to a video player in that .swf, like so:

    File: /player.swf?v=video1.flv (This will just be embedded in the html/php)

    If there any way to do this in flash? The video1.flv would be in the same directory by the way.

    Quote Originally Posted by Edit:
    Perhaps the same way as YouTube would present a link like http://www.youtube.com/v/TC2xmIbTBBI and it redirects to a video file, but the embed still works.
    Last edited by Moglizorz; 01-03-2008 at 11:52 AM.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    You can do it with a combination PHP + FlashVars.

    Take a look at my post here: http://dynamicdrive.com/forums/showt...27385&p=123272

    Post back with any questions.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •