Free App Hub account, without Dreamspark
In order to get a Microsoft App Hub account, you can either pay 100 USD or, if you are a student, use a Dreamspark account to get in for free. If you neither want to pay the 100 dollars, and are no longer a student, then we can offer you a free account.
If you would like to publish an app on the Windows Phone 7 App hub without an account, then simply send us the XAP file, along with the required graphics and a description, and we will publish it on your behalf. Email us at support@openmerchantaccount.com with your app.
Graphics required are:
Application icon included in package (62×62 PNG)
Application tile image included in package (173×173 PNG)
Small tile (99×99 PNG)
Medium tile (173×173 PNG – normally this would be the application tile image)
Large tile (200×200 PNG)
Background artwork (1000×800 PNG – this is optional)
Description Text
Keywords Text
One or more application screenshots (480×800 PNG)
We do not offer outpayments, but your app will be published as a paid app. If you want your app to be published as a free app, then contact us for a price. Updates to apps will be charged at a reasonable rate.
During the approval process, if your app fails, then you will be given one attempt to fix it. If you fail a second time, then a small charge will be requested before we submit subsequent times. A PDF will be sent to you describing the fault.
wait, releasing my work as a paid app and keeping 100% of the profits?
LikeLike
http://stackoverflow.com/questions/650682/connecting-to-sql-server2005-from-actionscript3
HMButton
stage.width
read xml
write xml
—————————-
static protected const MODE:String = “debug”;
protected static const MODE:String = “debug”;
—————————-
package com.happymeal2.event
{
import flash.events.Event;
public class HappyMealEvent extends Event
{
public var data:Object;
public function HappyMealEvent(type:String, myData:Object=null, bubbles:Boolean=true, cancelable:Boolean=false)
{
data = myData || new Object();
super(type, bubbles, cancelable);
}
public static const CORE_READY:String = “onCoreReady”;
public static const GET_CORE_REQUEST:String = “onGetCoreRequest”;
public static const LOAD_FILE_REQUEST:String = “onLoadFileRequest”;
}
}
—————————
{
private function configureSite(myEvent:Event):void
{
dispatchEvent(new HappyMealEvent(HappyMealEvent.CORE_READY, this));
}
private function onAddedToStage(event:Event):void
{
dispatchEvent(new HappyMealEvent(HappyMealEvent.GET_CORE_REQUEST));
}
private function onAddedToStage(event:Event):void
{
dispatchEvent(new HappyMealEvent(HappyMealEvent.LOAD_FILE_REQUEST, { sectionID:’MainMenu’, fileID:’MainMenu’,
target:ourMenu, type:’Component’ } ));
}
}
—————————
{
stage.addEventListener(HappyMealEvent.CORE_READY, onCoreReady,false,0,true);
stage.addEventListener(HappyMealEvent.GET_CORE_REQUEST, onGetCoreRequest,false,0,true);
stage.addEventListener(HappyMealEvent.LOAD_FILE_REQUEST, onLoadFileRequest,false,0,true);
private function onCoreReady(myEvent:HappyMealEvent):void
{
……………………….
}
private function onGetCoreRequest(myEvent:HappyMealEvent):void
{
…………………………..
}
private function onLoadFileRequest(myEvent:HappyMealEvent):void
{
loadFile(myEvent.data.sectionID, myEvent.data.fileID, myEvent.data.target, myEvent.data.type);
}
}
—————————
this.container.stop();
this.container.getChildByName(“btnReset1”);
—————————
private var panel:*;
private var ctrls:Array;
ctrls = new Array();
panel = this.container.getChildByName(“mcControls”);
ctrls[“pickPurple”] = panel.getChildByName(“btnColorPurple”) as MovieClip;
ctrls[“patternsPrevious”] = panel.getChildByName(“btnPatternsPrevious”) as MovieClip;
—————————
elms[“printOut”] = this.container.getChildByName(“printOut”);
elms[“printColor”] = elms[“printOut”].getChildByName(“Color”);
——————————–
private function onClickElement(event:MouseEvent // is movieclip)
{
var obj = event.currentTarget;
var objName:String = obj.name;
}
———————————–
elms[“colors”].gotoAndStop(color);
———————————–
this.container.gotoAndStop(2);
———————————–
private var bgSoundchl:SoundChannel = new SoundChannel();
//private var mychannel:SoundChannel = new SoundChannel();
private var bgSound:BgSound = new BgSound();
bgSoundchl = bgSound.play();
bgSoundchl.addEventListener(Event.SOUND_COMPLETE, soundComplet)
————————————
private var ourTimer:Timer;
var rnd:int = (Math.random() * (15 – 10)) + 10;
ourTimer = new Timer(rnd * 1000, 0);
ourTimer.start();
ourTimer.addEventListener(TimerEvent.TIMER, onTimerNextContent);
ourTimer.reset();
—————————————
embbed font : text box is dynamic and have name.
—————————————
var SKY_CLASS:Class = getDefinitionByName(“SkyBG”) as Class;
bg = new SKY_CLASS() as Sprite; //MovieClip/Sprite
addChild(bg);
—————————————
var FONT_CLASS:Class = getDefinitionByName(“HouseARamaKingpin”) as Class;
Font.registerFont(FONT_CLASS);
FONT_CLASS = getDefinitionByName(“ArialBold”) as Class;
Font.registerFont(FONT_CLASS);
var text:Text = cache[“GAME TITLE”] = new Text(“House-A-Rama-Kingpin”, cache[“RIGHT”], 0, 2, “>>”);
text.setSize(230, 25);
text.textSize = 13;
text.color = 0xffffff;
text.html = true;
text.buttonMode = false;
text.mouseChildren = false;
text = cache[“GAME DESCRIPTION”] = new Text(“Arial”, cache[“RIGHT”], 0, 28, “>>”);
text.setSize(230, 25);
text.textSize = 11;
text.color = 0x000000;
text.html = true;
//text.bold = true;
text.buttonMode = false;
text.mouseChildren = false;
text = cache[“HOW TITLE”] = new Text(“House-A-Rama-Kingpin”, cache[“RIGHT”], 0, 110, “HOW TO PLAY”);
text.setSize(230, 25);
text.textSize = 13;
text.color = 0xffffff;
text.html = true;
text.buttonMode = false;
text.mouseChildren = false;
text = cache[“HOW DESCRIPTION”] = new Text(“Arial”, cache[“RIGHT”], 0, 135, “>>”);
text.setSize(230, 25);
text.textSize = 11;
//text.bold = true;
text.color = 0x000000;
text.html = true;
text.buttonMode = false;
text.mouseChildren = false;
—————————————
loader = new Loader();
stage.addChild(loader);
loader.x = ( stage.stageWidth – 400 ) / 2 ;
loader.y = ( stage.stageHeight – 200 ) / 2 ;
var myURLRequest:URLRequest = new URLRequest(“./Form2.swf”);
loader.load(myURLRequest);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE , oncompleted);
—————————————
[Embed(source = ‘./Form2.swf’, mimeType = ‘application/octet-stream’)]
var Form2:Class;;
var bytearr:ByteArray = new Form2() as ByteArray;
loader = new Loader();
stage.addChild(loader);
loader.x = ( stage.stageWidth – 400 ) / 2 ;
loader.y = ( stage.stageHeight – 200 ) / 2 ;
loader.loadBytes(bytearr);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE , oncompleted);
—————————————-
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest(“flash.xml”));
myLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(e:Event):void {
myXML = new XML(e.target.data);
trace(myXML);
trace(myXML.name);
}
for each(var myThemeXML:XML in myXML.themes.children())
{
var id:String = myThemeXML.id;
var name:String = myThemeXML.name;;
var description:String = myThemeXML.description;
}
for each(var mySectionXML:XML in myXML.sections.children())
{
……………………………….
} {
—————————————-
private function getClassObject(className:String):*
{
className = “com.creata.hm3.npcs.shoemaker.” + className;
var Obj:Class = ApplicationDomain.currentDomain.getDefinition(className) as Class;
return new Obj();
}
—————————————–
// remove all children
while (numChildren > 0)
{
removeChildAt(0);
}
—————————————–
private var _cache:Object;
_cache = new Object();
if (!_cache[‘shoe_icon-1’])
{
_cache[‘shoe_icon-1’] = new Icon(‘Shoe01Thumb’, ‘Shoe01’);
_cache[‘shoe_icon-2’] = new Icon(‘Shoe02Thumb’, ‘Shoe02’);
}
addChild(_cache[‘shoe_icon-1’]);
addChild(_cache[‘shoe_icon-2’]);
if (!_cache[‘colour_icon-1’])
{
_cache[‘colour_icon-1’] = new Icon(‘Colour01Thumb’, ‘1’);
_cache[‘colour_icon-2’] = new Icon(‘Colour02Thumb’, ‘2’);
}
addChild(_cache[‘colour_icon-1’]);
addChild(_cache[‘colour_icon-2’]);
——————————————–
private function onChangeIconSet(evt:MouseEvent):void
{
switch(evt.currentTarget) {
case _cache[‘shoe_btn’]:
_iconSets.show(IconSets.SHOES_SET);
break;
case _cache[‘colours_btn’]:
_iconSets.show(IconSets.COLOURS_SET);
break;
}
———————————————-
connect to MC
1.direct to MC
2.this.container.getChildByName(“btnReset1”);
3.var SKY_CLASS:Class = getDefinitionByName(“SkyBG”) as Class;
bg = new SKY_CLASS() as Sprite; //MovieClip/Sprite
4.private function getClassObject(className:String):*
{
className = “com.creata.hm3.npcs.shoemaker.” + className;
var Obj:Class = ApplicationDomain.currentDomain.getDefinition(className) as Class;
return new Obj();
}
————————————————-
document class ->form2.swf
class back
class component.
LikeLike