A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: frame number

  1. #1
    Member
    Join Date
    Jan 2001
    Posts
    42

    frame number

    I am making an interactive course. I was hoping that someone might know how to write a function that can tell the person in a text box what page (frame) they are on.
    such as:
    "you are on page 5 out of 36"

    Any suggestions would be great.

    thanks

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    If the page number in fact corresponds to the actual frame number, you could use _currentframe & totalframes...

    trace("You are on page "+_currentframe+" of "+_totalframes);

    message.text = "You are on page "+_currentframe+" of "+_totalframes;

    If not you can use a global variable each time you enter a new page...

    _global.current_page = 5; // for example...

    And use that variable in your trace or message text...

    trace("You are on page "+_global.current_page+" of "+_totalframes);

  3. #3
    Member
    Join Date
    Jan 2001
    Posts
    42
    thanks, i will try that. i new it was something simple like that.

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