J'ai installé Apache Flex sdk (version Apache Flex 4.16.0 FP11.9 AIR3.9 en_US) + FlashDevelop.
J'ai écrit ce src simpliste qui affiche un texte blanc sur un fond bleu tout vilain pour tester :
Code : Tout sélectionner
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.text.TextField;
import flash.text.TextFormat;
/**
* ...
* @author vincent
*/
public class Main extends Sprite
{
public function Main()
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
// Mario Strikers Charged Football
this.addText("Mario Strikers Charged Football", "calibri", 22, "0xffffff", true, false, false, true, true, false, 20, 170, 200, 30);
}
/**
* Ajout d'un objet TextField dans la scène
* @param text
* @param font
* @param size
* @param color
* @param bold
* @param italic
* @param underline
* @param wordWrap
* @param multiline
* @param embedFont
* @param x
* @param y
* @param width
* @param height
* @return
*/
private function addText(text:String, font:String, size:Number, color:String, bold:Boolean, italic:Boolean, underline:Boolean, wordWrap:Boolean, multiline:Boolean, embedFont:Boolean, x:Number, y:Number, width:Number, height:Number):TextField
{
var t:TextField = new TextField();
var tf:TextFormat = new TextFormat();
t.x = x;
t.y = y;
t.width = width;
t.height = height;
t.wordWrap = wordWrap;
t.multiline = multiline;
t.autoSize = "left";
t.text = text;
t.embedFonts = embedFont;
tf.font = font;
tf.size = size;
tf.color = color;
tf.bold = bold; // textF1.bold = attributes[3].toLowerCase( ) == "true";
tf.italic = italic;
tf.underline = underline;
// Apply "setTextFormat()" to the text field , with the "textFormat" instance as argument
t.setTextFormat(tf);
// Apply "addChild()" to add the text in the Flash presentation
this.addChild(t);
return t;
}
}
}
Donc, je paramètre le projet dans FlashDevelop ainsi :
Quand je teste le contenu de mon BackgroundTest1.swf avec Velocity9, ce dernier me confirme que l'outil a à priori bien compilé en flash 10.3 :
Quand je teste mon swf compilé dans un navigateur, no soucis, ça marche bien aussi.
Le problème, c'est quand j'insère mon Background.swf dans un thème système par défaut, cela fait merder complètement Hyperspin.
A la place de mon image de fond, Hyperspin me lance en background la video d'intro d'HS derrière les wheels.... Comprends pas bien là????
Donc, si un esprit éclairé passe par là, je suis preneur de toute idée, car je sèche un peu là...
Edit1 : je fais mes essais avec Hyperspin 1.4 et rocketkauncher à jour.