ActionScript 2.0 :: Unload All Active Movieclips Within Another?
Jul 14, 2005How would I unload all active movieclips within another movie clip, if I dont know their names at runtime?
View 3 RepliesHow would I unload all active movieclips within another movie clip, if I dont know their names at runtime?
View 3 RepliesI have a video player of sorts that plays one of 6 videos based on which buttons is clicked. Everything works perfectly if the user selects the "stop" button on the video control bar before switching to another video. But, if the current video is left playing when another video is started, the audio from the first video continues on overlapping the second one.
I know this is a common problem in AS3 and should be easy to remedy with unloadAndStop() but I can't get my if statement to work right. I'm working with the videos march_mc and august_mc to figure this out. Basically I'm trying to tell Flash that if march_mc is playing when august_mc is requested to unload march_mc then play august_mc. This works if march_mc was playing to begin with, but if I try to play august_mc when march_mc isn't playing it returns a null object error. In my head, the if statement should prevent this from happening but I'm doing something wrong...
Here's my code that's on august_mc:
augustPlay_btn.addEventListener(MouseEvent.CLICK, startAugust);
function startAugust(event:MouseEvent):void{
if (MovieClip(root).march_mc.currentLoaded == MovieClip(root).march_mc.totalLoaded)
{
[Code]....
i have various movieclips working as buttons. if you click on one a pop up appears. the pop up is a movieclip as well and again has a few buttons inside. now, when that pop up is poped up the mcs that are behind it still react to mouseover, which they shouldnt. or at least the user schould not see it.
View 8 RepliesMy setup has several movieclips in different layers. My problem is that .onRollOver, onRollOut and .onRelease functions are still active for movieclips lying underneath. Is it possible to inactivate these functions and then activate them again when it is needed? Or how do I solve this?
View 2 Repliesim working on my own site im lost though i copyed and pasted so much but i cant seem to figer somthing out.i have a members sys sitting on a few frames every thing works. but the profile button, i have a total of 11 buttons that are working. i coppyed them put them all on 1 frame with there own instances that contain 3 frames?the first frame is the not active frame the 2ed is the active and 3ed is blank so it wont show. so my login code at this point is
ActionScript Code:
//Button Functions
signupBtn.onRelease = function() {[code]...
I have a window component on my main timeline that gets called up on several instances. When the popup window appears, everything looks fine, except that the user can still click on links that are now behind the actual popup window itself. My question is how do I keep those buttons from being active while the popup window is active?
View 2 RepliesI want the current swf to unload and the new one to load only after a transition occurs. Is there a more efficient way to do this than if. switch()?
View 2 RepliesI am working on a school project that requires me to load external .swf or .jpg files. I currently have all of the buttons working and are loading an external .swf file on to the screen. The problem I am having is that when I go from one button to the next the loaded .swf stays on the screen and the next .swf gets loaded on top of it. I know that I need to unload the file but I am not sure where to put the code for the unload or what code exactly to use. I would like when the button is pressed to unload the previous loaded .swf and load the new .swf without having a separate button to unload.
[Code]...
I'm trying to unload an external SWF on _root to load a new one instead. I've tried (almost) everything but can't figure it out... I get this error : "Error #1010: A term is undefined and has no properties."
[Code]....
I decided to post this question as a new thread since my enquiry is altered.
I got this sliding menu attached ("ActiveButtons.zip") that works according to plan. My problem is that I want the buttons to stay active(red) while the corresponding image is in place. Is this doable with a button?
get rid of active border of the default scrollpane component in flash CS5. I am working in Actionscript 2.0.
View 1 RepliesI'm trying to get the IP address of the computer that's connected to the Internet. I tried this:
var netInterfaces:Vector.<NetworkInterface> = NetworkInfo.networkInfo.findInterfaces();
var addresses:Vector.<InterfaceAddress> = netInterfaces[0].addresses;
var userIp:String = addresses[0].address;
But this code gives me a lot of IP addresses, I want the application itself to determine the IP connected to the internet, so how to do so??
Buttons allow 'Up' , 'Over', 'Down' and 'Hit area' , but how do you show an 'ON' status or 'ACTIVE'. Say the user has pressed the button and you want to show that it it active after the user has released and moved the mouse off the button?
View 2 RepliesI am embedding an swf into an html page using the same code that flash outputs when you publish your movie. I want to be able interact with the movie without clicking on it but it seems that I HAVE to click before I can interact via the keyboard.This is happening when I view the automatically generated HTML page in FireFox v. 3.0.6.
View 1 RepliesHow will I know the right click menu is currently open? Like a contextmenu.active = true property but that doesn't exist. An alternative would be a way to check if the user just right clicked but the right click event listener is for Adobe Air only as far as I know.
View 2 RepliesI've build a simple twitter feed flash application that uses php script to read the latest tweet from xml and returns the string to flash to be displayed in a text box.
View 1 RepliesI'm adding event handlers to dynamically created movies. The event handler is not active and the cursor does not change to a finger over the clip Here is the applicable code.
Code:
function loadSubNav():void{
//Load Thumbnails
[code].....
I'm trying to get some buttons to work that I have in a timeline. These buttons are on top of each other and are called to be visible only when a certain image comes up.my problem is the the topmost button is the only one active, because all the buttons are "on" even though you can't see them.currently buttons are set to alpha.0 at the beginning. I know there's a way for them to only be active when they are visible, but I can't find the documentation.I have my code started as such:
import flash.events.MouseEvent;
import flash.ui.Mouse;[code]..........
then as the buttons come up I bring alpha to 1 over a period of time, but there's some trick to the visibility
Imagine I have two TextInput components. How do I know which one is active?
View 1 RepliesI have 2 functions going in as3:
function blueDownBounce (e:MouseEvent):void {
var blueDownY:Tween = new Tween(blue, "y", Regular.easeOut, -49, -19, 1, true);
}
blue.addEventListener(MouseEvent.MOUSE_OVER, blueDownBounce);
[code]....
I am trying to make it so that these functions are active after 3 seconds and they stay active for the whole time it is stopped on that frame after those 3 seconds. I know you have to make a timer and make it dependent on that timer but it wasn't working out well.
Is there a way to access other active windows in AIR?
I want to make an AIR app that look into the active application text and look for a specific pattern and make a transparent window into that text position to create a button. Its a bit like the skype plug-in in Mozilla ... It replaces the telephone number with a button to launch skype.
I have a movieclip that reacts to the cursor postion, but when the movie is embed into a browser such as firefox, i dont want the button to be active until the cursor has actully rolled over the flash movie as it seems to be active before the cursor has hit the actual flash object?
View 3 RepliesI am fairly new to flash and are trying to create an imagegallery from an xml file. The galleri menu is coming from xmlList.length. Now i want to mark the menuitem that is currently active (as in the picture is beeing shown) but i really cant accomplish this (Googling intense and trial end error).
[Code]....
when a user rolls over a button, the button plays the "open" frame inside the button. When the user rolls off the button, the button plays the "close" frame of the button. When a user presses the button, the button goes to the "dock" frame of the button. Here's the problem : when a user clicks a button, all the other buttons go to their "close" frame when only the button that's previously open when the user clicks a differen button should go to the "close" frame.
More emphatically, a function is needed to check to see if any buttons are in the open state (not a frame 1) when a user clicks a buttons. The way the code is now, when a user clicks a button, all the other buttons go to their "close" frame when only the button that was open should go to their "close" frame. Thus, if any button is not open when a user clicks any button, then, that button shouldn't do anything.
[Code]...
What I want is to have a display box and depending on what button I roll over it displays a different image. I want to use a switch statement. I know how to do it the long way but i was wondering if i could use a shortcut by having each button active another function which checks what varible is on and displaying that switch case.[code]...
View 2 RepliesI have a simple question: how do you stop a microphone that is already active?
View 1 RepliesIs it possible to be sure that the swf is being shown to the user? That is, it's not in a different tab of the browser or the user hasn't scrolled the window yet to see the swf.Recently, I was using the commonly-used script checking out the current fps of the swf. I was listening to the ENTER_FRAME event and counting them, so every second I was able to get the fps. And it turned out, that when the swf was hidden in a non-active tab, the fps was like 1 or 2 in some browsers (e.g. Firefox). Now this is some way to determine the "activity", but is there a simpler solution, like a dedicated variable?
View 7 RepliesI have buttons inside/on window01/mc that are still active/clickable when the opacity is 0, I basically have a area on my website that if you click it opens the window corresponding to the button. how do I stop this? I only want the buttons to work when window01 is opacity 100. I'm not a pro at AS so please if you reply, walk me through it a bit or edit my code. [URL] just click in the blank black area below the nav bar and the window will appear. The normal way to get to this window is click products than the buttons.
Code: Select allimport gs.TweenLite;
btn06.addEventListener(MouseEvent.CLICK,f2);
function f2(e:Event){
[code]....
i have a dynamic text box that gets it's contents from an external txt file.how to i set up and format links to websites in the external file so that they will work inside of flash. I've tried a few things, and nothing works.
View 7 RepliesI have buttons in my container that fade out at one point of my website. But they stay active as obviously the movie that is playing at that point is loaded into the same container. How do I stop the buttons from being active?
View 2 Replies