dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Preloader with alpha gradient

  1. #1
    Senior Member
    Join Date
    May 2001
    Posts
    121

    Post

    actionscript5 people,
    I need a hand. I am trying to create a preload which is not simply an _xscale slide. As the percentages start loading in, I would like to program the graphic object, (a large arrow) so that the alpha slides from 0% to 100% in correlation with the typography which is updating the percentages. I understand how to run the type percentage, but am having trouble with the alpha.

    Any solutions?

    You can email me directly if you want, lea@thisstudio.

    Thanks!

    FRAME 1 of Root:
    loadPercent = "0%";

  2. #2
    Member
    Join Date
    Apr 2000
    Posts
    44
    so if you have a number from 1 to 100 (like a percentage) why not just apply it to the _alpha of the clip?

  3. #3
    Senior Member
    Join Date
    May 2001
    Posts
    121

    tried

    Nomad,
    I tried this. You would add this to the instance? I am not sure exactly how?

    Shannon

  4. #4

    _root.LargeArrow._alpha=PercentageVariable

    I read the first post and assumed you had tried the obvious. Read the third post and wonder what it is you've done. So just to cover all basses I will tell you what I know from the begining.

    Somewhere you have a variable that counts from 1 to 100 and returns the value to a text string. And you know that this value could be used as well to alter the Alpha chanel of another MC.

    Great.

    Inside the preloader loop, anywhere after the line of code where the percentage variable is counted you can insert a line:

    _root.LargeArrow._alpha=PercentageVariable

    (This target assumes your MC, LargeArrow, is on the root timeline and that it is named LargeArrow.)

  5. #5
    Senior Member
    Join Date
    May 2001
    Posts
    121

    Angry

    Thanks Mani.

    I will try it.

    Do you know why when I test this I have to hit Control Enter to see the running percentages?

    This is all sort of new to me,

    Lea

  6. #6
    Ithink I know what your talking abou when you say "running percentages"

    To test a movie in the Flash Editor Environment I hit "Apple Return" (I use a Mac) and once in that Test Movie Environment I can hit "Apple Return" again to simulate the SWF being loaded over whatever "connection speed" that is check-marked in the "Debug" menu.
    This is how I test Preloaders seeing as otherwise Flash runs right through the prealoader cause it doesn't need to wait for anything to load.

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