Replay Slide Screen
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Replay Slide Screen

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    3

    Replay Slide Screen

    Hello - I have a slide presentation set up with 10 slides. Each one has graphics and a vice over audio track.

    How can I set up button to repaly the current slides sound.

    I want the button on the root layer of the presentation.

    Thanks

  2. #2
    Member
    Join Date
    Sep 2005
    Location
    Canada
    Posts
    79
    - Create a small box usingt he box tool
    - Write some text for the button using the text tool

    Position the text over the box as desired

    select them both by dragging ur mouse over them and press F8 and select "Button" and press ok

    Thats your button created - double click it to go into the button timeline, there will be 4 things in there:

    - Up:how ur button looks by default
    - Over: how your button looks and behaves when the mouse is over it
    - Down: how it looks when pressed
    - Hit: The area your button becomes active when mouse is placed over it (the hit zone)

    Do whatever you need to in there i.e. changing colors for over, adding sound etc etc

    After you are done double click somewhere outside the button area on the design window and ull go back to the main time line.

    Now click on your button once and from the "Actions" window put in the following code for the button for PREVIOUS frame:

    Code:
    on (release) {
        prevFrame();
    }
    for NEXT frame create another button and put this code:

    Code:
    on (release) {
        nextFrame();
    }
    I hope thats what u were asking for?

  3. #3
    Junior Member
    Join Date
    Jun 2006
    Posts
    3
    Thanks for the reply-

    I am good with attaching action script to buttons -

    To reword my question - Is there a way to replay the last sound that was playing.

    Also i am using the Slides Presentation - not a normal flash document.

    Thanks

  4. #4
    Junior Member
    Join Date
    Jun 2006
    Posts
    3
    Have found a solution - I modified on of the behavious and attached it to the button.

    Thanks

    Here is the script on the button

    Code:
    on (release) {

    // GoTo Next Screen behavior
    var screen = null;
    var target = this;
    while((screen == null) && (target != undefined) && (target != null))
    {
    if(target instanceof mx.screens.Screen)
    {
    screen = target;
    }
    else
    {
    target = target._parent;
    }
    }
    if (screen instanceof mx.screens.Slide) {{
    screen.rootSlide.currentSlide.gotoAndPlay("1");

    }}
    // End GoTo Next Screen behavior
    }

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

Poll by Flashkit.com