A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: My problem with Action Script

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    6

    My problem with Action Script

    My problem with Action Script
    Please help me
    I want to make images in the interface that are displayed automatically every 5 seconds
    I tried and failed was the most successful
    Please help me
    The Project in Attachment

    fadi
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    May 2012
    Posts
    6

    Please help me

    Please help me
    Please help me
    Please help me
    Please help me

  3. #3
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    If you just spam asking for help with large and repetitive text, the chances you'll get any help at all are slimmer than if you'd have asked in a more formal way...

    As for your problem, modifying a template is really hard, so why would you want to make it automatically change to another image when the user can simply manually change the image?
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  4. #4
    Junior Member
    Join Date
    May 2012
    Posts
    6
    I'm sorry
    But my request. Based on the desire of the client
    Customer wants to show images automatically every 5 seconds
    Thanks

  5. #5
    Senior Member
    Join Date
    May 2010
    Posts
    178
    This forum does not help on Decompiled Stuffs.

    Please don't request of this kind of things. It not a legal on Developer's Perspective.

    The request you did is very simple though..



    poltuda

  6. #6
    Junior Member
    Join Date
    May 2012
    Posts
    6
    What solution do you think
    Can you help me please...

  7. #7
    Senior Member
    Join Date
    May 2010
    Posts
    178
    Well if this is for educational purposes.. THEN

    The Solution is to set a Timer.

    setInterval(functionName,interval);

    instead of onPress/onRelease

    BTW: What I suggest you is to hire a developer and pay to do this for you. That will solve your problems.


    poltuda
    Last edited by poltuda; 05-06-2012 at 10:57 AM.

  8. #8
    Junior Member
    Join Date
    May 2012
    Posts
    6
    believe that the issue is complex for me
    Can you apply that
    Because I failed to succeed
    the Project in attache
    You have my full thanks ...

  9. #9
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Be glad I am actually taking courtesy of helping you with this decompiled template.

    @poltuda: of course that's the key for the auto-change, BUT, you actually need to try and understand part of the template's code, as they're so stupidly nested and hard to find, argh.

    After some time, I FINALLY found the dumbly hidden movieclip which controlled the onRollOver/release part of the buttons, and found out how the transition between the images is controlled - that's why only a coder can understand his codes best, giving others nightmares trying to understand

    On your Main Stage (in root, out of everything), click on the last frame, Frame 68, open Actions Panel [F9], and after stop(), type this:

    Actionscript Code:
    function changeImage(){
        if(_root.photo >= 5){
            _root.photo = 1;
        } else {
            _root.photo++;
        }
       
        ch_cont.pages.instance26.instance27.ch_ph.ph2.gotoAndStop(2);
    }

    setInterval(changeImage, 5000);

    This will however override the button's functions (to put it simply), so they won't work with the autoslide, without further modification!
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  10. #10
    Junior Member
    Join Date
    May 2012
    Posts
    6
    This is what I want
    I thank you with all my heart
    I wish you eternal happiness
    And I'm ready for any service requested by me
    Dear Friend...

  11. #11
    Senior Member
    Join Date
    May 2010
    Posts
    178
    As you wish

    Regards


    poltda

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