Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Scroll Position

    I have a working listener on a mock scroll bar, but I get results that are not
    correct. I was hoping that somebody knows how I could get the position of a
    scroll bar through an actionscript alert or by binding it to a coldfusion form.


    As shown in the code below, I am using "vScroll.vPosition" to return the
    position.

    The code below is ready to run just copy and paste onto the server to see my
    problem.

    Thanks for your time.

    <cfform action="anotherpage.cfm" name="form" format="flash" height="750"
    width="300" wmode="transparent" timeout="3600" onload="addScroller();">
    <cfformitem type="script">
    function addScroller(){
    var spListener:Object = Object();
    spListener = function(evt_obj:Object):Void {
    alert("vPosition: "+vScroll.vPosition+" vScrollheight:
    "+vScrollheight.vPosition);
    }
    // Add listener.
    vScroll.addEventListener("scroll", spListener);
    }
    </cfformitem>
    <cfformgroup type="hbox" height="600" id="vScroll">


    <cfformgroup type="vbox" height="1200" id="vScrollheight">

    </cfformgroup>
    </cfformgroup>

    </cfform>

    jedale Guest

  2. Similar Questions and Discussions

    1. page scroll position
      Hi all, I have a datagrid in my asp.net webpage. Datagrid can have lot of rows like more than 300 so the scroll gets enabled for the page to...
    2. Scroll Bar Handle Position - Left?
      Is there a way to have the scroll bar appear on the left side as opposed to the right side for a text area component?
    3. Listbox scroll position?
      Are you trying to have it select an item or just set the scroll property? -Ken "Mike Horton" <mhorton@teknical.com> wrote in message...
    4. scroll menu according to mouse's position
      HI everyone, the website below has a awsome navigation, the way it scrolls up and sown according to mouse's position, I really really want to learn...
    5. setting scroll bar position
      I have a script that places a scrollable text box on the screen with a number of lines of text inside. At the moment it opens the text box with the...
  3. #2

    Default Re: Scroll Position

    Anybody?
    jedale Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139