Can you zip and attach your project? I'd be interested to see if I get the same results. There's really no sensible reason this should be happening. The code could be better but it should still act the same way (good or bad) across the board.
Thanks a lot for all the help and time you are investing!
Any comments to improve my programming are very welcome This is my first OOP project so I'm learning.
The piece consists of two other parts. There are no problems there. The code for those parts is also in the fla. Please ignore those parts. The function I included above is in the part with stacked portrait stuff in the comment.
Please uncomment:
import Slice;
import S_button;
import P_video;
I didn't include those classes.
Hope you can make some sense of it
Thanks again.
Last edited by Danielle R; 09-01-2011 at 06:34 AM.
// Kind regards, Danielle.
// specs: Flash CS5.5 | Flash Builder 4.6 | win xp pro
Sorry but excluding those classes and image assets causes too many errors for me to test with. You'll have to provide the whole project folder or a reduced version of it for me to test.
It's working as expected for me aside from the first button. You are assembling your file name based on the value of your for loop iterant, i, which starts out at 0. You don't have a file named day_0.jpg so its failing. Your output panel in flash will indicate that with an IOError.
So you've removed the empty text field from the Portrait class and the roll over buttons still work on all portraits? The file I send you was one that was also working with me. It works because it has the empty fields in the class. So please double check to see if no text field is added to that class.
I've been working on the portraits since my zip upload from last week. So I don't get that problem here. I'll attach it so you can try once more without that error.
Thanks again for your time and help.
// Kind regards, Danielle.
// specs: Flash CS5.5 | Flash Builder 4.6 | win xp pro
Well son of a biscuit, you're right. There appears to be some limitation either in number of Loaders or number of connections. I can't work on this right now but you might look into sequencing the load so one doesn't start until the previous one finishes. I know that's not attractive but its all I can offer until I get more time.
Haha, I told you it was unbelievable
As for the loading bit. The alpha is added after the load finishes because it's in the load complete handle. I wouldn't know of any other way of checking this...
But it appears that it will only work when some item is inside the Portrait object so that indeed points to a load problem. I'm already very happy with the workaround we found (the empty text field). I would of course like to know why this happens but I'm out of my depth here. I've already spend many days trying to work this out and get it working... So when you have the time and feel like looking into it, great. Otherwise I'll just use my text field workaround.
Many thanks.
// Kind regards, Danielle.
// specs: Flash CS5.5 | Flash Builder 4.6 | win xp pro