Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

LoadMovie into temporary movieclip inside a movieclip.... or call a function inside a movieclip that has an external swf loaded into it

Posted on 2009-05-07
7
Medium Priority
?
352 Views
Last Modified: 2013-11-11
Hello Experts,

In my main fla, I have a movie clip holder called mc_temp1, into which I load an swf file called myMovie1.swf.

The movie clip myMovie1.swf contains another movie clip holder called mc_bio,into which I am want to load and unload more swf files.

From my fla, can I call mc_bio and perform LoadMovie and UnloadMovie on it?

If not, then, how can I call a function inside myMovie1.swf? (This will also work, because I can write a function inside myMovie1.swf that will load/unload movies to and from mc_bio.)
0
Comment
Question by:bscny
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 39

Accepted Solution

by:
blue-genie earned 2000 total points
ID: 24335433
yes you can. if your script is in your main.fla you just need to target the objects properly.
what are you trying to achieve though, as you might start getting yourself into a tangle eventually with loading things into multiple levels.
0
 

Author Comment

by:bscny
ID: 24355039
Hi blue-genie,

I am attaching a layout of the site. You can see from this file that the navigation is located in main.fla. Main.fla has two movielcips inside it, and based on what menu item is chosen from main.fla, different swf files load into the empty movie clips.... That part is working fine, but now I am have added some buttons to an swf that is loaded into the second movie clip... and from there, I am trying to control elements of the swf that is loaded into the first movie clip.... but because I am still new to actionscript, I don't know how to properly call the element I am trying to control.

site-layout.jpg
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 24373066
first of all. what version of AS are you using?

secondly.
I pick menu item 1 from main - it loads mymovie1 into mc_temp1
if i pick menu item 2 it loads mymovie2 into mc_temp2.

where are the 2 temp movieclips in relation to each other. Why do you have 2? do they appear at the same time or does one replace the other.

then you say "I am trying to control elements of the swf that is loaded into the first movie clip" - what does that mean? give me an example.

blu.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:bscny
ID: 24397653
Hi Blue-Genie,

I am using AS2.

I pick menu item 1 fro main, it loads an swf into mc_temp1, and a different swf into mc_temp2.  The layout you see in the picture, is what the site looks like.

Everything was going ok, until eventually, I came across having to load an swf with buttons into mc_temp2... so in the example above:

these buttons onrelease would need to load new text into the swf already loaded into mc_temp1.... but instead of completely replacing the swf in mc_temp1, I decided ot nest another swf inside the swf loaded into mc_temp1....

So it should work like this:
1) press menu_item1 on main... this will load myMovie1.swf into mc_temp1 and myMovie2.swf into mc_temp2
2) press button1 inside myMovie2.swf.... OnRelease, this button should load an swf (lets call it bio1.swf) into mc_bio. mc_bio is a movieclip inside myMovie2.swf
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 24401544
ok so the answer is yes you can do it.
if you have problem implementing upload your file.
0
 

Author Comment

by:bscny
ID: 25585158
The diagram above was just an example. I don't have an actual fla that I can upload.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question