Professional Web Applications Themes

passing variable from URL to actionscript - Macromedia Flash

Hi all, I've this script in the actionscript !_root.file ? file = "video.flv" : file = _root.file; [cut] I'd like to send the video name from the url using something like player.swf?video=test.flv I know how to pass variable to dynamic text field, but I can't figure this script out.. btw, the script is for a flv player I found here http://www.jeroenwijering.com/upload/flash_flv_player.zip Thanks all, Mirk...

  1. #1

    Default passing variable from URL to actionscript

    Hi all,
    I've this script in the actionscript

    !_root.file ? file = "video.flv" : file = _root.file;
    [cut]

    I'd like to send the video name from the url using something like
    player.swf?video=test.flv

    I know how to pass variable to dynamic text field,
    but I can't figure this script out..

    btw, the script is for a flv player I found here
    http://www.jeroenwijering.com/upload/flash_flv_player.zip

    Thanks all,
    Mirk


    mirk Guest

  2. #2

    Default Re: passing variable from URL to actionscript

    "mirk" <org> wrote in message
    news:f3hNf.42248$bellsouth.net... 

    You're almost there, just replace

    player.swf

    within your html holding page (in both the <object> and <embed> tags) with

    player.swf?file=test.flv
     

    Your actionscript (above) uses the variable name "file" rather than "video",
    that's all, so use file=whatever in your URL.

    h


    h Guest

  3. #3

    Default Re: passing variable from URL to actionscript


    "h" <hathowiem.com> wrote in message news:dumNf.28375 

    Yes! it's working.

    thanks!


    mirk Guest

Similar Threads

  1. How do I obtain a URL variable in actionscript?
    By YogeshM in forum Coldfusion Flash Integration
    Replies: 1
    Last Post: February 25th, 05:32 AM
  2. Passing model data to actionscript function
    By toofless in forum Macromedia Flex General Discussion
    Replies: 3
    Last Post: June 2nd, 03:28 PM
  3. HELP! Variable variables in actionscript.
    By sledgeweb webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 5
    Last Post: January 31st, 03:04 PM
  4. Passing External Value into SWF ActionScript
    By DTNFlashman webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: January 20th, 05:35 PM
  5. Replies: 7
    Last Post: July 17th, 04:54 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139