Iphone :: Write Mobile Games In ActionScript3 Rather Than Java / Objective-C?
May 6, 2011
I'm writing a simple game based on my physics engine for Android (in Java). Because I want to play with some special graphic effects performance is very important for me. I read on the Internet that you can write an application in ActionScript3 and then just export it as an iPhone/iPad or Android application. That means, I wouldn't have to rewrite everything from Java to Objective-C if I wanted to make version also for iPhone. Do you have any experience with writing games in ActionScript3 for both Android and iPhone/iPad? Are there any significant advantages / disadvantages?
View 4 Replies
Similar Posts:
Jan 21, 2011
I would like to play flash video in my iphone app.I'm parsing XML file and I get flash video url like this : http:[url]....
View 2 Replies
Jul 7, 2010
I have an iPhone app with an UIApplicationDelegate conforming delegate called MyAppDelegate - it has a UIWindow.Instead of adding buttons, labels and whatnot directly to the window, I guess I'm supposed to make a child class of UIViewController for every screen I wanna make. When that screen should be displayed, I add the respective controller's view to the window as a subview. When another screen should be displayed, I should pop off any other view from the window and add the new view. Hope I got everything correct so far...
My intent is to make each view controller only know about its own things, so let's say I wanna call view A from view B, in ActionScript I'd add a button in A firing off an event which would be caught in view A's owning object (could be the application), which could take proper action (remove view A, instantiate view B and display it).How do I do this in Objective-C?
View 2 Replies
Dec 15, 2011
I went through many links like this,this and this, but not getting good direction to move with. I need to implement some flash content in my iPhone app. good tutorials to move on with the conversion process.
Suppose I am having a flash air iOS app and I need to convert the whole app in objective c for say adding some features like APNS then I have to do some needful. I want to convert the air iOS based app in objective c for same thing and hence need a tool like Haxe.
View 2 Replies
Feb 13, 2012
My issue is when I try to compile my .ipa using the adt tool (through Terminal) I get the following error:
ld: absolute addressing (perhaps -mdynamic-no-pic) used in -[MediaCaptureViewController showCamera] from /var/folders/NP/NPNiEhuUEwGiPRg0Bym7Sk+++TI/-Tmp-/97f7f1f9-6d5e-4486-9ba0- 147ff50f7157/libcom.luxson.mediacapture.a(MediaCaptureViewController.o) not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs
Compilation failed while executing : ld64
The iOS native extension pops up an instance of the UIImagePickerController and it works apart from the following line of code, which causes the above adt error:
cam.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie];
I have included the MobileCoreServices framework in my project and added the following to my header file:
#import <MobileCoreServices/MobileCoreServices.h>
I'm using Xcode 4.2.Project set to build with the following settings:
iOS Deployment Target: iOS 4.3
Enable Linking With Shared Libraties: No
View 1 Replies
Mar 13, 2010
I know javascript, CSS, AJAX, and HTML/ XHTML. I was told to learn these in order to make an application for the iphone. Now what? What/how do I start learning objective-C?
View 1 Replies
Feb 23, 2012
I have a grails application using jquery mobile. I am hoping to find some way to access the camera on the devices. I thought about using flash to grab the webcam but that obviously wont work on Apple devices. Does anyone know of a way to do it and keep it all browser based? I am hoping that there is a plugin somewhere or maybe html5 has some magic in there that supports it.
View 1 Replies
Mar 27, 2011
I'm starting to learn Objective C and I wonder if there is any similar function toactionscript trace to show messages in a console.
View 1 Replies
Apr 24, 2010
Newcomer to Objective C and trying to translate concepts and sytax I know from ecmascript based languages to Objective C.Is it proper to think of the .h header file in ObjectiveC as an Interface in Actionscript?Lets take the following code example in Objective C which calls a method containing 2 arguments
[myTextObject setString: @"Hello World" color: kWhiteColor];
In Actionscript(or javascript) would this be the same as calling 2 accessor methods on 'myTextObject'?
ie
myTextObject.setString("Hello World")
myTextObject.color(kWhiteColor);
View 2 Replies
Jun 1, 2010
I'm tring to convert the following 3 methods from java-actionscript to Objective C. Part of my confusion I think is not knowing what Number types, primitives I should be using. ie in actionscript you have only Number, int, and uint. These are the 3 functions I am trying to convert public function normalize(value:Number, minimum:Number, maximum:Number):Number
[Code]...
View 3 Replies
Sep 15, 2011
I want to make simple project which play flash video file from online. I've searched some articles and read carefully. But I can't understand, how to play flash video files on iPad by Code.
View 5 Replies
May 24, 2011
I cannot browse flash games(casino games) in iphone. I googled my problem and found 2 types solution1.iphone doesnt support flash.2.Using cloud browse we can play flash games in iphone
View 1 Replies
Dec 7, 2009
I was watching a video showing an ngmoco rolando2 level designer. He seemed to be using flash CS4 to make the maps. Would anyone know how I would go about doing this?
Just in case you need to know, I am an intermediate programmer, I know both Java and Objective-C pretty well.
View 2 Replies
Feb 3, 2011
In my Cocoa app, I want to prevent Flash from loading in a WebView, and let the user decide if the Flash should be shown for each page. (That's the same behavior already available through the ClickToFlash plugin or Safari extension. Bundling any of those extensions is probably not an option because of licensing issues.)Unfortunately most of the Flash I'm trying to avoid is generated from embedded JavaScript specifically designed to prevent easy flash blocking, so I cannot filter the raw HTML for inclusion of Flash objects.Also, I cannot disable JavaScript for my WebView, as the page I want to display looks completely different when JavaScript is turned off.Is there a notification/hook I can use to modify the page DOM after JavaScript has been executed, but before the Flash plugin is loaded?
View 3 Replies
Jul 30, 2011
Just seen the following, so how do one go about converting Flash games for the iPhone? URL...I thought ole moany apple, objected to this. I did Google, but very little on this topic available for 2011 updates.
View 1 Replies
Mar 25, 2011
I'm trying to create a simple side scrolling platform game. So, my question is, which direction should i go in? Tile based or art based?So far i have a jpg that extends far beyond the stage and if i wanted to make a real level then instead of having it 480x2000 i would need to make it more like 480x5000 at the least.Im interested in tile based but all the guides i've found are rather dated.
View 1 Replies
Oct 13, 2007
i want to transform some desktop based flash games fro mobile.is there any tool that transforms for mobile.so that i can do easily.
View 0 Replies
Mar 16, 2010
I absolutely love good defender games (e.g. Gemcraft, Protector: reclaiming the throne) as they can be intellectually quite challenging; it's like playing chess but a little less thinking and a bit more action. Sadly, there are not that many good ones out there and I thought I would create one myself and share it with the rest of the world by making it available on-line.I have never worked with ActionScript but when it comes to on-line games, this is the main choice. I have tried to find a decent 2D game in the form of a Java applet but to no avail. Why is this so? I could write the game, most comfortably, in Delphi for Win32 but then people would need to download the executable, which could deter some form downloading it, and also it would only work on Windows. I am also familiar with Java, having worked with Java for the last four years or so; although, I don't have much experience with games programming.
Should I not be deterred by the fact that all on-line games are written for in Flash and create my defender game as a Java applet, or should I consider learning ActionScript and games development for the ActionScript Virtual Machine (AS3 looks very much like Java... but still, it's an entirely new technology to me and I might never use it professionally.)
View 8 Replies
Apr 20, 2010
I saw this video, and I am really curious how it was performed. My intuition is that he scraped pixels from the screen (one per 'box'), and then fed that into some program to determine the next move.
Is scraping pixel-by-pixel the way to do this, or is there a better way? I am looking to do something similar with either Java or Python.
View 2 Replies
Apr 27, 2011
Is it possible to use the Java KeyEvent to sends keys to a flash game? I would like to be able to control a flash game from a Java program I have written.
View 2 Replies
May 24, 2011
I am curious about how battlefield heroes works - it is a game playable in your web browser, and it is quite alot more complex than your average webbrowser game. Does anyone know what technology it is based on? Flash, ActiveX, Applets....? What technology does Age Of Empires Online use?
View 3 Replies
Oct 6, 2010
I have a game I wrote in Actionscript 3 I'm looking to port to iOS. The game has about 9k LOC spread across 150 classes, most of the classes are for data models, state handling and level generation all of which should be easy to port.
However, the thought of rejiggering the syntax by hand across all these files is none too appealing. Are there tools that can help me speed up this process?
I'm not looking for a magical tool here, nor am I looking for a cross compiler, I just want some help converting my source files.
View 3 Replies
Jun 10, 2010
I have a website [URL]. I added a flash mp3 player that plays a sound clip when you go to the page. I know Flash doesn't work on the iPhone OS, but is there a way to get this type of mp3 player to work on an iPhone? I'm thinking maybe a javascript mp3 player. What I would ultimately want is to replace my flash mp3 player with a different mp3 player and have it so the player is available on Windows and Mac computers as well as iPhone devices.
View 2 Replies
Sep 14, 2011
i'm building app with Flash Builder 4.5.1, i set in app.xml this:
<icon>
<image16x16>assets/icon/icon16.png</image16x16>
<image29x29>assets/icon/icon29.png</image29x29>
[code]......
View 1 Replies
Nov 15, 2011
how to use filters (specifically a glow filter) on a mobile devices (specifically the iPhone) when using GPU rendering and high resolution. At the time, there was no answer... filters were unsupported. Period.
I can report that I have gotten a color matrix filter for desaturation AND a glow filter working on the iPhone and the iPad using GPU rendering and high resolution.
The solution, in a nut shell is as follows:
1: Create your display object... ie: a sprite.2. Apply your filter to the sprite like you normally would.3. Create a new bitmapdata and then draw that display object into the bitmap data.4. Put the new bitmapdata into a bitmap and then put it on the stage or do what you want.
When you draw the display object into the bitmapdata, it will draw it WITH THE FILTER!So even if you put your display object onto the stage, the filter will not be visible, but the new bitmapdata will!
Here is a sample app I created and tested on the iphone and ipad
[Code].....
View 1 Replies
Aug 6, 2011
Can we develop flex mobile project that runs in both android and iphone.Also I want to know , can we use all the device capabilities of both android and iphone in same project
View 2 Replies
Aug 13, 2011
Is there a way to access the iphone address book with the current Flex/Air Mobile version?
View 1 Replies
Feb 5, 2010
I want develop an application on windows mobile.In this app, i need to show some Flash games to the end user.ow should I do?embed an Flash ActiveX Control (in Windows mobile Form application) ?embed an IE control?BTW (because i do not have a windows mobile device now)Can I views flash in IE of the windows mobile device?for play flash, Macromedia Flash Player 7 for Pocket PC should be installed on your windows mobile emulator.DIT2:after practice i found following package should be installed before your windows mobile progr
Vista SP2
Visual Studio 2008 SP1
Windows Mobile Device Center
[code].....
View 2 Replies
May 3, 2011
I would like to develop applications for iPhone and Android devices. Which language it is better to use Java or Flash? I have read that Adobe Flash CSS 5.5 support compatibility for ActionScript on both devices. Will be interesting to know plus and minus sides for both languages? Remember that we have to develop application for both devices, and we have a small part of that application already written in Java.
View 2 Replies
Feb 2, 2011
I would like my application to be able to remain running while the user goes and uses another application. (It will be playing music) Additionally, how to communicate w/ Cocoa Touch from this environment?
If you think this is not possible, which platforms are capable of this (other than the obj-c mac x-code route, which I am trying to avoid)?
View 1 Replies