Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 28th, 2003, 08:41 PM
Authorized User
 
Join Date: Jun 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default FlashMX Button action

I have this button called Contact in a Movie and I assigned to it the following action:

on (release) {
    _root.fx.gotoAndPlay(2);
    _root.mov = "4";
}

but it does not work at all.

If I delete the _root.fx. I get the movie to load from start.

All I want is to get it to play from the fx layer the frame number "4"

What am I doing wrong?



L Ion
__________________
L Ion
 
Old October 29th, 2003, 11:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If the button is in the same movie then use this

on (release) {
    _root.gotoAndPlay(4);
}

One thing you might consider doing is to add another layer and call it labels. Then label that frame 4 something like "play_movie". Then create your button action as

on (release) {
    _root.gotoAndPlay("play_movie");
}

Why do this? It creates a more dynamic button, that way you can add more frames without having to go back and figure out what frame number you need for your movie.
 
Old October 29th, 2003, 11:27 AM
Authorized User
 
Join Date: Jun 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank for this.
I actually gave up on it last night after few hours of pain & hell.

What I did I I stack-up the layer in the same scene, label them and set the action without going to _root.fx......


L Ion





Similar Threads
Thread Thread Starter Forum Replies Last Post
RunSql action rashi Access 1 September 28th, 2007 01:24 PM
Request action on change and get no action. Help crussell Ajax 0 September 12th, 2007 11:11 AM
deleting data with an action button Vince_421 Access VBA 11 May 24th, 2006 08:02 AM
FlashMX Multiple hittest pracashgv VB Databases Basics 0 October 31st, 2003 08:30 AM
I want button action to change current window drb2k2 JSP Basics 0 June 4th, 2003 06:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.