all groups > flash (macromedia) > april 2005 >
You're in the

flash (macromedia)

group:

load movie


load movie journey2000
4/3/2005 11:21:10 PM
flash (macromedia):
Hi all, Thought I had this sussed... but no. I'm trying to have different
..swf play, depending on which button is clicked. As you can see, my 'girls'
book' button works, i.e. .swf plays when it is clicked, but the action is
causing my other button behaviours to stop working (roll the mouse over the
buttons and you'll see the 'girls' book' button is the odd man out). I've
tried adding the loadmovie action on the 'hit' part of the button, but it
doesn't let me. Can someone please take a look at my .fla & see what I'm
doing wrong? I haven't included the external .swf. BTW, please don't lynch me
for the lack of labelling! It's a downloaded template & I'm trying to fix
it up as I go. :)The address is: http://www.superstar.co.nz/Site.fla. Thanks.
Michelle
Re: load movie journey2000
4/4/2005 5:01:44 AM
Re: load movie blckbrry
4/4/2005 6:23:24 AM
I was able to get your button working by duplicating one of the other buttons
that worked (home) and swapping out the appropriate text (girl...) in the text
buttons. Don't know why that particular one isn't working but that did the
trick for me. I would suggest putting all your actionscript on one layer
however. Also, in your situation there is a much easier way to do the buttons
without using so many nested buttons. It would be better (and easier to
troubleshoot) if you used a movieclip and then called your timeline movement
('gotoAndPlay(11);' etc...) from the main timeline using actionscript. For
example: girlsBook_mc.onRollOver = function() { girlsBook_mc.gotoAndPlay(11);
} Then you can use your movie clip with just animation, no buttons needed
inside. It's late, and I hope I made any sense... rw
Re: load movie journey2000
4/4/2005 9:43:06 PM
Re: load movie blckbrry
4/4/2005 9:53:05 PM
Well, To just quickly fix your problem: try creating a new button or
duplicating one of the other buttons that works and change the text to the
'girls book' text. I made it work by getting rid of your problem girls book
button and duplicating your home button, then changing/duplicating buttons and
text inside to 'remake' your girls book button. The other suggestion was for
replacing your current approach to doing buttons within buttons within buttons.
It was a suggestion for if you have time or maybe your next project. rw
Re: load movie journey2000
4/4/2005 11:25:32 PM
The girls button is cool now... fixed that. I just don't know how to implement
your other solution. As I said, I didn't create the site from scratch
(definately didn't create the buttons within buttons, too confusing). I have
very basic actionscripting knowledge, so I figured attaching a loadmovie action
to a button would be the simplest solution for me. I just can't figure out
where to add it without affecting the other button behaviours.
Re: load movie blckbrry
4/4/2005 11:34:54 PM
I might have missed something in what you said... What is happening that you
don't want to happen (or vice versa) when you click on the 'girls book' button?
Is it still causing the other buttons to not work? Or is your 'loadmovie'
question regarding something else? rw
Re: load movie journey2000
4/4/2005 11:49:34 PM
I'd like book.swf to load when I click the girls book button, book2.swf to play
when I click boys button etc. Basically, where on these buttons can I add the
loadmovie action without disrupting anything else? Use the boys button as an
example. Where can I add the loadmovie on release action without mucking up
the behaviours that button already has? I can't add it to the 'hit' part of
the button as it doesn't let me.
Re: load movie blckbrry
4/5/2005 12:08:18 AM
I see, thanks for the explaination. What you want to do (with the way it's set
up now) is go into your boys button and unlock the button 'area' layer. Then
click on the button area (which already has the onRollOver, and ReleaseOutside
scripts) and add a 'onRelease()' action like this: on(release) {
loadMovie('myMovieClip.swf', 2); // loads movie into level 2 for example }
That should work for you. But if not let me know... rw
Re: load movie journey2000
4/5/2005 12:22:09 AM
Re: load movie blckbrry
4/5/2005 12:27:58 AM
AddThis Social Bookmark Button