Problem With Action Script

function loadProgress(my_content:ProgressEvent):void {
          var percent:Number = Math.floor( (my_content.bytesLoaded * 100) / my_content.bytesTotal );
          percent_Txt.text = percent + "%";
          preloader.gotoAndStop(percent);
function loadComplete(e:Event):void {currentFrame;}
loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loaderInfo.addEventListener(Event.COMPLETE, loadComplete);
is not working
Mean
the Text is to 1 - 100 % increase.
But not working that .
Only others are animating
Please some one help me

function loadProgress(my_content:ProgressEvent):void {
          var percent:Number = Math.floor( (my_content.bytesLoaded * 100) /
my_content.bytesTotal );
          percent_Txt.text = percent + "%";
        preloader.gotoAndStop(percent);  // preloader should have frames
1,...,100.*
function loadComplete(e:Event):void {
currentFrame+1;
// the above will do nothing.  what are you trying to do?
This action script is not working in my background. Any settings to change.?

Similar Messages

  • Problem with action script from Schewe and Frasier book.

    I am working on a Photoshop CS3 action script to
    open raw files, do a couple of modifications
    in Camera Raw, exit camera raw and save
    the file as a jpeg.
    I think this should work, because I am working
    on an example out of "Camera raw with Adobe
    Photoshop CS3" by Schewe and Frasier which
    shows the step recorded.
    See page 344 of Schewe and Frasier.
    In figure 9-11 you see, after the open
    statement, 10 lines of details like
    "As camera raw"
    "Model:Canon 350d" etc.
    I get the file path and name line, but
    none of the other details reflecting
    actions in Camera Raw.
    The problem is that in setting up the action, none
    of the steps done in camera raw after I do the
    open get recorded.
    And it works in my old CS version !
    Out of frustration I repeated the action
    script creation in my old CS version and
    it worked fine.
    Any idea where I am screwing up ?

    Crappy format justification:
    I sometimes have a day of family
    type pictures that are in raw format
    that I want to put up on the internet
    quickly. I would like to be able to
    apply the "Auto" feature, as in general
    it seems to be pretty good for something
    quick.
    OK, it sorta works in CS, go here
    http://www.angelplace.net/photos/sample.jpg
    It sets up all of the details and gets the
    "As camera raw" but opens the .dng file
    rather than the Camera raw window.
    The point is, these important settings
    seem to be saved, which does not happen
    in CS3.

  • Problem with action script to button

    Hello all.
    I'm having a problem with my adobe flash CS3 action script. My button cant link to the other URL. I tried to put an action script but i fail. anyone can help me? here the attachment for my flash document.

    HELLO,
                  just check       navigateToURL()

  • Problem with action script calculations

    I have a simple action script 3 code that will not calculate the correct answer on my PC.  I'm running flash cs5 on Window 7 OS.  I can move the file to another machine running  flash cs4 and it works, but when I run it on my laptop, I get funky answers.  see cold below.  I have uninstalled and reinstalled cs5 , run the cleanscript for cs5 and cs4 to make sure everything was removed.  I have uninstalled and reinstalled flash player.  but nothing seems to work.  Any help will be appreciated.  It acts like Action Script 3 is corrupt or something else that related to Action Script 3.  Everything else seems to work.  I also have a preloader running with the same issue.  It is should be showing the percentage completed but it go 2 5 50 4 32 or something funky like that.  Please help.
    the code I'm using.
    function calculateTotal(evtObject:MouseEvent):void {
       var price:Number;
       var totalCost:Number;
       var numberOfJerseys:Number;
       if (jerseyType.text == "2") {
        price = 12;
          if (jerseyType.text == "1") {
        price = 10;
       if (playerNames.text == "Y" || playerNames.text == "y") {
        price += 1.50;
       numberOfJerseys = int(numberOfPlayers.text) +int(numberOfCoaches.text);
       totalCost = numberOfJerseys*price;
       total.text = String(totalCost);
    calc_btn.addEventListener(MouseEvent.CLICK, calculateTotal);     
    the preloader percentage is
    var percent:int = amtLoaded*100
    percent_txt.text = String(percent);

    HELLO,
                  just check       navigateToURL()

  • Problem with action script 3 make input text box and button....

    Hi every one I am trying to make a family book using "Air for Android" with a simple search engin in the book
    air for android only work with AS3,
    the search function is to type a person's name and hit submit then go to a specific frame.
    have a problem making below code to work in AS3 and hopefully one of you guys can lead me in the right direction to fix the issue.
    Currently, I have an input text box and a button. When you type specific words into the input box and then hit the button it sends you to a specific frame.
    (it work find in AS2 but not in AS3,)
    Here is my current code that is placed on the main timeline, first frame:
    stop();
    onEnterFrame = function () {
        submit.onRelease = function() {
            switch (yourname.text) {
            case "name1" :
                gotoAndStop(2);
                break;
            case "name2" :
                gotoAndStop(3);
                break;
    My button that checks if the phrase is correct is called "submit" and my input box has an instance of "yourname".
    My phrases that will be accepted in the input box are "name1" and "name2" which bring me to two different frames.
    Basically, I'm having a problem with making this to work with AS3.

    you should use the default option in the switch statement
    that way yourname contains something not in one of the case statements it will go to the default bit and execute teh code there
    function onSubmit(e:MouseEvent):void
                                  switch (yourname.text)
                                            case "name1":
                                                      gotoAndStop(2);
                                                      break;
                                            case "name2":
                                                      gotoAndStop(3);
                                                      break;
                                            default:
                                                      goToAndStop(you frame you want);
                                            break;

  • Problem with a script to remove graphics

    Hello,
    I have tried to build a javascript to remove all graphics whose extension is not ".EPS" (with "EPS" really in upper cases, as it is for Mathtype equations in Word import).
    But It doesn't work and I can't understand why.
    Here is the script:
    //The script intend to remove all graphics whose extension is not ".EPS"
    var myDoc = app.activeDocument;
    var myGraphics = myDoc.allGraphics
    //Remove graphic if graphic extension is different from ".EPS"
    for (var p = 0; p < myGraphics.length; p++) {
        var myImage = myGraphics[p]
        if (CheckExtEps(myImage) != 0){
        myImage.remove ()
    //Compare graphic extension with ".EPS" and return myExtValue = 0 if it matches exactly
    function CheckExtEps(myImage) {
        var  myString = myImage.name
        myExt = myString.substr(myString.lastIndexOf( "." ))
        myExtValue = myExt.localeCompare(".EPS")
        return myExtValue
    When I run this script, ALL the graphics are removed, ".EPS" included.
    I do have ".EPS" graphics in my document and I expected them not to be removed.
    So there is something wrong somewhere, but I don't know what to change.
    Any ideas?
    By the way, I have a more generic question as a beginner:
    I am working with ExtendScript Toolkit. How can I do to check my script step by step?
    For exemple, how can I display my variables values as "myString", "myExt", "myExtValue" at each step?
    Actually, this script is a step for a bigger script I intend to build to deal with Mathtype equations in Word import.
    After not-EPS graphics beeing removed, I wish to relink all remaining equation prewiews to eps in a selected folder, by consecutive order.
    But this is a big piece of scripting to swallow for me, so I'm working slowly, step by step.
    TIA
    Best regards
    Nicolas

    Hello Ariel
    Thank you very much for your help.
    1. I added semicolons at the end of lines, but the script result is the same.
    2. Running line by line, I could see in the Console where is the problem:
    variable "myString" is always undefined.
    Well, I have to get more inside my script...
    Thank's again
    Best regards
    Nicolas
    Nicolas BALBO  
    [email protected]
    22, rue d'Hauteville  75010 PARIS
    Tel : 33 (0)1 42 57 14 31
    Le 18 avr. 2012 à 17:36, Arïel a écrit :
    Re: Problem with a script to remove graphics
    created by Arïel in InDesign Scripting - View the full discussion
    Well, I can't see any semicolons in your script. Maybe that's just the
    email interface, but there should be semicolons at the ends of lines.
    In the ESTK, you can step through a script a line at a time. Just click
    on the downwards pointing arrow instead of the "play" arrow. Each time
    you click, the script will advance one line. In the Console window
    (Windw>Console) you can then type the name of the variable you wish to
    examine.
    Ariel
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4344039#4344039
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4344039#4344039. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in InDesign Scripting by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Maths Problem in Action Script 2.0

    Hi surfers,
    We have a problem in Action Script 2.0 to solve the maths equation given below:
    write a code in Action Script 2.0 to solve these two equation.
    Aim: To know the value of "a" in both different equations.
    1. 2a + 5 = 3a + 1
    2. 4a + 3 = 11
    Thanks in Advance.
    Pls give me ASAP, i'm struggle here.

    Hello, you are at the wrong forum. for AS 2.o questions, hop on there: http://forums.adobe.com/community/flash/flash_actionscript
    BTY, people answer when they can, not when you want...

  • JDeveloper problem with actions

    Hello
    I'm working on my first struts application and I have any problem with actions(I think).
    When I run the application, I don't see any data from DB on my page but when I click any of these 4 buttons, then the data load from DB.....Can anybody help me....I want to see my data when the page loads for the first time, not after the button click. Thanks a lot.
    (The buttons shows the rows of the table....first,previous,next,last)
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <html:form action="/zuctzaz.do" >
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <input type="hidden" name="<c:out value='${bindings.statetokenid}'/>" value="<c:out value='${bindings.statetoken}'/>" >
    <tr>
    <td>
    <table>
    <tr>
    <td>
    <table>
    <tr>
    <td><input type="submit" name="event_First" value="First" STYLE="width:35px" <c:out value="${bindings.First.enabledString}" /> ></td>
    <td><input type="submit" name="event_Previous" value="Prev" STYLE="width:35px" <c:out value="${bindings.Previous.enabledString}" /> ></td>
    <td><input type="submit" name="event_Next" value="Next" STYLE="width:35px" <c:out value="${bindings.Next.enabledString}" /> ></td>
    <td><input type="submit" name="event_Last" value="Last" STYLE="width:35px" <c:out value="${bindings.Last.enabledString}" /> ></td>
    </tr>
    </table>
    </td>
    <td>
    <table>
    <tr>
    <td colspan="3"><strong>Z�&#269;tovac� z�znam</strong></td>
    </tr>
    <tr>
    <td>Date</td>
    <td><input type="text" name="textfield1" value="<c:out value="${bindings['datZuct']}"/>"></td>
    <td><c:out value="${bindings['cisPdo']}"/> AND <c:out value="${bindings['zucZazn']}"/></td>
    </tr>
    <tr>
    <td>Place</td>
    <td colspan="2">Brusel</td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </html:form>

    Hy Again!
    I forgot to say one more thing that could be relevant:
    If i add any action from the struts-config.xml in the provider for the <defaultAction> of the portlet it works correctly.
    So the actions work correctly, the problem is that when sending back to the oracle portal the request with the new action, there is no response.
    Pls help!
    Thanx, and best regards!
    Ado

  • Little execution problem with the script

    declare
    i number(1):=1;
    name varchar2(10);
    id number(2);
    begin
    loop
    id:=&id;
    name:='&name';
    insert into emp values(id,name);
    i:=i+1;
    exit when id<=5;
    end loop;
    end;
    When i tried to execute the script, it is going through the loop only once..What the problem with this script...Can any body help the script work?

    if id is less or equal to 5 then loop will execute only once.
    What is the variable i for ?

  • Problem with navigation script

    Hi I'm having trouble getting a button work correctly when
    pressed it should take user to a particular label on the main
    scene. Is there a problem with my script? The button is inside a
    movie clip which is inside another movie clip. Thanks in
    advance.

    this quite difficult to explain but here goes. i have a
    complex button with a roll in roll out effect. ie. a movie clip
    acting as a button that shows different buttons (in another movie
    clip) when it is rolled over. I then want the different buttons to
    go to other parts in the main timeline. the code works fine when
    the buttons are on the main timeline but because it is within
    another two movie clips it doesnt work like it should. In fact the
    script i have used in the first movie clip also affects the button.
    This script is as follows and belongs in the first frame of the
    first movie clip. In other words, I need the button not to be
    effected by the following script but by the gotoAndPlay script.
    Thanks

  • Problem with SAP Script FAX output

    Hi Friends,
    I have problem with SAP Script Fax output.
    After I issued output using the messge type, the print preview format shows me correct alignments and the right data. But when I go to List display using the menu bar functions from the print preview screen, the list is showing me the right data, but all the alignments at the main window went wrong.
    How do I rectify this problem? I need correct alignments in both form display and list display.

    Hi Sasidhar,
    Have you tried with different fax machine.
    Regards,
    Atish

  • Help with action script 2.0

    I'm a beginner with flash. I created a flash file on my own.
    I also created a flash file using a slideshow program. Generally I
    like this program. I can insert them into my html with no problem.
    I want to load the slideshow.swf file into an empty movie
    clip in the flash file I created called products.swf. It works fine
    using
    loadMovie("slideshow.swf", call_mb_slideshow); (where
    call_mb_slideshow is a empty movieclip.)
    as long as the all the files are in the same folder. But, I
    need the products.swf file with the empty movieclip to be in the
    parent folder AND I need the slideshow.swf and the slideshow.xml
    file to be in a child folder call musicbox_slideshow. When I change
    the code to this:
    loadMovie("musicbox_slideshow/slideshow.swf",
    call_mb_slideshow);
    It loads the slideshow.swf file into the movieclip fine, BUT
    it doesn't know where to find the slideshow.xml file that loads the
    pictures into the slideshow. It looks for it in the parent folder,
    not the child folder.
    How do I write the script in products.swf so that it knows
    where the slideshow.xml file is? I cannot change the slideshow.swf
    file code in any way. I need to do it from products.swf.

    I can use this code from html. I'm able to say where the swf
    and xml file are. I just don't know how to do this using action
    script.
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    width="768" height="576" id="tech" align="middle">
    <param name="movie"
    value="slideshow.swf?xml_path=musicbox_slideshow/slideshow.xml"
    />
    <param name="quality" value="high" />
    <embed
    src="slideshow.swf?xml_path=musicbox_slideshow/slideshow.xml"
    quality="high" width="768" height="576" name="tech" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>.

  • Help with Action script 2.0 please

    Hi,
    I am new to actionscript and i could really do with some help
    please. I am trying to load external movie clips into two different
    containers depending on which button is clicked. Sometimes there
    may be two conatiners attached to a buuton click, whilst other
    buttons may only need to load one movie clip. Here is the action
    script i have been using:
    button1.onPress = function () {
    _root.createEmptyMovieClip("container", 1);
    _root.createEmptyMovieClip("container1", 2);
    unloadMovie("container1");
    loadMovie("scene2.swf", "container");
    loadMovie("scene5.swf", "container1");
    container._x = 50 ;
    container._y = 110 ;
    container1._x = 170 ;
    container1._y = 5 ;
    button2.onPress = function () {
    loadMovie("scene6.swf", "container");
    unloadMovie("container1");
    container._x = 50 ;
    container._y = 110 ;
    This does load the movies, however i have to press button one
    first before button two will work. Ideally i need to be able to
    call any movieclip at any time. Can anyone tell me where i am going
    wrong?

    quote:
    Originally posted by:
    NedWebs
    Try moving these lines outside of the button function:
    _root.createEmptyMovieClip("container", 1);
    _root.createEmptyMovieClip("container1", 2);
    You can use "this" instead of "_root"... that'll save any
    problem if you ever move this within some other movie. Also, move
    the x/y assignments just under those lines since they relate to
    them directly.
    Hey thankyou for your help, that works now. although if i
    move the x and y assignments i would have to create another
    container right? Thanks again for your help.

  • Problem with some script--Help???

    I've been trying to learn some new things with flash and
    actionscript out of a book, I was trucking along nicely then I hit
    this rut--
    I keep getting an error with my script, but I am 99.9% sure
    that the script is the same as it is in the book.
    here is the code:
    //----------<LoadVars>---------//
    var myLV:LoadVars = new LoadVars();
    myLV.onLoad = function (success){
    if (success){
    _level5.loadedInfo.htmlText = myLV.info;
    } else {
    _level5.loadedInfo.text = "There has been an error loading
    the requested information .
    Please contact the Webmaster and report your error.";
    //---------------</LoadVars>-----------------\\
    and this is the error message:
    **Error** Scene=Scene 1, layer=actions, frame=1:Line 20:
    String literal was not properly terminated
    _level5.loadedInfo.text = "There has been an error loading
    the requested information .
    **Error** Scene=Scene 1, layer=actions, frame=1:Line 21:
    Syntax error.
    Please contact the Webmaster and report your error.";
    **Error** Scene=Scene 1, layer=actions, frame=1:Line 22:
    Expected a field name after '.' operator.
    Total ActionScript Errors: 3 Reported Errors: 3
    any suggestions??
    thanks,
    hutch

    sweet, that fixed the error problem. Now i have to figure out
    why my text won't load. The fun of learning!! I love running into
    problems and spending an insane amount of time trying to trouble
    shoot them, just to find the problem to be something so simple and
    minute that it makes you hate your self,--but when it all works in
    the end it feels so good.
    thanks,
    it is much appreciated.
    hutch

  • Problem with: Action Required: Your AOL Username login must transition to Apple ID

    In the early days of the iTunes store, it was possible to log in and make purchases with an AOL screen name. This has since been discontinued. In March 2015, Apple sent out a message to legacy iTunes account holders who have not yet converted their iTunes accounts from an AOL screen name to an Apple ID.
    However, the conversion program seem to be completely mismanaged and full of glitches and problems. If Apple does nothing about this, the company will face costly class action lawsuits by disgruntled consumers who purchased music but will in the future be prevented from playing it.
    I tried to follow the directions, but I am not able to log into the iTunes account under the AOL screen name. I tried to initiate a password recovery through the recovery email, but the recovery message with the re-sent link never arrives.
    I contacted Apple support several times. During very lengthy (several hours long) conversations, we were able to locate the account. However, I was told that Apple cannot reset the password and give me access to the account - I should contact AOL. My appeals that this would be illogical because AOL does not have the power to change passwords on an iTunes store account were ignored, and it was clear that each Apple employees I spoke with just wanted to push the problem on someone else.
    So I contacted AOL and was told that they have nothing to do with this. Nevertheless, we reset the password for the AOL screen name. As I predicted, this made no difference for the iTunes account: I still cannot log in.
    Today I contacted Apple again, and after we we made certain that I we identified the correct iTunes account, the Apple employee manually initiated a recovery e-mail sent to me. However, the confirmation message I received refers to resetting the existing Apple ID (not the iTunes store account we are trying to turn into an Apple ID).
    Clearly, there is a glitch in the system. It somehow intermingles and confuses information from the Apple ID and the AOL Screen Name / iTunes store ID and thinks that we are trying to reset the Apple ID.
    Apple's response was ridiculous: Talk to AOL. (I already have done that and established that changing the AOL SN password does not allow me to gain access to the iTunes account).
    This is my 4th call to Apple. Each lasted several hours (including hold time). Now I've been on hold for about 3 hours while I'm waiting to talk to a higher tier tech support person.
    Does anyone have similar problems with this conversion? Any solutions?

    You need to sign in with just the user name. not with the @aol.com at the end.
    Example: If your AOL username is AOLUSERNAME & your AOL email is [email protected], you must log in with only AOLUSERNAME & your AOL email password & it will prompt you to change it. You can’t use your @aol email, it must be something else.

Maybe you are looking for