dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: HTML to Flash

  1. #1
    Senior Member vevmesteren's Avatar
    Join Date
    Sep 2001
    Location
    Montréal, Québec
    Posts
    566

    HTML to Flash

    or rather Cold Fusion to Flash,

    I have a link to an mp3 file in a list. When I clicked, I want the mp3 file open up in a Flash that I allready have prepared. All that Flash would contain would be loadSound(varFromHTML,true) and start to play the sound...all pretty easy one might persume, but here the big ( ? ) how do I send variables from a basic a href to the swf file? I am sure it is possible. Tried searching the forum first, but the search timed out...nodge nodge wink wink say no moa say no moa. Anyhow...anyone got an answer for me?

    V

    and by the way, FK admins, those new banners of yours anoy the **** out of me. I know, I know, you need to make money and all that, I respect that. But those banners (Anfy and Microsoft) are just TOO MUCH. Poor those users who are stuck on 800*600 their screen will be invaded by those things...
    it is your mind that decides - it is with your mind that you fly


    vevmedia

  2. #2
    Member
    Join Date
    Nov 2002
    Location
    at the corner of flotsam & jetsam, just within the walls of reality
    Posts
    91
    maybe i'm missing something, but sounds like your link is to a *.swf that contains the sound file? have you tried just linking to the swf, which would then play the song?

  3. #3
    Senior Member vevmesteren's Avatar
    Join Date
    Sep 2001
    Location
    Montréal, Québec
    Posts
    566
    you are missing it, or rather I was not really clear. See I want to link to a swf, quite correctly, BUT the sound file that is loaded will be different every time, depending on the variable defined in the URL. The variable would for example be player.cfm?soundFile=sample1.mp3. On the player.cfm I would place the player.swf that in turn would load in the sample1.mp3 and play it. I just need to find a way for the swf to get it hands on that variable defined in the URL
    it is your mind that decides - it is with your mind that you fly


    vevmedia

  4. #4
    Senior Member vevmesteren's Avatar
    Join Date
    Sep 2001
    Location
    Montréal, Québec
    Posts
    566
    solved the problemt, and let me tewll ya, I am having a lauch attack off happiness. So in case somone else runs into a problem like the mine, here's what I did to solve it:

    When the a href is clicked I set a sessionvariable, the variable defines which file to drag out of the database and returns it through a CFC I wrote. I am happy as happy can be...

    V
    it is your mind that decides - it is with your mind that you fly


    vevmedia

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center