Please help with this script, AS3 to AS2 (preloader)

Hello. Ive done a flash banner to my client. It has two scenes, preloader (with percentage and animation (in 100)) and the main stage. Preloader using AS3. I need this conversion in AS2. How to do this? Code:

to import flash.events.ProgressEvent;
function update(e:ProgressEvent):void
{
var p: Number = Math.floor ((e.bytesLoaded*100)/e.bytesTotal);
If (preloaderMC is MovieClip) {}
preloaderMC.gotoAndStop (percent);
preload_txt. Text = String (percent) + "%";
}
if(percent == 100) {}
Play();
}
}
loaderInfo.addEventListener (ProgressEvent.PROGRESS, update);
Additional test for IE
var p: Number = Math.floor ((this.loaderInfo.bytesLoaded*100)/this.loaderInfo.bytesTotal);
if(percent == 100) {}
nextFrame();
}
Stop();

The full FLA: http://www.agroinvent.eu/briklis.fla, if someone can repair (make), pls send me the fla file corrected.

A BIG THANK YOU. Best regards. Zolee

use:

var tl:MovieClip =;

update of the function (): Void
{
var p: Number = Math.floor ((tl.getBytesLoaded()*100)/tl.getBytesTotal ());

preloaderMC.gotoAndStop (percent);
preload_txt. Text = String (percent) + "%";

if(percent == 100) {}

clearInterval (preloadI);
TL. Play();
}
}

clearInterval (preloadI);
preloadI = setInterval(update,100);
Stop();

Tags: Adobe Animate

