Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-30-2007, 07:36 PM   #1
mwiley43
Registered User
 
Join Date: Aug 2006
Posts: 16
Default Has anyone made a scroll bar for a dynamic amount of content?

I have a scroll bar in place using actionscript. The layer being masked contains a movieclip which loads up a dynamic amount of content. The problem is the movie clip generating the dynamic content, is being read as having a height of 0 in my scroll bar function, which is causing it not to scroll at all. Does anyone have any idea why?
mwiley43 is offline   Reply With Quote
Old 04-30-2007, 08:40 PM   #2
Paul Ferrie
Scottish and mad fer it!!
 
Paul Ferrie's Avatar
 
Join Date: Jun 2002
Location: uk/scotland/glasgow
Posts: 3,606
Default

Your probably setting the scroll height before your content is loaded into the holder.
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- InnovativeDesigns - Scotflash - About me
Paul Ferrie is offline   Reply With Quote
Old 04-30-2007, 11:51 PM   #3
mwiley43
Registered User
 
Join Date: Aug 2006
Posts: 16
Default

Quote:
Originally Posted by Paul Ferrie View Post
Your probably setting the scroll height before your content is loaded into the holder.
I have a function that controls the enitre scroller, loads up the variables and everything. Inside of the function it looks up the _height of the movie clip. The function is called after the dynamic content is created. In theory that height should be the height of the dynamic content. However, it is as if that line of code is ran before the function is called, like the script runs all built in commands before dynamic content is created when the movie is compiled. Is there any way around this? Should I use a onEnterFrame call?
mwiley43 is offline   Reply With Quote
Old 05-01-2007, 01:11 AM   #4
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,073
Default

Post your .fla?
atomic is offline   Reply With Quote
Old 05-01-2007, 04:16 AM   #5
mwiley43
Registered User
 
Join Date: Aug 2006
Posts: 16
Default

Here it is.
Attached Files
File Type: zip scroller.zip (7.0 KB, 169 views)
mwiley43 is offline   Reply With Quote
Old 05-01-2007, 05:36 AM   #6
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,073
Default

In your first post you reported that the scrollbar wasn't scrolling...

The scrollar works fine for me in the attached .fla, so what's the problem?
atomic is offline   Reply With Quote
Old 05-01-2007, 02:56 PM   #7
Paul Ferrie
Scottish and mad fer it!!
 
Paul Ferrie's Avatar
 
Join Date: Jun 2002
Location: uk/scotland/glasgow
Posts: 3,606
Default

Quote:
Originally Posted by Paul Ferrie View Post
Your probably setting the scroll height before your content is loaded into the holder.
Either will work fine though if using onenterFrame mind and delete it after the content has loaded/been set.
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- InnovativeDesigns - Scotflash - About me
Paul Ferrie is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic content & Scrollbar tsj4 ActionScript 2.0 2 06-02-2008 03:37 PM
scroll bar with dynamic text Denoteone ActionScript 2.0 1 04-26-2007 03:23 AM
Creating a scroll bar for a series of dynamic images? mwiley43 Flash 8 General Questions 0 04-18-2007 06:50 PM
Auto scroll for Dynamic Textfield content loaded from XML ? Peter Cherry ActionScript 2.0 1 10-20-2006 01:17 PM
Showing and Hiding a scrollbar if there is no content to scroll? timmyt ActionScript 2.0 2 12-18-2005 11:56 PM


All times are GMT. The time now is 07:08 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.