ActionScript 1/2 :: Make Background Carry On Outside Of Stage?
May 15, 2009
I want a black box to fade out the rest of my site when a user clicks on a section in my portfolio, but I want it to go outside of my stage, for when people have larger screen.
If you click on Web/Interactive on the post it you can see what I mean:
I have a movieclip called MC1 and within that 2 frames each containing movieclips called MC2 and MC3. The user can change between the two movieclips and MC3 has a animation within it. Once MC3 is activated, its animation plays but when the user changes to MC2 and then to MC3, the animation is back at the beginning, I want it to keep going even when the user changes to MC2 so when he switches back, the animation is still carrying on.
So basically, I need to know if there is way to have the movieclip playing even if it is not on stage.
i want to make a ball move at a constant speed into a wall and bounce of, initially it should move back but then It should carry on moving towards the wall.
I managed to make it bounce but once it hits the wall it carries on in the opposite direction!
I am trying to make the stage background color transparent.I am working with breeze, and I want to import a .swf into the powerpoint. However, I don't want to interrupt the powerpoints slide design.Therefore, I would like to make the .swf's background transparent.Is there a script for setting the stage background alpha to 0?
trying to print a movieclip with a white backgroundwhile keeping the stage background black.The movieclip,printResults_mc has a white rectangle in the bottom layer, 850pixels x 1100 pixels. The following function scales printResults_mcto the printers printable area but because isimpossible to predict the aspect ratio of the printable area someblack background always leaks out. I tried making the whitebackground 20 pixels larger than I need (870 x 1120) and thensetting a crop rectangle in addPage of (10,10,850,1100), no luck,the black stage background just fills in the area outside the crop.A simple solution would be to temporarily set the stage backgroundcolor property to white, print, then set it back to black, but I
I've designed a Flash site in CS3 using Action Script 2.0 that has a main flash movie sorta floating in space over a gradient background. I want the gradient background to re-size with the browser, so I thought that the easiest way to do this would be to delete the gradient background in Flash and instead recreate the background in Dreamweaver using the repeat background option and then make the Flash movie's background transparent. (I hope I'm making some amount of sense here).
I've found a few tutorials on how to do this, but so far I just get a white background instead of transparent. I've tried choosing "Transparent - Windowless" under Window Mode on the HTML tab in Publish Settings. And I've tried selecting the movie from within DW and clicking the parameter button and adding a "wmode" parameter with "transparent" as its value.
I am wondering if it's posible to set the backgroundcolor of the stage through as3 code.i am also wondering if it's possible to set the stage height and stage width through the code. for the application i wish to develop, the values of the stage color and the stage dimensions are provided by an XML file.
I saw the snow tutorial on this website and i plan on using it for 20 seconds (500 frames) in my introduction. It works perfectly fine, but after that time, it doesn't stop. It keeps on going and going and going... how to make it stop or make it go into the background? used the code provided by the tutorial. I know this is sudden by can someone answer today because i have to put it together before thursday.
I've been trying to carry out hitTest with the two child.They are namely enemy and weapon. However,it seems not working.I had been attempting to sort it out myself and searched the Internet but I got no idea of how to solve it.
stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler); function enterFrameHandler(event:Event) {[code]...........
i have a button which should generate two different variables, but it only carries out 1 function and not the other. If i put another button calling the second function it just overwrites the mc generated from the first function.
Also, I need the functions to be on the main timeline as i also need to remove the mcs when needed.
in my script, when a button is clicked it loads a movie clip from the library onto the stage
but what that movie clip does is supposed to be dependant on what button is being pressed. however that movie clip being loaded onto the stage doesn't seem to recognize or load any of the variables from the stage.
its as if, since the movie clip does not exist when the fla is initially run, the movie clip doesnt recognize previously existing variables.. or doesnt recognize any variables outside of itself
Flash CS3, AS 2.0 so I have an XML file containing the number 72, and this script:
Code: var imageNumber = new XML(); imageNumber.load("imageNumber.xml");
Then later, this script:
[Code]...
The problem is, the variable doesn't carry into my second bit of code. I can add a button and use trace to display the correct variable in the output box, so I know it's getting into Flash. The problem is that it's not applying itself to the second piece of script. Triple checked that the code with by putting in the number manually and using a normal variable, only when I use the XML file as a variable does it refuse to work. I'm very new to Flash so sorry if I've left any important information out, but can anybody shed some light on this?
I've found an example of this [URl] If you click on the mute button at the top, then navigate to another page, the mute button stays clicked. I have a decompiler, and pulled the code out of it. See below:
I've made a button that presents a movie clip (a window) on the screen, you can move this window by grabbing the tab on the top of the window. But when you exit this window and open another (duplicate is made), you cannot move the window at all.My guess is that the code is lost when the duplicate is made, can someone tell me how to transfer my code to all my duplicates? For more info, visit I sent this about a year ago, and still havent got a responce.
I know im a pain asking you all questions about c++ but we all know your all good enough to do anything so thought id give it a shot. I'm creating a naughts and crosses game (tic tac toe for you americans!!) for uni and am getting a little stuck! The game runs and a winner can be decided but when the game ends i want it to ask whether another game wants to be played.
Then i want it to carry on as a new game and loop until the players dont want to play again. i've included the source file in notepad form also could anyone tell me how to carry out a check on the array so that once a value has been entered into that co-ordinate (O or X) another value cannot overwrite it???
ive got a c++ program that im writing, its a simple calculator, the way it runs is by the user entering a number then another number, then the operand..what i need to know is how to carry out a check on the two integers so that only a number can be input, if anything else is then the program returns to the "insert first integer" code.
I have a player which I have created with play/pause, rewind,forward buttons, and a progress bar on it. How can I link these buttons to carry out actions on an externally loaded movie?I have searched on the forum and can only find answers for buttons for embedded movies.
I've found an example of this [URL] If you click on the mute button at the top, then navigate to another page, the mute button stays clicked. I have a decompiler, and pulled the code out of it. See below:
How do you make a movieclip move horizontally from the start of the stage to 3/4 of the stage. Stage size is 700 px by 600 px i want just one row in the middle of the stage. i want that movieclip to disappear right after it reach the end of the 3/4 mark.
I have a function which contains some code and about half way through calls another function. Only problem is it stops the main function from running so the code following it snt executed. What I want to know is is there anyway to go back into the original function at the point at where I left and carry on executing? I've thought of one solution but its a bit long winded and I just wanted to know if there was a quick and easy method, before anyone asks the code needs to be in its current order.
I'm new to flash in general, and wanted to try making a game using it. It's surprisingly addicting (I've gotten to the point of having an endlessly scrolling background with a moveable ship) but am having some trouble.I am currently making my first flash-based game using actionscript 3.0. However,I've come across a hurdle that I have not overcome: changing stages.I am making a SHMUP (it doesn't look very good, but I'm making it for experience) which has everything going from left-to-right ala R-Type.I have an endlessly looping background, but at the end of the stage I want to change the background, as well as all the enemies (they get upgraded per level) and enemy spawning positions.
how to change my background to simulate a different stage?how to make the new stage's spawn points different from the old one? Do I need to use another .as file for it, or do I just need to modify the code I have
I have a menu that is driven by AS3 and XML, I am trying to simply put a background image behind the menu but when I import a jpg and place onto the stage the background is always in front of the menu? The menu is an external AS file and is not on the timeline. What I can do to get the image to sir behind the menu?