Close Script
Hi there, Is there a Script that closes an Animation? For Example, if i were to watch a animation...and at the end..there is a button that once you clicked on it, it will close the animation file you're watching...does that kind of thing exists? If it does...don't mind you could tell me the Script
FlashKit > Flash Help > Flash General Help
Posted on: 08-23-2004, 08:50 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Preloader Componet HELP.. Script Tweeking-- I Am Close Really Close :)
How would i write this without using createEmptyMovieClip... I have tryed just using "holder1" and "hostClip" but alas... they don't show the progress. The image loads but the preloader dosn't
Help
hostClip = _root.createEmptyMovieClip("holder1", 1);
hostClip._visible = false;
//load the external movie clip.
hostClip.loadMovie("myPic3.jpg");
//Set the Change Handler for the progress bar
MainPBar.setChangeHandler("onProgress");
//Set the target for the Progress Bar
MainPBar.setLoadTarget(hostClip);
// Function onProgress - this watches the ProgressBar and reacts as stated when the PB gets to 100%
function onProgress() {
if (MainPBar.getPercentComplete() == 100) {
play();
}
}
Popup Window, Then Pop Another And Close At The Same Time, How To Close?
Hello everyone!!!
Well, i am trying to make a button that first opens a popup and then it close its own window...
iahace the code for the first pop up opener, but cant make it work for the "autoclose window"
this is the script in the button
on (press) {
getURL("javascript:NewWindow=window.open('encuesta .html','Stilegno','width=550,height=450,toolbar=No ,location=No,scrollbars=No,status=No,resizable=No, fullscreen=No');NewWindow.focus();void(0);");
}
on (release) {
getURL ("JavaScript:window.close();");
}
Any Idea?
Thanks!!!
How Do Close A Flash Player Without Using A Close Button?
Can you tell me how to launch a Flash video after/as the home page loads and then make the player disappear after the video has finished playing without using a close button?
Here’s an example where the player remains after the video has played. - http://www.hansenauto.com/
Do you have any design (positioning) suggestions on how to accomplish this task?
Close Button In Movie To Close Swf
Can you make a button in your movie that is able to close the file. Just like if you d-click on a swf file on your desktop and it opens and plays, the flash player has an X button to close the movie. Well can you make one within the movie to do the same ?
Javascript Close And Fscommand Close
If I have a flash piece that is designed to go on the web and also on a cd, and I want to use a close button common to both versions, is there some sort of conditional statement that can make the javascript:window.close() command only execute on the web version?
The way it works now, if I click the close button on the projector file, it also calls the javascript function, causing the computer to open a browser window and close it immediately.
I was just wondering if there's a way to tell if the swf is in a projector file or in an html file...
Using NetStream.close() To Close ALL Netstreams?
i'm going to try this again...i've got five different netstreams labeled ns1, ns2, ns3, ns4 and, ns5, repectively. i'm trying to have all these netstreams close AND removeChild when a button is clicked...the button is connected through a localconnection and only performs the first two lines of the function when called...so here it is
Code:
function methodToExecute1():void
{
ns1.close();
this.removeChild(vid1);
ns2.close();
this.removeChild(vid2);
gotoAndStop("demoReel","Scene 1");
}
SO CLOSE, SO CLOSE, Please Can Someone Just Help Me A Little Get It Done. "Scrollbar"
Ahhh, I have everything ready to go, but a few problems along the way, as always.
Maybe some ace can help me solve the problem.
My problem, well when I have a lot of information, not all of it is displayed ahh. And when I have to little information on scroll the text goes away in a different direction. I cannot win!!
PLEASE HELP ME......
T
Close .exe
how can I close a .exe with a simple button? is there any simple action for this job? maybe a button to close the browser,
thanks
Close Exe
Is there a way to have a close a Flash Windows Projector (.exe)?
How Can I Close This?
Hey Guys...
please help me with this issue...
in actions of a button I am using something like this to open the movie...
on (release) {
_root.option12.goToAndPlay(1);
}
So after click on that button it will load the movie...
Which is good, but what if I have 10 buttons...
If I click on first one and then on second one or any other it will load the movie ,but my old movie is still on the background...
So its overlaying..
Is there any way of unload all movies which are currently playing, without shutting them one by one...?
Is there anything like "unload all" function?
Please help me this is very needed and it will really help...
I appreciate any answer...
Thanks
Enzo
SO CLOSE
Well, I've made these 2 simple MC's. One gets larger when you click on it, the other falls back. Or at least, it's SUPPOSED to. You can see for yourself at
http://www.angelfire.com/art/feldhousen/buttons.html
See, it doesn't exactly animate out like I want it to. Instead, it jumps. I can't figure out why, because I have the following script in each (invisible) button:
on(release) {
if (button2==up);
button2.gotoAndPlay("out");
button1.play();
if (button2==down);
button2.gotoAndStop(1)
}
Can anyone help?
Thanks!
HELP I'm So Close
right, i've just finished my first flash site. i have made a home page in Frontpage, with a link "enter flash site" on it. i want this link to open the flash site in flashplayer, but i only seem to be able to launch the site in the browser, which kind of ruins it. i don't want the browser buttons, favourites, frames etc. i want to open the site in its own window with no menus etc. CAN ANYBODY HELP? i've tried everything i know (which isn't that much i'm afraid)
[Edited by miki zu broka on 01-28-2002 at 11:19 AM]
Pop-up & Close
Hi.
This should be pretty easy for a lot of you, but I was wondering how to create a text link that opens a URL in a new window. Also, I want to know how to create a close window button that will close the browser - i'm pretty sure it has something to do with javascript.
Thanks very much!
Jon
Getting Close
trying to open a new browser window with a set size (300 x 400) that loads a swf.
cant get it to work
here's the script:
on (release) {
getURL ("javascript:window.open('new.swf','right', 'width=300, height=400, scrollbars=no');b;");
}
I Know I'm Soo Close, But I Need A Bit Of Help
I know I'm so close to understanding something very basic that I need to know. The problem I'm having with Flash MX is the same with everything I do, and I can just tell its the same basic thing.
I tried to (to teach myself) create a litle animation. I had a picture at the beginning, and some flying text. I can do motion tweens, I think - but I do not understand the concept of making something an object or video or whatever it is. Anyway, I preview my flash before I'd finished, and the intoduction picture reappears once the text has vanished. I dont want it too.
The other thing I can't figure out how to do is make a bird with flapping wings move accross the screen. I can do the flapping, but both at once? And how do I make the bird keep moving across the screen regardless other things only happening once, or how do I control if things reappear and repeat or not?
I tried the tutorial with the coloured boxes that is in the animation section, and I can animate the box, but rather than the boxes just freezing on the screen after the tween, they seem to vanish
Also, the red box will not continue moving, it just moves once and doesnt return. I'm sorry I havent explained this well, but if you look at the tutorial in animations/cartoons you'll see what I'm talking about.
I'm just totally lost, but willing to learn.
Please help me,
Yours.
Nick
Close A Box - Is It Possible?
I'm going nuts trying to figure out how to get the effect I'm looking for. Richard made a nice drop down content menu at
http://www.flashkit.com/movies/Inter...-401/index.php
»Description a completely scalable, draggable layered menu system
I'm trying for something similar but I want the interface to pop the box up when a new box is selected so you don't have to pick a layer tab.
Any thoughts, tutorials, movies?
Thanks in advance.
How Do I Close...
all the features the ones that apear when i click with the right button of the mouse ?
I try that in Publish Settings but didnt fing anything...
What can i do ?
Best Regards
Rui Bárcia
Www.so-close.com
does anyone of you seen the website of so-close? does anyone know how do they do the 3d effect on the building?
i mean the way it moves during its intro.
I Am So Close Yet So Far Please Help
Hi all,
I have a flash movie that has a list of items (menu) thet when clicked they will load that particular movie that the menu button represents so that the user can drag it around the stage... The items are specific sizes and are different sizes.. I can get them to snap to a grid whil playing the movie but i cannot get them to lign up correctly (basically I want to load several diff objects into this movie and be able to move them around to make a Panel Display, but I need them to lign up correctly if they were all the same size and shape i could use the grid and have them snap every 50 pixls or so but they are different sizes and shapes.
Is it possible to make a loaded object snap to any other loaded object?
Im pulling my hair out
you can view the movie here to get a better understanding
http://www.flexidisplay.com/db/db.html
Matt
Almost Done So Close.. Please Help
Hi everyone,
I'm creating raindrops on an image that show a smaller image inside the raindrop for a great lenseffect. Now I'd like to make those drops draggable while the mask and the smaller image underneath it are dragged as well.
I'm almost done with this code, I just need to drag the mask along with the object on top of it, but it seems I can't call the mask by name! What am I doing wrong? Please check the traces at the bottom, you'll get the point
Oh and sorry the names of objects are in dutch..
drup or druppel = raindrop, masker = mask, achtergrond = background
Code:
function createDruppel(druppelID) {
drup = container.attachMovie("druppel", druppelID, 500+depth); depth++;
drup._xscale = 50 + random(50);
drup._yscale = drup._xscale;
drup._x = (drup._width / 2) + random((800-drup._width));
drup._y = (drup._height / 2) + random((600-drup._height));
masker = container.attachMovie("druppel", "masker"+depth, depth); depth++;
masker._xscale = drup._xscale;
masker._yscale = drup._yscale;
masker._x = drup._x;
masker._y = drup._y;
achtergrond = container.attachMovie("backgroundImage", "achtergrond"+depth, depth); depth++;
achtergrond._xscale = scalefactor;
achtergrond._yscale = scalefactor;
achtergrond._x = masker._x - ((masker._x / origineel._width) * achtergrond._width);
achtergrond._y = masker._y - ((masker._y / origineel._height) * achtergrond._height);
achtergrond.setMask(masker);
drup.onPress = function() {
startDrag(this, false);
//startDrag(masker, false);
trace(this._name); // gives me the right name of the raindrop (druppel#)
trace(masker._name); // undefined (should be something like masker#)
trace(this.masker._name); // undefined as well (should be something like masker#)
trace("--------------");
}
drup.onRelease = function() {
stopDrag();
//masker.stopDrag();
}
}
Oh and while you're at it; how can I get the name of a swf, loaded in a level? Something simular like: _level4._name
Thanx for all your trouble,
Mediamonkey
Help Me Close This .exe
I'm editing a Flash "demomercial". It's an .exe we are putting on a business card size cd for marketing purposes. I have an "Exit" button that's supposed to close the application window. I tried the 'close()' javascript - but that only opens and prompts to close a new browser window. The application runs automatically once it's inserted in the player - it opens in a new flash player window which I need to close when the button is clicked. I know it has to be something simple - help! Thanks!
Pop Up Can't Close
Hi all...
I need ur help...
I make a fullscreen pop up. There 2 file html (Main.html and Guest.html). In main.html I embedded
flash file, in it there is a button to pop up Guest.html. In Guest.html I embedded flash file, and in it there is a button to close pop up. It works when I pop up the page, but I cant close pop up when click "close" button.
Here is my code :
I put code at Main.html :
<script language="JAVASCRIPT">
<!--
function detectVersion()
{
version = parseInt(navigator.appVersion);
return version;
}
function detectOS()
{
if(navigator.userAgent.indexOf('Win') == -1) {
OS = 'Macintosh';
} else {
OS = 'Windows';
}
return OS;
}
function detectBrowser()
{
if(navigator.appName.indexOf('Netscape') == -1) {
browser = 'IE';
} else {
browser = 'Netscape';
}
return browser;
}
function FullScreen(){
var adjWidth;
var adjHeight;
if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) {
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) {
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) {
adjWidth = 30;
adjHeight = 30;
}
if(detectVersion() < 4) {
self.location.href = 'oldbrowser.html';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open('windowversion.html', 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}
function MakeItSo(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
window.open('thefullscreen.html','windowname','ful lscreen=yes');
} else {
onload=FullScreen();
}
}
// -->
</script>
On the button of flash embedded at Main.html I put code (to pop up) :
on (release) {
getURL ("javascript:MakeItSo()");
}
In Guest.html flash embeded in it , I put button on flash (to close pop up) :
on (release) {
getURL ("java script:window.close()");
}
many thanks
If Close
Is it possible to make an action for the stand alone player to do an action while closing?
Close Self
This is a very easy question and its probably around the board, but i couldnt find it with this new format for the searching engine.
I would like to know what action give to the button to close its own browser window. please help.
Close A Swf
Hi!
Ive got a simple animation that once it has been played, two options will appear either to play it again or close the movie down. basicly get it off the screen unless someone wants to press the link to open the animation again.
what action would you assign a close button to perform this?
cheers
[f8] So Close ...
This is code for a drawing app I am working on (the redBrush function is called from a button on a higher timeline):
Code:
function fadeOut(target_mc:MovieClip):Void {
target_mc._alpha -= 1;
if (target_mc._alpha<=0) {
target_mc._alpha = 0;
clearInterval(alpha_interval);
}
}
var redLine = 0;
function redBrush() {
redLine++; createEmptyMovieClip("rLine"+redLine, getNextHighestDepth());
this["rLine"+redLine].lineStyle((Math.round(Math.random()*80)+20),0xff0000,100);
this["rLine"+redLine].blendMode = 8; // "add"
var alpha_interval:Number = setInterval(fadeOut, 30, this["rLine"+redLine]);
onMouseDown = function () {
this["rLine"+redLine].moveTo(_xmouse, _ymouse);
onMouseMove = function () {
this["rLine"+redLine].lineTo(_xmouse, _ymouse);
}
}
onMouseUp=function() {
onMouseMove=null;
}
}
This is SO CLOSE to what I need ... the only problem is that I want the rLine MC to remain at 100% alpha for a set amount of time (30-45 seconds) before it fades away. How do I apply a delay to the fadeOut function? Or there be a delay before calling fadeOut?
[F8] So Close, Yet So Far... AS/XML Help Please.
I've almost completed my flash banner I'm creating but am stuck on getting images into it via XML. Basically a client wants the ability to change out images and has no flash knowledge. I figured I'd be able to create a XML file to pull the images in and she could update at will. However, I'm having a couple of issues on my end. I'm not looking for your typical slideshow/gallery. I also need the thumbnails that are pushed from XML to be clickable to a larger image within mc.
When the image pulls into the movie (which is does) it's too big/stretched and doesn't load into the movie clip like I was hoping it would. I've created 5 different MC's for the different thumbs named: holder1-holder5. I've tried placing the AS in a layer all it's own and on the MC--no dice.
Here's the AS:
Code:
//var x:XML = new XML ();
//x.ignoreWhite = true;
//var main:Array = new Array ();
//var thmb:Array = new Array ();
//x.onLoad = function () {
//var image:Array = this.firstChild.childNodes;
//for (i=0;i<image.length;i++) {
//main.push(image[i].attributes.main);
//thmb.push(image[i].attributes.thmb);
//}
//holder1.loadMovie (thmb[0]);
//}
//x.load("xmlphoto.xml");
The XML:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<gallery>
<image main="http://i30.photobucket.com/albums/c315/popstalin/images/photo1_lg.jpg" thmb="http://i30.photobucket.com/albums/c315/popstalin/thumbnails/photo1.jpg"/>
<image main="http://i30.photobucket.com/albums/c315/popstalin/images/photo2_lg.jpg" thmb="http://i30.photobucket.com/albums/c315/popstalin/thumbnails/photo2.jpg"/>
<image main="http://i30.photobucket.com/albums/c315/popstalin/images/photo3_lg.jpg" thmb="http://i30.photobucket.com/albums/c315/popstalin/thumbnails/photo3.jpg"/>
<image main="http://i30.photobucket.com/albums/c315/popstalin/images/photo4_lg.jpg" thmb="http://i30.photobucket.com/albums/c315/popstalin/thumbnails/photo4.jpg"/>
<image main="http://i30.photobucket.com/albums/c315/popstalin/images/photo5_lg.jpg" thmb="http://i30.photobucket.com/albums/c315/popstalin/thumbnails/photo5.jpg"/>
</gallery>
Any help would be greatly appreciated, this is due tomorrow, yikes!
So Close But SO Far
Hey Guys
Ive produced a website which has a Iframe to hold a flash file i created, This fash file is a map, which has clickable links. Three of these buttons are used to navigate through the floors of the shopping centre (they use the simple "GOTO To Frame and Stop actionscript). The other buttons link to external websites of the stores located in the shopping centre (such as www.boots.com). Now my problem is that I want the three buttons to load their contents into the Iframe, which it does fine. My issue is that i want the other buttons to load their websites in a new window, not the Iframe. Im not sure how to do this. Ive got this code for my Iframe atm:
<IFRAME SRC="floorbuttons.swf" WIDTH=800 HEIGHT=800 frameborder="0" allowtransparency="false">
If you can see this, your browser doesn't
understand IFRAME. However, you can still view the file<A HREF="floorbuttons.swf"> here</A>
</IFRAME>
I will include two examples of the code used in the flash file as well:.
For the three navigation buttons ive used:
on (release) {
gotoAndStop(10);
}
And for the other buttons i used the following:
on (release) {
getURL("http://www.RiverIsland.co.uk");
}
Any help would be welcome
thanks
PLEASE HELP... So Close But So Far Away
Hi Ive been working through this problem for the last few days and im now officially stumped. I want to design a preloader that will sequentially load 3 swfs into 3 mcs on the main stage and display the ongoing loading loading. Once each mc is loaded the corresponding button will become visible so the user can click the button and view the mc.
Here is some of the problematic code and Ive attached the fla.
Please please help, deadlines and all that. Thank you.
Code:
onClipEvent (enterFrame) {
_root.nav_mc.miniloader_holder.miniloader.gotoAndStop(loadedIndicatorFrame()); //change to location of loader.
for (var i = 0; i < _root.movnumber; i++) {
_root.currentmov = "_root.root_holder_mc" + i;
if (_root.currentmov.getBytesLoaded() >= _root.currentmov.getBytesTotal()) {
_root.firstload = true;
_root.currentbutton._visible = true;
}
}
}
and inside the preloader animation:
Code:
lastFrame = 1;
function loadedIndicatorFrame() {
var pctLoaded:Number = Math.floor(_root.currentmov.getBytesLoaded() / _root.currentmov.getBytesTotal() * 100);
var newFrame = int((_root.currentmov.getBytesLoaded() / _root.currentmov.getBytesTotal()) * 100);
if (newFrame - lastFrame > 4) { //too far
lastFrame += 4;
loadedText = pctLoaded + "%";
_root.nav_mc.filetext = pctLoaded + "%";
} else if (newFrame - lastFrame > 0) { //normal move
lastFrame++;
loadedText = pctLoaded + "%";
_root.nav_mc.filetext = pctLoaded + "%";
} else { //update the text only
loadedText = pctLoaded + "%";
_root.nav_mc.filetext = pctLoaded + "%";
}
return lastFrame;
}
[MX] Pop Ups? How Do You Close It?
I'm trying to do a popup effect for an interactive portfolio i'm making.
The concept is basically when you click an area, a popup would come up showing you a larger version of the picture with a short description.
So far i managed to get to the pop up stage by the use of a movie symbol as my popup. My problems is that i can't close the popup...
What i did was when i got to the popup bit, i paused the frame that the pop up is on and the movie symbol played. In the movie clip i placed a back button. I tried scripting it to gotoandplay the specified scene and frame. but all it does is play the movie symbol again. It doesn't do anything to the real scene and frame but it stays in the movie symbol...
can anyone tell me how to fix this, or atleast an alternative with a similar effect.
thanks...
Possible For Swf To Close Itself?
Hello all;
Is it possible for an swf to kill itself (close its own window)? I know its possible with the fscommand quit if it's published as an exe but our client is wanting an swf instead. thank you in advance!!
Close Flv
Hi,
This is my code to play, pause, clear an flv.The buttons and the videoHolder are all contained within mc1 (movieclip).
There is a close_btn. when clicked, should shut down the video at once; I have set its visibility to false since I want the whole container mc1 to disappear on stage, once the close_btn is pressed. However, I can still hear the video playing, while the visibility is false. Is there a way to shut down the video?
Quote:
// Instantiate a new NetConnection object
myVideo_nc = new NetConnection();
//the parameter null tells flash that it is not connecting thru FCS, but
//instead to expect a download from the local hard drive or a web address
myVideo_nc.connect(null);
//A new NetStream object is instantiated using the
//NetConnection object as its parameter
newStream_ns = new NetStream(myVideo_nc);
//For the attachVideo parameter, enter the video source.
//In this case, enter the name of the new NetStream object that is created above
_root.mc1.videoHolder.attachVideo(newStream_ns);
_root.mc1.play_btn.onRelease = function() {
newStream_ns.play("seniorShow.flv");
};
//
_root.mc1.pause_btn.onRelease = function() {
newStream_ns.pause();
};
_root.mc1.close_btn.onRelease = function() {
mc1.videoHolder.clear();
_root.mc1._visible = false;
}
_root.mc1.clear_btn.onRelease = function() {
mc1.videoHolder.clear();
};
I'm So Close
http://rccm.org/kenyafilmplayer.html
All the elements are working besides the background image. The background image (the vertical lines) is super-wide (2880 px) I made it this wide so it will alway fill up the brower window, not matter how wide it is.
As you can see from the above link, the wide image is throwing everything off.
The bk image has a pattern to it, so I really cant tile it.
I would think there is a way to use this wide image, and monitors with a rez such as 1024x768, would simply not display the far left and right side.
PLEASE advise how I can make this work and full bleed!
thankks!!!!!!!!!
HELP IM SO CLOSE
Ok someone here is smart enough I know, I am working on a project right now and when I click on one of my buttons I created I want it to play a movie clip inside of a frame kinda like IFRAME for HTML please oh please ppl help Im begging you!!!!!!!!!
Please Close
My Site
Posted prematurely, please see other thread!
Sorry everyone!
Edited: 07/02/2008 at 01:09:34 PM by JohnnyBighead
I'm So Close...please Help
I have a chronological timeline for a historic site. There are a series of buttons (chronological dates) that change the x position of the timeline_mc.
At either end of this series of dates, (buttons which reference the array i established for the timeline x position) I have forward and backward buttons that determine what array index number I'm at and then proceed to next index number respectively.
What those fwd/bckwrd buttons don't do, which I'd like help with, is cycle through the down state look of the date buttons.
Here's my fla file
Bellow is the code I'm working with.
Attach Code
//finds current x pos and sets speed to new x pos
Movieclip.prototype.scrollme1 = function(xPos) {
cX = this._x;
difX = cX-xPos;
this._x = cX-(difX/5);
};
Movieclip.prototype.scrollme2 = function(xPos) {
cX = this._x;
difX = cX-xPos;
this._x = cX-(difX/6);
};
stop();
//variable starting value
arrayIndex = 0;
//timeline stopping postions
timeline1Xpos = new Array(2800, 2100, 1400, 700, 0, -700, -1400, -2100, -2800);
//scrolling animation
timeline1.onEnterFrame = function() {
this.scrollme1(timeline1Xpos[arrayIndex]);
};
stop();
//variable starting value
arrayIndex = 0;
//timeline stopping postions
timeline2Xpos = new Array(2800, 2100, 1400, 700, 0, -700, -1400, -2100, -2800);
//scrolling animation
timeline2.onEnterFrame = function() {
this.scrollme2(timeline2Xpos[arrayIndex]);
};
//buttons that scroll the timeline to specific x positions
//but1
controller_mc.but1.onRollOver = function() {
this.frameHold = this._currentframe;
this.gotoAndStop("over");
};
controller_mc.but1.onRollOut = function() {
this.gotoAndStop(this.frameHold);
};
controller_mc.but1.onRelease = function() {
arrayIndex = 0;
for (var mc in this._parent) {
var thisHold = this;
if ((this._parent[mc] == thisHold) && (this._parent[mc]._name.indexOf("but") != -1)) {
this._parent[mc].gotoAndStop("on");
} else {
this._parent[mc].gotoAndStop("off");
}
}
this.frameHold = this._currentframe;
};
//There are actually 7 more buttons here, see the attached file for full code
};
//
//timeline forward and backward buttons
controller_mc.goForward.onRelease = function() {
if (arrayIndex<7) {
arrayIndex++;
}
};
controller_mc.goBack.onRelease = function() {
if (arrayIndex>0) {
arrayIndex--;
}
};
Close Tab
I'm working on a Web Page and was wondering if it is possible to close the current tab in IE, or Firefox, using a Exit button and Action script? Something so the user wouldn't have to go up and click the X in the upper right corner.
Getting The Close Up?
How can I controll the camera so that it zooms in or out for a close up when you play the .swf file?
Close Btn
I want an Actionscript on a button that will close the window (the internet explorer window as an example)
Can someone tell me what the as is?
Getting Close....
How do u make it so that when an object is close to another object it makes the second object go to the first object?
Close MC
ok guys ... i have this button which plays an MC. this MC has also a button which supposed to close the MC and return to the initial situation. i am kind of confused how to explain it but i have attached the file, it will say it all.
i am planing to use this as my "contact" in my website. anyone can help ? i just thought about it cos i saw it in many sites and i had no idea how to do it, but i managed to do most of it except this "close" thing.
also u can notice that even when the new MC is played, the old button is still functional.
any advice ?
Please Help Close My MC
have a "post-it note" type MC that loads with directions on it. I have a button on there that is supposed to close the MC with this
Code:
on (release) {
removeMovieClip("close");
}
and with that it does nothing. Please help me with what i am missing...
Close, But Not Quite
I'm trying to unload a movieclip when it's pressed and load another one in its place. For some reason the loaded movieclip is always being loaded at row 7 column 10. Why is that?
Code:
var columns:Number = 10;
var rows:Number = 7;
for (i=0; i<rows; i++) {
for (j=0; j<columns; j++) {
var seat:MovieClip = this.attachMovie("seat_mc", "seat"+i+"_"+j+"_mc", this.getNextHighestDepth());
seat._x = 0+j*60;
seat._y = 200+i*60;
seat.onRelease = function() {
trace(i+" "+j); // traces 7 10 ???? It doesn't matter what button I press.
unloadMovie(this);
var emptySeat:MovieClip = this._parent.attachMovie("seatFilled_mc", "seatFilled"+i+"_"+j+"_mc", this._parent.getNextHighestDepth());
emptySeat._x = 0+j*60;
emptySeat._y = 200+i*60;
}
}
}
Thanks for any ideas.
Close SWF
How do I close a SWF with AS3?
Code for button
bt_close.addEventListener(MouseEvent.CLICK, bt_closeFunction);
function bt_closeFunction(event: MouseEvent) {
parent.removeChild(this);
}
but it just closes the button movie clip button not the whole SWF
thanks
Michelle
Close Pop Up
hi,can somebody post the script for putting in a button to close a Javasacript pop-up?
thx
Close Swf.
how do i close a swf. within the swf. For example: I have a button inside the movieclip with an X, when someone clicks it, I want the moveclip to close.
Close Swf
Hi, I have a site which I'm trying to get to fit together. I have a menu system down the bottom, and the best place for thumbnails in the gallery is where the menu is. So I was going to load the gallery swf ontop of the menu, but I have no idea to close he swf to get back to the menu (noob). So I'd like to position a button somewhere on the swf that closes the swf. Can someone pleaswe help me with this? Or point me in the right direction?
Thanks in advance!
|