Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Flash : Security Camera Lines?

    Hmm, doesn't seem to be many Flash people about today to help but...

    How would I create the effect of security camera lines? By this I mean, on movies etc, you see scanning lines going across the screen with static etc. I want to achieve this kind of effect in MX 2004.

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I see Flash isn't too popular then on these forums!

    Anyhow, found this script with a lot of Googling -

    PHP Code:
    // Scanlines
    _root.createEmptyMovieClip("scanLines"1000);
    with (scanLines) {
         
    lineStyle(00x000000,30);
         
    moveTo(00);
         
    lineTo(Stage.width0);
    }
    for(
    i=0;i<Stage.height;i++){
         
    duplicateMovieClip("scanLines","scanLines"+i,i);
         eval(
    "scanLines"+i)._y i*3;
    }
    // By Frost_0ni 
    It looks great and creates the lines I want, but they don't move.

    How could I get them to move?

    I tried adding keyframes then changing the numbers in 'MoveTo' but it ended up moving the lines off the screen etc. Looked silly...

    Any help appreciated!

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    instead of drawing the lines using code, i know a good effect using gradients. i used it to make a light saber effect. It makes the lines look like they are glowing.

    make a gradient with red to red alpha 0. draw a thin rectangle, copy it, flip it and join. now the line will have a glowing effect. very simple that involved no code! to make it move u can change it into a symbol, and tween it.. duplicate and position where u want.

    hope this helps

  • #4
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the help, I think the code method may be easier though - I don't really want a glowing line. I think I'll have to read up on actionscript a bit and see what I can come up with!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •