Reputation: 21
I am a beginner in Flex. For my appln, I wanted to have the progress bar, but not the default that Flex Framework provides.
I wanted to have a circular loading "progressbar" that would move in circular fashion before completing one complete revolution to 100%.
Can I do that in Flex 3 ? If yes, how ?
Thanks in advance.
Upvotes: 1
Views: 4336
Reputation: 8532
You should use an already created component.
Here is a circular progress bar component created using Degrafa. http://axelscript.com/wp-content/Examples/CircularProgress/CircularProgress.html
You can see the code at http://axelscript.com/wp-content/Examples/CircularProgress/srcview/index.html
The code is pretty simple , and as the component is shipped as a mxml component, integration should be very simple.
All you need is the degrafa.swc to be in the lib folder of your project for this to work.
Upvotes: 0
Reputation: 6485
Something like this? http://activeden.net/item/as3-circle-preloader-circular-progress-bar/88763
Use preloader or extend the progress bar component in Flex
You can have a circle component and a hidden progress bar in it. And for each progress bar event, you can paint a block on the circle.
Upvotes: 1
Reputation: 12847
Creating your own custom preloader is easy enough. You just need to set the new preloader class in the 'preloader' property of the Application tag.
From there, your class (which should extend ProgressBar) can use simple Actiosncript to animation/draw or you can use a swf animation (done with Flash CS). There are several good examples of this on google.
Upvotes: 2
Reputation: 176
there is a property in Application "preloader". try setting your own SWC file to this property.
Upvotes: 0