I have a background in python and I'm looking for a new language. I am almost only intrested in making games.
I have come to 2 languages. C# and Action Script.
C# because Microsoft allows you to make Indie XBLA games programmed in C# ONLY.
Action Script so I can make flash games for new grounds and ect.
What do you think is better to...
In the context of AS3 and specifically a framework such as PureMVC, I was wondering if someone could point me in the right direction for understanding what an API for a View Component means.
Thanks in advance.
...
import fl.transitions.easing.;
import fl.transitions.;
var xml:XML;
var xmlList:XMLList;
var xmlLoader:URLLoader = new URLLoader ();
var productLoader:URLLoader = new URLLoader();
var imageLoader:Loader;
var bigImage:Loader = new Loader();
var imageText:TextField = new TextField();
xmlLoader.load(new URLRequest("http://localhost/shop...
I am working on a flash game, that will be distributed as and EXE file.
I would very much like the game to run full screen, which is not a problem, but I am struggling with replacing flash default behavior when escape is pressed. When escape is pressed I would like to display a custom menu asking the user if they want to exit the game or...
I have an HTTPservice
id="myhttp"
url="site.com/script.php"
method="POST"
resultFormat="xml"
The script it uses returns
$output = '<worked>' . $worked . '</worked>';
echo $output;
Problem is when I try to read worked, it tells me the variable worked is not there
event.result.worked
myhttp.lastResult.worked
The only thing that ...
Going thru the excellent Apress books on Objective C.
To help in my undertanding, I try and recode any Ojective C code samples in Java/Action-script.
One common structure in method calls in ObjC leaves me a bit puzzled.
-(id) initWithPressure: (float) pressure
treadDepth: (float) treadDepth;
(in ECMAscript)Would this be most sim...
I am trying to upload a photo from an Adobe AIR application to yfrog's api, http://code.google.com/p/imageshackapi/wiki/YFROGuploadAndPost. I have the following code:
public function upload(file:File, msg:String, username:String, password:String):void {
var vars:URLVariables = new URLVariables();
vars["username"] = username;
...
Hello all,
I've got some actionscript which begins with:
package obfus_plugin{
import org.flowplayer.model.Plugin;
import org.flowplayer.util.Arrange;
import org.flowplayer.model.PluginModel;
import org.flowplayer.view.Flowplayer;
public class obfus extends Sprite implements Plugin {
and when I try to p...
Hi there
I'd like to be able to understand how to develop a Flex application such that I could provide implementation classes at runtime. In the Java world I'd specify interfaces in an JAR (e.g. myapp-api.jar), the implementation in a separate JAR (e.g. myapp-impl.jar) and package these along with other resources in the application WAR ...
After switching to AS3, I've been having a hell of a time figuring out the best way to manage MovieClips that have UI elements spread across multiple frames with a single class. An example that I am working on now is a simple email form. I have a MovieClip with two frames:
the 1st frame has the form elements (text inputs, submit but...
I am having some trouble figuring out how to overload a function in Flash using haXe. I know that Flash does not allow overloads but can accept function parameters without a type declared, but I am unsure as how to replicate this trick in haXe.
EDIT: Since this does not appear to be possible, are there any known tricks that can be used ...
Hello, im very new at papervision3d, i know in order to display a .DAE model i use this
import flash.events.Event;
import org.papervision3d.objects.parsers.DAE;
[SWF(width=640, height=480, backgroundColor=0x808080, frameRate=30)]
public class Earth extends PV3DARApp {
private var _earth:DAE;
public function Earth() {
...
HTTPService has a property resultFormat which can be set to any of the following: array e4x flashvars object text xml
I looked at the documentation to understand the difference, but still couldn't understand when to use each. I'm looking for the lightest weight of all of them.
P.S. I'm consuming output from my own server, so can chang...
my script.php returns this XML
<all>
<item>
<field1>value1</field1>
<field2>value2</field2>
</item>
<item>
<field1>value1</field1>
<field2>value2</field2>
</item>
</all>
The HTTPService uses the default resultFormat="object" but I don't declare it since it's the default.
Then I bind it to a List
dataPro...
Hi, what I would like to do is to take a loaded GIF file as a Bitmap, and then distort it by stretching and shrinking parts of it, so it would look like it got squished up against the screen.
I'm pretty sure that there's no easy way in Flash to go beyond scaling and shearing, but I wonder if there might be some simple techniques to acc...
Hi,
I have a Flex app (SDK 3.5 - FP10) that does mindmap trees. Every node is a Canvas (I'm using Canvas specific properties so I needed it). It has a shadow effect, background color and some small ui element on it (like icons, texts...). It works perfectly until it goes over ~700 nodes (Canvas). Over that number it shows grey rectangle...
Hey,
I want to read an Atom in Flex.
I can see in the debugger that he can read the Atom and that there are entries, I can see each value. So far, so good.
But when I want to assign a value from the atom to a variable, he never gives any text. It's always this: "".
My code:
ch.Name = xml.title;
ch.Desc = xml.subtitle;
ch.Updated = xm...
I tried on Flex 3, facing issue with uploading JPG/PNG image, trace readUTFBytes would return correct bytes length but tmpFileContent is trucated, it would only appear to have upload just 3 characters of data to the server through PHP script which made image unusable. I have no issue for non-images format. What is wrong here?
var tmpFil...
Hi guys.
I've got a SWF to which I added a Preloader scene. The preloader works fine when I hit Ctrl+Enter in Flash CS4, and select View > Simulate Download.
The preloader displays, and when full, the movie continues as expected.
However, the moment I embed the SWF into some HTML, and load from localhost in any browser, the movie does...
I have a an event handler (event:ResultEvent) that could return 1 of 2 types. Does actionscript3 have a function to test the type returned? something like
if (type(event.result) == ProxyObject) {
// do something
} else {
// do something else
}
...