Permalink
Browse files

Creation du depot github

  • Loading branch information...
unknown unknown
unknown authored and unknown committed Dec 26, 2010
0 parents commit 45bbaf673fb2e14207f3b4f590c6c83a279bdc4d
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<!-- Output SWF options -->
<output>
<movie disabled="False" />
<movie input="" />
<movie path="bin\Dgraphe.swf" />
<movie fps="20" />
<movie width="800" />
<movie height="600" />
<movie version="10" />
<movie background="#FFFFFF" />
</output>
<!-- Other classes to be compiled into your SWF -->
<classpaths>
<class path="src" />
</classpaths>
<!-- Build options -->
<build>
<option accessible="False" />
<option allowSourcePathOverlap="False" />
<option benchmark="False" />
<option es="False" />
<option locale="" />
<option loadConfig="" />
<option optimize="True" />
<option showActionScriptWarnings="True" />
<option showBindingWarnings="True" />
<option showDeprecationWarnings="True" />
<option showUnusedTypeSelectorWarnings="True" />
<option strict="True" />
<option useNetwork="True" />
<option useResourceBundleMetadata="True" />
<option warnings="True" />
<option verboseStackTraces="False" />
<option linkReport="" />
<option loadExterns="" />
<option staticLinkRSL="True" />
<option additional="" />
<option compilerConstants="" />
<option customSDK="" />
</build>
<!-- SWC Include Libraries -->
<includeLibraries>
<!-- example: <element path="..." /> -->
</includeLibraries>
<!-- SWC Libraries -->
<libraryPaths>
<!-- example: <element path="..." /> -->
</libraryPaths>
<!-- External Libraries -->
<externalLibraryPaths>
<!-- example: <element path="..." /> -->
</externalLibraryPaths>
<!-- Runtime Shared Libraries -->
<rslPaths>
<!-- example: <element path="..." /> -->
</rslPaths>
<!-- Intrinsic Libraries -->
<intrinsics>
<!-- example: <element path="..." /> -->
</intrinsics>
<!-- Assets to embed into the output SWF -->
<library>
<!-- example: <asset path="..." id="..." update="..." glyphs="..." mode="..." place="..." sharepoint="..." /> -->
</library>
<!-- Class files to compile (other referenced classes will automatically be included) -->
<compileTargets>
<compile path="src\Main.as" />
</compileTargets>
<!-- Paths to exclude from the Project Explorer tree -->
<hiddenPaths>
<!-- example: <hidden path="..." /> -->
</hiddenPaths>
<!-- Executed before build -->
<preBuildCommand />
<!-- Executed after build -->
<postBuildCommand alwaysRun="False" />
<!-- Other project options -->
<options>
<option showHiddenPaths="False" />
<option testMovie="ExternalPlayer" />
</options>
</project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,40 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Dgraphe</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<script src="js/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
var flashvars = {
};
var params = {
menu: "false",
scale: "noScale",
allowFullscreen: "true",
allowScriptAccess: "always",
bgcolor: "#FFFFFF"
};
var attributes = {
id:"Dgraphe"
};
swfobject.embedSWF("Dgraphe.swf", "altContent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
<style>
html, body { height:100%; }
body { margin:0; }
</style>
</head>
<body>
<div id="altContent">
<h1>Dgraphe</h1>
<p>Alternative content</p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img
src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
alt="Get Adobe Flash player" /></a></p>
</div>
</body>
</html>

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!--This Adobe Flex compiler configuration file was generated by a tool.-->
<!--Any modifications you make may be lost.-->
<flex-config>
<target-player>10.0.0</target-player>
<compiler>
<define>
<name>CONFIG::debug</name>
<value>true</value>
</define>
<define>
<name>CONFIG::release</name>
<value>false</value>
</define>
<define>
<name>CONFIG::timeStamp</name>
<value>'09/11/2010'</value>
</define>
<source-path append="true">
<path-element>C:\Documents and Settings\Neamar\Mes documents\Sources\DGraphe\src</path-element>
<path-element>C:\Documents and Settings\Neamar\Mes documents\Sources\Global</path-element>
<path-element>E:\Program Files\FlashDevelop\Library\AS3\classes</path-element>
</source-path>
</compiler>
<file-specs>
<path-element>C:\Documents and Settings\Neamar\Mes documents\Sources\DGraphe\src\Main.as</path-element>
</file-specs>
<default-background-color>#FFFFFF</default-background-color>
<default-frame-rate>20</default-frame-rate>
<default-size>
<width>800</width>
<height>600</height>
</default-size>
</flex-config>
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!--This Adobe Flex compiler configuration file was generated by a tool.-->
<!--Any modifications you make may be lost.-->
<flex-config>
<target-player>10.0.0</target-player>
<compiler>
<define>
<name>CONFIG::debug</name>
<value>true</value>
</define>
<define>
<name>CONFIG::release</name>
<value>false</value>
</define>
<define>
<name>CONFIG::timeStamp</name>
<value>'09/11/2010'</value>
</define>
<source-path append="true">
<path-element>C:\Documents and Settings\Neamar\Mes documents\Sources\DGraphe\src</path-element>
<path-element>C:\Documents and Settings\Neamar\Mes documents\Sources\Global</path-element>
<path-element>E:\Program Files\FlashDevelop\Library\AS3\classes</path-element>
</source-path>
</compiler>
<file-specs>
<path-element>C:\Documents and Settings\Neamar\Mes documents\Sources\DGraphe\src\Main.as</path-element>
</file-specs>
<default-background-color>#FFFFFF</default-background-color>
<default-frame-rate>20</default-frame-rate>
<default-size>
<width>800</width>
<height>600</height>
</default-size>
</flex-config>
@@ -0,0 +1,50 @@
package
{
import flash.display.DisplayObject;
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
/**
* ...
* @author Neamar
*/
public class HUD extends Sprite
{
private static var Container:Sprite = new Sprite();
private static var HUDTxt:TextField = new TextField();
private static var HUDDisplay:DisplayObject = null;
public static function init():Sprite
{
Container.y = Main.HAUTEUR - 15;
HUDTxt.selectable = false;
HUDTxt.autoSize = TextFieldAutoSize.LEFT;
return Container;
}
/**
* Afficher un objet sur le HUD.
* @param Item
*/
public static function display(Item:DisplayObject):void
{
if (HUDDisplay != null && Container.contains(HUDDisplay))
Container.removeChild(HUDDisplay);
Container.addChild(Item);
}
/**
* Afficher du texte HTML sur le HUD.
* @param Texte
*/
public static function showText(Texte:String):void
{
HUDTxt.htmlText = Texte;
HUDTxt.x = (Main.LARGEUR - HUDTxt.textWidth) / 2
HUDTxt.border = true;
HUD.display(HUDTxt);
}
}
}
@@ -0,0 +1,45 @@
package
{
import flash.geom.Point;
/**
* Classe de base pour les interactions, héritée par Ressort et Repulsion.
* Définit les duex extrémités sur lesquels la force doit s'appliquer, et deux vecteurs qui représentent lesdites forces (l'un étant l'opposé de l'autre : AttractionBout= - AttractionAutreBout).
* @author Neamar
*/
public class Interaction
{
public var Bout:Node;
public var AutreBout:Node;
protected var Parent:Level;
protected var AttractionBout:Vecteur = new Vecteur(0, 0);
protected var AttractionAutreBout:Vecteur = new Vecteur(0,0);
/**
* Une force abstraite d'interaction.
* @param A Première extrémité du ressort
* @param B Seconde extrémité du ressort
*/
public function Interaction(A:Node, B:Node,Parent:Level)
{
Bout = A;
AutreBout = B;
this.Parent = Parent;
Parent.Interactions.push(this);
}
public function destroy():void
{
Parent.Interactions.splice(Parent.Interactions.indexOf(this), 1);
Bout = AutreBout = null;
Parent = null;
delete this;
}
public function apply():void
{/*Fonction abstraite*/}
}
}
Oops, something went wrong.

0 comments on commit 45bbaf6

Please sign in to comment.