ActionScript 3.0 :: Blur Contents Of Stage During Loading?
Jul 24, 2009How would I blur the contents of the stage during loading?
View 1 RepliesHow would I blur the contents of the stage during loading?
View 1 RepliesHow would I blur the contents of the stage during loading?
View 6 Repliesi,m trying to apply a blur filter to the entire stage except one MovieClip!
(You know thouse cool login types )
I gived it a thought and the only ideea i got so far is to put all the content on stage in some movie clip and apply on it the blur filter.
I am creating one movieclip function to use filter inside it. Scenario is I have alert_win (movieClip to show alerts). By default I disable its visibility and then call on some function. Now everything works fine except one thing. I want to draw blur effect on loaded background under that movie clip "alert_win". How can I blur the whole stage except loaded movieclip? Also "alert_win" movieClip is dragable. And on close button of that movie clip I am removing its visibility off.
Here is my code.
_root.alert_win._visible = false;
if(System.capabilities.screenResolutionX > 1024){
import flash.filters.*;
var dropShadowropShadowFilter = new DropShadowFilter(2, 45, 0x000000, 0.3, 3, 3, 1, 10);
_root.alert_win.filters = [dropShadow];
[Code] .....
In this game I dynamically load 9 random pictures onto the stage. They all start off with maximum blur. The idea is that when the user hears a sentence the pictures gradually lose their blur. The sooner the correct picture is clicked on, the higher the score. My problem is, I can't stop the tween when the user clicks on a picture. I've tried it successfully on a much simpler fla, where the images are already on the stage and not loaded from an external source.
Here's my extracted code - the source fla is way too long to attach.
Actionscript Code:
import mx.transitions.Tween;
import mx.transitions.easing.Strong;
import flash.filters.*;
import mx.controls.Loader;
var totalBlur:Number = 100;//100 is maximum blur,
[Code] .....
Would it be possible to take a screenshot of the stage and its contents?
furthermore would it be possible to make the bitmap distort so it transitions downward something like this? [url]...
I am looking for some help on a specific effect. I was pretty good in the old days in flash but I have fallen behind badly and the new action script and such is making my head spin a bit. The effect I am looking to do is like the FETblur,first one on the page, [URL]...
View 1 RepliesI have added some movie clips to the stage using addChild method on Some Mouse Events.Now on an event say Mouse Double Click I want to clean the stage.I checked the Stage class from reference it does not have any method called clear.Neither I have stored the references of the objects, so that i can clear them using removeChild()
View 1 RepliesCan a finished flash file be resized.
Stage is at 1684 x 1322 animated map operated by buttons in a static key located outside of map border, all on stage. Map also pans/zooms.
Two scenarios:-
1) resize stage and all contents down to a different size.
2) resize the animated map down but more so than the static key (sits outside the map) which should remain readable.
Is it possible to programatically export the contents of the stage to a jpg format? The goal is generating a starfield from a Photoshop png object over a background created in Photoshop inspired by van gogh starry night, then the result is exported in jpg of select sizes 800x600, 1024x768, 1280x1040.
That can be downloaded from a browser or emailed for use as wallpaper
I am trying to print a snapshot of the contents of a movieclip on the stage...this snapshot is stored in a bmp...then the bmp is attached to a movieclip which is rotated 90 degrees to fit on the page in landscape fashion...so the user doesn't have to alter their printer settings...however when I do mc.rotation = -90; or mc.rotation -= 90; the printout on the page is the bmp sliced diagonally in half...and one half isn't showing...when I tried +90 it worked, but the mc wasn't placed correctly on the page...I also tried +270, and that produced the half cut diagonal bmp again...here is my print code..
[Code]...
i am having problem with loading external text or html content code works on main timeline it loads whole html contents with image but i move it in movieclip the only text just disappears.i tried to load it through external swf file but the text is still invisible
View 1 RepliesI have a Flash CS4 document and I am attempting to resize the stage to accomodate its current contents.When I do so, the stage becomes *much larger* than the apparent contents, and I am trying to figure out why. I have literally examined every frame of the animation, and selected every individual object to see if the selection bounds indicate a rogue "large object"...but none indicate this...what sort of things about the contents might cause this that I am missing?
View 7 RepliesIs it possible to programatically export the contents of the stage to a jpg format? The goal is generating a starfield from a Photoshop png object over a background created in Photoshop inspired by van gogh starry night, then the result is exported in jpg of select sizes 800x600, 1024x768, 1280x1040. That can be downloaded from a browser or emailed for use as wallpaper
View 3 RepliesHow it is done, when you enter to site [URL]. Preloader loading the content of site and when you re-enter to site you see the preloader once again and preloader loading from 1 to 100 fast. What script cause this effect?
I have 2 mc, mc1 with script :
onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.mc2.gotoAndPlay("preloader");
}}}
And mc2 have preloader in 2 frames and then goes frame with label loadMovie("content") but its not working.
I know that the autoSize works fine for textfields (loading contents from a XML, for example), but and for movieclips? There's a way to set this?
View 6 RepliesI loaded a swf from external. using loader class. But if i check with the width and height of the loader is differes from loader.contentLoaderInfo.width.
loader.width // 1250;
loader.height // 750;
loader.contentLoaderInfo.width // 750;
loader.contentLoaderInfo.height //420;
From this statement i came to know the loader gets the width of all hidden objects, which are already outside of the stage area. But now I need to increase the size of the stage contents only..
I want a MovieClip to play as its loading the content in the background, I already have the MC animated, the "loader", how do I do this! I tried this way
frame1
ifFrameLoaded ("end") {
gotoAndPlay ("Start");
}
frame 2
gotoAndPlay(1);
layer 2
loader
Thats all it works the only problem is, that I realized is that its dependent of connection speed, what I mean is that if you have a 200KB/s connection it will load so fast that it doesnt play the complete animation and I set the simulate download speed to like 50KB/s and it does play completely. So my question is will this happen when it's online?
I want to know: is it possible to load several images using a single loader?
View 2 RepliesI'm trying to load the content of a .txt file dynamically... If I leave the .txt file in the same root with the .swf it works perfectly, but I tried moving the .txt files into another folder and it stopped working...
Code:
var path ="/info/myInfo.txt";
var my_lv = new LoadVars();
my_lv.onLoad = function(success) {
if (success) {
// actions go here...
} else {
trace("error load text files");
}};
my_lv.load(path);
"info" is the name of the folder the .txt file is in... I even tried upload it to my server and giving the absolute address like [URL] but nothing...
I've got a movieclip with a blank dynamic textbox inside. On frame 1 of this movieclip, I have the actionscript to load the contents of an external .txt file into the dynamic textbox. The problems are:
1. I have an <img> tag in the external .txt that doesn't work (actually, the text does wrap around where the img is supposed to be in the dynamic textbox, but the img itself is not appearing.
2. All <p> tags don't work, but <br> does.
3. I have an ampersand (&) in the .txt file and all text is cut off at that point when loaded into the dynamic textbox. I've tried escaping it (&) and using & to no avail.
I'm loading content from a text file into a text field in Flash. In that text file I have some simple html tags like <b>, <i>, and <img>. I'm setting the textfield as html text:
myTextField.htmlText = myContent
The img tags work fine, but for some reason the bold and italics are not displaying...the tags are being correctly stripped from the text, but there is no bold or italic text. I'm embedding all the characters I need, but do I need to somehow embed the bold/italics versions of those characters?
I have built a simple Flash application that will be presented using a projector, the application will show messages in the form of questions that will come from a simple flat-file text file or XML file.
In addition to this I would also like to be able to add my own messages using a simple HTML form.
I've been looking around the web for some resources, but have been struggling to find what I am looking for. The basic idea is that the flash application will loop through these different messages from the XML, but then when a user types in a message that will also appear within these messages. Think of it as a sort of dynamic tag cloud.
I am trying to have one single loader for different buttons to load their specific target. lets say I have btnOne and btnTwo, each of them have their page to link to, btnOne to pageOne, btnTwo to pageTwo, page one and two are external swfs. so can I load them into stage by sharing one single loader?
this is simply my script:
ActionScript Code:
var swfURL:String = ("external.swf");
btnOne.addEventListener (MouseEvent.CLICK, startLoad);
btnTwo.addEventListener (MouseEvent.CLICK, startLoad);
[code]....
I am trying to have one single loader for different buttons to load their specific target.lets say I have btnOne and btnTwo, each of them have their page to link to, btnOne to pageOne, btnTwo to pageTwo, page one and two are external swfs. so can I load them into stage by sharing one single loader? this is simply my script:
[Code]...
I'm customizing an xml flash website and while I can handle all the html and xml well enough, but in Flash, I have no clue how to:
Now go on the stage, and delete the contents of the last layer(background & pattern). Here, add from the library, the square movieclip, and name it mcBackColor(see attached image).And then to add your swf background in the "background & pattern" layer from the main.fla file.
I can change the name, but don't know how to delete just the contents of the layer and then add the new clip.I've made a slideshow before and that's all I can do.
i get problems @ this line... "contents.loadMovie(mc);" instead of just loading the movie, it automatically plays. and the code after it don't even get analyzed. pointers
[Code]....
I've searched every possible actionscript forum for this and i cant seem to find it. How can i create an "area" of blur which blurs everything beneath it?Like some kind of masked blur effekt?
View 0 Repliesi want to know how did the creator of otradesign accomplish the effect in his site like the menu and the main contents change size and the menu position according to the size of main contents.
View 5 Repliesthis.stage.loaderInfo.bytesTotal; with that line of codedoes stage mean the loading of the entire swf is monitored or the loading of objects which are used on the stage are monitored? can specific objects (say a specific movie clip) be targeted?can externally used AS scrips be targeted? and what does "this" doe
View 8 Replies