flash widget question

Hi guys,

Please pull up this link, http://www.michelin.com/

On the right side, do you see the saving meter?

Look like they did it using flash.

They are sending the xml data to this flash component. It is displaying beautifully.
Do you know of free swf component like this one so that I can use it my html page please.

Thanks
grchapAsked:
Who is Participating?
 
dgofmanCommented:
As I mention before faster to write code instead looking for URL on the web.

I can five you idea but you have to write end logic your self or open a new thread

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
				width="100%" height="100%" backgroundColor="#ffffff" creationComplete="onComplete()">
	<mx:Script> 
		<![CDATA[ 
			import mx.collections.ArrayCollection;
			import mx.core.Container;
			import mx.effects.Move;
			import mx.events.EffectEvent;

			[Bindable] private var initValues:ArrayCollection = new ArrayCollection([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);

			private var oldValues:ArrayCollection;
			private var newValues:ArrayCollection;
			private var moveEffects:Array;

			private function onComplete():void{
				oldValues = new ArrayCollection(initValues.source.slice());
				random();
				update();
			}
			
			public function random():void{
				var source:Array = oldValues.source.slice();
				for(var i:uint = 4; i < oldValues.length; i++){
					source[i] = Math.round(Math.random() * 9);
				}
				newValues = new ArrayCollection(source);
			}

			public function update():void{
				moveEffects = [];
				for(var i:uint = 0; i < oldValues.length; i++){
					if(oldValues.getItemAt(i) != newValues.getItemAt(i)){
						var target:Container = box[i];
						var label:Label = updateLabel[i];
						label.text = new String(newValues.getItemAt(i));

						var move:Move = new Move(target);
						move.yTo = 0 - (target.height - bg.height);
						move.addEventListener(EffectEvent.EFFECT_END, onEndEffect);
						moveEffects.push(move);
					}
				}

				for(var m:uint = 0; m < moveEffects.length; m++){
					moveEffects[m].play();
				}
			}

			private function onEndEffect(event:EffectEvent):void{
				var move:Move = event.target as Move;
				move.removeEventListener(EffectEvent.EFFECT_END, onEndEffect);
				move.end();
				moveEffects.pop();

				var target:Container = move.target as Container;
				target.y = 0;
				
				if(moveEffects.length == 0){
					oldValues = new ArrayCollection(newValues.source.slice());
					random();
					update();
				}
			}
		]]> 
	</mx:Script> 
	<mx:HBox id="bg" width="{initValues.length * 22}" height="20" backgroundColor="#cccccc" horizontalGap="2">
		<mx:Repeater id="rep" dataProvider="{initValues}">
			<mx:VBox id="box" width="20" backgroundColor="#666666" horizontalAlign="center">
				<mx:Label text="{rep.currentItem}" color="#ffffff" fontWeight="bold" textAlign="center"/>
				<mx:Label id="updateLabel" color="#ffffff" fontWeight="bold" textAlign="center"/>
			</mx:VBox>
		</mx:Repeater>
	</mx:HBox>
</mx:Application>

Open in new window

0
 
grchapAuthor Commented:
Could you please respond?
0
 
dgofmanCommented:
You can create your own its not difficult
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
grchapAuthor Commented:
Can you point me to a URL where this is explained please?
0
 
dgofmanCommented:
Thanks Dhaest,
I don't know why grchap didn't add any comments for that perfect solution.
0
 
DhaestCommented:
I've requested that this question be closed as follows:

Accepted answer: 500 points for dgofman's comment http:/Q_26932770.html#35430166

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
 
dgofmanCommented:
Will I get points for my answer?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.