Hide object -Show object problem... bug??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Pupi
    Forum Member
    • Dec 2002
    • 7

    Hide object -Show object problem... bug??

    Hi guys:
    i have come across a weird behavior in AMS4. Hopefully someone has a workaround. I have this page were i place pictures (image objects) on top of one another. Of course only the topmost is visible at any time. Then i make them cycle with succesive hide obect, show object commands. The problem is that the very first click on the image, does nothing. After that, the cycle begins and flows smoothly, but the first click after loading the page seems like its null. In other words i have to click on the image twice when i first load the page with the photos but after that everything is fine. Has anyone come across this behavior before?. BTW i have tried refresh, hide object twice before show object, but nothing seems to make the cycle snap as soon as the page is loaded. Help!
    Mark
  • Worm
    Indigo Rose Customer
    • Jul 2002
    • 3971

    #2
    Re: Hide object -Show object problem... bug??

    How are you hiding them? It sounds like you're using a variable that hasn't had a default value set. Once the image is clicked the first time, the variable is being set, hence the next click does what you wanted.

    Pure speculation though...

    Comment

    • Pupi
      Forum Member
      • Dec 2002
      • 7

      #3
      Re: Hide object -Show object problem... bug??

      I hide images with the hide object command followed by show object command for the second image (the one underneath. Something like this:
      On MouseClick
      Page.HideObject(ImageObject2)
      Page.ShowObject(ImageObject2)

      The top image goes down and the bottom image goes up in the stack.

      Comment

      • Pupi
        Forum Member
        • Dec 2002
        • 7

        #4
        Re: Hide object -Show object problem... bug??

        if this were the case. Please show me how to set the variable
        Tnaks in advance
        pupi

        Comment

        • Worm
          Indigo Rose Customer
          • Jul 2002
          • 3971

          #5
          Re: Hide object -Show object problem... bug??

          Here is an example... I did the same as your post, and it works for me here. If this doesn't work, make sure you are on the latest version,

          Get it here.

          Comment

          • Pupi
            Forum Member
            • Dec 2002
            • 7

            #6
            Re: Hide object -Show object problem... bug??

            ok let me try it.
            I'll let you kno how it goes

            Comment

            Working...
            X