A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: newbie needs help - want to redirect after movie end

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    2

    newbie needs help - want to redirect after movie end

    HI all,

    I've downloaded the latest swish max. all i want to do is play a flv and at the end i want it to redirect to a page. I thought something basic like this would be fairly simple to do. But it's really annoying the hell out of me.

    So far the best I have managed is to do:

    onFrame(1234) { getURL("www.xyz.com", "_self");
    }

    Few problems though. I'm just guessing at what the last frame is - i cant find anything in swishmax that tells me what the last frame is. I know it's close to 2150 just from playing with it. But that's another problem... i cant skip ahead to a few seconds before the end to test it... i have to keep watching the video from start to end over and over to test it. It's only 90 seconds, but you'd be surprised how long 90 seconds can be when you have to keep doing it over and over.

    Isn't there some way to just say AtLastFrame - gotoURL ?

    also, I'd like some basic controls for the video...basically pause, a slider to skip back and foward and volume control.

    I managed to get the controls to show up by using dreamweaver and made this page: www.ptwf.org/index3.htm

    But now with swish i can get some controls. but they look really ugly, and my video gets chopped off at the top when i try to use them.

    Sorry if i sound whinny, but it just drives me nuts when something i think is basic just doesn't work.

    Can anyone offer some tips on how to put this all together please?

    thanks in advance for any help

  2. #2
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    [hi]

    Url incorrect. you need to include the protocol.
    http://www.site.tld

    The last frame is the last fram an action or effect is displayed at.
    On export the movie removes unwanted frames from the end of the scene.

    Also,,,,
    Most of the SWiSHzone product users use
    http://forums.swishzone.com these days.

  3. #3
    Junior Member
    Join Date
    May 2008
    Posts
    2
    Sorry, I knew about the protocal, i was just being too quick when i typed my example.

    The problem I am having right now is mainly that I dont know what the specific last frame is. There's nothing i can see which shows me a frame count. How can i find out what the last frame # is?

    And I'll post on those other forums from now onwards, thanks.

  4. #4
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    hi,

    Like I said the last frame of a scene is the last frame were an event such as onframe or an effect occurs.

    on export SWiSHmax will remove unwanted frames after the last event or effect is displayed.

    If you create a movie with no effects and the only event you have on the timeline is frame2
    such as
    onFrame(2) { getURL("http://www.xyz.com", "_self");
    }
    The movie will only have two frames,,, because on export SWiSH Max2 removes all the unused frames.

  5. #5
    Junior Member
    Join Date
    May 2008
    Posts
    2
    No there are definitely more then 2 frames. Because like i said the last frame is somewhere around 2150. For example, the clip is about 90 seconds long and if i set onframe to 100, the web page opens up almost instantly. If i set it to around 2150 it opens up close to the end of the movie.

    I got an approximate value for the last frame by just taking 25fps and multiplying it by 90 seconds.

    thanks

  6. #6
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    Hi,
    What did I say happens on export?

    You can't see it in SWiSH Max because it occurs on export.

    I'm going to make this simple for you.
    Create a new movie.
    Put nothing in it.
    Under file> test select report.

    Read the report

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