A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Play / Pause Text Scroller on Mouse Click ?

  1. #1
    Member
    Join Date
    Jul 2003
    Location
    Lahore
    Posts
    92

    Exclamation Play / Pause Text Scroller on Mouse Click ?

    Hi, Long time no see ? well I'm in need of bit help guys, I want to add the functionality on this Scroller to Play / Pause the scrolling text on each click, I bet it's if condition but I'm not that good with actionscript so any help would be greatly appreciated ...

    Thanks in advance. FLA Attached...

    Download FLA
    Nemesis

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    The fla is certainly messy, but this will do what you need.

    on frame 2 put this
    PHP Code:
    stop();
    clicked true;
    //
    main.main.main.onPress = function()
    {
        if (
    clicked)
        {
            
    this.stop();
        }
        else
        {
            
    this.play();
        }
        
    clicked = !clicked;
    }; 
    but before that, you need to give some instance names, so click the blue banner and name it "main" double click it , then click the blue again and call it "main", double click it to open it ,then click the text you can see and call it "main" again.

  3. #3
    Member
    Join Date
    Jul 2003
    Location
    Lahore
    Posts
    92
    I really appreciate your help fruitbeard but when I double click the main blue then I Get the blue shape so I can't name it... and anyway if I double click that shape then I see a non-drawing mode shape and no text ??

    and if i'm not wrong you can't add instance names for static text and shapes ? right

    actually this one wasn't made by me so sorry if it's confusing ...

    waiting for reply.
    Last edited by S.ORANGZEB; 11-14-2012 at 01:49 PM.
    Nemesis

  4. #4
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    Here is the swf zipped up. the fla is too big to attach combined with the swf.

    if that is what you want, then you can tidy up your fla, attach it again, then i will fix it for you.

    bearing in mind i use cs6.

    Attachment 73893

  5. #5
    Member
    Join Date
    Jul 2003
    Location
    Lahore
    Posts
    92
    Thanks it worked, yup this is what I was looking for ... and I'm also on Flash CS6 and no need for the FLA I've already converted the SWF to FLA and it's working fine... I don't know why here on flashkit.com the attachments quota is very very limited so that's why I used one of my own hosting space to upload my FLA and I honestly I didn't know how to tidy up that FLA..

    in the end Thanks again mate..
    Nemesis

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