How to highlight similer images?

PayoutMC.swapDepths(1000)
var reel_array:String = ("3,1,2,7,10,8,6,7,4,2,3,8,5,3,1,9,@10,6,1,8,4,3,5,9,1,2,2,8,3,7,3,7,@2,4,2,1,1,3,8,3,7,1 0,9,3,8,7,5,6,@2,6,5,8,1,7,2,9,4,10,3,8,7,1,3,3,@8,3,4,1,7,2,1,2,10,8,6,3,3,9,7,5,@");
//****************************************Dot Net Variable**********************************************
var my_array:Array = reel_array.split("@");
var randomno:Array = new Array(my_array.length-1);
var reel_array:Array = new Array(my_array.length-1);
for (var k = 0; k<(my_array.length-1); k++) {
    reel_array[k] = my_array[k].split(",");
    randomno[k] = random(16);
_root.createEmptyMovieClip("sq_mc",this.getNextHighestDepth());
sq_mc._x = 147;
sq_mc._y = 336;
var myObj:Object = new Object();
myObj.rows = 3;
myObj.columns = 5;
myObj.space = 61;
myObj.depth = 1;
myObj.path = _root.sq_mc;
myObj.path.swapDepths(0);
function createGrid():Void {
    for (var j:Number = 0; j<myObj.rows; j++) {
        for (var i:Number = 0; i<myObj.columns; i++) {
            var name:String = "cell"+i+"_"+j;
            var x:Number = (i)*myObj.space;
            var y:Number = (j)*myObj.space;
            myObj.path.attachMovie("box_mc",name,++myObj.depth);
            myObj.path[name]._x = x;
            myObj.path[name]._y = -y;
            myObj.path[name].createEmptyMovieClip("holder_mc",this.getNextHighestDepth());
            var ind:Number = randomno[i]+(j-1);
            if (ind<0) {
                ind = 15;
            } else if (ind>15) {
                ind = 0;
            myObj.path[name].holder_mc.loadMovie("images/jackpot/"+reel_array[i][ind]+".jpg");
            //myObj.path.setMask(mask_mc);
createGrid();
spin_btn.onRelease = function() {
    for (var j:Number = 0; j<myObj.rows; j++) {
        for (var i:Number = 0; i<myObj.columns; i++) {
            var name:String = "cell"+i+"_"+j;
            myObj.path[name].holder_mc._visible = false;
    _root.re1.gotoAndPlay(2);
    _root.re2.gotoAndPlay(2);
    _root.re3.gotoAndPlay(2);
    _root.re4.gotoAndPlay(2);
    _root.re5.gotoAndPlay(2);
_global.column1 = false;
_global.column2 = false;
_global.column3 = false;
_global.column4 = false;
_global.column5 = false;
var my_str:String = "1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,";
var display_array:Array = my_str.split(",");
//// This is the final images display after the spin.
Enter_mc.onEnterFrame = function() {
    if (_global.column1 == true) {
        for (var j:Number = 0; j<3; j++) {
            var clip:String = "clip"+j;
            re1.reel1[clip].loadMovie("images/jackpot/"+display_array[j*5]+".jpg");
            trace("image="+clip);
        re1.reel1.clip3.loadMovie("images/jackpot/3.jpg");
        re1.reel1.clip4.loadMovie("images/jackpot/4.jpg");
        re1.reel1.clip5.loadMovie("images/jackpot/5.jpg");
        _global.column1 = false;
    if (_global.column2 == true) {
        for (var j:Number = 0; j<myObj.rows; j++) {
             var clip:String = "clip"+j;
            re2.reel1[clip].loadMovie("images/jackpot/"+display_array[j*5+1]+".jpg");
        re2.reel1.clip3.loadMovie("images/jackpot/3.jpg");
        re2.reel1.clip4.loadMovie("images/jackpot/4.jpg");
        re2.reel1.clip5.loadMovie("images/jackpot/5.jpg");
        _global.column2 = false;
    if (_global.column3 == true) {
        for (var j:Number = 0; j<myObj.rows; j++) {     
            var clip:String = "clip"+j;
            re3.reel1[clip].loadMovie("images/jackpot/"+display_array[j*5+2]+".jpg");       
        _global.column3 = false;
        re3.reel1.clip3.loadMovie("images/jackpot/3.jpg");
        re3.reel1.clip4.loadMovie("images/jackpot/4.jpg");
        re3.reel1.clip5.loadMovie("images/jackpot/5.jpg");
    if (_global.column4 == true) {
        for (var j:Number = 0; j<myObj.rows; j++) {
            var clip:String = "clip"+j;
            re4.reel1[clip].loadMovie("images/jackpot/"+display_array[j*5+3]+".jpg");  
        _global.column4 = false;
        re4.reel1.clip3.loadMovie("images/jackpot/3.jpg");
        re4.reel1.clip4.loadMovie("images/jackpot/4.jpg");
        re4.reel1.clip5.loadMovie("images/jackpot/5.jpg");
    if (_global.column5 == true) {
        for (var j:Number = 0; j<myObj.rows; j++) {         
            var clip:String = "clip"+j;
            re5.reel1[clip].loadMovie("images/jackpot/"+display_array[j*5+4]+".jpg");      
        _global.column5 = false;
        re5.reel1.clip3.loadMovie("images/jackpot/3.jpg");
        re5.reel1.clip4.loadMovie("images/jackpot/4.jpg");
        re5.reel1.clip5.loadMovie("images/jackpot/5.jpg");
I want to blink similer images in final display.
display_array in a final images
Thanks.

I created a grid of some images.
when i click on button then column rotated by top to bottom on different speed.
after some time column rotation has been stop. that time another images display so that time which images will be similer that will be heighlight.
Thanks,
JaxNa

Similar Messages

  • How can i highlight an image when mouse over an image in c#?

    I want to highlight an image when mouse goes there on image. The backcolor of image should change. Give a solution.

    Its for button. I need to highlight image. I have attached screen shot. I want to create like that in windows form.
    Hello,
    Based on my understanding, it just changes the background for that image to highlight them.
    So we could change the background for the control hosts these images, and in addition, the size mode should not be autosize, because we should keep some area to display the background.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to make the images show up on a linked file in Muse?

    I am wondering how to get my images to show up on the linked files in Muse.  Basically, in Muse, I have a page that links to other pages I designed in Dreamweaver.  I put the images in the image folder and when I upload the site, the page links to the Dreamweaver page ok but the images are missing.  This is a vital part of the site.  Any suggestions?

    If you made the pages with Dreamweaver then they should be on your system some place and you could make a "dreamweaver" folder inside your Muse site and upload the pages to that folder using the upload files option... see this thread talks about sound files but almost any file can be imported to muse
    I need a recommendation for a slick way to embed audio
    Another option is to link across to an online resource using the built in muse html editor but that has pit falls because once you link yourself outside the site you also lose some control of the content;
    For an example of this have a look at an old demo page I made http://chec-garry2.businesscatalyst.com/index.html
    When you click on the Brahminy Kite bird you are looking at what used to be called an Iframe but the problem of control is highlighted when you click the Blue Wren and sometimes get pop up adds… I could import the Blue Wren page into my Muse site to fix this issue and in your case that’s a good option but I didn’t because I don’t have copyright over that pages contents and didn’t want to steal someone else’s work.
    p.s. if you have got a demo of the  website/ pages online someplace that would help us see your problem.

  • CS3: mouse over, highlight only image

    Hi,
    I try to make the effect like in the attached file. I don't exactly know how to discribe it in english so I just made it in After Effects real quick :-)
    At a mouse over only the image should be highlighted.
    Hope you understand what I want to do.
    Can someone please explain me how I can create this effect.
    Greetings from Germany
    Christoph

    Just define the button so that the image is part of it. To do this, simply put all the layers you want into the button layer set. Then make the highlight layer so it covers only the image. When you mouse over the button, it will highlight the image.

  • How to highlight Urdu Characters

    i write a code that search for a sub string and highlight it with html markup <b><b/>
            if(originalString.contains(searchString)){
                searchString=originalString.replaceAll(ctxt, "<b>"+searchString+"</b>");
                out.println(searchString);
            }it works well with English, but if i use URDU (similar to Arabic) it break
    [Please see it in image|http://9154459373931442381-a-1802744773732722657-s-sites.googlegroups.com/site/faswoongar/Home/porb.PNG]
    there red one shows the break and green show how it should be.
    Any suggestion or help would be greatly appreciated.

    I don't think this is a problem of String manipulation, but rather of HTML/Rendering.
    Many scripts render some characters differently based on other characters nearby (it also happens in latin scripts, but less noticably, see ligatures).
    The problem seems to be that when you separate the two characters (for example with a <b> tag), then the rendering engine won't know that it should use a ligature.
    Unfortunately I don't know how to highlight parts of the word in this case, you'll probably need to highlight the full word in this case.

  • How to highlight text with Adobe Reader XI?

    email [email protected]

    Thanks. The PDF file was made from a web site article and I guess this is the same as scanned as I cannot highlight.  The cursor changes but cannot highlight what I want.
    I was able to add text and I did this in Red and will ask the VA to read under the sections marked in Red.
    Thanks,
    Vernon Pobanz
          From: ~graffiti <[email protected]>
    To: vernon pobang <[email protected]>
    Sent: Tuesday, October 7, 2014 11:57 AM
    Subject:  How to highlight text with Adobe Reader XI?
    How to highlight text with Adobe Reader XI?
    created by ~graffiti in Adobe Reader - View the full discussionUse the highlight tool under Comment>Annotations. This will only work if the pdf isn't a scanned image. If that is the case, there is no text to highlight. Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6800192#6800192 Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:  To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.  Start a new discussion in Adobe Reader by email or at Adobe Community For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to capture an image from my usb camera and display on my front panel

    How to capture an image from my usb camera and display on my front panel

    Install NI Vision Acquisition Software and NI IMAQ for USB and open an example.
    Christian

  • How do I add image upload to web app edit template?

    How do I add image upload to web app edit template. When creating fields I am selecting image from the field type. But the only way to upload and image is when I create the web app item within the admin. The option to upload an image is not available when the user submit web form opens.
    Wont send any of these questions through this email anymore but really needed assistance.
    Thanks,
    Gordon

    On the Details tab of the Web App setup, under Web App Item Options; have you ticked "Allow File Upload" and specified a Default Upload Folder?

  • How to get all images from folder in c#?

    I am trying to get all images from folder. But it is not executing from following:
     string path=@"C:\wamp\www\fileupload\user_data";
                string[] filePaths = Directory.GetFiles(path,".jpg");
                for (int i = 0; i < filePaths.Length; i++)
                    dataGridImage.Controls.Add(filePaths[i]);
    Please give me the correct solution.

    How to display all images from folder in picturebox in c#?
    private void Form1_Load(object sender, EventArgs e)
    string[] files = Directory.GetFiles(Form1.programdir + "\\card_images", "*", SearchOption.TopDirectoryOnly);
    foreach (var filename in files)
    Bitmap bmp = null;
    try
    bmp = new Bitmap(filename);
    catch (Exception e)
    // remove this if you don't want to see the exception message
    MessageBox.Show(e.Message);
    continue;
    var card = new PictureBox();
    card.BackgroundImage = bmp;
    card.Padding = new Padding(0);
    card.BackgroundImageLayout = ImageLayout.Stretch;
    card.MouseDown += new MouseEventHandler(card_click);
    card.Size = new Size((int)(this.ClientSize.Width / 2) - 15, images.Height);
    images.Controls.Add(card);
    Free .NET Barcode Generator & Scanner supporting over 40 kinds of 1D & 2D symbologies.

  • How to highlight/indicate particular tree Node in Tree UI element

    Hi All
    Can anybody let us know how to highlight/indicate specific node in a tree struture.
    currently i am able to display the tree struture with all the nodes & elements but it is always tasking firstnode as highlighted one or indicated one.
    if i want to highlight specific node in a tree struture...what was the procedure or any sample code then it would be great help to us.
    Thanks
    Trisha rani

    Hi Krishna
    Thanks for your reply
    I displayed the tree structure and i want to highlight specific parent node/child element , what was the sample code??
    for example my tree was displayed in the below struture and at the runtime specific child node i wanted to be highlighted i want to make selectable particular nodeType......
    Can you pls send sample codee code??
    my requirement
    A
    A1
       A2
       A3
    B
    B1      
       B2
       B3
       B4
       B5     
    now i want to make selectable or highlighted B4,B5 etc  or A2,A3 at runtime.
    The other guy who replied for this thread it is working for Parent nodes to make highlighted  like it is working for parent nodes which is have child nodes. i am able to hightlight at runtime for Nodes A,B etc .
    Now i want to highlight or make selected one for B4,A3 etc, pls provide sample code??
    it  would be great help to us
    Thanks
    Trisha Rani

  • Please give me idea how I highlight the gird row which have

    Sir
    I have gird with 5 column
    Vno
    Code
    Dept
    Date
    Amount
    Sir my need is which record have above 5000 amount that color read and other color blue
    It means above 5000 highlight in grid
    Please give me idea how I highlight the gird row which have above 5000 maount
    Thank
    aamir

    PROCEDURE pr_Set_VA (p_VA IN VARCHAR2) IS
    v_Feld VARCHAR2 (30);
    v_Item VARCHAR2 (61);
    v_Block VARCHAR2 (30);
    BEGIN
    v_Block := :SYSTEM.CURSOR_BLOCK;
    v_Feld := Get_Block_Property (v_Block, FIRST_ITEM);
    WHILE (v_Feld IS NOT NULL) LOOP
    v_Item := v_Block || '.' || v_Feld;
    Set_Item_Instance_Property (v_Item, CURRENT_RECORD, VISUAL_ATTRIBUTE, p_VA);
    v_Feld := Get_Item_Property (v_Item, NEXTITEM);
    END LOOP;
    END;

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  • How can I display images that are not included in any collection?

    How can I display images that are not included in any collection (some filter or smart collection)? A smart collection with parameters "Collection - contains - empty field" does not work. Lightroom 5.

    Thank you! Good idea! I ordered letters of the alphabet (space separated), and it works.

  • How can I draw image in a vbean?

    How can I draw image in a vbean?
    this is my code :
    import java.awt.BorderLayout;
    import java.awt.Image;
    import java.awt.Graphics;
    import java.net.MalformedURLException;
    import java.net.URL;
    import com.sun.jimi.core.Jimi;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class PrintEmailLogo extends VBean {
         URL url;
         Image img;
         boolean ImageLoaded = false;
         public void paint(Graphics g) {
              if (ImageLoaded) {
                   System.out.println("yes~~~");
                   g.drawImage(img, 0, 0, null);
              } else
                   System.out.println("no~~~");
         public boolean imageUpdate(Image img, int infoflags, int x, int y, int w,
                   int h) {
              if (infoflags == ALLBITS) {
                   System.out.println("yes");
                   ImageLoaded = true;
                   repaint();
                   return false;
              } else
                   return true;
         public void init(IHandler arg0) {
              super.init(arg0);
              try {
                   url = new URL("file:print/77G.gif");
                   img = Jimi.getImage(url);
                   Image offScreenImage = createImage(size().width, size().height);
                   Graphics offScreenGC = offScreenImage.getGraphics();
                   System.out.println(offScreenGC.drawImage(img, 0, 0, this));
              } catch (MalformedURLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    but when I run it in forms
    when it run Graphics offScreenGC = offScreenImage.getGraphics();
    It throw a exception:
    java.lang.NullPointerException     at com.avicit.aepcs.calendar.PrintEmailLogo.init(PrintEmailLogo.java:72)     at oracle.forms.handler.UICommon.instantiate(Unknown Source)     at oracle.forms.handler.UICommon.onCreate(Unknown Source)     at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)     at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)     at oracle.forms.engine.Runform.processMessage(Unknown Source)     at oracle.forms.engine.Runform.processSet(Unknown Source)     at oracle.forms.engine.Runform.onMessageReal(Unknown Source)     at oracle.forms.engine.Runform.onMessage(Unknown Source)     at oracle.forms.engine.Runform.processEventEnd(Unknown Source)     at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)     at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)     at java.awt.Component.dispatchEventImpl(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.run(Unknown Source)
    I change it to:
    import java.awt.BorderLayout;
    import java.awt.Image;
    import java.awt.Graphics;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.swing.JFrame;
    import com.sun.jimi.core.Jimi;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class PrintEmailLogo extends VBean {
         URL url;
         Image img;
         public void paint(Graphics g) {
              try {
                   url = new URL("file:print/77G.gif");
                   img = Jimi.getImage(url);
                   g.drawImage(img, 0, 0, this));
              } catch (MalformedURLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public void init(IHandler arg0) {
              super.init(arg0);
    But it display nothing.
    It isn't paint continuous.
    what's wrong in my vbean?
    please help me.

    The following code works fine for me:
    package oracle.forms.fd;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.CustomEvent;
    import oracle.forms.ui.VBean;
    public class test extends VBean {
      private URL url;
      private URL m_codeBase; 
      private Image img;
    public void paint(Graphics g) {
      // draw the image
      g.drawImage(img, 0, 0, this);
    public void init(IHandler arg0) {
       super.init(arg0);
       // load image file
       img = loadImage("file:///c:/coyote.jpg");   
    public test()
        super();
       *  Load an image from JAR file, Client machine or Internet URL  *
      private Image loadImage(String imageName)
        URL imageURL = null;
        boolean loadSuccess = false;
        Image img = null ;
        //JAR
        imageURL = getClass().getResource(imageName);
        if (imageURL != null)
          try
            img = Toolkit.getDefaultToolkit().getImage(imageURL);
            loadSuccess = true;
            return img ;
          catch (Exception ilex)
            System.out.println("Error loading image from JAR: " + ilex.toString());
        else
          System.out.println("Unable to find " + imageName + " in JAR");
        //DOCBASE
        if (loadSuccess == false)
          System.out.println("Searching docbase for " + imageName);
          try
            if (imageName.toLowerCase().startsWith("http://")||imageName.toLowerCase().startsWith("https://"))
              imageURL = new URL(imageName);
            else if(imageName.toLowerCase().startsWith("file:"))
              imageURL = new URL(imageName);
            else
              imageURL = new URL(m_codeBase.getProtocol() + "://" + m_codeBase.getHost() + ":" + m_codeBase.getPort() + imageName);
            System.out.println("Constructed URL: " + imageURL.toString());
            try
              img = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              System.out.println("Image found: " + imageURL.toString());
              return img ;
            catch (Exception ilex)
              System.out.println("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            System.out.println("Error creating URL - " + urlex.toString());
        //CODEBASE
        if (loadSuccess == false)
          System.out.println("Searching codebase for " + imageName);
          try
            imageURL = new URL(m_codeBase, imageName);
            System.out.println("Constructed URL: " + imageURL.toString());
            try
              img = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              System.out.println("Image found: " + imageURL.toString());
              return img ;
            catch (Exception ilex)
                    System.out.println("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            System.out.println("Error creating URL - " + urlex.toString());
        if (loadSuccess == false)
          System.out.println("Error image " + imageName + " could not be located");
        return img ;
    }Francois

  • How can I display images in drop down.

    Hi All,
    How can I display images in drop down.
    <select><option>image here</option></select>
    please reply soon.
    anser please
    Thanks

    I have not found html forum..That's just incredible.
    where can i find it ?Sorry, I'm still recovering from that remark.
    please reply soonEvery time you end a post with this, or "urgent" or other such keywords, the forum automatically introduces a 5 minute delay so that will actually make the whole process slower (not faster).

Maybe you are looking for