Blur Button in AS2

Hi- I'm stressing, I found an awesome tutorial to create a blur button but I can't figure out how to make it go to and play consistantly. Can anyone help? Here is the link. A sample code would be ideal. Thanks in advance.
http://flashexplained.com/actionscript/applying-the-blur-filter-to-buttons-via-a ctionscript/

import flash.filter.BlurFilter;
var tl:MovieClip=this;
var blurF:BlurFilter=new BlurFilter(20,20,3);
yourButton.filters=[blurF];
yourButton.onRollOver=function(){
this.filters=null;
yourButton.onRollOut=function(){
this.filters=[blurF];
yourButton.onRelease=function(){
tl.gotoAndPlay("whatever");

Similar Messages

  • Safari displaying blurred buttons on MacBook Pro

    Safari is displaying buttons on web pages as blurred squares. For example, whilst typing in this comment box, the formatting option buttons are showing up blurred, as shown in the picture below. The same issue is also occurring on the Facebook 'log in' page. The problem stopped after a re-start but has since continued.

    Start up in Safe Mode.  http://support.apple.com/en-us/HT1564
    Reset PRAM.   http://support.apple.com/kb/PH18761
    If this doesn't help:
    Safari > Preferences > Extensions
    Turn those off and relaunch Safari to test .
    Turn those on one by one and test.

  • Some Button Questions (AS2.0)

    I made a coloring book game in AS 2.0 (I did it this way so that I could put individual pieces of code for various buttons - there are around 50). I based it off a tutorial I found online. It works really well. These are the codes I used:
    In a top layer, I have just in frame 1 (there is only one frame in the whole thing):
    _root.fillColor = 0xFFFFFF;
    Each colorable part of the picture is a movie clip with a button inside, and each of those buttons has the following code:
    on (press) {
    color = new Color(this);
    color.setRGB(_root.fillColor);
    delete color;
    And then I have two color buttons they can "dip" their pointer into, then they can click on the colorable areas and color them. The code for the color buttons is:
    on (release) {
    _root.fillColor = 0xC71E07;
    _root.brush.gotoAndStop(8);
    Note: the hex code there is for the red button; it's different for the other color.
    Anyway, so this all works really well. What I need now are two buttons that I have NO idea how to make.
    Button 1: A "show answer" button that pops up a little graphic showing what their picture should look like. I know how to do this in AS 3.0 (I would just have the object fly in from off-stage on the button press), but not in 2.0. One thing I tried was to have it skip to a different scene or even just a different frame in which that object exists in place. The issue there is that it causes the coloring the user has done to disappear.
    Button 2: A "clear board" button that resets the whole thing. I've tried using the gotoandPlay(1) action with this button, but it doesn't do anything.
    Any help would be much appreciated. Thanks.

    Putting the code you gave me into my AS2.0 project, I get the following errors and no output:
    Scene=Scene 1, layer=buttons, frame=1, Line 4     Statement must appear within on handler
    Scene=Scene 1, layer=buttons, frame=1, Line 2     Statement must appear within on handler
    Scene=Scene 1, layer=buttons, frame=1, Line 1     Statement must appear within on handler
    This is the code I put on the button, just in case maybe there is some problem with it:
    trace(show)
    show.onRelease = fl_ClickToPosition;
    function fl_ClickToPosition()
         trace(Answer);
         Answer._x = 822.90;
         Answer._y = 187.50;
    (in this movie, the button to show answers is called "show" and the graphic that shows the answer is called "Answer")
    I put this into another game I made in AS3.0 (the one I'm having drag-drop issues with) and it gives the following compiler error:
    Scene 1, Layer 'Actions', Frame 1, Line 93 1119: Access of possibly undefined property onRelease through a reference with static type flash.display:SimpleButton.
    If I just keep my code as-is (on the AS3.0 one) but add the trace function to the answersflyin, it works the same as it did before and the output says [object MovieClip].
    Thanks for all the help, by the way. I have no idea what I'm doing; learning on the job.

  • Print and Save buttons in AS2

    This is a two part question:
    I have a flash application that has multiple layers of movie clips with an image in the background and the ability to position other movieclips on top of that image. I want to be able to print just the area the background movieclip takes up, or more specifically, I do not want to print the interface of the application, just the images that was created in the SWF itself by the user.
    Using this code from the Adobe actionscript dictionary gives me part of what I want, but how can I define an area to print rather than printing the whole swf?
    on (release) {print("myMovie","bmovie");}
    I'm guess the print area is specified by the bmovie, bframe, and bmax parameteres, but I'm not sure where or how I would go about setting those or which would be best for what I am trying to do.
    The second part of my question is that I am looking have a save button to save the same area that the print button would be printing. I'm thinking of using a field for the user to enter a name into that will create a variable and then saving the file with the name of said variable. What code can be used to save and create this bitmap?

    I see how a movieclip or a single level can be specified to print, but if multiple levels have been stacked can the stack of levels be printed?
    For example, if level 1 contains the movieclip I want to have printed and level 2 has some vector drawings they created on top of the movieclip, can this print level 2 on top of level 1 as the user sees this on their screen and how do I do this?
    Thanks

  • Flash Button Blur Help

    Hi- I'm stressing with AS3, I found an awesome tutorial to create a blur button but I can't figure out how to make it go to and play consistantly. Can anyone help? Here is the link. A sample code would be ideal. Thanks in advance.
    http://flashexplained.com/actionscript/applying-the-blur-filter-to-buttons-via-actionscrip t/

    I thought id was AS3 but even if it is AS2 can you assist?

  • Hello as2 image scroll buttons. I can't get the scroll to work

    Thank you in advance for your help. I am building an vertical image scroll buttons in AS2. but I cant get the scroll to work. Can you please look at my script and see if I am missing something. Thank you again.
    topEdge=mask_mc._y;
    maskHeight=mask_mc._height;
    sliderHeight=slider_mc._height;
    ratio=maskHeight/(sliderHeight-maskHeight)
    //trace(ratio)
    targY=slider_mc._y;
    slider_mc.onEnterFrame=function(){
      this._y+=(targY-this._y)/5;
    slider_mc.onMouseMove=function(){
      if(mask_mc.hitTest(_ymouse,_xmouse,false)){
        targY=topEdge-(mask_mc._ymouse/ratio)
        updateAfterEvent();

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    -  Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • How to load an object from library by clicking on a button?

    How can we load and unload an object ( like a picture ) from our library by just clicking on a button and then unload it by clicking on an other button using as2.
    Thanks for the help

    assign the button an instance name (eg, btn) and assign the library object a linkage id - right click the library symbol>click properties>tick export for actionscript>assign a linkage id (eg, mc_id) and click ok.  then use:
    var tl:MovieClip=this;
    btn.onRelease=function(){
    tl.attachMovie("mc_id","mc",tl.getNextHighestDepth());
    // to remove, mc.removeMovieClip();

  • Exit buttons in Presenter

    I created an exit button to close a webpage at the end of an Adobe Presenter course using; javascript:window.close() and pubished it. On inserting the .swf file and publishing the Presenter file the exit button does not work.
    Using: Captivate 5, Presenter 7.0.6

    There are solutions available.  While not all browsers allow you to close a window without handles; you can close IE (for example) and then attempt to close other browers.  If they don't close within a reasonable period of time (e.g. one or two seconds) you can redirects your users to another page (e.g. either your website; or a simple document with instructions to the learner to close the browser using the X).
    I do NOT recommend using Flash files with embedded "window.close()" or the like.  This will only work if the page that is opened is a simple page and not contained within a frameset (where you might need "parent.close()" or "top.close()", etc).  You'd have to edit your Flash file each time to make this work, if it works at all.  I recommend creating a Flash file that contains a reference to an actual function you create, such as "closeBrowser".  Then you create that function in the HTM file that contains the Flash-based files and you can easily modify that.
    I discussed this issue and originally developed some certificates or quit buttons for AS2-based Presenter and Captivate files in an article on Connect Users: http://www.connectusers.com/tutorials/2009/02/certificates/. 
    I have to update my articles (in my spare time) for AS3-based articles.  However, you could easily create a Flash-based button that calls ExternalInterface.call('closeBrowser'); or something similar.  The code you'd want to include in your HTM file is found here:  http://www.connectusers.com/tutorials/2009/02/certificates/JSCodeForHTMLTemplates.txt
    The function to call from Flash is:  closeBrowser
    -Andrew

  • State state button  = pressed

    hi,   
    how do I join so that when you press a button, it remains pressed?
    I hope you understand.
    I'm Sorry for my English, is poor.

    You need to use a movieclip as a button in order to do that.  Buttons in AS2 will not allow you to control their states.  But you can create whatever controls you like for a movieclip used as a button.  You tell it to go to a certain frame when clicked and it will stay there until something else you devise tells it to move to some other state/frame.

  • How do I get the exact same "Flash" effect ("Text", "Lights and Optical") as shown in the preview?

    Whenever I drag the preset onto the layer (or double click on Bridge) what happens is that the text kind of flutters in.
    I tried matching the outline and background colors and the effect is much better, but not what's shown in the preview. It lacks the actual flashes, precisely what the preset's about.
    Any help?

    Though I'm new to AE I have to admit I feel rather stupid. All your answers are correct.
    I gave the text a stroke with the same color as the background and checked the Motion Blur box for the layer, but didn't turn on the Motion Blur button on top. Now it seems to be working good.
    Seems so simple now.
    Thanks again.

  • Embedding HTML Into Flash?

    Let me start with the fact I only know some AS2. AS3 tends to go over my head. So I'm using Flash 8
    If I need FlashCS5 to do this, then, PLEASE, let me know.
    Here's the situration.
    I manage and build a number of sites. Many are parts of a network. The goal is to join them all as one. Both without using php (don't know php), and without having to leave primary page. A Flash Site is the plan. But that is a TON of work to re-create entire sites flash that are already large and established.
    So I got to thinking. What if I embed the HTML/CSS sites into Flash itself? That way they can still make their changes and it'll effect both the HTML version as well as it's mirror/portal via the Flash site?
    In Short:
    I want to embed this page on one frame in Flash:
    http://www.uga-international.com/About.html
    And place a link to another KeyFrame that has this page/site embeded:
    http://www.melholder.com/MAIN.html
    How would I go about doing this?
    ====
    Then it got me thinking even more. If this works, would it be possible to load a SWF video player (Webstunning FLV Player) into Flash and run it as if it's part of the Flash site?
    I thought the Loader Component would do this for me. But it keeps saying it can't locate the "playList.xml" file. The player has outside files it referances. This eoor prevent the player.swf from playing period.
    So how would I go about getting the loader to player external .SWF files that referance external .XML files?
    Here are two sample pages using different .SWF files that referance external .XML files:
    http://www.melholder.com/index.html
    http://www.dovm.org/TEST1a/Test1a.html
    Thanks in advance.

    Thank you for you help and patience.
    But your last statement "copy and paste your frameset encoding" just got me lost.
    In Flash, I know how to use the "MyLoader" to load an outside file (but loading HTML pages in it does not work) But it only has these Parameter options:
    autoLoad:True
    contentPath: "URL goes here
    autoScale:True
    I also know how to point a button's AS2 to open a URL page.
    on (release) {
    getURL("URL Link Goes Here",_blank);
    Those are the only pointing methods I know.
    Now that I think about it. do I change the "_blank"  part of the AS2 code to the name of the Iframe instead?

  • Depth of Field tool in Elements 11

    I have a problem with the depth os field tool in Elements 11. When I add focus, the focus area becomes a black smudge, is there a fault?  Your help is appreciated.

    Hi,
    OK, in case it makes any difference, what operating system are you using?
    To me, it looks as though you are trying the simple method.
    Are you clicking on the Add Blur button first?  - Does the image go out of focus after you click on the button?
    After that, then you select the area to be in focus as mentioned above.
    It is important to do things in the order top to bottom.
    The guided mode really uses layers, one of which is the black mask you are seeing. For interest sake, if you manage to get it to work properly, if you switch to Expert mode, you will see the layers it has created.
    Good luck
    Brian

  • Applying a ConvolveOp many times....

    Hi!
    i have implemented some ConvolveOp in my app (Sharpen, Blur, Edge Detect).
    But the problem is that if i press one of the three buttons (eg. blur button), then if i try pressing another one after it to apply another filter (eg. sharpen) this filter will return an error saying that
    "src image cannot be the same as dst image".
    This method creates the BufferedImages:
        public void createBufferedImage()
            mBufferedImage = new BufferedImage(image.getWidth(this),
                                               image.getHeight(this),
                                               BufferedImage.TYPE_INT_RGB);
            g2 = mBufferedImage.createGraphics();
            g2.drawImage(image, 0, 0, this);
              //--For Sharpen, Blur and Edge Detect Functions:------
              /*biSrc = new BufferedImage(image.getWidth(this),
                                              image.getHeight(this),
                                              BufferedImage.TYPE_INT_RGB);
            big = biSrc.createGraphics();
            big.drawImage(image, 0, 0, this);*/
              biSrc = mBufferedImage;
              biDest = new BufferedImage(image.getWidth(this),
                                               image.getHeight(this),
                                               BufferedImage.TYPE_INT_RGB);
        }These are my filter methods:
        public void sharpen()
              biSrc = mBufferedImage;
            // Define the kernel data which is basically the
            // Sharpening mask.
            float data[] = {-1.0f, -1.0f, -1.0f,
                            -1.0f,  9.0f, -1.0f,
                            -1.0f, -1.0f, -1.0f};
            Kernel kernel = new Kernel(3, 3, data);
            ConvolveOp convolve = new ConvolveOp(kernel,
                                                 ConvolveOp.EDGE_NO_OP,
                                                 null);
            convolve.filter(biSrc, biDest);
            mBufferedImage = biDest;
        public void blur()
              biSrc = mBufferedImage;
            float data[] = {0.0625f, 0.125f, 0.0625f,
                            0.125f,  0.25f,  0.125f,
                            0.0625f, 0.125f, 0.0625f};
            Kernel kernel = new Kernel(3, 3, data);
            ConvolveOp convolve = new ConvolveOp(kernel,
                                                 ConvolveOp.EDGE_NO_OP,
                                                 null);
            convolve.filter(biSrc, biDest);
            mBufferedImage = biDest;
        public void edgeDetect()
              biSrc = mBufferedImage;
            // Prewitt's  horizontal convolution mask
            float data[] = {1.0f, 0.0f, -1.0f,
                            1.0f, 0.0f, -1.0f,
                            1.0f, 0.0f, -1.0f};
            Kernel kernel = new Kernel(3, 3, data);
            ConvolveOp convolve = new ConvolveOp(kernel,
                                                 ConvolveOp.EDGE_NO_OP,
                                                 null);
            convolve.filter(biSrc, biDest);
            mBufferedImage = biDest;
        }And this is how i call these methods from my actionPreformed():
              else if(obj == sharpenButton)
                   displayPanel.createUndo();
                   displayPanel.sharpen();
                   displayPanel.repaint();
              else if(obj == blurButton)
                   displayPanel.createUndo();
                   displayPanel.blur();
                   displayPanel.repaint();
              else if(obj == edgeDetectButton)
                   displayPanel.createUndo();
                   displayPanel.edgeDetect();
                   displayPanel.repaint();
              }Is there anyway around this problem???
    Ideally i would like to apply as many ConvolveOps as possibly on top of each other, is this possible?
    Thanks for your help!
    Claire
    x

    Someone please help me! :)

  • Motion tween question in cs5

    Hi,
    I'm trying to create an animated movie clip button in AS2 using CS5. The button should fade in/out as the mouse moves over and away from the button.
    Lets say my frame rate is 30 FPS. When  I insert a motion tween on frame 1, the timeline is automatically extended by 30 frames. I then select frame 30, select the button and change the alpha value to 30%. When I drag the head marker back and forth, the button fades in and out smoothly exactly as I wanted.
    But I want to create a motion tween between frame 1 and 10. So I select frame 10, insert a keyframe, select frame 5 and insert a motion tween. Then I select frame 10, select the button and change the alpha value to 30% like before. When I drag the head marker, there is no fade in/out. When the head marker is exactly over frame 10, the button is faded, but when it is on any frame between 1 and 9, it is normal.
    How do I fix this problem?
    thanks for your help
    Rashinkar

    If I'm following correctly, you are trying to tween between two keyframes instead of within a single tween span. If you want to create a tween between frames 1 and 10, insert a keyframe on frame 1, and then insert frames to frame 10 instead of creating a keyframe (press F5 on frame 10). Then right-click one of the frames or the object and choose Create Motion Tween. Then move the playhead to frame 10 and change the alpha.
    Hope that helps.

  • Embedding quicktime into flash

    hey guys. Im doing a page in flash where I want to have
    options to play certain quicktime movies. I either want to have the
    quicktime files open on another window but with the the viewer not
    able to change to the window size, or I want to have the movie to
    play right there in flash. I know how to bring in a quicktime movie
    to Flash, but is that the only way to do it? Its going to be a lot
    of frames long. I know in a regular html page you can use java
    script to control a windows size. I cant find a way to use java
    script in Flash. Can anyone help me if this makes sence ?
    Thanks

    Thank you for you help and patience.
    But your last statement "copy and paste your frameset encoding" just got me lost.
    In Flash, I know how to use the "MyLoader" to load an outside file (but loading HTML pages in it does not work) But it only has these Parameter options:
    autoLoad:True
    contentPath: "URL goes here
    autoScale:True
    I also know how to point a button's AS2 to open a URL page.
    on (release) {
    getURL("URL Link Goes Here",_blank);
    Those are the only pointing methods I know.
    Now that I think about it. do I change the "_blank"  part of the AS2 code to the name of the Iframe instead?

Maybe you are looking for

  • Trying to follow the Pages/epub instructions but ...

    I've read through all the relevant discussions I could find here, and while I've learned a lot (thank you) I am still having a major problem. I'm tryingt o export a book-length Pages manuscript to the ePub format. I've had some success, but I can't s

  • Dispatcher running but not connected to message server :(  please help .

    trc file: "dev_disp", trc level: 1, release: "700" sysno      00 sid        DEV systemid   562 (PC with Windows NT) relno      7000 patchlevel 0 patchno    144 intno      20050900 make:      multithreaded, Unicode, 64 bit, optimized pid        3744 M

  • Moving between Lightroom and Elements Editor

    I am having a problem moving my Lightroom 4 adjusted images to Elements 11.  It wont work, although it was working fine recently with Elements 10

  • I need to re-install acrobat after having to reformat my computer

    I need to re-install acrobat after having to reformat my computer.  How do I go about this.  I did have the foresight to save my serial number .  Do I just re-download it?

  • JTA not working??

    Hello I'm having trouble with JTA in a stateful sessionbean i'm using the sample J2EE-implementation included in j2ee-sdk I have two databases. 1. Oracle server 2. Cloudscape the purpose of the code is to move a row (given an id) from oracle to cloud