Need Help | How to call Flash file through JS

Discussion in 'HTML & Website Design' started by amirsalmani, Oct 8, 2008.

  1. #1
    Hi everyone,

    Actually I want to know the JS code which i could use to call a flash file.

    Like www.thewebsol.com, if you will see it in Mozilla you would not be able to see the Flash Header but you could see it in IE or Safari..

    I did remove the some embed code because W3C doesn't verified this code and that code supports Mozilla. So now I want to know that JS code which does verified from w3c and supported by all browser.

    If we could use JS external file would be better.

    Please suggest me the solution.

    Waiting....
     
    amirsalmani, Oct 8, 2008 IP
  2. amirsalmani

    amirsalmani Active Member

    Messages:
    292
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Hi,

    Could anyone please let me know the solution for the same.

    It's related to Java Script and I don't think it's a big task.

    But not getting the exact clue or code for that.

    Waiting.......
     
    amirsalmani, Oct 10, 2008 IP
  3. webdesigners

    webdesigners Banned

    Messages:
    534
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    You can view W3C tutorials to get info abt javascript code to call flash.
     
    webdesigners, Oct 10, 2008 IP
  4. amirsalmani

    amirsalmani Active Member

    Messages:
    292
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Thank you so much for let me know... buddy

    Gonna checking it..:)
     
    amirsalmani, Oct 12, 2008 IP
  5. amirsalmani

    amirsalmani Active Member

    Messages:
    292
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Hello buddy,

    I did'nt find any code on w3c tutorial for call flash.

    Could you please send me the link, where the code or tutorial is ?

    thanks
     
    amirsalmani, Oct 12, 2008 IP
  6. amirsalmani

    amirsalmani Active Member

    Messages:
    292
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    I m still looking for someone to help me out in this case...
     
    amirsalmani, Oct 16, 2008 IP
  7. ASPMachine

    ASPMachine Peon

    Messages:
    723
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Dear amirsalmani!

    Try to replace this object code:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="775" height="160">
    <param name="movie" value="http://www.thewebsol.com/Flash/header1.swf">
    <param name="quality" value="high">
    </object>

    Ok try it and tell me whether is it working or not ?
     
    ASPMachine, Oct 16, 2008 IP
  8. ASPMachine

    ASPMachine Peon

    Messages:
    723
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Dear amirsalmani!
    Try to replace this object code:

    <object classid="clsid :D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="775" height="160">
    <param name="movie" value="http://www.thewebsol.com/Flash/header1.swf">
    <param name="quality" value="high">
    </object>


    Ok try it and tell me whether is it working or not ?
     
    ASPMachine, Oct 16, 2008 IP
  9. amirsalmani

    amirsalmani Active Member

    Messages:
    292
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #9
    Hi,

    Thank you so much for the help, but i knows that code and it's simple HTML
    object call code like this one..

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="526" height="162" title="Rings">
    <param name="movie" value="Flash/Gold.swf" />
    <param name="quality" value="high" />
    <embed src="Flash/Gold.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="526" height="162"></embed>

    </object>

    You've just used the URL to call flash instead of call from server...

    And W3C doesn't verified that code so... I heard that if i we call Flash through JS and it does verified from W3C.

    So i want that code to call flash through JS.

    By the way thank you so much for send me the code and for give time to see my problem and solutions.

    Thanks again..

    Looking forward to JS code for call flash :)
     
    amirsalmani, Oct 16, 2008 IP
  10. ASPMachine

    ASPMachine Peon

    Messages:
    723
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Dear Friend,
    I have another option for you. Follow the following steps:
    1) Save only the flash code to a new html files.
    2) write a javascript which src the new html files within a frame.

    Does this method accept by w3c. If yes follow it.
    Hi friend don't worry for further contact.
    It's my pleaser if i solve your problem.

    Thanks
    ASPMachine
     
    ASPMachine, Oct 16, 2008 IP
  11. higreg7

    higreg7 Peon

    Messages:
    469
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0