473,769 Members | 3,108 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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._visi ble = true;
startLoading("c c11.swf");
};
t2.onRelease = function() {
infoField._visi ble = true;
startLoading("c c11.swf");
};
t3.onRelease = function() {
infoField._visi ble = true;
startLoading("p icture3.jpg");
};
function startLoading(wh ichImage) {
loadMovie(which Image, "imageLoade r");
_root.onEnterFr ame = function() {
infoLoaded = imageLoader.get BytesLoaded();
infoTotal = imageLoader.get BytesTotal();
percentage = Math.floor(info Loaded/infoTotal*100);
infoField.text = percentage+"%";
if (percentage>=10 0) {
delete this.onEnterFra me;
infoField._visi ble = 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 2648

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

Similar topics

7
7543
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
2601
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 images and vary in size, so that's why I need the button to follow the image size. Is this possible to do?? AND, this does not render correctly in IE! Can someone please help me out? :( <style type="text/css"> ..myLayersClass
3
2307
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
2320
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 perform some exit statements. When I doubleclick on a "normal" button I am autoamtically taken from the designer pane into the source code editor pane and a new function is automatically inserted. This is not the case for a system button like...
2
1953
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. Can someone please give me some help on this?? In regards to the missing fields code, I have associated this with a button and it works, but I also need this to be associated with the CLOSE button. Thank you VERY MUCH. Private Sub...
6
3969
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 external swf's. I've also searched engines; Ask.com, Yahoo.com, Lycos.com, etc.. I've tried the following methods of code as solutions, with no success: on press{ unloadMovie (1); } ..or...
1
1290
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, when i click the close button a dialog box appear and ask me "Are you sure you want to Quit?" and there is 2 button (Yes and No).... if i click "Yes" button then the form is closed and if i click the "No" button then dialog box should be close..... ...
1
5249
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 in this. My problem is like this.. In a TextEditor, we should open two or more documents with in the editor by tabs when we click "Open" button on the toolbar. As and when i click particular tabs respective tabs components should be displayed in...
5
5893
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 the screen. I have been unable to find any way to disable this button in Access 2007 and subsequently I have been forced to find ways to detect and handle the situations after the Access Close button has been clicked. I have been largely...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9994
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7409
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5299
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3959
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3562
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.