Similar Questions

  • Get error 207 trying to download creative Cloud and someone please help with this problem, thanks in advance please.

    Get error 207 trying to download creative Cloud and someone please help with this problem, thanks in advance please.

    Please refer to

    Error 207 to "install Adobe".

  • Please help with this nightmare Yontoo

    Adding or deleting, I deleted Yontoo I have no idea how it it has been downloaded period, I'm at the wheel of a 'XL' that has served me well. My problem is I deleted this Yontoo and forggetaboutit. This program has created 6 file enties 1) %Temp%\Yontoo FFClient.xpi 2)%Temp%\Yontoo IEClient.dll

    3)%temp%\Yontoo Layers.crx 4)%Temp%\Yontoo Layers.pem 5)%Temp%\Yontoo Setup - Silent.exe 6) % Program Files%\Yontoo sleeping Runtime\Yontoo IEClient.dll... Then he then made 8 registry entries. If I can get these files removed from my machine, then I will devote my time to fix the registry. I say this because my nightmare does not stop there. Believe me when I tell you that this program "YONTOO" goes further because it created another register 16 subkeys. It's like something totally unknown to 'The Wild Wild West of the 21st Centuryt' someone would say enough is enough, but there is still a little to make this complete puzzle. This program goes further and creates and installs what they call 'Rage Page' it is a browser extension that changes the structure of the skin of the 'Facebook' and displays ads that seem to you guessed it "Facebook"... My main wish is that I will be able to get help with the "folders". I'm not a person notified with computers, but then I think that my say you I'm always pushing an "XP" in this era of high-tech a bit gave me there Yes... Anyway any help, you can afford to me will be greatly appreciated.  Thank you in advance.
    Respectfully * address email is removed from the privacy *.

    Hello

    Try the free version of revo uninstaller to completely remove all files and registry entries associated with YOONTOO.

     

    Revo Uninstaller. (free version)

    http://www.revouninstaller.com/revo_uninstaller_free_download.html

    When you are finished, download and run a full scan of Malwarebytes anti-malware from the link provided below.

    AV. Malwarebytes

    http://www.Malwarebytes.org/

    Also run a full scan of SuperAntispyware.

    SAS

    http://www.SUPERAntiSpyware.com/

    Remove any found object.

    Further reading

    http://www.ehow.com/how_8561545_delete-Facebook-pagerage.html

    Good luck and let us know if this helped.

  • Adding values to insert the query [was: Please help with this code]

    I created a comments section where there is that a single comment here field is the code for the form:

    < form id = "frmComment" name = "frmComment" method = "POST" action = "<?" PHP echo $editFormAction;? > ">"

    < h3 >

    < label for = "namegd" > < / label > comment: < / h3 >

    < p >

    < label for = 'comment2' > < / label >

    < textarea = "comment" id = "comment2' passes name ="60"lines ="10"> < / textarea >

    < /p >

    < p >

    < label for = "submit" >

    < / label >

    < input type = "submit" name = "submit" id = "submit" value = "Submit" / >

    < label for = "reset" > < / label >

    < input type = "reset" name = "reset" id = "reset" value = "Clear" / >

    < /p >

    < input type = "hidden" name = "MM_insert" value = "frmComment" / >

    < / make >

    and inclusion in the code applied to the shape is as follows

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }


    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "frmComment")) {}

    $insertSQL = sprintf ("INSERT INTO comments ('comment',) VALUES (%s)", ")

    GetSQLValueString ($_POST ['comment'], "text"));


    @mysql_select_db ($database_my_connection, $my_connection);

    $Result1 = mysql_query ($insertSQL, $my_connection) or die (mysql_error ());

    }

    But I want the form to insert more than two values to the database one commented_by and the other will be post_id where = commented_by ($_SESSION ['Username']) and post_id = $row_Recordset1 ['id'] can someone please let me know what will be the modified code and there is commented_by is a text field and post_id is an int field.
    Please guys help me thanks in advance

    It is easy to add additional values to the Insert query:

    $insertSQL = sprintf("INSERT INTO comments (`comment`, commented_by, post_id) VALUES (%s, %s, %s)",
             GetSQLValueString($_POST['comment'], "text"),
             GetSQLValueString($_SESSION['Username'], "text"),
             GetSQLValueString($row_recordset1['id'], "int"));
    

    You must ensure that code to recordset1 comes before the insertion query. By default, Dreamweaver recordset place code immediately above the declaration DOCTYPE and under other server behavior. Thus, you must move the code. Otherwise, this insert query does not work.

  • Please, help with this code

    Hello

    I use this line for dynamic create menu. I use XML and then I call the attritbutes in Flash. I want each button to call its own function. It works if I use

    = new curr_item.onRelease; News is the name of the function

    but it does not work if I use

    curr_item.onRelease = this.labelA; labelA is an attribute from XML, its value is a new

    I used the trace and the value is not indefinite.

    If you need more code, please let me know. Thanks for any help you can provide.

    this.labelA? This is probably undefined. Most likely, you will need to use:
    Switch (curr_item.labelA) {}
    case "news":
    curr_item.onRelease = News;

  • I can't find my 'trash' in Windows 8. Can someone please help with this?

    I checked in my files, etc. and in my pc for settings, but can't find it, and it certainly isn't on my desk either. Just upgraded to Windows 8 last week. Any help would be appreciated.

    Kind regards.

    On your Desktop App... When you right click > customize and then click change desktop icons link in the top left, isn't she listed there?

    This may help: http://www.eightforums.com/tutorials/5419-recycle-bin-pin-taskbar-windows-8-a.html?ltr=R

  • Can someone please help with this flash error?

    I am unable to load a file CS6 in CS5 at school I want to that I just discovered, I did. I can't make a .swf because of blocks of privelages. How can I convert to load in CS5. I downloaded the .fla to mediafire and wonder if anyone can convert it, since I can't run an exe on this computer here. My project is due in 20 minutes, I love you, one that helps me for the rest of my life. http://www.mediafire.com/?dbe7brznpbbo8zv

    Here you go: http://www.kglad.com/Files/forums/Untitled-3.fla

  • Can you please help with this error message when I go to download the latest version of lightroom 5.4

    Capture.JPG

    I did have problems in the past with the upgrade.  It seems that some link of all kinds have been broken.  I have a Windows PC.

    Thank you

    I just download the update of http://www.adobe.com/support/downloads/detail.jsp?ftpID=5741 and then install it, that's how I do it

  • Install the second HARD drive in my Inspiron 1720... : () Please help with this one

    Hello

    you just bought a faster (7200 RPM) 60 gb 2.5 "SATA (of course) for my Inspiron1720 - idea is to keep the system on it.

    Anyway, opened the Bay where are hard disks, and I noticed there is some sort of connector for my current hard drive (the thing has a kind of bent pins to plug the drive hard vertivally)

    because I don't want to replace it, to add another, I am devoid of this connector, faq explains only how to replace not add a second.

    Summer:

    http://dellcommunity.com/supportforums/board/message?board.ID=cc_faq&message.ID=350

    that read, however it means only (part number) type PATA and SATA got :(

    Now, I spent all day in the city, searching ebay and allegro (sort of Polish to ebay ;])

    Couldn't find it anywhere, so how can I connect the new drive?

    I couldn't find info about it on the net, so it's not a common problem, so how people add new hard drives to their 1720s?

    So what now? is it possible to get this connector? what I buy from Dell? : smileymad: (that would really bother me) or should I have got one when I bought my inspiron? (don't have the box at the moment, is in my second home, so can not verify)

    Will be much gratefull for info, as it starts to irritate me, can I just plug into my new hard drive in a DELL computer.

    See you soon

    Tomek


  • I was told that I have to disable my account from my PC to add to another computer... I've done it before and I lost many of my images that were on LR.  No matter WHAT HELP with this please

    I'm trying to load another computer with CC, I was told that I have to disable my PC mine.  I did once before and lost a lot of my images from LR, suggestions on this please.

    I do the LR back ups system too.

    Thank you very much

    PAM

    Hi goaliemom

    There is no way to disable CC products. When you enable a CC product on another computer, simply connect to Creative Cloud.CC will ask you if you it will activate on more than 2 computers.

    I've done it before and I lost many of my images that were on LR.  No matter WHAT HELP with this please

    On the computer on which you will see that your images are not displayed?

    Catalog check the most recently used file > open recent in Lightroom

    Try opening a recent backup made on your newly added computer

    ~ Assani

  • PC automatically shutsdown after every 30 min. I have the last MS Security Essentials installed and running and also the MS Malicious software installed, but none are able to detect any virus or harmful software. Please help in this regard.

    PC automatically shutsdown after every 30 min.  I have the last MS Security Essentials installed and running and also the MS Malicious software installed, but none are able to detect any virus or harmful software.  Please help in this regard.

    You get a bsod?

    Please check the event log to see if there are errors, helping to explain what is happening. Also check the c:\windows\minidump folder. Are there files .dmp created here with the dates that it closed? If so please download them on your skydrive so watch us closer.

    See you soon.

    MyPcHealth - free tools

  • Where can I get help with this message? «Adobe Acrobat Reader DC could not open (my file.xls) because it is not a type of supported file or because the file has been damaged (for example, it was sent as an attachment to e-mail and has not been correctly d

    Where Iget can help with this message? «Adobe Acrobat Reader DC could not open (my file.xls) because it is not a type of supported file or because the file has been damaged (for example, it was sent as an attachment to e-mail and has not been correctly decoded).» I don't know where to go or how to solve this problem. It started to happen after I went to the office 356 and uses Windows 10.

    Hi brionp43071032,

    Please see the troubleshooting provided in this KB doc steps: fix damaged document error when opening PDF files

    Let us know if you still experience the problem.

    Kind regards

    Meenakshi

  • Need help with a script customized for processing in Photoshop CS4 of images in batches. Really grateful for the help thereby.

    Hi people.

    So I have a boatload of pictures that I have to deal with as I'm moving off Ebay and open my own online store and the images that I have on Ebay, although excellent quality are not square, and unfortunately, the model that I use in Wordpress requires square photos.

    Basically, what I need is a script that I can use in batch mode, which will focus on the size of the image and change the canvas size to be square corresponding to the current long image side. Resize the image to 1600 square pixels and finally save for web in JPEG quality 60.

    Normally I would muddle my way through this trying to teach myself but I already do so much with this new project that I can't afford to pay developers for help that I would really appreciate if someone could help me with this script. I use Photoshop CS4 if it made a difference.

    Thanks much for any help you can offer.

    See you soon,.

    J

    A simple gesture can do that. What you need to do is that the action of lot.   With the help of Photoshop Image Processor script.  The Action is a two-step

    N ° 1). File menu > automate > fit Image.  In the dialog box Image Fit you assign Width and Height 1600 pixels.

    Step 2.) Menu Image > canvas size.  In the canvas size dialog box, you assign Width and Height 1600 Pixels.

    Record the action in some action with a name like 1600PxSquare

    Then use the file menu to Photoshop > Scripts > image processor. In the dialog to the Image Processor script. Select your image source folder. Set where you want your jpeg images. Set it to save jpeg files quality 6.  Set it to include your 1600PxSquare action.

    Step adjustment image resize your image to fit in a 1600 x 1600 pixels are while keeping image proportions of images. Portrait image will be high 1600px and landscape image will be 1600px wide.  The step size canvas will add the canvas to make the place of the image.  Portraits will have a border on the left and right images of landscape will be confined to the op and downs.

  • I need to reactivate Photoshop CS4 because I have a new hard drive in a reminder for my 2.5 yr old iMac last operating system running. When you open the program, I was told to contact Adobe support and give them an error code: 150:30. Please help with per

    I need to reactivate Photoshop CS4 because I have a new hard drive in a reminder for my 2.5 yr old iMac last operating system running. When you open the program, I was told to contact Adobe support and give them an error code: 150:30. Please help with permission. ?

    You can repair it yourself. I have a screenshot guide. You use app the Mac Terminal and a python (.py) script that comes with the recovery of the license for the Mac package.

    Don't forget to leave a space after typing sudo python and note that your password will not display any points. Simply enter it blind.

    Start 11 Message and take your time. It does not work. Layout error 150:30 opening Photoshop cs4 on Macbook Pro

    Gene

  • Need help with a script (o - o8) *, see the Virgin if there is no

    Hi all what I need help with a script I can't find an example.

    I'm trying to subtract 2 numbers and then multiply this product. (o o8) * one but I just want to do the calculations if all fields have the numbers IE field o, o8 of field and field one.

    Thank you in advance. I was stuck on this days searching the Internet.

    Assuming you want to affect the outcome of this calculation in another text field, use this code as a custom field calculation script:

    var o = this.getField("o").valueAsString;
    var o8 = this.getField("o8").valueAsString;
    var a = this.getField("a").valueAsString;
    if (o!="" && o8!="" && a!="") event.value = (Number(o)-Number(o8))*Number(a);
    else event.value = "";
    

Maybe you are looking for