scrollinig content

  • tedddd
  • Born
  • Born
  • tedddd
  • Posts: 4

Post 3+ Months Ago

Hi.

I'm using CS3 and i wrote in actionscript 3 an .as file that sends a request to a server and gets as a response an xml file. After loading the xml i create dynamically i big number of questions each one of them with some possible choices for the user to select(Radio buttons). The problem is that i have about 40 questions with about 120 radio buttons to show the user but only 5 fit the screen and the others are not visible. Can anyone give me a help using scrollpane or something else so i can give the user a way to see all of the questions and radio buttons available?

Thanx
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23455
  • Loc: Woodbridge VA

Post 3+ Months Ago

http://www.google.com/#hl=en&q=as3+scro ... x3zSOf0XOU
  • tedddd
  • Born
  • Born
  • tedddd
  • Posts: 4

Post 3+ Months Ago

My problem is that i don't know how to add the radio buttons on a movie clip or an elsewhere to say to the scrollbar to scroll that something and with it the radiobuttons.

Could you give me an example? Thanks a lot.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23455
  • Loc: Woodbridge VA

Post 3+ Months Ago

Here's one I made at my company site. It doesn't include radio buttons, but the concept is the same as far as using the scroll. Basically it's using a mask and the content below the mask will scroll into view with the scrollbar. This particular scrollbar even works with the mousewheel.

working demo

files used in demo

The scroll uses the Scrollbar.as class located in the root, and several classes located in the caurina folder. Those all must be included with the directory structure intact.

To see the content that is scrolled, open alaronMap3-e.fla
Open the newsText movie clip from the library to view the content area.
Unhide the listMask layer to see the mask.

//as an aside, this is also a really awesome AS3 scroll, but I think would be much too complicated for your intent as it runs primarily all on classes.http://www.warmforestflash.com/blog/200 ... resizable/
  • tedddd
  • Born
  • Born
  • tedddd
  • Posts: 4

Post 3+ Months Ago

I only got alaronMap3-e.swf, not the .fla
It saw the example. Looks like really great and serious work.
I will try looking more deep into it.
Thank you so much.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23455
  • Loc: Woodbridge VA

Post 3+ Months Ago

My apologies. Forgot to include the FLA in the zip. Here it is
htp://www.alaron-nuclear.com/alaronMap3-e.fla

//fyi, I didn't write the AS classes. I found that scroll bar in a tute somewhere and just implemented it into my site.
  • tedddd
  • Born
  • Born
  • tedddd
  • Posts: 4

Post 3+ Months Ago

Just got it. I will look into it. Thanks again!

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 14 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.