PDA

View Full Version : ScrollPane duplicates contents?


cmbarsotti
02-19-2004, 09:49 PM
I'm using Flash MX for this project and have an issue with a scrollPane componant.

I have a movieClip called mcLinksHolder -- it's not on stage -- I have a clip ID set in the library.

Inside mcLinksHolder I have an mc called mcLinks. (I read an XML doc) and duplicate mcLinks for each link setting an image, title field, paragraph field a URL field and an email field. The URL and Email fields have .url = true and are underlined. Then I stack these mcLinks on top of each other.

When this is finished I set the mcScrollPane contents to mcLinksHolder, refresh, etc.

Everything works great, the links are active the pane scrolls, etc.

BUT

(And I hope I can explain this) When I then scroll all the way down to, say, the sixth or seventh mcLinks I can get a hyperlink finger over the body copy (which is NOT set to url=true) If I click it it opens the fifth (or third) URL in my scrollPane.

It's as if there are 2 mcLinkHolders one on top of another in the _x but way off on the _y and the mcLinksHolder behind scrolls when the mcLinksHolder in front scrolls.

In debug mode I listed objects and only see mcLinksHolder once.
To view the problem

www.chrisdahlquist.com

Click CD (Chris Dahlquist) in the main nav
Click LN (Links) from the sub nav

Scroll down moving your mouse along the left edge of the paragraphs (In line with the viewable links) -- currently there are no email addresses, only URLs --

If you ANY thoughts I need to hear them, I'm open to a solution but will welcome a work-around, or trick. Let me know if the chunk of code would help.

Thank you for reading this long issue.

CyanBlue
02-20-2004, 11:05 AM
Hey, cmbarsotti... ;)

I suggest you to post some sample that somebody can work on it to find out where the problem is... ;)

asymmetrik
04-27-2005, 08:18 PM
howdy.

i checked your site and it seems you fixed the problem. How'd you end up doing it because i'm experiencing the same problem in MX 2004 (except I'm not using XML.)

i've got a ScrollPane component on the stage and the contentPath parameter pointing to a MC in the Library.

the MC contains all the info (pictures, buttons, static text, and static text with URLs).

it loads fine, but when i use the scroll bar, i'm noticing the "hyperlink finger" over areas that i've already scrolled past...

thanks for your (or anyone else's) solution.

cmbarsotti
04-27-2005, 08:29 PM
I did fix it, that was a while ago. I'm sorry I usually try to post the solution when I come across it. I'll try to take a look tonight when I get home.

asymmetrik
04-28-2005, 03:56 AM
Great. Thanks in advance if you could post your solutions.

cmbarsotti
04-30-2005, 03:32 PM
I’m afraid I owe you an apology. I went through my script and some older archived versions and I don’t see anything reminding me of the solution. About all I can tell you is that I did that flash file in version 6, not 7, and may have been a component bug. I can’t remember if it was a bug or if I was doing something wrong. Something tells me though that it had to do with my lack of refreshPane calls. I see a number of them in my script and a few are commented out making me think I overloaded with refreshPane calls then eliminated them until it broke again.

Sorry I couldn’t be better help.

asymmetrik
05-01-2005, 03:36 AM
hey, no problem. thank you for taking a look and i'm glad you finally got it working. i'll keep hacking and see what i can come up with.