473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Please Help w/ a "close" button on child swf

I am gonna post my AS in hopes that someone can get a good understanding of what i am doing. So here is the code:

t1.onRelease = function() {
infoField._visible = true;
startLoading("cc11.swf");
};
t2.onRelease = function() {
infoField._visible = true;
startLoading("cc11.swf");
};
t3.onRelease = function() {
infoField._visible = true;
startLoading("picture3.jpg");
};
function startLoading(whichImage) {
loadMovie(whichImage, "imageLoader");
_root.onEnterFrame = function() {
infoLoaded = imageLoader.getBytesLoaded();
infoTotal = imageLoader.getBytesTotal();
percentage = Math.floor(infoLoaded/infoTotal*100);
infoField.text = percentage+"%";
if (percentage>=100) {
delete this.onEnterFrame;
infoField._visible = false;
}
};
}


I have a parent swf which has buttons named t1, t2, and t3. These buttons call upon external child swf files to play on top of my parent swf. I have an empty MC w/ an instance name of imageLoader that is my place holder for the child swf files. Also I have a preloader on the parent swf that plays before the child is loaded. The instance name for the preloader is called infoField. I am using a preloader because the child swf files are large. As of now the only AS i have in the child swf is a stop at the end. I need to create a "close" button inside the child swf file. This button is to only be visible on the child swf file. And basically it needs to "close", "delete", or "remove" the child swf playing on top of the parent swf so I can view the parent swf again. Do I need to change my code around on the parent? Any help is greatly appreciated.
Feb 14 '07 #1
0 2634

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Bruce A. Julseth | last post by:
How do I emulate the web page "Close" Button, i. e. the "X" in the upper right hand corner of each web page? Thank you.... Bruce
12
by: Yuaw | last post by:
I managed to cobble together some code and all I need to be on my way is to have the close button I created to always be at the top right of my pop up. The pop ups are large versions of thumbnail...
3
by: mfleet1973 | last post by:
Hi. Visual Studio 2003. Is there a way to disable another application's form's close button that is on the taskbar? Cheers. Mike.
2
by: Carla Simeoni | last post by:
Assume I have an open Form. Then I click the "normal" window "X" icon (=Close button). How do I assign a function in Form.cs to this event ? In other words if this Form/window is closed I want to...
2
by: KMEscherich | last post by:
Using Access '97 Hi there, am wondering how I can incorporate the code for a CLOSE button and also a warning that some fields are missing data. I have the following, but it seems to be wrong. ...
6
by: mikes8arms | last post by:
Version: Flash MX (A.S. 2.0) Hello. I haven't posted since signing on a few weeks ago. I've searched your site seeking an answer or answers to the concept of creating a "close button" for my...
1
by: somtabu | last post by:
hello, i have a problem in vb.net windows application, verson is 2005 and framework is 2.0 I want to close a form by using the close button which is right hand top side of the window. i want,...
1
by: ebyogendra | last post by:
Hello friends. Am new to this forum. Am having some doubts on TabbedPane. Thing is i need to insert "Close button" on each tab as and when new tabs are included in TabbedPane. Please any help...
5
by: Tony | last post by:
I am continuing to develop an Access 2007 application which was originally converted from Access 2003. In Access 2003 I was able to disable the Access Close button in the top righthand corner of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.