Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Flash CS3 - Newbie question

Options
  • 06-05-2007 5:48pm
    #1
    Registered Users Posts: 3,056 ✭✭✭


    Sorry to be a bother folks...

    I'm a bit of a novice when it comes to flash actionscripts / actions / behavours...

    I've created a small flash movie with CS3 and want to do two thinks with it:

    1) have it play only ONCE - ie NOT loop

    2) When it finishes it's first cycle have it 'hot' so it' will now load a seperate page on mouseclick within a frameset - ie into a 'main'

    Thanks in advance


Comments

  • Closed Accounts Posts: 7,145 ✭✭✭DonkeyStyle \o/


    As no one else has suggested anything, I'll throw in my 2c.
    Note that I'm not familiar with CS3, only previous versions, but it should all still work I think.

    Generally to stop a clip from looping, you can just add:
    stop();
    
    into the action script window for whatever frame you want to end on.

    The way I'd go about doing the hot button would be to start with a movie clip symbol... do whatever animation you want for its 'first cycle', then add one additional keyframe to the end of this movie clip (add the stop(); actionscript to this keyframe).
    Go back and copy the last frame of the 'first cycle' (ie. when it's done animating) and paste it "in place" into the extra keyframe at the end of the movie.
    At this point you can select what you've pasted and convert it to a button symbol... you can double-click it and enter the next sub-level to do your visual roll-overs or whatever you want... but for functionality, I'd stay here for the moment and select the new button object (very important) so that the actionscript you add will be applied to this object and not just the frame.
    The actionscript you can use at this point is:
    on(release)
    {
       getURL("http://www.example.com","blank")
    }
    
    The blank argument here is the target window in which to launch the URL... in this case opening in a new window... now I haven't used frames in a few years, but I think you can just replace this with the name of the frame you want it loaded in ... ie. main

    I'm no flash expert, but I hope that's of some use to you and makes sense.


  • Registered Users Posts: 3,056 ✭✭✭sticker


    Apologies for coming back to this thread so late - thanks for your help -

    Much appreciated


  • Registered Users Posts: 3,056 ✭✭✭sticker


    I'm still having a spot of bother - I've uploaded this VERY EARLY ROUGH movie

    here:

    http://statesidecustom.com/Contact Us FLASH 2.swf

    I've uploaded the fla file also : "Contact Us FLASH 2.fla" to my space "http://statesidecustom.com"
    But "http://statesidecustom.com/Contact Us FLASH 2.fla" is just jumping to the index page - a small project for my expectant wife!!

    Apologies- Is there any way I can just copy and past my code from Flash CS3?!

    My main objective is for a mailto:vickie@indigo.ie after the movie stops over the email text

    &

    I want to link the animation of the map to a larger resolution map within a frameset (I know - I'm a dinosaur!)

    My code is wrong somewhere!!

    Here's the map code for the button:

    on (release) {
    getURL(html/map.html", "main"");
    }

    Many thanks again for your help... with any luck a valuable lesson will be learnt! ;)


  • Closed Accounts Posts: 7,145 ✭✭✭DonkeyStyle \o/


    on (release) {
    getURL(html/map.html", "main"");
    }
    Looks like you're missing an opening double-quote (") before html/map.html.

    Or if that still doesn't work, try using the absolute path/url to map.html (eg. http://www.example.com/html/map.html) instead of the relative path you currently use.

    You could probably pass the mailto: link to getURL... unless there's some flash function for it... I've never tried it tbh.


  • Registered Users Posts: 3,056 ✭✭✭sticker


    Looks like you're missing an opening double-quote (") before html/map.html.

    Or if that still doesn't work, try using the absolute path/url to map.html (eg. http://www.example.com/html/map.html) instead of the relative path you currently use.

    You could probably pass the mailto: link to getURL... unless there's some flash function for it... I've never tried it tbh.

    I'll try it when I get home - thanks for the help!


  • Advertisement
Advertisement