Actionscript 3.0 :: Make The Background Dark When External Swf Is Loaded?

Mar 1, 2009

I have a main stage (its a background image + buttons) and when I click a button, an external swf is loaded in the middle of the page, on the main stage.

I would like the main stage to become inactive, dark and blurry... (you know what I mean?)...every time I click a button and the the external swf appears. Then when I click on the blurry area (main Stage), the external swf disappears and the main Stage becomes normal and active again.

How could I do all that in AS 3?

All I have now is the code for the button, to open the external swf file:

Code: Select allcontacts.addEventListener(MouseEvent.CLICK, Contacts);
function Contacts(e:MouseEvent):void {
var loader:Loader = new Loader();

[Code]....

View 7 Replies


Similar Posts:


ActionScript 3.0 :: Dark Background Of Movieclips Passing On A Video?

Dec 14, 2010

I get a weird bug only on Mac, only on Safari. On Pc, on Safari it's ok:

when I click to allow the camera the text, that is contained in a movieclip, the xmas ball and the snow fail the transparency on the video!

View 2 Replies

ActionScript 3.0 :: How To Make Stage Dark When MovieClip Open

Oct 1, 2009

I am trying to create an effect that when someone clicks a button it opens a movieclip. I want everything behind that movieclip to get dark so that the only option is to click on a button in the open movieclip.

View 1 Replies

ActionScript 2.0 :: Make A Puzzle With An Externally Loaded Background?

Oct 7, 2007

I am trying to make a jigsaw puzzle where you can upload an image of a set size.Right now the only way I can think to do that would involve loading the same image for each piece, which I don't want to do for performance reasons.Is there a way I can make an instance of a movieClip the same as the instance of a different movieClip?

View 1 Replies

ActionScript 2.0 :: Disable / Cover Background When External Page Loaded

May 3, 2011

I have a full screen webpage with an elastic bg that is created mostly through AS, XML, and external .swf's. The main menu links to pages (other external .swf's with dynamically loaded content) that look sort of like popups over the graphic content of the main background (img2). There are two problems, 1) there are other buttons on the main page that the user can click when viewing a page and 2) the popups come down directly on the content and make the whole site look rather flat.

