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 loading an SWF into a movieclip Flash MX

date posted 7th February 2003 13:16

Hi Marco,
You're failing to grasp some basics of 'onload' and the controlling of
animation using variables. Forget about levels - when using .onload an
independent .swf becomes 'part' of your main movie, therefore everything
is 'on' level0 and the imported movie can use and access existing
variables within 'both'.

The variables... you have put the variables 'on' button event. This is
wrong. 'titlebar = "Products";' should read '_root.titlebar ="Products"'
centralising the variable so it is easily accessible to any MC within
the movie; the same with the variable 'title'. Furthermore, for the
animation then to take place you have to tell Flash to initiate the
routines. You do not use 'Play()' as Flash won't know what you want to
play! To do this use 'tellTarget':

tellTarget (_root.whereverAniMCis) {
gotoAndPlay (1);
}

Within the example MC (whereverAniMCis) put some actionscript to check
the variables, eg. If (_root.titlebar == "Products")
{gotoAndPlay("titlebarP");}

I'm thinking off the top of my head so good luck!

Kai

monoliff
internet design and production
www.monoliff.com

-----Original Message-----
From: [EMAIL REMOVED]
[EMAIL REMOVED] On Behalf Of Marco Paparozzi
Sent: 07 February 2003 11:42
To: [EMAIL REMOVED]
Subject: RE: FN-FORUM loading an SWF into a movieclip Flash MX

Hi Mark
 
No, the play is for the website level 0....it sets variables then
animates the page out reads the variables and sends them to the right
page...animating in. Basically i have a section which is about 100kbs so
i want to load it on separately but it has to be on the same
level...i've tried everything
 
The external swf is also saved as a movie within the swf and also has
it's own preloader....if i could get it to load on the same level as the
website, in layer order then the jobs a good'n!!
 
thanks for all your help
 
Marco
-----Original Message-----
From: [EMAIL REMOVED]
[EMAIL REMOVED] Behalf Of DeVilliers , Mark
Sent: Friday, February 07, 2003 10:40 AM
To: [EMAIL REMOVED]
Subject: RE: FN-FORUM loading an SWF into a movieclip Flash MX
Marco

Is the play() to play the movie that has been loaded in ?

If so that movie is probably not available to be played - you need to
wait for it to be loaded before doing anything with it.

You might want to look into using an onLoad event e.g

myMovieClip.onLoad = function () {
trace ("hey.....I've loaded!!");
this.play();
};

Hope that helps


Mark

-----Original Message-----
From: Marco Paparozzi [EMAIL REMOVED]
Sent: 07 February 2003 09:07
To: [EMAIL REMOVED]
Subject: FN-FORUM loading an SWF into a movieclip Flash MX

Hi Everyone,
 
I've already asked this question, i got a couple of good responses but a
big thanks to Kai for helping me!!........for some reason it still won't
work....i'm banging my head on a brick wall as i type this!
 
on (rollOver) {
    titlebar = "Products";
}
on (press) {
    productspace.unloadMovie();
    productspace.loadMovie("products.swf");
    title = "Products";
    play();
}
on (release, rollOut) {
    titlebar = "";
}
where am I going wrong?!?!?!
 
thanks
 
Marco




Messages by Day
February 28th 2003
February 27th 2003
February 26th 2003
February 25th 2003
February 24th 2003
February 23rd 2003
February 22nd 2003
February 21st 2003
February 20th 2003
February 19th 2003
February 18th 2003
February 17th 2003
February 16th 2003
February 15th 2003
February 14th 2003
February 13th 2003
February 12th 2003
February 11th 2003
February 10th 2003
February 9th 2003
February 8th 2003
February 7th 2003
February 6th 2003
February 5th 2003
February 4th 2003
February 3rd 2003
February 2nd 2003
February 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
2008
2007
2006
2005
2004
2003
2002
2001
2000