Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrolling dynamic multi-text-field XML driven movieClip 2

Status
Not open for further replies.

a2p2

Programmer
Aug 8, 2003
5
CA
I have created a movie clip which contains 3 dynamic text fields (title, body, date). Together this group of fields represents one item of content. These fields are populated from an XML file which results in multiple items of content. This is accomplished by iterating through the XML and for each node uses the attachMovie function to stick another instance of the clip on the stage for each group of content. Note that the body text fields are dynamically sized to fit the length of the content.

The problem is the overall height of the clip is larger than the stage, as a result I am attempting to create a scrolling mechanism without luck. I have tried using the scrollpane comp. in MX and tried to do some masking but regardless of which method I try the movieClip is displayed with out respecting the bounds of the pane/mask and is not controllable by the scroll buttons.

Does someone have an idea on how to do this? If so your help would be appreciated.
 
Just a thought...

In regards to the use of the scrollpane and "masking" problems, and assuming you have the latest browser player plugins, have you tested your movie online? If it works online, it would probably mean that you have to upgrade your test & standalone players, for it to work when testing this in the application itself, or locally in the standalone player.

Regards,

cubalibre2.gif

I'm Bill Watson's biggest fan!
 
if the text is showing outside of the pane, that is because you didnt embed the fonts in the textfields

 
If I embed the fonts there is no change in the behaviour of the scroll pane. Note that if I put some default text in the fields (as opposed to via actionscript) the text will show up in the pane. I have also tried fieldName.embedFonts = true

The pane is recognizing the movie clip because the horizontal scrollbar appears and the dynamic text appears even though the clip is not on the stage.

Could this have something to do with load order? i.e. the scrollpane binds to my clip before the fields get populated at run time?

Does anyone have an example of something similar to this?

Any further suggestions are greatly appreciated...

Thanks again!
 
just guessing but

sp.refreshPane();

as the final line of code in the load sequence ?
 
So is the content movie clip itself still out of bounds? Or is it just a text not appearing problem?
Have you or not ever upgraded your test and standalone players?

Regards,

cubalibre2.gif

I'm Bill Watson's biggest fan!
 
BW, I tried the refresh but it didn't work, however it was a good thought. I also tried loading the clip as an SWF into the pane to no avail...

What would be the best way to do this w/o using the sp?

any ideas are appreciated - thanks!

 
oldnewbie,
The clip appears completely outside of the pane... and doesn't respond to the scroll bar. Note too that the horizontal scroll bar appears as expected, but the vertical does not, suggesting it is not recognizing the post data load height. Also the scroll bar when clicked responds "slowly".

Everything works properly if I do a test with one instance of a single dyn-text field (not multiple using attachmovie in a loop) text loaded from AS (not XML) w/ fonts embedded.

All players are up-to-date.

 
Then it must be XML related, of which I know nothing! Sorry!

Regards,

cubalibre2.gif

I'm Bill Watson's biggest fan!
 
***Could this have something to do with load order? i.e. the scrollpane binds to my clip before the fields get populated at run time?


i suspect this is where the problem lies.

however i think a better solution may be muzaks extension to the scrollpane class. have at look at downloads here


scrollpane 1 and 2
 
Thanks BW this looks like it should do the job if I can fingure it out!

Thanks again!

 
How does one upgrade the stand-alone and test players? I searched Flash Online Help, but no joy.

Ron
 
Ahh -- and that's where the player for WinCE is hiding, too! Thanks! Have a star!

Ron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top