I am trying to create a background for each of the pages that has the same elastic qualities as the main page (so that no matter what it will cover the user's entire screen) and will disable all of the buttons beneath it. I tried adding a rectangle beneath the pages other layers, however any script I write for that mc (such as the onResize _mc.width and _mc.height or ._x and ._y) is completely ignored in the main timeline and the rectangle messes with the popup page position -- img3. Also the buttons beneath the rectangle are still active.

View 2 Replies

ActionScript 3.0 :: Make External Loaded Xml Appear Below Top Layer?

Oct 6, 2009

On one layer I have a gallery loading the content from an xml file. On the layer above I have two square blocks on either side of the screen, with a gap in the middle for where the main picture will be displayed. The two blocks are 50%percent alpha. This is because the gallery thats loaded, loads the images in a line, which is movable, whereby the user can click either the left or right image and the gallery moves along, displaying the next or previous image into the middle spot where there are no blocks shading it.

View 0 Replies

Professional :: Make External Loaded .SWF File Smoothly Disappear After 15 Seconds?

Nov 23, 2010

How can I make my external loaded .SWF file smoothly disappear after 15 seconds? The following is the code to load an external .SWF file:

[Code]....

I want to make clock.swf file disappear from the page after 15 seconds using some smooth disappear effect.

View 2 Replies

ActionScript 3.0 :: Make Mouseover Scroll Buttons Attached To Textarea With External Loaded Text?

Mar 1, 2009

I want to make a dynamic textarea with loaded text from an external textfile, and then I want custom made arrow buttons to start scrolling the loaded text on mouseover (not click) andt stop scrolling on mouseout. Ala like in this webpage[url]...

The part with the loaded text is fine, but I can't manage to script the arrow buttons to do what I've just described. Even though I have searched the Internet for recipes I just find how to scroll loaded text on click or with a scrollbar

View 1 Replies

CS3 - Make Background Flash Background Transparent In Dreamweaver?

Apr 10, 2009

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.

View 2 Replies

ActionScript 3.0 :: Flash Window Pops Up And Everything Goes Dark Around It

Apr 15, 2009

how some websites you click on something, a flash window (I'm assuming it's a flash window) pops up and everything goes dark around it (and you can't click anywhere) until you close the window.

View 5 Replies

ActionScript 1/2 :: RollOver Effect - Transparent PNG Dark Box

Nov 25, 2010

I'm tring to create a roll over effect. I have 4 Pictures: Let's Say A B C D. If I roll over A I want the other picture to have a transparent light box on top so it looks like A is the main focus. So if you roll over A the other pictures will turn dark and A will keep its color. I can do this by making A a symbol and then putting a transparent png dark box on top of B C D. That works. What doesn't work is when I go back to the original time frame and make B a button also. When I add the roll over effect, it only does it for that. Let me show you in pictures.

<---- that is the original
<---- When I roll over A
<---- When I roll over B

The last two are made using two different flash files. I can't put them together in one. If I put them together and roll over on A, It comes out like this.

View 3 Replies

Flash :: Professional - Animated Buttons Start Off Being Dark?

Dec 3, 2010

I created these buttons that should do the following screen. Be dark when the mouse is not over them. Smoothly transit to a brighter colour when the mouse get's over them and then again smoothly transit to dark when the mouse get's away. To do so I created 2 animations the one that gets the button darker and the one that gets the button brighter (which is actually the normal picture of the button). The button statuses are these:

UP: Bright to Dark animation
OVER: Dark to Bright animation
DOWN: Bright picture
HIT: Bright picture

now the buttons work perfectly except for the fact that when i turn on the scene before they get dark the buttons have to go through the up animation (bright to dark) so it looks like turning all the lights off. How do i have my buttons start off being dark?

View 7 Replies

ActionScript 3.0 :: Unable To Remove The Dark Border From The Button?

Apr 2, 2012

In the first button i am not able to remove the dark border from the button. I want exactly like 2nd button.
 
I am using the following CSS  for button:
fillAlphas: 1, 1, 1, 1;
fillColors: #FCB913, #FC8613, #D4652D, #B34A2A;
themeColor: #FABA0A;

[Code].....

View 2 Replies

Html - Embed Youtube Video With Dark Player?

Aug 5, 2011

When watching a video on youtube you get a dark player But when you embed you get the standard light player

So,How can I change the embedded video to use the dark controls?

I know that I can view the source and copy the object for the video... but there has to be a more "official" way of doing this.

View 1 Replies

ActionScript 2.0 :: Highlight - Take Dark Pixels Of An Image Of Hair

Apr 22, 2009

I've seen this being done before and I thought it would be easy, but got stumped when trying to replicate it. I'm trying to create a function in flash which will take dark pixels of an image of hair and lighten it and maybe add colour too... Is that really tough to do or does anyone have an easy way around it? Example: [URL]

View 2 Replies

ActionScript 2.0 :: Make The Background Image Move Opposite The Cursor To Make It Seem Like The Camera Is Moving?

Mar 5, 2006

I need to make the background image move opposite the cursor to make it seem like the camera is moving.[URL]

View 1 Replies

ActionScript 2.0 :: Make Falling Snow Stop Or Make It Go Into The Background?

Oct 14, 2003

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.

View 1 Replies

ActionScript 3.0 :: Dim Background Under Loaded .swf

Mar 16, 2012

I'm creating a photo gallery, and I have a .swf loading when I click my gallery button..it loads on the same page. I would like to have the background image dim when the .swf loads, as it is a bit distracting under the .swf at full alpha.

View 9 Replies

ActionScript 3.0 :: External XML Works Loaded Offline Not Loaded Online?

Apr 15, 2009

Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);

[code]....

View 3 Replies

Change The Background Color In Loaded .swf

Aug 19, 2009

I created a flash application which loads in many other little flash applications (.swf files) based on menu selections. When I change one of the little applications the changes are viewable except when I change the background color.

After the first time I view the application, the background color changes do not carry over to the main app. I run the little ones stand alone and they show the new color, then I run the main app and any other changes I have made are there but not the color change. When I remove the file and the load fails, the old backround color still displays in the container movie clip the .swf was previously loaded into.

I have tried several different options and the only thing that worked was renaming and copying and deleting and making a big mess. There has to be a way to force a refresh of this mysteriously saved color. doesn't there?

View 3 Replies

Flash :: Get The Background Color Of A Loaded Swf File?

Nov 16, 2009

I'm loading an swf file into my main application using URLLoader, I want to get the background color of the loaded swf file. ( I heard that one solution wold be reading the byte code of the loaded swf )

View 2 Replies

ActionScript 3.0 :: XML Loaded Gallery As Background For Webpage

Oct 21, 2009

Basically what I've got is a XML loaded gallery as a background for a web page. Now the problem I can't seem to work out is, I want to be able to define which pictures in the gallery show up in different sections of the website. For example -
homepage - images 1.jpg, 2.jpg and 3.jpg are accessible.
About Us - images 4.jpg, 5.jpg and 6.jpg are accessible.
and so on.
Similar to what happens on [URL] but without the gallery popping up. It's relay bugging me now.

View 6 Replies

ActionScript 3.0 :: Unloading A Loaded External SWF With A Close Button On The External SWF To Unload?

Aug 15, 2011

[URL]I have: main.swf (a menu) and I have module.swf (content)If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent. So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.below is the code I used to load the file but I cant, for the life of me, find a way to unload it. 
 
var bigboreLoader:Loader = new Loader();btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
function bigborecontent(event:MouseEvent):void{var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf"); bigboreLoader.load(bigboreRequest); stage.addChild(bigboreLoader);
 
I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
 
Main FLA: 
function removeF() {
removeChild(bigboreLoader);
}

[code]....

View 10 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

Fadein A Background With A Alpha Tween After It's Loaded In By An UILoader

Apr 14, 2010

I want to fade in a background with a alpha tween after it's loaded in by an UILoader. Everything seems to be working great when I do a Test Movie (in Flash) or view it in IE. However, I encounter a problem when viewing in Firefox. Somehow the alpha does'nt come up to 1(100%). Sometimes my background image is barely visable and sometimes it's at ~90%. It seems to be completely random.

Quote:

//load random background (1 to 10)
var randomNumber:Number=Math.ceil(Math.random()*10);
trace(randomNumber);

[code]....

I've tried increasing the final value (Regular.easeOut,0,1,2,true) and this will change something but doesn't solve the problem. I've also tried instead of fading in the background to fade out a overlaying vectorshape, but same result.Is it possible it has something to do with other script/my background img size/??.

View 2 Replies

ActionScript 3.0 :: Does Loaded Content Get Choppy While Loading In Background

Apr 27, 2010

I have some preloader (timeline-based) content and some FLV's that I want the user to see while other content is loading in the background. The preloaded content and the FLV's are very choppy while the content is loading and run fine afterward. I initially thought this might be a RAM issue, but my other apps are running fine at the same time (YouTube, etc.) so I think it's an issue within my code or Flash Player. How do the really nice preloaders (animation on timeline OR FLV's) run so smoothly while background content is loaded? For example, are they independent SWF's? internalized classes exported for Actionscript? some other option I'm not privy to? Mine, for example, are internal classes in the main library that I have exported for AS.

View 6 Replies

ActionScript 3.0 :: Getting A Black Background In My XML Loaded Text Field

Apr 28, 2009

I am loading in text from an XML file, and it loads in fine but I am getting a black box behind each of my letters in my text field. I tried to cancel it out by write the background = false; but it is not working. Does anyone know why this is happening? I have loaded in hundreds of .txt files and this has never happened, but this is my first time loading in XML txt, so I am not sure what to do?

View 3 Replies

ActionScript 2.0 :: Dynamically Loaded JPEG For Tiled Background?

Oct 15, 2007

Is it possible to dynamically load a JPEG image and use it as a tiled background for a fullscreen flash movie?Everything I see online is for bitmaps already loaded in the library.

View 1 Replies

ActionScript 2.0 :: Code Which Can Check To See If The Background Swf Is Already Loaded Into Its Container?

Jan 9, 2008

I am creating a site where there is a portfolio section with icons for each piece of artwork.Regardless of which icon 1-10 is clicked, for the first time ONLY, I want to load a swf which "draws in" a portfolio "background", and another swf on a higher level which corresponds to the icon clicked (lets say a sample artwork).

However, if the user has previously clicked another portfolio icon and is currently viewing one of the portfolio pages, there is no need to load the "background" swf again (it would be tedious watching the drawing in animation over again).

I've designated a target container movieclip for each.The icons swf file with the buttons is another swf on the timeline.Is there some code which can check to see if the background swf is already loaded into its container? And in which swf would I attach the code?

View 3 Replies

ActionScript 2.0 :: Loading Background Images (Externally Loaded) & Timer

Aug 1, 2011

I have a few questions... All of which have to do with this website: [URL] 1) First off, is there any way to pre-load externally loaded .jpg's so that there is no time delay between each background image? (You can see what I mean by clicking the "-" and "+" buttons on the bottom left corner. Here is the code that I'm using for the background images/buttons:

[Code]...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved