Press Scroll AS3 (Flash CC) Help / Ayuda

Hola! Estoy doing application una para pero tengo UN conocimiento AS3 basico quiero android devices y quiero no saber como hacer a touch scroll, quiero poner a scroll bar o algun otro boton, quisiera what pudiera navegar in the application of modo touch horizontal manera y.

Estoy trabajando con los tamanos por defecto 480 x 800 en UN app para android, in a project of Adobe Flash Professional CC

Against este Código en otro tema works, el problema y are that if al final llegó of list that muestra y sigo dropping not is being como sigue if most mas contenido no self without to back al contenido automatically y sigue igual manera en el principio del contenido TR intento y, dropping undergo no dead don't is solo al contenido y is sigue hacía arriba , Do not be TR me entiendan?

----------------------------------------------------

Hello! I am applying for android devices, but I have a basic knowledge of AS3 and I want to know how to make a touch scrolling does not want to put a scroll bar or another button, I wish that you can navigate the application does touch as long as vertically.

I work with the default size 480 x 800 on an android app, project in Adobe Flash Professional CC

I found this code on a different theme and it works, the problem is that if I get to the bottom of the list that appears and continues down stop always as if it had more content and not return the content automatically and continues to decline and even at the beginning of the content if I'm trying to save not only the content and follow-up Do not know if I understand correctly?

(Sorry for the translation, my English is bad).

Este are el código / here's the code:

var ease:int = 6;  
var targY:int = dragMe.y;  
var drag:Boolean = false;  
var ptY:Number = 0;  
  
dragMe.addEventListener(Event.ENTER_FRAME, dragHandler, false, 0, true);  
dragMe.addEventListener(MouseEvent.MOUSE_DOWN, downHandler, false, 0, true);  
stage.addEventListener(MouseEvent.MOUSE_UP, upHandler, false, 0, true);  
  
function dragHandler(e:Event):void  
{  
     if (drag)  
     {  
          targY = mouseY + ptY;  
     }  
  
     e.target.y +=  (targY - e.currentTarget.y) / ease;  
}  
  
function upHandler(event:MouseEvent):void  
{  
     drag = false;  
}  
  
function downHandler(e:MouseEvent):void  
{  
     ptY = e.currentTarget.y - mouseY;  
     drag = true;  
}

use something like:

var minY: number =

var maxY: number =

  1. function dragHandler(e:Event):void
  2. {
  3. If (drag)
  4. {
  5. targY = mouseY + ptY;
  6. }
  7. targY = Math.max (targY, minY);
  8. targY = Math.min (targY, maxY);
  9. e.Target.y += (targY - e.currentTarget.y) / relieve;
  10. }

Tags: Adobe Animate

Similar Questions

  • Video CS5.5 AS3 Flash slider helps

    I create a project for the online journal of my school, where users can scroll through a linear video gallery and click to choose who they look. My goal is to make the videos slide when users drag and let go, a bit like the story of flash in the New York Times: http://www.nytimes.com/packages/html/nyregion/1-in-8-million/.

    However, I have problems for the Gallery to slide their way. It was easy to drag and drop and go to this video, if the user does not slip. It's the slider continue to move after being let go which is difficult.

    I am able to determine the pixels per image (speed) of the parchment, so that I can move the videos on that basis and I put videos to slow down, but it does not move when I let go videos.

    Also, I need to make more fluid scrolling. The way I put mine up to cause videos to slide based on the average speed of the MouseEvent.DOWN to the MouseEvent.UP, which can cause problems. For example: if I had to move the videos on a few hundred pixels and then release them, they would continue to drag a little time. However, if I did the same thing, but then held the mouse in the same place for a while before I leave (which means that they should not have any speed), they would move to the average speed from the click to release. I need to work more as an example the New York Times' don't.

    Finally, I need the scroll down bar to go along with the videos when they are being dragged and vice versa (as well as the history of the NY Times').

    Here is the code I have so far:

    (I am very new to Flash and ActionScript, so expect the code to be... disappointing to say the least.) Feel free to make suggestions, you want improve the code.)

    Section 1:

    import flash.utils.Timer;

    var begPos;

    var endPos;

    var begTime;

    var endTime;

    Speed of var = 0;

    deceleration const = 7.5;

    var barDragging:Boolean = false;

    var moviesDragging:Boolean = false;

    function fadeIn(event:Event)

    {

    Event.Target.alpha += 0.05;

    If (event.target.alpha > = 1).

    {

    event.target.removeEventListener (Event.ENTER_FRAME, fadeIn);

    }

    }

    function fadeOut(event:Event)

    {

    Event.Target.alpha-= 0.05;

    If (event.target.alpha < = 0)

    {

    event.target.removeEventListener (Event.ENTER_FRAME, fadeOut);

    }

    }

    Section two:

    import flash.events.Event;

    Import flashx.textLayout.formats.Float;

    movies.one.frameString = "First_Movie";

    movies.two.frameString = "Second_Movie";

    movies.three.frameString = "Third_Movie";

    constraints: var = new Rectangle Rectangle (195,350,160,0);

    overBar.addEventListener (Event.ENTER_FRAME, fadeIn);

    overBar.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDragBar);

    function fl_ClickToDragBar(event:MouseEvent):void

    {

    barDragging = true;

    overBar.startDrag (false, constraints);

    }

    stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDropBar);

    function fl_ReleaseToDropBar(event:MouseEvent):void

    {

    barDragging = false;

    overBar.stopDrag ();

    }

    ///////////////////////////////////////////////////////////////////////////

    var constraints2:Rectangle = new Rectangle (0,200,550,0);

    movies.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDragMovies);

    function fl_ClickToDragMovies(event:MouseEvent):void

    {

    begPos = movies.x;

    var begDate:Date = new Date();

    begTime = begDate.getTime ();

    moviesDragging = true;

    movies.startDrag (false, locale2);

    }

    stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDropMovies);

    function fl_ReleaseToDropMovies(event:MouseEvent):void

    {

    endPos = movies.x;

    var endDate:Date = new Date();

    endTime = endDate.getTime ();

    var difference = endPos - begPos;

    framework of the var: String = event.target.frameString;

    If (Math.abs (difference) < = 3)

    {

    overBar.addEventListener (Event.EXIT_FRAME, fadeOut);

    motionBar.addEventListener (Event.EXIT_FRAME, fadeOut);

    gotoAndPlay (frame);

    }

    on the other

    {

    Speed += ((difference) / ((endTime / 1000)-(begTime / 1000))) / 24;

    trace (Speed);

    }

    moviesDragging = false;

    movies.stopDrag ();

    }

    ///////////////////////////////////////////////////////////////////////////

    If (moviesDragging is true)

    {

    movies.x = overBar.x * (80 / 275) + 195;

    }

    If (barDragging is true)

    {

    overBar.x = ((movies.x-195) * 275) / 80;

    }

    If (Speed > 0)

    {

    movies.x += speed;

    speed = slow;

    If (speed < = 0)

    {

    Speed = 0;

    }

    }

    gotoAndStop ("Beginning");

    I have five total images: the first image is empty and a little code to configure a number of things; the second place a symbol consisting of three symbols of the black box (they are just black boxes - I intend replacing them with real videos when I got this figured out) and the cursor on the screen, then the code to deal with them; the last three have just black boxes representative videos finally taking their place. That's all it takes for now.

    Let know if you need anything else and I thank very you much!

    Listen event mouseMove on slider, and when this happens to determine the x value for the video pane target (target x is relative to the x position of the slider.) Then the video pane TweenLite to target x.

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • Flash-based help system

    Hello

    I tried without success to get examples of Flash-based help files: the use of Flash and AS3 to create a (similar to CHM or WinHelp help authoring style) help file.

    I would like to create a small, very basic help file in a Flash AS3 project, with the look / feel of a Windows style help file. Perhaps, there are a few examples, sample FLA that can help me to avoid "reinventing the wheel."

    All the tracks would be appreciated.

    saratogacoach

    do not adjust cont, otherwise your _html will inherit the distortion.

    Sub is simply a way of positioning your html loaded (_html) easily.

    You can also load _html above Sub

    with

    addChild (_html) _cont.addChild //instead (_html)

    and position the upper left corner of the _html where you need

    with

    _html.x = 50

    _html.y = 80

  • MP3 player in AS3 Flash CS5 with autoresume feature?

    I created a website with an MP3 player on several pages. I created the player using AS3 in Flash Professional CS5. It has a volume slider on this subject that I set the initial value of 2. He charged music is identified in an XML file. If the user changes the volume, suspend or stop the music, I want to use autoresume (or something equivalent) to ensure that the player continues in the same status on several pages. The player is embeded in the pages using SWFObject.

    I searched for several days on the web, trying to find a solution and found no one. I don't know if there is something I need to do in AS3, Flash, on my pages, or if it can be handled in PHP or XML. Anyone know a good approach?

    You don't need "additional software" to use SharedObject. It is a standard feature of Flash has been around since Flash 6 CC1 Indeed, the code you are using is AS1

    AS3 doc

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/NET/SharedObject. HTML

  • NO BOOT DEVICE - PLEASE INSERT the STARTUP DISK AND press a KEY ANY * please help *.

    I have a Compaq CQ-50 that worked very well. It has been upgraded to winows 7 Bonus a year ago. This is the message I get when I press the power button

    NO BOOT DEVICE - PLEASE INSERT THE BOOT DISK AND PRESS ANY KEY

    any help would appreciated more than you know

    Hello

    Have you tried to reinstall the hard drive if yes. Then the drive is bad & who has need of a replacement.

    If your laptop is still under warranty, contact HP and arrange for the disc replaced.

    If you are out of warranty and would like a guide to replacing the hard drive yourself, let me know.

  • Hourglass flashes always help a few seconds-

    Hourglass flashes always help a few seconds-

    Hello

    I understand that the hourglass flashes always a few seconds on the computer. I understand the inconvenience.

    1. when exactly you get this flash hourglass?

    2. is the specific question when running a particular application?

    3. did you of recent changes to the computer before the show?

    It seems that there are a few applications that run in the background of the computer. Then I suggest you perform a clean boot and check if it helps.

    Method 1: Clean boot

    http://support.Microsoft.com/kb/929135

    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 3 of the aforementioned article.

    Method 2: Virus scanner

    You can download Microsoft Safety scanner, which provides on-demand scan, and remove viruses, spyware and other malicious software. It works with your current antivirus software.

    See the link below to download Microsoft Safety scanner on the system.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Warning: The data files that are infected can be cleaned by removing the file completely, which means that there is a risk of data loss.

    It will be useful. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

    Kind regards!

  • Bug - Flash CS6 help does not load

    New install of WIndows 7 (32 bit). Test Flash CS6 installation costs. Click Help > using Flash and nothing happens. Help does not load. Browser opens. Nothing happens. Even with the help > Centre de Support Flash. Also installed Photoshop CS6 trial and this system does help support (browser opens to the online help page). Flash CS6 help is completely dead. Does anyone else know this? Or better yet - how to fix?

    Hi Alec,.

    It is a known problem and you need to install Flash Pro CS6 help update to display help within Flash Pro CS6.

    Please let me know if you still encounter problems look a help.

    In addition, at any time you can view the last material assistance, learning and getting started with http://helpx.adobe.com/flash.html

    Kind regards

    Suhas Yan

  • Elasticity: the conversion of Flash 5 help code in Flash 8

    Hello

    because I have to make a menu flash with elasticity effect I came across this tutorial: http://www.kirupa.com/developer/actionscript/spring.htm
    Everything is OK, but the code only works with Flash 5. I managed to whip up some code that works for Flash 6, but still I came not even near a working code in Flash 8. I only use Actionscript from version 7, I don't know anything about Flash 5 and 6. So please, more experienced guys, help me!

    The code that I've come up with is:
    MovieClip.prototype.move = function (centerx, centery, inertia, k) {}
    This.x = - this ._x + centerx;
    This.y = - this ._y + CenterX;
    This.XP = this.xp * inertia + this.x * k;
    This.YP = this.yp * inertia + this.y * k;
    This this.xp of ._x +=;
    This ._y += this.yp;
    };
    {onEnterFrame = function ()}
    This.Move (_root._xmouse, _root._ymouse, 0.9, 0.1);
    }

    This code set is in the chronology of the MC is misplaced.
    So now, the only thing I need is to make this code work for Flash 8
    Help, please

    Just managed to do!

  • Rookie Flash needs help with error messages when you perform a simple calculator in AS3.

    I'm doing a simple calculator I followed this guide:

    http://www.YouTube.com/watch?v=5k3h37YKZJI

    It's my code.

    var Hnum:String;

    var PCnum:String;

    var calc:Number = 25;

    var Total: String;

    NUM1. Restrict = "0-9";

    num2. Restrict = "0-9";

    Est_btn.addEventListener (MouseEvent.Click, Calculate);

    function calculate(event:MouseEvent):void {}

    Hnum = num1.txt;

    PCnum = num2.txt;

    Total = parseInt (Hnum) * calc;

    Total.toString ();

    Total_txt. Text = String (Total);

    }

    I get 3 errors:

    Scene 1, Layer 'Actions', frame 1, line 141067: constraint implied a value of type flash.text:TextField to a type unrelated to a String.

    Scene 1, Layer 'Actions', frame 1, line 151067: constraint implied a value of type flash.text:TextField to a type unrelated to a String.

    Scene 1, Layer 'Actions', frame 1, line 161067: constraint implied a value of digital type to type String unrelated.

    I have two areas named num1 and num2 and box input text and dynamic text named Total_txt.

    This should be so simple, I don't really know what im doing wrong?

    Any help would be really appreciated.

    MrB

    If you look at the tutorial, I think you will see that you are using "txt" where "text" is needed.  'text' is a property of a textfield, identify the text that contains the textfield object.  I don't know if you're doing something where the num1 object contains another object named txt, but I think that my first sentence catches the problem.

  • How do you create content to list of contacts of scrolling in Flash style.

    Looking for a help/code for the creation of scrolling content to flash iOS that resembles the functionality of the list of contacts, ipod, etc. etc. etc..

    Drag and drop now but its not nearly as nice as the typical effect on the phone.

    http://code.Google.com/p/AS3-iPhone-scroll/

  • When I start Windows XP, my screen flashes, a help option is displayed in the taskbar and my audio and video have disappeared.

    After I start my system (XP) my audio system works very well. After some time the HELP screen flashes option appears on the taskbar and my audio and video sounds have disappeared. I can hear system sounds. I downloaded Fixit from Microsoft Support for its repair. But when I run it I see a runtime error 80040402. 2-3 days back, I had installed Avast 6.0.100 to get rid of a deadly virus that infected my flash drives. Since then, I have this problem. Help, please?

    original title: Sound stops working after a while

    Hello

     
     
    Follow these methods mentioned below and check.
    Method 1: run a scan for viruses with Microsoft Safety scanner and check.
    http://www.Microsoft.com/security/scanner/en-us/default.aspx
    Note: Before performing safety analysis make a backup of important data.
     
     
     
    Method 2: The scanner (System file check) SFC and check if there are any file system corruption.
    a. to do this, click Start, click programs, on Accessoriesprincipally made, right click guestand then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click allow.
    b. type the following command and press ENTER:
    sfc/scannow
    The sfc/scannow command. analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.
     
    More information on SFC scan found in this document:
    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)
    http://support.Microsoft.com/kb/310747
     
     
     
    Method 3:
    How to update a sound card driver in Windows Vista and Windows XP
    http://support.Microsoft.com/kb/166774
     
  • AS3 flash drive


    Hello, im new to AS3. I have a simple audio player that was built in AS1. Given that the new version of Flash does not support AS1 my problem is that I need a simple Walkman AS3 (start/stop/pause buttons, front and rear) to see if it will work with some legacy files I have. I searched the Web for a totorial build one but so far nothing usallable. Anyone have any ideas. (the audio file is located in my library is not streaming). Thanks in advance for your help

    RaceBannon690 wrote:

    Hello, im new to AS3. I have a simple audio player that was built in AS1. Given that the new version of Flash does not support AS1 my problem is that I need a simple Walkman AS3 (start/stop/pause buttons, front and rear) to see if it will work with some legacy files I have. I searched the Web for a totorial build one but so far nothing usallable. Anyone have any ideas. (the audio file is located in my library is not streaming). Thanks in advance for your help

    I hope this helps!

    Suppose we have a list of songs:

    var sList:Vector. = new ['songA.mp3', 'songB.mp3', 'songC.mp3'];

    Index of game current song

    var curIndex:uint = 0;

    Create the Sound object:

    var sndPlay:Sound = new Sound();

    Create the SoundChannel object

    var sndChannel:SoundChannel = new SoundChannel();

    Last position

    var lastPos:Number = 0;

    Click on the EVENTS button

    private void StartClick(event:MouseEvent)

    {

    This. Start (this.lastPos);

    }

    private void PauseClick(event:MouseEvent)

    {

    This. Pause();

    }

    private void StopClick(event:MouseEvent)

    {

    This. Stop();

    }

    private void ForwardClick(event:MouseEvent)

    {

    this.curIndex ++;

    If (this.curIndex > this.sList.length - 1).

    {

    this.curIndex = 0;

    }

    this.lastPos = 0;

    This. Start (this.lastPos);

    }

    private void BackClick(event:MouseEvent)

    {

    -this.curIndex;

    If (this.curIndex<>

    {

    this.curIndex = this.sList.length - 1;

    }

    this.lastPos = 0;

    This. Start (this.lastPos);

    }

    METHOD

    private void Start(position:Number)

    {

    this.sndPlay.load (new URLRequest (this.sList [this.curIndex]));

    this.sndChannel = this.sndPlay.play (position);

    Adjust the sound volume: between 0-1.0

    this.sndChannel.soundTransform = new SoundTransform (0.5);

    }

    private void Pause()

    {

    Resave the current healthy situation for the game

    this.lastPos = this.sndChannel.position;

    this.sndChannel.stop ();

    this.sndPlay.stop ();

    }

    private function Stop()

    {

    Reset the position for the game since the beginning of his

    this.lastPos = 0;

    this.sndChannel.stop ();

    this.sndPlay.stop ();

    }

  • dv4-1365dx caps and scroll lights Flash 4 times.

    When I turn on my computer, the hard drive starts but stops. The lights on the bar (next to the power button) turns on, but the screen does not work. Then, the caps lock and scroll Flash 4 times in sequence. My warranty expired last year, what should I do to fix my problem?

    Thank you for your help, you two. I had already tried a hard reset, without success. On the advice of another forum, I have remove and reinsert the memory sticks in the back of the computer. I think they must detach when it filed on an accident. In doing so, I restarted the laptop and now it works fine.

  • Mark AS3 problem please help + fix Code

    Hello, I am working on a mobile game in as3 at the moment and my noobish features fired because I can't seem to get this to work. Please take a look at my code in my main class below. What im trying to do is hide the partition in the main menu, display it ingame then resets on newgame function. Please look at my code and fix it up to make it work. (its all messed up and isn't - where almost go work lol) Thanks in advance, - Ben

    [as]

    package

    {

    import flash.display.MovieClip;

    import flash.utils.Timer;

    import flash.events.TimerEvent;

    import flash.ui.Mouse;

    import flash.events.KeyboardEvent;

    import flash.ui.Keyboard;

    import flash.events.Event;

    import flash.media.SoundChannel;

    Game/public class extends MovieClip

    {

    public static var ship: MovieClip;

    public static var healthMeter:HealthMeter;

    public static var partition: partition;

    public static var enemyShipTimer:Timer;

    public static var gameOverMenu:GameOverMenu;

    public static var startMenu:StartMenu;

    public static var startButton:StartButton;

    public static var pauseButton:PauseButton;

    public static var playButton:PlayButton;

    public static var mainMenuButton:MainMenuButton;

    public var currentValue:Number;

    public void Game()

    {

    Key.Initialize (internship);

    ship = new Ship();

    healthMeter = new HealthMeter();

    healthMeter.x = 2.5;

    healthMeter.y = 576;

    gameOverMenu = new GameOverMenu();

    gameOverMenu.x = 217;

    gameOverMenu.y = 244;

    addChild (gameOverMenu);

    gameOverMenu.visible = false;

    gameOverMenu.playAgainButton.addEventListener ("mouseDown", newGame);

    addEventListener (Event.DEACTIVATE, PauseGame);

    startMenu = new StartMenu();

    mainMenuButton = new MainMenuButton();

    startButton = new StartButton();

    startMenu.x = 151;

    startMenu.y = 111;

    startButton.x = 93;

    startButton.y = 426;

    mainMenuButton.x = 656;

    mainMenuButton.y = 483;

    addChild (mainMenuButton);

    mainMenuButton.visible = false;

    stage.addChildAt (startMenu, 0);

    addChild (startButton);

    startMenu.visible = true;

    startButton.visible = true;

    startMenu.visible = true;

    startButton.addEventListener ("mouseDown", newGame);

    mainMenuButton.addEventListener ("mouseDown", mainMenu);

    pauseButton = new PauseButton();

    pauseButton.x = 896;

    pauseButton.y = 63;

    pauseButton.addEventListener ("mouseDown", PauseGame);

    playButton = new PlayButton();

    playButton.x = 896;

    playButton.y = 63;

    addChild (playButton);

    playButton.visible = false;

    playButton.addEventListener ("mouseDown", countryside);

    }

    public static function gameOver()

    {

    mainMenuButton.visible = true;

    healthMeter.visible = false;

    pauseButton.visible = false;

    gameOverMenu.visible = true;

    enemyShipTimer.stop ();

    for (var i in EnemyShip.list)

    {

    EnemyShip.list [i] .kill ();

    }

    ship.takeDamage(-ship.maxHealth);

    }

    function newGame(e:Event)

    {

    gameScore.visible = true;

    addChild (pauseButton);

    addChild (healthMeter);

    addChild (mainMenuButton);

    enemyShipTimer = new Timer (1500);

    enemyShipTimer.addEventListener ("timer", sendEnemy);

    addChild (ship);

    healthMeter.visible = true;

    startMenu.visible = false;

    mainMenuButton.visible = false;

    startButton.visible = false;

    healthMeter.visible = true;

    pauseButton.visible = true;

    playButton.visible = false;

    gameOverMenu.visible = false;

    Ship.Visible = true;

    Ship.x =-2.85;

    Ship.y = 469;

    enemyShipTimer.start ();

    }

    function mainMenu(e:Event)

    {

    gameScore.visible = false;

    removeChild (mainMenuButton);

    removeChild (ship);

    healthMeter.visible = false;

    startMenu.visible = true;

    mainMenuButton.visible = false;

    startButton.visible = true;

    healthMeter.visible = false;

    pauseButton.visible = false;

    playButton.visible = false;

    ship.takeDamage (ship.maxHealth);

    gameOverMenu.visible = false;

    }

    function PauseGame(e:Event)

    {

    enemyShipTimer.removeEventListener ("timer", sendEnemy);

    stage.frameRate = 0; / /

    pauseButton.visible = false;

    playButton.visible = true;

    }

    function PlayGame(e:Event)

    {

    enemyShipTimer.addEventListener ("timer", sendEnemy);

    stage.frameRate = 30; / /

    pauseButton.visible = true;

    playButton.visible = false;

    }

    function sendEnemy(e:Event)

    {

    enemy of the var = new EnemyShip();

    stage.addChildAt (enemy, 0);

    addToValue (1);

    }

    function getFinalScore (): number

    {

    Return gameScore.currentValue;

    }

    Counter() function

    {

    Reset();

    }

    function addToValue (amountToAdd:Number): void

    {

    currentValue = currentValue + amountToAdd;

    updateDisplay();

    }

    public void setValue (amount: Number): void

    {

    currentValue = amount;

    updateDisplay();

    }

    public void reset (): void

    {

    currentValue = 0;

    updateDisplay();

    }

    public function updateDisplay (): void

    {

    super.updateDisplay ();

    score.scoreDisplay.text = currentValue.toString ();

    }

    }

    }

    [/ ACE]

    debugging it throws (totally smart) now this error:

    "

    Try to launch and connect to player using URL I:/SFUR/APP/APP-app.xml

    [SWF] APP.swf - 57868 bytes after decompression

    ReferenceError: Error #1070: updateDisplay method not found on flash.display.MovieClip

    game / updateDisplay () [I:\SFUR\APP\Game.as:185]

    game / addToValue () [I:\SFUR\APP\Game.as:168]

    game / sendEnemy ([I:\SFUR\APP\Game.as:154])

    at flash.utils::Timer/_timerDispatch()

    at flash.utils::Timer/tick()

    Debug the session is over.

    "

    is not surprising... Help, please!

    Thanks in advance,

    -Ben (Nacho )

    What is the line 185 is an object that does not exist as long as the code sees it.

  • Finally moving to AS3 - NEED of HELP PLEASE!

    I have been using AS2 for about 5 years and would I consider as competent enough with everything I do with AS2, but I did not leap to AS3 because my clients will only flash player 7 (Government)! They are about change of FP9 and I try to convert a flash file enough in AS3, but finding it very difficult, most of the issues around not being able to do the same things as AS2. I had a lot of cheat sheets and just can't do a specific action in AS3 migration guides, which are useful, but many of them say.

    I was hoping to post some questions really low and the very specific questions that I know I'm having a nightmare of a time.

    Thanks in advance for your help.

    First question:

    How can I add a movieclip that I dynamically create movie clip name? For example:

    roleBtn.attachMovie(roleHeadData[i][0]+"_mc","icon_mc",1);
    

    I have no idea, but I tried something like this:

    var icon_name:Class = this[roleHeadData[i][0] + "_mc"]
    var roleClip:icon_name = new icon_name();
    roleBtn.addChild(icon_name);
    

    Which obviously does not work... I haven't got my head around the whole creating a class to add a movieclip thing.

    Any help would be greatly appreciated!

    To dynamically add an object using its name of the class as a string, you can use...

    var ClassRef: Class = Class (getDefinitionByName ("className"));
    var classInstance: * = new ClassRef();
    addChild (classInstance);

Maybe you are looking for