Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

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
>
>



Messages by Day
June 30th 2003
June 29th 2003
June 28th 2003
June 27th 2003
June 26th 2003
June 25th 2003
June 24th 2003
June 23rd 2003
June 22nd 2003
June 21st 2003
June 20th 2003
June 19th 2003
June 18th 2003
June 17th 2003
June 16th 2003
June 15th 2003
June 14th 2003
June 13th 2003
June 12th 2003
June 11th 2003
June 10th 2003
June 9th 2003
June 8th 2003
June 7th 2003
June 6th 2003
June 5th 2003
June 4th 2003
June 3rd 2003
June 2nd 2003
June 1st 2003


Messages by Month
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003


Messages by Year
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000