A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Flash Cs5

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    9

    Unhappy As3 helppppp, pls helppp ASAP

    i made thing in flash, i don't know what to call it as, but this thing that there is a word and when u click the audio it says the word, so the problem is when i do next and previous. the first and the second time when i go back and forth, there is no problem, but he third time, it starts to skip like from word 1 to word 3 or like from 5 to 7, i don't know what is the problem, if anyone could help this, that will most appreciated, thanks in advance and i have attached the flash file. here is an example you can test out:
    completenotebooksale.com/Untitled-1.html
    Attached Files Attached Files
    Last edited by AlvinChacko; 01-08-2011 at 12:28 PM.

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    I don't find any problem except with the word bible.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    9
    r u sure, did u test it out, try going to this link:
    completenotebooksale.com/Untitled-1.html
    and try clicking "next" till the end then "previous" till the begining keep doing it and you will see after a while, it skips from 1 to 3 instead of going to 2

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Now I see what you mean. It has to do with the strange way how you wrote the event listener. When I changed the script it disappeared, when I went through 3 times.

    PHP Code:
    function forward (evt:MouseEvent):void
    {
        
    trace ("next frame");
        
    nextFrame ();
    }

    but2.addEventListener (MouseEvent.CLICKbackward);
    function 
    backward (evt:MouseEvent):void
    {
        
    trace ("previous frame");
        
    prevFrame ();

    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  5. #5
    Junior Member
    Join Date
    Jul 2010
    Posts
    9
    thnkx for the code, but the next button is not working, u didn't tag button1 in the code, so i am not really good so can u give me another code that fixes the problem and both next and previous works
    oh i figured it out but1.addEventListener (MouseEvent.CLICK, forward); was missing in the first line thank you so much
    Last edited by AlvinChacko; 01-09-2011 at 04:42 PM.

  6. #6
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Forgot the top part, sorry

    stop ();
    but1.addEventListener (MouseEvent.CLICK, forward);
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center