A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: How can I make brightness on specific parts of image

Hybrid View

  1. #1
    Senior Member
    Join Date
    May 2016
    Posts
    280

    How can I make brightness on specific parts of image

    hello all
    this is one image
    How can I make brightness on specific parts of this image on mouseover
    i need set

    brightness =15
    contrast = 40
    midtone = 15




    swishmax file:

    https://app.box.com/s/ax1ll677jxyoya62pdvdeglz0kiudfl4

    thanks for help

  2. #2
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,260
    Maybe its doable but the solution doesn't look worth it unless you do that in AS3.0. What you could do for that to be done in as2.0 is to generate images with your settings with a program I can give you & use them for frame 2 when hovering sections of the image.

    You would just need to select an image & click export if you want me to give you the program that will do that as a tool.
    Last edited by AS3.0; 02-10-2022 at 08:26 PM.

  3. #3
    Senior Member
    Join Date
    May 2016
    Posts
    280
    thanks my friend
    But the problem is when you move a group of images,
    the quality of the animation is weak and it has vibrations.
    I want to combine all the images,into one image
    And when you hover the mouse on a part of the image, it is like a button.
    All that is required is to collect all the images in one image so that the quality of the animation is better

    by use : combine_images._x += value ;

  4. #4
    Junior Member
    Join Date
    Feb 2022
    Posts
    20
    it's possible in AS2, but inside Flash.
    I can't say anything about Swish's AS2 abilities.

  5. #5
    Senior Member
    Join Date
    May 2016
    Posts
    280
    can you write the code in flash and i will convert it to swishmax

  6. #6
    Senior Member
    Join Date
    May 2016
    Posts
    280
    PHP Code:
    on (rollOver) {
        
    my_image.onEnterFrame=function (){        
            
    this.forceSmoothing true;
            
    this.smoothing "Best";
            
    this.smoothing =true ;
            
    this._quality "BEST";
            
    this._x +=4
           
    // here i need the code 
        
    }
    }
    on (rollOut) {
       
    delete my_image.onEnterFrame


  7. #7
    Junior Member
    Join Date
    Feb 2022
    Posts
    20
    Code:
    on (rollOver) {
        my_image.onEnterFrame=function (){        
            this.forceSmoothing = true;
            this.smoothing = "Best";
            this.smoothing =true ;
            this._quality = "BEST";
            this._x +=4
           // here i need the code 
    	   	my_color = new Color(this);
    	myColorTransform = new Object();
    	myColorTransform = {ra:'160', rb:'50', ga:'160', gb:'50', ba:'160', bb:'50'};
    	my_color.setTransform(myColorTransform);
        }
    }
    on (rollOut) {
       delete my_image.onEnterFrame
       	my_color = new Color(my_image);
    	myColorTransform = new Object();
    	myColorTransform = {ra:'100', rb:'0', ga:'100', gb:'0', ba:'100', bb:'0'};
    	my_color.setTransform(myColorTransform);
       
    }
    try this one....

  8. #8
    Senior Member
    Join Date
    May 2016
    Posts
    280
    thanks Alex_Cherkasoff

    i have the same code but I want the effect to be on the yellow bird only not the whole picture

    have you any idea ???

  9. #9
    Junior Member
    Join Date
    Feb 2022
    Posts
    20
    maybe try using setMask?
    or just mask certain part of images as separate Movieclips....

  10. #10
    Senior Member
    Join Date
    May 2016
    Posts
    280
    Already trying two days ago

  11. #11
    Senior Member
    Join Date
    May 2016
    Posts
    280
    have you smooth scroll image ac2 file
    without image vibrations

  12. #12
    Junior Member
    Join Date
    Feb 2022
    Posts
    20
    can you define what's "image vibration"?
    do you have any examples?

  13. #13
    Senior Member
    Join Date
    May 2016
    Posts
    280
    "image vibration" means non-progressive movement

    If you look closely at the picture, you will find a tremor in the picture

    swishmax example

    https://app.box.com/s/h12a6u9s018qmic17l48mizuqgyh7748

  14. #14
    Junior Member
    Join Date
    Feb 2022
    Posts
    20
    I think it's called "screen tearing"

  15. #15
    Junior Member
    Join Date
    Feb 2022
    Posts
    20
    https://appuals.com/how-to-fix-screen-tearing/

    I've fiddled with few settings. and it's slightly better now, but not perfect
    Screenshot_1444.png

  16. #16
    Junior Member
    Join Date
    Feb 2022
    Posts
    20
    what I just did is applied some GPU setting to my Flash Player application.
    However, on other machines we may still encounter screen tearing, because V-sync have to be set manually.

  17. #17
    Senior Member
    Join Date
    May 2016
    Posts
    280
    What I am doing now is increasing the number of frames per second the best is (255 frame per second ), which is what I have come up with so far
    But it has to reprogram the file again

  18. #18
    Junior Member
    Join Date
    Feb 2022
    Posts
    20
    yeah, looks better.
    now you need to make the motion 10 times slower to fit with new FPS count

  19. #19
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,260
    Im going to work more on the scaling later, this one has a good frame rate because it only attaches the amount that the stage can fit based on what size you put it.

    download 0.8

    this one should let you have alot of different sliders without frame loss.

  20. #20
    Senior Member
    Join Date
    May 2016
    Posts
    280
    thanks AS3.0

    can you check your file again

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center