HELP!...trying to use document.image.src with .swf files...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mool

    #1

    HELP!...trying to use document.image.src with .swf files...

    I'm trying to figure a way to use document.image. src to place either
    ..jpg over a named image (which we know works fine) or Flash .swf
    files...my guess is that you can't...but is there a way to use
    document.write the same way (overwiting a placed graphic) using a
    ..swf?...

    Any and all help most appreciated!!
  • Andrew Thompson

    #2
    Re: HELP!...trying to use document.image. src with .swf files...

    On Sat, 10 Jul 2004 05:56:17 -0400, Mool wrote:
    [color=blue]
    > I'm trying to figure a way to use document.image. src to place either
    > .jpg over a named image (which we know works fine) or Flash .swf
    > files...my guess is that you can't...but is there a way to use
    > document.write the same way (overwiting a placed graphic) using a
    > .swf?...[/color]

    I do not know if what you ask is possible, I will
    leaves that to others. OTOH I will point out you
    can have the .SWF another way.

    Put two <div> elements in the same place, one
    containing the image, the other the .SWF. Set
    the swf div invisible, if you need it, make it
    visible and the img div disappear.

    HTH

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology

    Comment

    • Mool

      #3
      Re: HELP!...trying to use document.image. src with .swf files...

      Interesting idea...but it would be for more than just two
      elements...nume rous swfs and pngs...but I guess I could visability on
      each one...

      Thanks!

      On Sat, 10 Jul 2004 11:18:31 GMT, Andrew Thompson
      <SeeMySites@www .invalid> wrote:
      [color=blue]
      >On Sat, 10 Jul 2004 05:56:17 -0400, Mool wrote:
      >[color=green]
      >> I'm trying to figure a way to use document.image. src to place either
      >> .jpg over a named image (which we know works fine) or Flash .swf
      >> files...my guess is that you can't...but is there a way to use
      >> document.write the same way (overwiting a placed graphic) using a
      >> .swf?...[/color]
      >
      >I do not know if what you ask is possible, I will
      >leaves that to others. OTOH I will point out you
      >can have the .SWF another way.
      >
      >Put two <div> elements in the same place, one
      >containing the image, the other the .SWF. Set
      >the swf div invisible, if you need it, make it
      >visible and the img div disappear.
      >
      >HTH[/color]

      Comment

      • Andrew Thompson

        #4
        Re: HELP!...trying to use document.image. src with .swf files...

        On Sat, 10 Jul 2004 08:15:48 -0400, Mool wrote:
        [color=blue]
        > Interesting idea...but it would be for more than just two
        > elements...nume rous swfs and pngs...but I guess I could visability on
        > each one...[/color]

        What I would recommend instead of 'numerous'
        is 'one for each type' perhaps..

        You can use one for the images and do the
        document.img.sr c for each image in turn.
        The 'flash' div might(?) be able to handle
        the .swf's the same way.

        N.B. to work correctly, you need to spell
        it 'visible', no 'a'.

        There is also a 'gotcha' in that the opposite
        is 'hidden', rather than the more consistent
        'invisible'. ;-)

        --
        Andrew Thompson
        http://www.PhySci.org/ Open-source software suite
        http://www.PhySci.org/codes/ Web & IT Help
        http://www.1point1C.org/ Science & Technology

        Comment

        Working...