Actionscript 3 :: IPhone Packager AS3 Failing To Convert Switch Case Statement

Sep 22, 2010

I've been creating an application using the Adobe AIR Packager for iPhone (command line style).The app consists of a lot of screens that provide various information, and the navigation is handled all in the document class via an event-triggered function that uses a large switch-case statement to determine what screen to go to.

When we compiled it through the iPhone Packager and tried to test it on one of our phones, it would load up to a blank screen.

After some error testing it was revealed that the switch-case itself is causing a problem (changing it to an if-else that had the same functionality worked just fine). Does anyone know whether this is a known issue, or if something can be done to fix that other than converting it to an if-else.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Use The Value From A Combo Box In A Switch Case Statement?

Dec 17, 2008

I'm trying to use the value from a combo box in a switch case statement but it isn't working

Code:
var switchValue:int = 0;
switchValue = int(cmbColour.selectedItem.data);
switch(switchValue) {[code]....

View 4 Replies

ActionScript 2.0 :: Use Switch/case Statement Instead Of If/else But It's Not Working?

Jan 16, 2009

I'm trying to use switch/case staement instead of if/else but it's not working. Here's the code.

ActionScript Code:
//working code
function checkTarget(drag){[code].............

View 3 Replies

ActionScript 2.0 :: Switch Statement Range EX: Case 90 To 100?

Feb 18, 2004

How do you do a range using switch statement in ActionScriptFor example:

score = txtScore.text
switch(score)
{

[code].....

View 3 Replies

ActionScript 2.0 :: Switch Statement Range EX: Case 90 To 100

Feb 18, 2004

How do you do a range using switch statement in ActionScript For example:

[Code]...

View 3 Replies

ActionScript 2.0 :: Switch And Case - Convert Characters Into Others

Apr 25, 2011

Im trying to make a small program that convert characters into others. (it is useful when some program doesn't recognize Cyrillic characters and give back strange symbols as "_˛". The problem im facing is the impossibility to specify 2 characters under "case"

[Code]...

View 2 Replies

Iphone - Flex - Create Ipa For Testing On Device Using IPhone Packager?

Sep 11, 2010

i'm following Christian Cantrell guide for packaging AS3 application for iPhone, but i can't find a way to use the packager for creating an app for testing on device. I've tried with -target ipa-test and -target ipa-app-store but when i try to upload my app on the iPad, iTunes throws an error sayng that i'm not allowed.I've done a simple test using the Packager bundled width CS5 (with the same certificates) and everything gone right.

Is is possible to use CS5 Packager for Flex project ? (i know that flex isn't optimized for mobile)

View 2 Replies

Iphone :: Flash Packager For IPhone : Use Core-Data Or Other Database?

Dec 19, 2010

I'm wondering if the flash packager for iPhone allows you to somehow save data in some kind of database maybe using Core Data or any other form? If it just allows you to export some kind of actionscript based game but doesn't allow for saving data that'd be kinda weak I'd assume so they must have a way (?).

View 1 Replies

ActionScript 3.0 :: Switch / Case And Nested Switch / Case

Oct 30, 2011

What I'm trying to do is create a program that, depending on 2 variables, multiplies another variable by a static number. Heres the code I have so far:

[Code]...

View 1 Replies

ActionScript 2.0 :: Can Default From Switch/case Be Used In Another Switch/case

Dec 10, 2003

I want this on an MC:

[AS]
i = 0;
switch(thing){
case 0:

[code]....

Basically what I'm wondering is, will I lose the value of i in the first switch once I'm out of the switch? Can the second switch read the 1st switch?

View 8 Replies

ActionScript 3.0 :: Switch/Case And Nested Switch/Case?

Oct 29, 2011

Im trying to create a program that, depending on 2 variables, multiplies another variable by a static number. A friend suggested I use case/switch instead of if/else statements,which is what I was using before.

[Code]...

View 1 Replies

Professional :: Packager For IPhone Feature?

Feb 21, 2010

I am very interested in any information about the new  Packager for iPhone feature for cs4 flash professional.

View 5 Replies

Professional :: Iphone Packager In Flash Cs5!?

May 10, 2010

Does it legally to use the iphone packager in cs5 to make games for iphone?As I read many articles on the internet wich are talking about that apple categorize the conversion from flash to iphone as illeagel method to deviler phone applications.

View 2 Replies

Professional :: IPhone Packager CS5.5 Not Displaying GlowFilter?

Jun 8, 2011

I've tried many alternatives to get a text field to show the glow effect on the iPod, but none worked.

It works when I run a .swf on my PC, but the glow filter will not show up on my iPod Touch after I convert it into a .ipa with Flash CS5.5

Is there a method that will currently work?
 
Is this a bug or something not implemented yet?

View 3 Replies

Flash :: Play Video In App For IOs (iPhone Packager)?

Feb 1, 2011

Reading the iphone packager's FAQ from Adobe Labs i read:

Can I play H.264 Video from Flash content on iOS?

Yes. You can play H.264 video from Flash content by launching the content in the native iOS video player. You cannot play back H.264 content directly within the application.

how can i play an H264 content in the native IOS video player ?

View 2 Replies

Actionscript 3 :: Packager For IPhone App Download Content?

Feb 4, 2011

I am in the stages of designing a magazine concept for a client, taking the printed version and adding animated and interactive content, it seems Flash would be the obvious choice, and something which I am reasonably skilled with.

If I build the Magazine app with Flash, will the app be able to download additional issues? if so please point to any resources on the subject if possible.

View 1 Replies

CS5.5 IPhone Packager - Test The App On An Actual Device?

Jun 15, 2011

I am using CS5.5 to develop an iOS app and when trying to test the app on an actual device it says that it is not compatible with this device. If i save out the document to CS5 and export it through the CS5 packager and install the app it seems to work fine. Has anyone else had any issues like this? Any work arounds?

View 4 Replies

Flash :: Iphone - Packager For IOS And Touch Events Don't Work

Jul 12, 2011

I am trying Flash CS5 for ios development, but TouchEvents don't works on my ipod. My ipod is jailbroken. The code I try is here:

[Code]...

View 1 Replies

Flash :: Write An Application That Plays Music In The Background On IOS Using Adobe Packager For IPhone?

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

Objective C :: Failing To Build Air IPhone App (with A IOS Native Extension) With Adt?

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

ActionScript 3.0 :: Switch Case And Text?

Mar 18, 2009

I need to replace some text - it's actually a bunch of textInput area data captured and placed together {inputArea1.text}{inputArea2.text} style - and have it placed in an mx:Text text="{inputArea1.text}{inputArea2.text}".So I have the smart idea to pull a switch case, where the case condition is the id of the canvas and it's pulling from the textInput areas.My output from the aforementioned string into my text just yields: Code:function Function() {}I complete this, I can sleep.

View 11 Replies

ActionScript 3.0 :: Function To Go To The Next Case On The Switch?

Apr 19, 2010

i have created a switch that assign different case to different toggle  buttons. so when each case is activate, it loads a different swf.so  far it works fine..It's going to be like a sub menu thing, the toggle  button remains activated so viewer know which page they are at right  now..until they click the next toggle button..so on and so on.

[Code]...

View 5 Replies

ActionScript 3.0 :: Run A Function For Every Case In A Switch?

Jan 20, 2009

ActionScript Code:
function changeBox(event:MouseEvent):void {
switch(box.boxclass.whichboxvar) {

[code]......

View 3 Replies

ActionScript 3.0 :: Using Ranges In A Switch...case?

Sep 25, 2009

In other programming languages that use switch/case, I was often able to set a range. In the documentation (flash help) they do not show the syntax for this. Is it possible to do so, such as:

Code:
switch (theAnge)
{

[code].....

View 7 Replies

ActionScript 3.0 :: Use A Switch Case With An If-else Construction?

Oct 21, 2010

I want to create a application for a website, that can calculate a persons daily energiexpenditure. The user of the application has to put in his/her height, weight and sex. So I want the program to switch between diferent formels depending on the input given. For example the formel for a girl, age 8, 38 kg and 1.40 cm is: (0.071*38)+(0.68*1.4)+1.55

And the formel for a man, age 30, 75 kg and 1.80 cm is: (0.064*75)+2,84

how would you do the coding?

I considering making a if-else construction, that checks whether the sex is male og female. And within this if-else construction i want to make a switch case, thats switches between different forms depending on the age input.

This is what i've done so far:

ActionScript Code:
public function energyintake()
{
var h:uint = 180; // The persons height in centimeters

[Code]....

View 0 Replies

ActionScript 3.0 :: Is A Trigger Necessary For A Switch/case

Feb 5, 2011

I've got flash page with a spherical design, cut into pieces like a pie. Underneath that I'm putting a series of square buttons that are color chips. What I'm wanting to do is be able to select a cut piece (one at a time) of the design by clicking on it (each piece is a button) and, once that piece is selected by clicking on it, be able to click a color chip button to color it.

Theoretically, I could click on the top right quadrant of the sphere design, then click on the black color chip beneath and it would turn black. Then if I decided to click on the red color chip I could click it and it would turn red, and so forth. Then after tiring of coloring on the top right quadrant, I could click on the bottom left quadrant, then click a color chip and colorize to my heart's content. Same with any other part button of the sphere that I click on. Only one part of the sphere design could be colored at a time.

What I'm seeing is that I'd need to set the individual sphere design button components as triggers, then write my own switch/case statements for the color chip buttons to say, if this trigger's selected, then color it "mycolor", etc.

View 1 Replies

ActionScript 3.0 :: Switch Case With Wildcard Possible?

May 27, 2011

I would like to use a switch statement i.e.

[Code].....

What I am trying to do is to say that the condition is if the name property has an A character in it and anything afterwards. Is this possible or am I nuts.

View 6 Replies

ActionScript 2.0 :: Assigning With Switch/ Case?

Mar 13, 2007

I have an array of movie clips that are placed on the stage (this works fine) but I want to give each movie clip a value so that I can check what the user types.

Ex.

Code:
_root.createEmptyMovieClip("Placement", 2);
var shapes:Array = new Array("square", "circle", "triangle");
function selectshape():String {

[code].....

View 2 Replies

ActionScript 2.0 :: Using VARS With Switch / Case?

Jul 7, 2010

I have an object that contains times to call a function. Would like to use Switch/Case to test against video stream time. Right now using a For loop every second to test against 50 times is causing super sluggishness. Hoping there is a better way that doesn't require so much testing. So is it possible to use a Var as a Case testing numeral? Meaning...

[Code]...

View 1 Replies

ActionScript 2.0 :: Can Default From Switch / Case Be Used In Another One?

Dec 10, 2003

I am doodling at work and wondering if this is possible. Unfortunately I don't have flash in front of me so I can't test it but since my AS.

I want this on an MC:
[AS]
i = 0;
switch(thing){
case 0:
some action; break;
[Code] .....

Will I lose the value of i in the first switch once I'm out of the switch? Can the second switch read the 1st switch?

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved