Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 3rd, 2003, 06:30 AM
jmckerchar jmckerchar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Huddersfield, UK
Posts: 2 jmckerchar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question button on level_1 of attached swf link to mc on root of target swf

I have a webpage that i am redesigning and have come across a problem.

The page is made up of a "blank" page (main_page.swf) containing empty placeholders into which i am loading previously created SWFs using the loadMovie script.

The problem is that one of the loaded SWFs is a menu (menu.swf). on level_1 (slideBackground_mc) of the menu are a series of buttons (eg. main_btn). I am trying to use the buttons to load other external SWFs (main_text.swf, music.swf etc) into a content placeholder (content_mc) in main_page.swf.

the script i am using is:

main_btn.onRelease = function(){
loadMovie(main_text.swf,_root.content_mc)

I understand why this doesn't work, as it refers to the root of menu.swf. how do i get it to refer to content_mc on the root of main_page.swf.


I hope this is clear enough for someone to understand and explain to me whether it is possible to do.

Many thanks in advance.
jmckerchar

Last edited by jmckerchar : December 3rd, 2003 at 06:49 AM.

Reply With Quote
  #2  
Old December 3rd, 2003, 08:47 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,715 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 11109 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 50 m 46 sec
Reputation Power: 580
Facebook MySpace
Hi, try:

loadMovie("main_text.swf",_root.content_mc);

see if that helps.

In all honesty I'm not 100% sure where the target is. My guess is that when you use loadMovie in this way "_root" becomes the main root. i.e. main_page.swf's root. I'm sure when I did something similar ages ago I had to plan out the structure a bit.

Each movie on its own has its own root but when you load them into another they become children of that root. there can be only one! ----+

so i think it's alright, try the quotes and let me know how it goes.
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old December 3rd, 2003, 09:38 AM
jmckerchar jmckerchar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Huddersfield, UK
Posts: 2 jmckerchar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
that worked.

thanks.

that worked. i tried with a fresh set of SWFs/movieClips and everything worked fine.

I think it must have been a problem with my directory structure or something. i'll have to check properly when i get home from work.

Thanks again.
jmckerchar

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > button on level_1 of attached swf link to mc on root of target swf


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT