A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 31 of 31

Thread: setting alpha on a loader

  1. #21
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    What happens when you roll over the 6th button?

  2. #22
    Senior Member
    Join Date
    Mar 2001
    Location
    Breda, The Netherlands
    Posts
    522
    The next buttons do display a transparent image. But whether you click or roll over the first five, nothing happens
    // Kind regards, Danielle.
    // specs: Flash CS5.5 | Flash Builder 4.6 | win xp pro

  3. #23
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    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.

  4. #24
    Senior Member
    Join Date
    Mar 2001
    Location
    Breda, The Netherlands
    Posts
    522
    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

  5. #25
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    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.

  6. #26
    Senior Member
    Join Date
    Mar 2001
    Location
    Breda, The Netherlands
    Posts
    522
    OK, sorry about that. Will upload tomorrow.
    // Kind regards, Danielle.
    // specs: Flash CS5.5 | Flash Builder 4.6 | win xp pro

  7. #27
    Senior Member
    Join Date
    Mar 2001
    Location
    Breda, The Netherlands
    Posts
    522
    Here is the scaled down project.
    Attached Files Attached Files
    // Kind regards, Danielle.
    // specs: Flash CS5.5 | Flash Builder 4.6 | win xp pro

  8. #28
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    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.

  9. #29
    Senior Member
    Join Date
    Mar 2001
    Location
    Breda, The Netherlands
    Posts
    522
    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.
    Attached Images Attached Images
    // Kind regards, Danielle.
    // specs: Flash CS5.5 | Flash Builder 4.6 | win xp pro

  10. #30
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    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.

  11. #31
    Senior Member
    Join Date
    Mar 2001
    Location
    Breda, The Netherlands
    Posts
    522
    Quote Originally Posted by jAQUAN View Post
    Well son of a biscuit, you're right.
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center