topical media & game development

talk show tell print

#graph-scene.mx

#graph-scene.mx [swf] flex


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:fc="http://www.adobe.com/2006/fc">
          
  
          
          <mx:HSlider x="403" y="14" width="114" id="repulsion" value="0.5" minimum="0.0" maximum="1.5" liveDragging="true"/>
  
          <fc:SpringGraph id="springgraph" width="100%" bottom="0" top="40" 
                  repulsionFactor="{repulsion.value}" 
                  xmlNames="[scene,connect,source,dest]">
                  <fc:dataProvider>
                          <mx:XML xmlns="">
                              <scenes>
                                <scene id="IntroMovie"/>
                                <scene id="Revolver"/>
                                <scene id="Uzi"/>
                                <scene id="Shotgun"/>
                                <scene id="Endless"/>
                                <scene id="Return"/>
                                <connect source="IntroMovie" dest="Revolver"/>
                    <connect source="IntroMovie" dest="Uzi"/>
                    <connect source="IntroMovie" dest="Shotgun"/>
                    <connect source="IntroMovie" dest="Endless"/>
                    <connect source="Endless" dest="Return"/>
                    <connect source="Return" dest="IntroMovie"/>
                  </scenes>
                                  
    
                          </mx:XML>
                  </fc:dataProvider>
                  
                  <fc:itemRenderer>
                          <mx:Component>
                                  <mx:Label fontSize="14" text="{data.data.@id}" color="#ffffff"/>                                        
                          </mx:Component>
                  </fc:itemRenderer>
          </fc:SpringGraph>
  
          
  </mx:Application>
  


(C) Æliens 27/08/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.