Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. AS3/Flash prgrmmr needs html help

AS3/Flash prgrmmr needs html help

Scheduled Pinned Locked Moved Web Development
adobequestionjavascripthtmldatabase
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Force Code
    wrote on last edited by
    #1

    Adobe provides these html files that serve as templates in which you embed your shockwave (SWF) files. The html files will have javascript sections that do things like check for the correct version of the flash player. In this html file, in both the html and javascript sections of it, you'll find constructions like the following: <param name="movie" value="${swf}.swf" /> <title>${title}</title> width="${width}" height="${height}" The ${...} - what is that? I was thinking it was referencing query string parameters from the URL, but then I read that html can't access query string params, only javascript can. Is it just pseudocode, indicating you should specify a title at a given point (or width or whatever). Is it true you can't access query string parameters with pure HTML? Is it reasonable to assume that javascript will be enabled on virtually any browser your app is running on. (Couldn't get these questions answered in the flash forums and their culture is very different - very protective of any info they have.)

    J 1 Reply Last reply
    0
    • F Force Code

      Adobe provides these html files that serve as templates in which you embed your shockwave (SWF) files. The html files will have javascript sections that do things like check for the correct version of the flash player. In this html file, in both the html and javascript sections of it, you'll find constructions like the following: <param name="movie" value="${swf}.swf" /> <title>${title}</title> width="${width}" height="${height}" The ${...} - what is that? I was thinking it was referencing query string parameters from the URL, but then I read that html can't access query string params, only javascript can. Is it just pseudocode, indicating you should specify a title at a given point (or width or whatever). Is it true you can't access query string parameters with pure HTML? Is it reasonable to assume that javascript will be enabled on virtually any browser your app is running on. (Couldn't get these questions answered in the flash forums and their culture is very different - very protective of any info they have.)

      J Offline
      J Offline
      Johnny
      wrote on last edited by
      #2

      HTML is just a markup description language, it is not 'active' in anyway and it's not possible to manipulate query parameters (for this you would either need to use JavaScript, or some server-side processing) Given that you are looking at displaying a SWF file it's reasonable to assume that JavaScript is enabled. In other contexts this may not be true. I would imagine that the ${swf} elements are just placeholders for you to replace with a text editor.

      F 1 Reply Last reply
      0
      • J Johnny

        HTML is just a markup description language, it is not 'active' in anyway and it's not possible to manipulate query parameters (for this you would either need to use JavaScript, or some server-side processing) Given that you are looking at displaying a SWF file it's reasonable to assume that JavaScript is enabled. In other contexts this may not be true. I would imagine that the ${swf} elements are just placeholders for you to replace with a text editor.

        F Offline
        F Offline
        Force Code
        wrote on last edited by
        #3

        Thank you very much.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups