|
|
 |
Re: FN-FORUM: Flash MX
date posted 16th June 2003 17:31
Yep that is right, put the actions on a button:
on(press){
_root.createEmptyMovieClip("container",1);
_root.container.loadMovie("mySWF.swf");
}
you can also position it by doing the following:
_root.container._x = 50
_root.container._y = 50
if you are creating multiple movies it may be a good idea to put them on
different depths and use variables to control their names, to do this create
a variable in the first frame of the movie such as:
globalDepth = 1
The use the following code:
on(press){
_root.createEmptyMovieClip("container" +
_root.globalDepth,_root.globalDepth);
_root["container" + _root.globalDepth].loadMovie("mySWF.swf");
_root.globalDepth++
}
Thanks
Pete
----- Original Message -----
From: "L I G H T S U R G E R Y" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, June 16, 2003 4:51 PM
Subject: FN-FORUM: Flash MX
> Hi all.
>
> Need some specific help with some fairly basic Flash.
> Tom gave me some advice (below) previously but it's still to complicated.
>
> Basically I'm wondering how to LOAD a Movie into another movie when you
> click a button.
> In other words I have a flash movie and when I click a button in it, I
want
> a flash movie to load into a designated area and play (a bit like having a
> movie clip start).
>
> My flash is working as follows:
> Scene 1 > Preloader Movie clip > 'Main' movie clip
> 'Main' movie clip contains page design with buttons linking to 6 'section'
> clips (about, contact etc) at 5 frame intervals.
> Instead of having these 5 m.clips within the 'Main' Movie I'd like them to
> load from a button click into the whole scene (not over it, but integrated
> with it).
> Trouble is, I am a rank amateur so I need some detailed help.
>
> I know you guys are all busy but if anyone has the time to respond with
help
> or links to a tutorial I'd be super delighted.
>
> Tom's advice was:
> "make a container for movie to be loaded into:
> _root.createEmptyMovieClip("container",1);
> then just do:
> container.loadMovie("mySWF.swf");..."
>
> But I'm not sure where to type this into, is it in a blank keyframe in
Scene
> 1?
>
> Thanks in advance for any help offered.
> Justin
>
>
>
>
> ***********************
> Justin Goring
> Designer
> Lightsurgery
>
> Mobile: +4478 6678 2262
> E-Mail: [EMAIL REMOVED]
> Website: www.lightsurgery.co.uk
>
>
>
>
> -----Original Message-----
> From: [EMAIL REMOVED] [EMAIL REMOVED]
> Behalf Of Tom Rhodes
> Sent: 15 June 2003 16:28
> To: FN-FORUM / [EMAIL REMOVED]
> Subject: RE: FN-FORUM: Flash MX
>
>
> okey dokey,
>
> first make yourself a container for the movie to be loaded into, something
> like...
>
> _root.createEmptyMovieClip("container",1);
>
> this creates a movie clip attached to the _root of your main movie at a
> depth of 1. if you don;t want it on the _root, then just change the path.
>
> then just do this.
>
> container.loadMovie("mySWF.swf");
>
> you can then control that movie exactly as you woudl control any other
movie
> clip.
>
> hth,
>
> tom.
>
> [EMAIL REMOVED] wrote:
> > Hi.
> > Hope everyone had a great weekend.
> >
> > Just doing some Flash work in MX.
> >
> > Wondering how to LOAD a Movie into another movie when you click a
> > button? In other words I have a flash movie and when I click a button
> > in it, I want a flash movie to load into a designated area and play
> > (a bit like having a movie clip start).
> > Is this possible?
> > How do I do it?
> >
> > Thanks in advance for any help offered.
> >
> > Justin
> >
> >
> > ***********************
> > Justin Goring
> > Designer
> > Lightsurgery
> >
> > Mobile: +4478 6678 2262
> > E-Mail: [EMAIL REMOVED]
> > Website: www.lightsurgery.co.uk
> >
> >
> >
> >
> > ==========
> > Graduate & Professional Financial Services - Specialists in MORTGAGES
> > for FREELANCERS. House purchase, re-mortgage (including debt
> > consolidation and capital raising), Buy to Let, flexible offset and
> > current account mortgages. Visit our website at
> > http://www.gradprof.co.uk?fnet
> >
> > To advertise here: http://www.freelancers.net/advertising.html
> >
> >
> ==========
> Graduate & Professional Financial Services - Specialists in MORTGAGES for
> FREELANCERS. House purchase, re-mortgage (including debt consolidation and
> capital raising), Buy to Let, flexible offset and current account
mortgages.
> Visit our website at http://www.gradprof.co.uk?fnet
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>
> ==========
> Graduate & Professional Financial Services - Specialists in MORTGAGES for
> FREELANCERS. House purchase, re-mortgage (including debt consolidation and
> capital raising), Buy to Let, flexible offset and current account
mortgages.
> Visit our website at http://www.gradprof.co.uk?fnet
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|