Generic custom control that can display an image or a swf?

Hello

I want to create a custom control that can take an image or a swf as an argument and display it in the same way.

If the programmer uses this control (which is basically a button with custom view) I want to be able to simply indicate the source and the text to be included. Like this:

< myControls:myButtonControl descriptionText = 'swf object' symbolObject = "{Application.application.shape01swf}" >

or

< myControls:myButtonControl descriptionText = "img object" symbolObject = "{Application.application.shape01img}" >

where shape01swf and shape01swf are embedded as objects:

[Embed("..) / assets/swf/Shape01.swf ")]"
public var shape01swf: Class;


[Embed("..) / assets/images/Shape01img.jpg ")]"
public var shape01img: Class;

What kind of object I create in my custom control that can display this?

At this time, I created a class that extends the VBox so that I can view the image/swf above the descriptionText.

(I use Flex 3).

Hi CCJA,.

You can make use of VBox itself as your tag root and your component should look like... below...

You can make use of the Image control to display the image and also to load the SWF as well... It will serve the two... just aim you set the source he swf or image

Thank you

Jean Claude Chari

Tags: Flex

Similar Questions

  • How to configure CPU Meter so that it displays the image instead of the text version.

    How to configure CPU Meter so that it displays the image instead of the text version.

    Hi John,.

    Welcome to the Microsoft community.

    The CPU Meter gadget shows the status of the two main resources, you can follow on your computer - the use of your CPU and memory.

    To install the CPU Meter gadget in Windows 7, just right click anywhere on your desktop and click on Gadgets. Search the CPU Meter gadget and drag it to your desktop.

    See the Microsoft Article below and check if this is useful:

    http://Windows.Microsoft.com/en-us/Windows7/customize-desktop-gadgets

    Let us know if you encounter problems under windows in the future. We will be happy to help you.

  • Is there a limit in the number of custom columns that can be created?

    Hi Experts,

    Is there a limit in the number of custom columns that we can create in the informatica mappings that get out us of the box? What is the best practice for Oracle? Please let me know.

    Thank you
    Kris

    For performance purposes, it is recommended that you do not enter a columns more than 254 to dimension to the fact table.

    http://download.Oracle.com/docs/CD/E12513_01/doc/BIC.101/e12652/dacdesignetl.htm#i1059392

    Wrong forum btw: Applications Business Intelligence

  • Need for a 'real' for Muse jQuery widget that can handle different images:

    relaxation: a small thumbnail image (1:1) and the 'real' image: more grand (course) and size/shape different example 2:3.

    Where can I get this widget?

    I've tried different widgets musegrid Te - but they can't manage two different image as the 'classic' lokesh/lightbox2 · light therapy device GitHub...

    Thanks a lot for your help!

    Bernhard

    You can get close to this effect by using the built-in slideshow widget.

    Set the options for full screen and Lightbox mode.

    Temporarily make the thumbnails big and square.

    Select all the thumbnails, and then select object > adjustment > fit content proportionally.

    Limitations of this approach include:

    You can caress or round the corners of the thumbnails (assuming that they have mixed proportions) since the stroke or rounded will appear on the square frame thumbnail is able to breast, rather than the image itself.

    You cannot crop the thumbnail contrary to the image of heroes. Again because the frame is big and square, and the image is fit inside (in order to activate thumbnails with different reports l / h).

    I'm not aware of any Muse of third party widget which would get as close to the exact effect you want to achieve.

  • Adobe Acrobat DC will not display PDF Adobe Reader that can display

    I have a windows computer with DC installed Acrobat 7. I scan a document to PDF using an Epson printer.

    Adobe Reader opens this document. Adobe Acrobat DC it will not open and only displays a gray background and gives no error message.

    This happens for all the PDF files created by the scanner, there is not a single fluke.

    In the preferences, select the entry "Show large images.

  • For a control that can be initilaized during execution

    In the case of an enumeration or a constatnt ring. The options to select should be listed when programming

    The option to select is possible during execution.

    I have a table, and I can send the 1st column of values in the menu drop-down, select one during execution.

    Help, please.

    Hi, Mike Grugh,.

    I don't know how to do it with a table drop-down list boxes, but if the number of lines in your file, then you can try the attached example.

    Kind regards

    Amine31

    (Give the congratulations to the right answers and Mark as a solution if your problem is resolved)

  • custom control with the mask of the image

    Hello

    I am trying to create a custom control that looks like a bulb. I want to do is have a picture of a light bulb with a Boolean flag behind it so when you press a button the light bulb gets dimmer or brighter. I know how to customize the controls and can change the color of the Boolean indicator but have no idea how to do it. Any help would be grateful.

    See you soon

    James

    GIF will allow transparency.  This will show through the image.

    Also, few throughts.  Change the box color instead of a Boolean, this event will allow you to change just the color instead of use the Boolean color via a property node.

    Another easy method is to use a ring to the bottom of the picture load the image of your bulb, fill the bulb with several shades (May 16) brightness, then import the sequence into an image control, then you will have multiple shades you can view any required customizations.

  • Creating custom controls

    Hi guys,.

    I use labview to control test, but normally predispose the user interface as a windows with buttons, indicators, graphic controls program etc...

    But "they" want to be a process diagram that can be used to control and monitor the user interface stuff. Fine.   However, I created custom controls by changing true/false images on radio buttons.

    They work great when the program currently does not work, IE real gives an image, click on it and the image changes, great.  But when I run the software as soon as I move my mouse over the control, on what it shows default image for example a radio button, if I click and then move the mouse, it shows the picture its supposed to, but how can I stop it showing the radio button on a mouse?

    See the attached images.

    Thanks, Zac

    You can find a great video tutorial on how to create a system of buttons on the forums of JKI. For your particular purpose, you might want to look at the DSC Module, which has the commands you seem to be wanting to use.

  • Color property of custom control

    With the controls included as boolean OK you can change the color true or false by accessing the properties > Apperance > colors.  Then click on the color box to change the color of the State.  Is it possible to do the same thing with a custom Boolean control?

    I tried on some, and it doesn't sound like it is possible, but I thought I'd ask.  I have a diagram where I used some pipes in the DSC module image browser to make some Boolean pipes.  I just changed the properties for different colors then sticking in one control Boolean true/false cases.  But now I think to change the colors of the grey/red grey/green.  Is there a way easier than just start over and do new Boolean values with the desired colors?  Or is there something better for custom controls, that I don't know?

    Thank you

    You do not have something wrong, this is just a limitation of labview that frustrated me for years.  Color chart only works with decorations, which are very limited.  If you import an image for true/false images that are not decorations labView then the color property is not used.  You do not have an option that I caused to some suscess cahe: import an overlay translucent as a sticker on a solid decoration color, then change the color array and everything is good.

  • Custom control in the new VeriStand workspace

    Anyone know if it's possible and how to make the custom to the new UI controls? I have a custom device that creates channels 400 + and I would like to find a way to add them to the user interface without having to manually configure each channel individually.

    I have a way for the user to choose if each digital output is discreet, PWM or encoder mode. Currently, they have to drag into individual channels labeled 'Enable channels', 'Output Mode' and either 'Discrete Value,' 'PWM Duty Cycle' & 'Frequency PWM', or 'Encoder quarter' & 'encoder Index Control. " Is it possible to create a custom control that contains Boolean controls and digital necessary? I know that this was possible in the old VeriStand workspace, but I have not found a way to do in the new, as there does not appear to use a directory full of screws for its controls.

    Thank you

    Mitch

    Hi Mitch,

    I'm sure that this functionality does not yet exist for the Manager of the user interface, but I guess that NEITHER is likely to know that it is a widely used feature.

    When I asked him about this a few months ago, I think the answer is that it must continue to use the workspace controls customized with the workspace and migrate the rest of your features to the UI handler. Once the UI handler and the Worspace may operate at the same time in the same application VeriStand.

    Could you describe the feature you're looking for with screenshots?

    I hope this helps, but maybe someone of NOR can enlighten us more about it!

  • display the image in full screen

    Hi all, I am a newbie for labview. I want to ask you the image display in labview. Now I can display an image in my front panel. I opened the path to the file and display it. First thing I want to do is in other words it is possible to display full-screen monitor not on the façade and the second thing is that how to display images in the folder and show about 2 seconds delay between the two? Pls kindly help me.

    Thank you for the million.

    Hello

    -I don't know if the full display of the image may be possible or not, any reason why you ask this requirement?

    -L' another question on playback of the files in a folder and display for 2 sec can be made as shown in picture.

    -J' joined vi in lv 12 if necessary.

    -Next time, please post your vision research related machine vision Board.

    -

  • Placing the control in a custom control file

    Hi all

    I'm new to LabView and have a simple question. I customize an example of LV for my purpose. There is a custom control used in the example file. I'm setting up a new (combobox) control and want to place this control in the file of custom control so that I can move on to various sub - vi for various purposes (e.g. initialization).

    Chart attached shows the ComboBox (Model DUT) on a front panel and custom control file (TestStand UI Data.ctl). My questions are the following:

    1. What are these symbols with the pink arrow (that is the button stop/restart, etc...) in the TestStand UI Data.ctl file? (see attached diagram). They are symbol of data type of references?

    2. How can I place my combobox was forced TO model in the file of custom control so that I can pass through the different slot control file - vi? I tried to do a right-click on the control and use create-> constant or reference, but they don't it has not changed the pink arrow symbol element.

    I hope someone can help solve my problems. Thanks in advance.

    Yours,

    Chati

    chati wrote:

    Hi all

    I'm new to LabView and have a simple question. I customize an example of LV for my purpose. There is a custom control used in the example file. I'm setting up a new (combobox) control and want to place this control in the file of custom control so that I can move on to various sub - vi for various purposes (e.g. initialization).

    Chart attached shows the ComboBox (Model DUT) on a front panel and custom control file (TestStand UI Data.ctl). My questions are the following:

    1. What are these symbols with the pink arrow (that is the button stop/restart, etc...) in the TestStand UI Data.ctl file? (see attached diagram). They are symbol of data type of references?

    2. How can I place my combobox was forced TO model in the file of custom control so that I can pass through the different slot control file - vi? I tried to do a right-click on the control and use create-> constant or reference, but they don't it has not changed the pink arrow symbol element.

    I hope someone can help solve my problems. Thanks in advance.

    Yours,

    Chati

    You do want to overwrite the "custom controls" that are part of LabVIEW.  However, you can create your own "custom" by a fall control, say, TestStand UI Data.ctl on your diagram, right click and choose Open Type Def (who opens the definition OR one you do want not change), make some additions or changes, then do a file/save under and save it in your project file with a custom name, that you make up.

    These pink arrow symbols are references - you can find them by looking in the Refnum palette.  I'm not sure what they are references to, however.

    As a suggestion, rather than send us just a picture with circled items, send the actual control so that we can watch and maybe tell you more details.

    Bob Schor

  • Form 10G - Display an Image file

    Hi all

    Is that we can display an image file, which is stored in the server, in the form of oracle 10 g?
    For example, we store an image file in tmp/media/abc.jpg abc.jpg, how we display this image shaped 10 g?

    We do not want to store this file as BLOB in DB tables.
    There any solution for this?

    Any suggestion will be appreciate.
    Better subject.
    Zhxiang

    Hello Zhxiang,
    If your image (abc.jpg) file exists on the machine server then you can next use built in

    READ_IMAGE_FILE
    

    Or if you want to get this file from any other machine other server, then you must configure WebUtil and use suite package

    Client_Image
    

    Please indicate if it helps you or correct

    Kind regards
    Danish

  • I love Personas, but I can't figure out how to display the part of the image that can be displayed at the bottom of the window; How can I activate this part?

    Beautiful image shows the upper part of the window, where the toolbars. But the part that can be displayed at the bottom of the screen (above the taskbar (I think it's called?)) does not appear and I can't remember/find a way to work in so that it is displayed too.

    "Personas" are basically dead. The name was changed to 'Lightweight thèmes' and the Mozilla seems to have lost all interest in this feature. IMO, it is corporate ADHD - build, promote, many users ignore the hook on the feature, of it do not continue to "show the love" and in two or three years 'kick on the sidewalk.

    Basically, the add-on bar went in Fx29 - so there is no image at the bottom. There is an extension that restore the bar of the add-on, and it seems that it supports Personas - based on the screenshots on the page to download add-on.

    https://addons.Mozilla.org/en-us/Firefox/addon/the-addon-bar/

  • What can be done so that the screen saver images is displayed in a specific order?

    What can be done so that the screen saver images is displayed in a specific order? (I have about 100 photos in the folder I want to use, but they are always displayed in a random order).

    Hi c. Singman,.

    The random order of the images is by design.  Read the following article about the installer:

    http://www.Microsoft.com/windowsxp/using/Setup/learnmore/tips/Smith1.mspx

    I hope this helps!

Maybe you are looking for

  • What happened to the notes in mail el capitan?

    I just (finally) upgraded a MacBook from 2006 to an iMac and have slowly learned my way with el capitan (which of course my old computer could not operate.  I forgot that I was on what operating system.  I used to store important information in the n

  • Why am I unable to send an e-mail message to more than 50 people at a time?

    If my list of recipients is 55 or 60, the message is not sent to them.

  • Print probs,

    Hi, I have a problem with my deskjet 2540, I have had this printer about 6 months. Recently, I noticed a decrease in printing, streaks of black and bleeding. I tried realining print heads, cleaning of the same printheads UN installing and re - instal

  • Satellite P100: Memory Stick Duo Pro with MSD adapter is not recognized

    When I insert the CSDP in my Satellite P100-473-multi card reader - Vista preinstalled - (using an adapter MSD), the removable media is listed in the Solution Explorer, but the card cannot be read.With a 32 MB card, he pointed out that the card needs

  • Cannot print using HP 4500 printer, the message on the queue.

    Original title: printer I installed a HP4500 wireless on my laptop and when I send a print to her troubleshooting tells me there was a queue vinifies it upward, but the problem has been fixed, but I can't yet to print can help you