Hi,
Can anyone please tell me how to correct this error in the Adobe Flash CS5.5,Air for IOS .
This app was built for the iPhone.
My setting are;
Player:AIR for IOS
Script:ActionScript3.0
Profile:Default:Publish Setting
An error code 1120 was reported during the debug test run .
This is the procedure I used to build and run the program.
1.Constructed a 6 frames comic strip each was set at 290 pixels wide by 390 pixels high
and layer them into one strip 1980 pixels wide by 390 pixels high and saved as a png file with the Gimp.org program.
2.I open Flash CS5.5 and selected Air for IOS set the align center with text tool.
3.The stage was at 320 by 480 at 40 FPS.
4.Imported in the comic strip on to the stage and set the x15 and the y50 for the first frame of the comic strip within the stage and saved it as a .fla file in the sames location as the Flash CS5.5 file.
The comic strip was located in Layer 1 on the Timeline.No additional layers were use.
5.I did the example coding and the only area I changed was the number of frames .I was going to change the
tiles.x -=33 to 29 and not change the, if(slideCounter == 10) because my frames are 290 pixels wide but I decided
not to change anything except the title to the program I was creating and saved as a .as file in the same location as the .fla file.
6.In the fla setting on the stage I selected Control tool ,Test Movie,in Air Debug Launcher (Mobile) than
an error code was reported; #1120:Access of undefined property tiles was repeated 4 times and than the same error code but this time Access of undefined property slideCounter.
This occurred at line; tiles.addEventListener(“enterFrame”,movieTilesRight);
and at line;if(slideCounter ==10).
I have been searching the error code on the Internet.
Could you please explain on how I can correct these errors.
Here is this simple swipe-multi touch-Gesture code;
package {
import flash.display.MovieClip;
import flash.ui.Multitouch;
import flash.ui.MultitouchInputMode;
import flash.events.TransformGestureEvent;
import flash.events.Event;
public class TwinJustice extends MovieClip {
private var currentTile:Number = 1;
private var totalTiles:Number = 6;
private var slideCount:Number = 0;
public function TwinJustice() {
if(Multitouch.supportsGestureEvents)
{
init();
} else {
trace("what you talkin* bout gestures?");
}
}
private function init():void
{
Multitouch.inputMode = MultitouchInputMode.GESTURE;
this.stage.addEventListener(TransformGestureEvent.GESTURE_SWIPE, handleSwipe);
}
private function handleSwipe(event:TransformGestureEvent):void
{
if(event.offsetX == 1)
{
if(currentTile > 1)
{
slideRight();
currentTile--;
}
}else if(event.offsetX == -1)
{
if(currentTile < totalTiles)
{
slideLeft();
currentTile++;
}
}
}
private function slideLeft():void
{
tiles.addEventListener("enterFrame" , moveTilesLeft);
}
private function slideRight():void
{
tiles.addEventListener("enterFrame" , moveTilesRight);
}
private function moveTilesLeft(event:Event):void
{
tiles.x -=33;
slideCounter++;
if(slideCounter == 10)
{
tiles.removeEventListener("enterFrame" , moveTilesLeft);
slideCounter = 0;
}
}
private function moveTilesRight(event:Event):void
{
tiles.x += 33;
slideCounter++;
if(slideCounter == 10)
{
tiles.removeEventListener("enterFrame" , moveTilesRight);
slideCounter = 0;
}
}
}
}
Where did I go wrong?
Any information would be greatly appreciated.
Thank You,