Delete On Leave Frame
lets say i have a bunch of AS in a frame and i want to delete all of it when you leave that frame or change frame how would i do that ?
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 01-08-2006, 05:35 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Run A Function On Leave Of A Frame
I have a flash movie that I am working on that has several frames and on several frames I am going to have things that I want to clean up as I exit the frame for the the next one.
For instance I set up a Key listener that I want removed on leaving the frame.
How do I do that?
Detecting When You Leave A Frame
How can i detect when a particular frame is left? i.e. The user is viewing fram x, they click one of several buttons or perform a particular action which causes the swf to move to a different frame how can i detect when it exits the original frame x?
How To Leave Last Frame Of Movie As Background
I have a small flash intro movie that plays fine. But when it finishes playing the screen is blank. I'd like the last frame of the movie to stay on the screen indefinately, without looping the whole movie again.
How can I do this?
BTW: I am using CS4 Flash
How Do I Stop Sound From Playing When I Leave Frame?
I have designed a website for an advertising agency using Flash and ActionScript 3. In the portfolio page, I have several TV commercials that are available to play. What I need is 1) when the user leaves the TV ad page, I want the tv commercial to quit playing (right now, it continues even though the user has moved on to other pages). and 2) If the user selects a different TV commercial without first stopping the original one, the sound for both of the them plays at the same time. I am using the flv playback component. The video appears to stop, but the sound doesn't. My TV commercials are external flv files.
I have also made a page for radio ads and I just used play, pause and stop buttons to control the sound. This page does the same thing. The sound continues when you move on to another page in the site. My sound files are also all external sound files.
All of my pages are just individual frames in a main timeline. Each page has a frame label.
If this is not clear, here is the link to my site: http://www.hammockads.com
I would appreciate any help anyone can give me with this. I have tried for weeks now, to solve this problem and I just don't know enough actionscript or flash to figure it out. I've only been working with this for a few months.
How To Leave A Script Once A Variable Has Changed And Goto A Particular Frame? Eep.
THIS IS MY PROBLEM (prepare yourself)
All i want to be able to do is if it has changed ONE VARIABLE (very important it only changes ONE) to goto a different frame labelled "game".
If it doesn't change a variable then i want it to goto and play the next frame, where it plays a piece of code telling it to go to a frame before (before its starts playing the below code) it making this whole thing loop until a variable named "computercheckloop" == 0.
Any suggestions would be REAAALLLLLLYYY appriciated! Thanks guys (and girls (i didn't mean to be sexist but its just that thier is only one girl in my computing lesson so y'know i guessed but to the girl who is reading this im sorry. UNLESS YOU ARE THAT GIRL IN MY COMPUTING LESSON. Gemma i hate you.).
Jim
// ******************************************
// TRIES TO PREVENT PLAYER WIN
// ******************************************
// Checking for places on the COLUMNS to prevent human player from getting 3 in a row.
// Checks that the place isn't allready taken by a letter :-)
if (this["n"+num1] == "X" && this["n"+num2] == "X" && this["n"+num3] == "_") {
this["n"+num3] = "O";
}
if (this["n"+num2] == "X" && this["n"+num3] == "X" && this["n"+num1] == "_") {
this["n"+num1] = "O";
;
}
if (this["n"+num1] == "X" && this["n"+num3] == "X" && this["n"+num2] == "_") {
this["n"+num2] = "O";
;
}
// Checking for places on the ROW to prevent human player from getting 3 in a row.
// Checks that the place isn't allready taken by a letter :-)
if (this["n"+num4] == "X" && this["n"+num5] == "X" && this["n"+num6] == "_") {
this["n"+num6] = "O";
}
if (this["n"+num5] == "X" && this["n"+num6] == "X" && this["n"+num4] == "_") {
this["n"+num4] = "O";
}
if (this["n"+num4] == "X" && this["n"+num6] == "X" && this["n"+num5] == "_") {
this["n"+num5] = "O";
}
// Checking for places on the DIAGONAL to prevent human player from getting 3 in a row.
// Checks that the place isn't allready taken by a letter :-)
if (this["n"+num7] == "X" && this["n"+num8] == "X" && this["n"+num9] == "_") {
this["n"+num9] = "O";
}
if (this["n"+num7] == "X" && this["n"+num9] == "X" && this["n"+num8] == "_") {
this["n"+num8] = "O";
}
if (this["n"+num8] == "X" && this["n"+num9] == "X" && this["n"+num7] == "_") {
this["n"+num7] = "O";
}
// Checking for places on the DIAGONAL to prevent human player from getting 3 in a row.
// Checks that the place isn't allready taken by a letter :-)
if (this["n"+num10] == "X" && this["n"+num11] == "X" && this["n"+num12] == "_") {
this["n"+num12] = "O";
}
if (this["n"+num11] == "X" && this["n"+num12] == "X" && this["n"+num10] == "_") {
this["n"+num10] = "O";
}
if (this["n"+num10] == "X" && this["n"+num12] == "X" && this["n"+num11] == "_") {
this["n"+num11] = "O";
}
// ******************************************
// TRIES TO WIN
// ******************************************
// Checking for places on the COLUMNS to prevent human player from getting 3 in a row.
// Checks that the place isn't allready taken by a letter :-)
if (this["n"+num1] == "O" && this["n"+num2] == "O" && this["n"+num3] == "_") {
this["n"+num3] = "O";
}
if (this["n"+num2] == "O" && this["n"+num3] == "O" && this["n"+num1] == "_") {
this["n"+num1] = "O";
}
if (this["n"+num1] == "O" && this["n"+num3] == "O" && this["n"+num2] == "_") {
this["n"+num2] = "O";
}
// Checking for places on the ROW to prevent human player from getting 3 in a row.
// Checks that the place isn't allready taken by a letter :-)
if (this["n"+num4] == "O" && this["n"+num5] == "O" && this["n"+num6] == "_") {
this["n"+num6] = "O";
}
if (this["n"+num5] == "O" && this["n"+num6] == "O" && this["n"+num4] == "_") {
this["n"+num4] = "O";
}
if (this["n"+num4] == "O" && this["n"+num6] == "O" && this["n"+num5] == "_") {
this["n"+num5] = "O";
}
// Checking for places on the DIAGONAL to prevent human player from getting 3 in a row.
// Checks that the place isn't allready taken by a letter :-)
if (this["n"+num7] == "O" && this["n"+num8] == "O" && this["n"+num9] == "_") {
this["n"+num9] = "O";
}
if (this["n"+num7] == "0" && this["n"+num9] == "0" && this["n"+num8] == "_") {
this["n"+num8] = "O";
}
if (this["n"+num8] == "O" && this["n"+num9] == "O" && this["n"+num7] == "_") {
this["n"+num7] = "O";
}
// Checking for places on the DIAGONAL to prevent human player from getting 3 in a row.
// Checks that the place isn't allready taken by a letter :-)
if (this["n"+num10] == "O" && this["n"+num11] == "O" && this["n"+num12] == "_") {
this["n"+num12] = "O";
}
if (this["n"+num11] == "O" && this["n"+num12] == "O" && this["n"+num10] == "_") {
this["n"+num10] = "O";
}
if (this["n"+num10] == "O" && this["n"+num12] == "O" && this["n"+num11] == "_") {
this["n"+num11] = "O";
} else {
nextFrame ();
}
FLVPlayback On Seperate Frames On Timeline Play Over Each Other, And Wont Stop When I Leave The Frame
Hello,
What I am trying to do is pretty basic... I have a basic navigation with frame titles/names and it works fine. When I put videos (FLYPlayer from the components) in some of the frames, and test it, the flv does not stop playing when I leave the frame... so i keep hearing the sound or sometimes see the video I have navigated away from over the content in the other frames I go to!
I would appreciate any help.
Object Created In A Frame's Actions Telling Parent Frame To Delete It?
I've got an object (an instantiation of my own class that extends Sprite) being created in the actions for a frame, like this:
Code:
import Scripts.CFoobar;
var foobar:CFoobar = new CFoobar();
addChild(foobar);
stop();
CFoobar then creates and manages some buttons, etc. At a certain point, CFoobar knows it's time has come, and it wants to be deleted, and have the frame go to another frame.
What's the best way to have it do this?
Xml-createClassObject-frame- Delete ?
Hi All,
I am working on xml-flash entegration. I have a one problem
I connect to xml file and load all data into the xmlLoader variable. xml file contain below codes.
<page1>
<textArea x="150" y="10" weight="200" height="100" bold="true" font="arial" size="10" color="0x00ff00" content="page 2__sira0_textArea"></textArea>
</page1>
<page2>
<label x="150" y="100" fontWeight ="bold" font="Arial" size="9" color="0x00FF00" content="label deneme page 2"></label>
</page2>
if xml tag is "page1", i created necessary object using "createClassObject(mx.controls.TextArea,textArea1, tarea1)" to frame 1 in flash.
When i jump to frame 2, like as frame 1 , i created all object. But i don't want to see object which created frame 1 in the frame 2. I try to delete "frame 1 object" but i didn't do it.
Sorry for my english and thank you for your support.
How Do I Delete An Array On Enter Frame?
see i have this file and i need to be able to click back to the main page then navigate from there to the other scenes.
thing is, it seems that because the new scenes contain a copy&paste version of some code (whith just the variables changed slightly) there seem to be some arrays left over and it gets messy when i select another scene to look at...
please have a look at the swf and tell me wot ya reckon
i tried to reference seperate mc's with the code in them but i think the addressing was wrong so it didnt work. sorry im just learning here:
thanks l load
*it's the top row of buttons. the bottom row have problems ALL their own hehe
Leave Stage Only With As3?
I've read that with as3 you can check whether the mouse enters or leaves the stage? (something with mouse_leave I believe)
Is such a thing also possible with as2 without using something like javascript?
I've tried using coordinates (x/y < -5 and > stage.height/width -5)
Or hittests and rollovers/rollouts. But even then, when you move the mouse fast enough, it can slip through the detection.
If such a thing can't be done using only as2, it would save me a lot of headache trying to figure something out
Leave Function
I have this code, but It keeps looping. I need to tell the function to stop after it has been executed once..
I'm not sure how or where to do this.
Attach Code
import mx.transitions.*;
import mx.transitions.easing.*;
//Text2 fade in
text2_fadeIn = function(){
TransitionManager.start(text2, {type:Fade, direction:Transition.IN, duration:2, easing:None.easeNone});
}
setInterval(text2_fadeIn,4000);
//Text2 fade out
text2_fadeOut = function(){
TransitionManager.start(text2, {type:Fade, direction:Transition.OUT, duration:2, easing:None.easeNone});
}
setInterval(text2_fadeOut,6000);
Leave A Trail
Anyone has an idea of if there is an easy way of making an animation in Flash where a dot travels over a map leaving a trail behind?
Come Frome Right, Leave From Left
Hi!
I'd like in this example, when I pres one button , the circle that is already on the stage , leave from left (suppose -50 on x axis) and when it reach the -50 on x, then go to 810 again (so it is ready to come from left again).
Maybe I didn't explained well, but if u see the fla, I think you'll understand quickly what I mean...
thnx for any help
chris
Mouse Leave A Certain Area
Hi fellow flashers:
I am trying to write a script that will do the following (pseudo-code):
if the mouse leaves
a certain area then
do action
Here are my variables:
1) Movie Size (630 x 63)
2) The size of the "certain area" (611 x 9)
3) The position of this area (x=19, y=15)
So if the mouse leaves the area that is 611 x 9 then do something...
How do I accomplish this?
Any ideas? Thanks in advance....!
I Need A Leave Blower Actionscript
I want to have a pile of leaves, and use my mouse as a leaf blower.
can someone help me out? I want it to look real shadows and all. I dont know if im asking to much. I would be willing to to pay a little money if nec.
you guys rock!!!
thank you
designerve
Can I Leave A Preloader Till The End
hello hello!
I'm making a website right, and the most important thing right now, is making it, and i want to leave the preloader till last.
Just checking, i'm pretty sure it's yes, but can i leave the preloader till i've finished everything?
Y'know, just stick it in once i've done everything else?
thanks.
tabrez...
Image Appears, Then Won't Leave
**Using Flash Professional 8, AS2.0, publishing to Flash Player 8**
Link to Problem
Hi all!
I am working on a virtual tour for my university. It is when a building is clicked on, these .swf files are loaded onto the side of this flash file.
When the Quad is clicked and the above .swf file is loaded, it has 3 images and 1 360 degree view, which is also loaded externally from this file.
SO. After you click on the 360 degree image and view, you can click on another picture and you can see them changing behind the panoramic shot.
What script can I add to remove this 360 view when one of the other buttons is clicked on???
THANKS!
Bradjward
Mouse Leave Stage
I know we can track when the mouse has left the stage area in AS3.
But, can it reset a button that would have stayed in its "on" state?
My swf will be embedded in a web page, there are 24 buttons all around its border, and as soon as the mouse leaves the stage, they stay "on", so I want to reset them to the initial state.
How To Leave Trails In Flash
hey guys
im new to flash and i wanted to create an animation where for example an abject is moving from one place to another and there are trail like things being left behind but then dissapearing to show the effect where it moved to.
thx a lot.
i left an image so you see what i mean.
the dashed lines are just to show the path and the gray boxes are the trails though the black boxes and where i want it to b and where it goes.
(its attached)
id really appreciate it if anyone can help.
thx greatly
FLVcomponents Keep Loading When I Leave
I'm using the FLVPlayback component in CS3 (progressive downloading). I have several component instances laid out in the site in various places. With the current setup of the site, it is most convenient to place each FLV component instance in a separate frame.
Here's the LINK
First, I had a problem that the audio would keep playing even if I clicked a button to leave the section where the FLV instance resides. I solved this by coding the FLV to "stop()" when the video fades out (the current video fades out before switching frames)
Now the problem is that if you leave the keyframe that the video is in while the video is still buffering, eventually you hear the audio from that video kick in and play.
How do I stop a video from loading after I leave the frame it resides in? Is it foolish to set things up this way? Should I have one omnipresent video player that merely responds to buttons on different frames? Is removing the "source" a valid way to stop a video from downloading mid-stream? I think there's a gap in my general understanding of the FLV component and it's relation to the video that it is hosting.
I'm no newbie to AS, and have been tackling AS3 with zeal for a few months, but I admit my brain is still works better with the visual interface, hence my tendency to let keyframes control actions. Don't be afraid to toss coding solutions at me.
Thanks in advance
SwapDepths Movieclips Won't LEAVE
Ok SwapDepths can be a wonderful thing...but in my case its proving to be rather annoying. I have a button which calls a big movieclip. Inside this movieclip are 3 other sub-clips arranged in a folder-tab like order which swapDepths when you click the appropriate headers. When you close the main clip and move on in the timeline the movieclips stay put, much to my frustration.
Is there any way to stop this from happening? Is there a way you can return the movieclips to their default depths so they don't stay on the screen when you move the timeline along?
Thanks to anyone who can help me!
Xml Menue Wont Leave
I did the xml driven menu and found it quite cool however I only need it for a section of my movie
I have a place where there is going to be minutes from meetings and I have the xml publish the date in a menu but when i am not on the meetings section they are still there
i know i am going to be like duh when i learn how but if anybody can help me i would appreciate it i think my brain is fried
thanks
SwapDepths Movieclips Won't LEAVE
Ok SwapDepths can be a wonderful thing...but in my case its proving to be rather annoying. I have a button which calls a big movieclip. Inside this movieclip are 3 other sub-clips arranged in a folder-tab like order which swapDepths when you click the appropriate headers. When you close the main clip and move on in the timeline the movieclips stay put, much to my frustration.
Is there any way to stop this from happening? Is there a way you can return the movieclips to their default depths so they don't stay on the screen when you move the timeline along?
Thanks to anyone who can help me!
Drag When Leave Clip...
Hello,
I would like to make something very simple but i´m having some probs.
I would like to drag a movieClip over stage x axis only but only when my mouse is not over the clip....
How can i start?!
Thanks.
On Mouseup Leave A Trail To Fade Out
I am building an animated Flash logo for a friend. At the moment I have the logo as I require, but would like to jazz it up by leaving a bullet hole in the position when the mouse was down that will fade away in that position and not follow the mouse.
Check out the logo at this address:
http://lewisnames.members.easyspace.com
Any help would be great...
Stop One Sound But Leave Music On?
I am a practiced newbie.
I am creating a simple slideshow in MX (Professional version). I have a .wave music-loop accompanyment that starts at the first slide and continues throughout the show. I have my own voice .wav running in a different layer on each slide. The idea is to have the background music as the presentation continues.
I am having difficulty finding out how to cancel just the voice layer when I advance from one slide to the next - and then start the next slides voice - without also cancelling the music loop.
I am trying Stop Sound from behaviors; but I am not understanding the Help file's intructions on "linkage" etc.
stopAllSounds does just that. Once called, the remainder of the show is silent; even when using actionscript to call another sound.]
Your help is greately appreciated.
How Leave Off Remainder When Dividing Numbers?
var intResult:Number = 10 / 2;
Therefore, intResult = 5. That's But,
var intResult:Number = 10 / 3;
makes intResult = 3.33. I want intResult to be just an internet and be just "3". Not rounded up or down.. just drop the remainder.
How can I do this please?
Thanks!
Ron
Evil Adobe Leave My Machine Alone
I was beginning to dislike Adobe for what it has done with Dreamweaver et al but now it is every bit as arrogant as Apple. Get a pop up message that an update for Flash is available being security conscious. Now every time I right click on a whole swathe of files, instead of my useful functions it tries to launch Contribute part of Dreamweaver I have never wanted to use. I have to cancel it to try and do what I want.
What a great way to build a brand. I have always been a light user of Flash in websites I will make sure that I use it not at all where possible.
Update appreciated to "unimprove" my user experience.
Useless muppets is the cleanest thing I can say to express my opinion.
Leave Out Menu Items Not Required
In a previous post, I asked how it were possible to have a XML-driven dynamic menu in Flash where you could tell it how many columns to display in. Scotty directed me towards the following code:
ActionScript Code:
var thumb_spacing = 40;var columns = 5;//change this one to the number of thumbs you want to have in a row// load variables object to handle loading of textvar description_lv =new LoadVars();description_lv.onData =function(raw_text) {description_txt.text = raw_text;};function GeneratePortfolio(portfolio_xml) {var portfolioPictures = portfolio_xml.firstChild.childNodes;for (var i = 0; i<portfolioPictures.length; i++) {var currentPicture = portfolioPictures[i];var currentThumb_mc = menu_mc.createEmptyMovieClip("thumbnail_mc"+i, i);currentThumb_mc._x = (i%columns)*thumb_spacing;currentThumb_mc._y =Math.floor(i/columns)*thumb_spacing;currentThumb_mc.createEmptyMovieClip("thumb_container", 0);currentThumb_mc.thumb_container.loadMovie(currentP icture.attributes.thumb);currentThumb_mc.title = currentPicture.attributes.title;currentThumb_mc.image = currentPicture.attributes.image;currentThumb_mc.description = currentPicture.attributes.description;currentThumb_mc.onRollOver = currentThumb_mc.onDragOver=function () {info_txt.text =this.title;};currentThumb_mc.onRollOut = currentThumb_mc.onDragOut=function () {info_txt.text = "";};currentThumb_mc.onRelease =function() {image_mc.loadMovie(this.image);description_lv.load(this.description);};}}
Cheers for that Scotty.
Now, I don't 100% understand this script, and was wondering what part of the script tells it how many menu items there are to be displayed, and how I can change that.
The reason being is that the way I've implemented this script is within a menu that only displays certain items pulled from an XML document (by using an if statement > if myrelateditemname = oneoftheotheritemnames then success - that kinda thing). The problem is, it still seems to be going by the total number of items in the XML document to display the menu, rather than the total number of items that achieved success in the if statement, therefore, when the menu displays, it is leaving gaps where the unsuccessful items would be displayed...
So, all I'm after is if someone could identify which part in the above code controls the total number of items to be displayed in the menu.
Again Gallery: Leave Old Picture While Loading The New
Hi,
I'm using a flash gallery script based on the excellent Kirupa tutorial.
I just wonder if it would be possible to leave the last picture visible until the new picture is loaded. At the moment the current picture disappears when you click the next button.
Thanks for ideas
Force Visitors To Leave Their E-mail?
I have this website with a photogallery and I'd want it to force every visitor to leave their e-mail addresses before they get access to the photos and other content. Just like a simple login function but all these e-mail addresses should be remembered by some PHP script, so I could use them to send news and other important information about this website. Pretty much like a news letter function. The e-mails could then be logged into a simple .txt document or something.
However, I'm really not good with ActionScript, I barely know HTML and I can't do PHP on my own and I am only going to need to know how to do this once, so I'd appreaciate if someone would want to help me abit. Payment is not problem, I can pay for the help I get if that's necessary.
Draw A Line, Leave A Trail
I have a basic line drawing animation - a ball moves along a motion guide path and leaves a line. What's a good way to do this with ActionScript 2.0?
I've looked at 99 fantastic tutorials on how to make a line in space from A to B, as well as shapes. I'm clearly missing something.
Leave A Flash Site For A Long Time...
And it crashes the browser!
My bosses went in for a meeting with the client and obviously they had the site running for the duration, after about an hour however, the site just crashed, the even had to reboot the machine to get it working again.
Not sure if anyones ever tried to leave their flash sites running for an hour or so, but if you have do you get the same problem?
Is this a known issue with the flash player? or have I simply written rubbish code?
Obviously I hope its the former but I'm more than happy to hold my hands up if it's the latter!
Basically my question is: Is there a known issue with the flash player whereby if you leave the browser running for an extended period of time it will crash the browser?
Any help/info greatly appreciated,
Paul
Draw Border / Trace And Leave A Trail?
i have a little square tracing the border of my animation:
http://www.sonoptic.com/demos/flash/tempsti.swf
can anyone tell me how to have it leave a line as it travels around the border, so that ultimately, the square will come to rest at the top left again (after one circuit), and it will have "left" a black line around the animation?
Masking Images Partially As They Leave The Area
Another question:
I have a bunch of dynamically loaded images put into a row, and I'm scrolling them left and right.
I want to designate a certain x-coordinate to be the "edge" of this row...when images go past it, they disappear. But I want them to disappear as you scroll, so as you scroll them to the left, you see the rightmost edge until the picture is completely past the x-coordinate.
How do I do this? I can't even get them to disappear at the edges of my entire scene. And I can't just put an opague layer at the edge, since the images are dynamically loaded and appear infront of all the static objects.
Breake, Exit, Leave Function, Stop,... Or Something
code: import mx.transitions.Tween;
var mClip:Array = new Array(e1, e2, e3, e4, e5, e6, e7, e8, e9);
var moving:Boolean = false;
menu_animate = function (i, movieClipArray) {
if (!moving) {
var mMenu:Tween = new Tween(movieClipArray[i], "_x", mx.transitions.easing.None.easeNone, movieClipArray[i]._x, bLine._x-(10+i*8), 10, false);
moving = true;
trace("moving letter: " + i);
}
mMenu.onMotionFinished = function() {
delete mMenu;
moving = false;
i++;
//call of function in function
menu_animate(i, movieClipArray);
};
if (i>=movieClipArray.length) {
trace("BOOM" + i);
//i want to function finishes here!!! i need jump out of the function
}
};
//call of function
menu_animate(0, mClip);
// need help
need help hov to get out from nested function???
Call Command When Mouse Leave Stage
I have a flash file that is going to take up about 20% of a webpage. But I noticed that if you roll your mouse off of it super fast it doesn't notice that you are no longer over top of the stage.
Is there away for me to tell that the mouse has left the movie area?
Building Array Empties The Values To Leave The Last One. Why?
Can't fathom this. I'm trying to build an array using a loop. It goes through the motions but when I trace it, all I get is a bunch of commas and the last value. Why doesn't it hold the values as it goes through the loop?
Code:
function changeHandler(e:Event):void {
if (myDataGrid.selectedItems.length > 0) {
listB.dataProvider = new DataProvider(myDataGrid.selectedIndices);
var indices:Array = new Array();
for(var i:uint = 0; i < listB.dataProvider.length; i++) {
var indexArray:uint = listB.getItemAt(i).label;
var dataFromArray:String = myDataGrid.getItemAt(indexArray).Email;
var ArrayString:Array = new Array();
trace(i);
trace(dataFromArray);
ArrayString[i] = Math.sqrt(i + 1).toFixed(3);
}
trace("bulkArray is "+ ArrayString.toString());
The trace outputs this:-
bulkArray is ,,,,,,2.646
See, just commas whereas there should be values.
I'm sure its simple but I'm stuck. Help please?
Clicking Functionality Disappears If You Leave The Page
Hey All,
I've got a very strange thing happening with the site I'm working with. The main bulk of the site is made up of a "parent" .swf that plays different "child" .swf files within it depending on which part of the flash site the user visits. The site's worked great and I've had no problems with it...until now.
Recently, the powers that be have asked me to put an "intro" page before the main flash site to introduce a contest/giveaway that they want to run. This intro is located on a separate .html page. From this intro page, the user can either say "no thanks" and hit a button that takes them to the main website (located, of course on its own .html page), or they can hit a different button to register for the contest. All works well from there. However, here's where the problem comes in...
If you go to the main site, there is a button on the main page (part of the initial child .swf) that uses the simple getURL() command to take the user back to the intro. In IE, this works fine. In Firefox, this works only once....meaning, I click the button and it takes me back to the intro, but once I go back to the main site again, clicking any of the buttons in the child .swf does nothing. You can roll over the buttons and get the sounds/animations to play...but clicking functionality doesn't work at all. And it's not just for the button that takes you back to the intro page...it's for ALL the buttons in the child .swf.
I found that the buttons in the parent .swf (the top navigation buttons) on the page work just fine and take you to all the parts of the site as normal.
Reloading the page doesn't correct this problem. The only way to get the buttons in the child .swf to function properly once more is to close the browser and re-open the site.
Would anyone happen to know a workaround for this? If you'd like to see what I'm talking about, go to http://www.reallivesports.com using the Mozilla Firefox browser (again, there are no problems in IE at all...just this browser). Click the button that takes you to "the locker room". In the locker room, a scoreboard will drop down from the celing. It can be clicked and will take you back to the page you just came from. Click the button that takes you back to the locker room one more time, and you'll see that none of the buttons in the locker room work anymore.
Any advice is much appreciated. Thank you!
Xml Photo Gallery - How To Leave Caption Blank?
hi,
thanks to all for the excellent info and updates to the xml photo gallery. i am digging this little machine quite a lot.
question:
using the simple xml photo gallery i sometimes want to have an image with no caption. when i leave that xml node blank, like this:
<pic>
<image>4.jpg</image>
<title>title 4</title>
<caption></caption>
</pic>
flash puts "undefined" in the text field.
there must be a way to instruct flash to just leave that field blank...
right?
any suggestions greatly appreciated.
thanks!
colin
How To Leave Blurry Trail Behind Ship/Character?
i was reading another thread about bitmapdata, and i saw something like this:
http://img170.imageshack.us/my.php?i...torwarszh4.swf
i thought it was very cool how when everything moves in the game it leaves a blurry trail behind. But, i am unsure how to do this. obviously with bitmapdata, and filters... i'm not exactly sure what to do.
lets say i start with a movieclip from my library
ActionScript Code:
var box:Box = new Box();var filter:BlurFilter = new BlurFilter(6,6);box.filters = [filter];//...then what?
i'm not even sure if that's right... what do i do?
Browser Back Button AFTER You Leave Site...
Here's the deal - everything in my movie is set up a la RP back button and flash script and its working no problem. For demo's sake, say we have a home.swf embedded in an html page and two sections, info.swf and contact.swf that load and interact with javascripted frames allowing for back button control.
Now, once you leave the site (ie. go to another domain) and hit the back button, The whole site loads from the beginning, instead of going to,say, the info section which was the last page you were on.
Is it possible to configure the site to load (in this instance) home.swf and jump directly to the info section when the back button is pressed? This is of course keeping the movie as loaded swfs on top of each other and not in separate html pages.
Thanks for any help you can offer!
J
|