Flex :: Accessing OS System Icons?
Dec 3, 2010
I can display the icon of a file that has been associated with that file in the native OS.
I have a tile list of a folder's contents. For images, I display the image, for everything else I display a generic image. However, it would be great if I could tap into the OS and just use the icon that the OS uses. For example, if I have installed Microsoft Word on my computer, then when I view a word document in the file system it will display the word icon that Microsoft created for word documents. For MP3's it might be an iTunes type sound icon, if I have iTunes installed and so on.
Basically, for all the files in my tile list I want to just show the same icon that Windows, or Mac OS would etc.
In addition to this, if the OS creates a thumbnail for the file (images, videos and PDFs for example) is it possible to tap into this OS generated thumb?
View 2 Replies
Similar Posts:
Apr 5, 2010
can i add system icons (.doc, .ppt icons etc) into my flex application without embedding them into the application directly.
View 2 Replies
Dec 10, 2009
I am trying to create a slider that when changed either adds icons or subtracts icons.Here is what I got:
Code:
package
{
import flash.filters.*;
import flash.ui.*;
[code].....
View 5 Replies
Jul 28, 2011
I am trying to place an image besides the label in y-axis. So I have created a custom label renderer(A HBox containing and ). The source for the image has to be set based on a property present in the data provider. The problem is, I am not able to access the BarSeriesItem in the fnSetSource() method.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
width="1280" height="750">
[code].......
View 2 Replies
Sep 22, 2010
I build a web site in flex that some time take input. Will this website works on Touch Screen environment(KIOSK).My question is we have to make any change to handle input such as prompt on screen keyboard when input fields are get focused or it will manage my device and OS of system(KIOSK, Touch screen system) itself.
View 2 Replies
Oct 21, 2010
In a dropdown how to get icons along with text and once we select any of the index from the dropdown i want that icon also be selected and to be displayed on that dropdown header
View 1 Replies
Sep 4, 2009
I've been looking at the following example for populating a PupUpMenuButton [URL] and would like to add icons to each menu. Ideally, I would specify the icon in the xml and assign it in a similar way to using labelFunction for the text. The only information I've found via google is to create a menu as follows
(seems I can't include more than one url, but it is an example that creates a menu object using the following function):
private function initMenu():void {
menu = new Menu();
menu.dataProvider = xmlList;
menu.labelField = "@label";
menu.iconField = "@icon";
}
but I would really prefer to build it all from the XML file.
View 1 Replies
Feb 9, 2012
I have the skin below for my buttons:
<?xml version="1.0" encoding="utf-8"?><s:SparkSkin
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
[Code]...
I was wondering how I can add a different image for different buttons which have the same skin.
View 2 Replies
Jan 25, 2011
I can't seem to work out how to enable icons in the AIR Debug Launcher. This seems to work on Linux, but when I run it on Windows or Mac only the Adobe AIR icon shows. I have specified the location of the icon in <icon></icon> in the application descriptor file.
View 1 Replies
Jun 4, 2010
i have a sequence of buttons and each button has its own icon. I was wondering if I have to create a Spark skin file for each button in order to assign its icon.
View 1 Replies
Dec 15, 2010
In the MX TabBar component, the iconField property allowed us to display different icons in each tab. In Spark, there does not seem to be an inherent way to add icons to the TabBar.Does anyone have an example of implementing icon support for Spark's TabBar?
View 4 Replies
Jan 18, 2011
I am trying to create a popupmenubutton, with images and label as its nodes. But I am unable to embed the icons. It gives me and error(given below). Thou the label alone are working fine.
<mx:PopUpMenuButton id="menu_file" labelField="@label" itemClick="{menuClickHandler(event);}" visible="false"
height="20" left="0" top="0" width="15" alpha="0.5" cornerRadius="5" useHandCursor="true"[code].....
This gives me an error: Initializer for 'Embed': unrecognized compile-time directive.
View 2 Replies
Aug 2, 2011
I want to add two icons on spark button.I am using button skin.But the icons are not coming properly.
<s:HGroup width="100%">
<s:HGroup id="iconContainer" top="1" bottom="1" left="0" right="0"
horizontalAlign="{iconPosition}" verticalAlign="middle">
<mx:Image id="iconImage" source="{icon}" />
[code]....
View 1 Replies
Feb 28, 2011
Anyone successfully added an icon to their tabs in <s:TabbedMobileApplication> ? I've tried just using something like:
<s:ViewNavigator firstView="views.appmobile_HOME" width="100%" height="100%" icon="@Embed(source='../assets/home_icon.png')"/>
I've also tried in <fx:Script> something like:
[Code]...
Neither of these methods worked, and to be safe i used the same code to embed an image on the screen and it works!. I just can't seem to get the icons to appear in the tabs also note - I was doing all of this in my main mxml file, just incase you're familiar with the Flex Burrito "Mobile application" file structure. And another thing is that I don't get any errors when trying these methods. It lets me compile and test it.
View 1 Replies
Jul 23, 2011
I have to designed a datagrid, in first column i have to use closed lock icon. when i click a row in a datagrid the selected rows' icon should change as opened lock icon. how i can achive this task in flex 3.
View 2 Replies
Aug 7, 2009
I got a textfile who i am reading on a serverside script and passing it as a script to my client side as3 code. The problem is that i am using characters like ä,ö,ü,ß and this isn't well displayed. I tried System.useCodePage but the compiler complains about : 1120: Access of undefined property 'System'. It doesnt matter if I tried this on the first line of the 'Action' in the first scene or in the first line of the first .as file i am loading. (btw i am only working with .as file and not in the timeline). When i am importing flash.System.* the compiler complains he dont know useCodePage.
View 3 Replies
Feb 21, 2011
This maybe a bit of a 'wide' question, but am putting together a brief overview of a new system I'm proposing at work. It will be a POS style system, that does quotes and invoices + crm for our work enviroment across 100 + locations.
It will communicate with server via the Internet. Flex / Air feature set (offline SQL is Internet goes down, Rich communications, rich client environment etc), the fact that we run Macs + PC makes it looks like a great choice. I know HTML 5 has offline SQL and stuff, but flex feature set is way more comprehensive / usable etc..Is anyone doing any big corporate Flex / Air projects that need to last a long time? Or are you pushing HTML and its new technologies to provide a more safe investment.
View 1 Replies
Jun 25, 2009
Is there a way to get a unique machine-specific system ID in a Flex application running in a browser, so that is can be used for example to determine if the machine is properly licensed to run the application?
View 5 Replies
May 13, 2011
The traditional way to assign an icon would be to use the icon field of the item renderer,which reads the value of "icon" property in your data, for example:
listData.addItem({label: "Logout", icon: "com.classpth.DefualtThemeLogoutIconClass"});
But i want the DefualtThemeLogoutIconClass to changed to another class: ightThemeLogoutIconClass when the theme is changed.The only way to do this would be to use a style declaration containing a classReference to the icon, and change its the value in each of the CSS files of the various themes.The question is, is there any way to assign this style to an icon in a List, something as easy as intuitive as list[0].getIcon().setStyle("styleName");
View 1 Replies
Apr 14, 2010
I am loading data from one sample.xml file using http service. the xml file will generated by jsp and it is saving in one proper location like(d:/programfiles/some.xml).now when I first time login to application i need to check whether that xml file is present or not. How can I check?
View 2 Replies
Jan 30, 2012
I followed an example on how to make a login system in flex. This example was not made for flex mobile projects, but desktops running in a browser. As I understand I can use the same code but with different components. I keep getting errors. My code is beneath. PHP code for connecting and quering the database, and send result back with xml
<?php
echo "<?xml version=""1.0" ?>
";
$con = mysql_connect("HOST","USER","PASS");
[code]...
My First thought was that I can't use <mx:HTTPService> and other mx based services in my mobile flex application.
View 1 Replies
Jun 30, 2009
I'm making an App using Adobe Flex/Air. I was wondering if there was a way to get the Operating System the Air app is running on?
View 3 Replies
Feb 13, 2010
I am developing an application in flex 3 using action script 3........I have some range of ip address in LAN(wired or wireless both).....i want to check which all the systems available...and also want to see their shared folders..
View 2 Replies
Jun 16, 2010
how to detect all the browsers that are installed in a system.By using Flex
View 2 Replies
Jul 13, 2010
I have an AIR app that I have developed for a client.It has a system tray icon with the company name, app name etc, displayed in a tooltip.This all works very simply except that the client in question has a & in their name.No matter how I encode this, it never seems to get displayed.
View 2 Replies
Oct 7, 2010
I've embedded a font in my component. All of the text in the component uses the embedded font. But, I want a button to use the standard system font. How do I set the button's fontFamily to the system font?
<mx:Button label="Hello" fontFamily="?" />
View 1 Replies
Feb 23, 2011
I wrote a login system using flex and php, but for some odd reason the php echos back both "true" and "false". why this is happening?
?php
echo "<?xml version="1.0" encoding="utf-8"?>";
//include("connect.php"); // used for your connection to the database.
[code]....
View 1 Replies
Jun 13, 2011
recently, i upgraded to Flex Hero 4.5 and created a new workspace. Then, i imported a project from the former workspace and started working. when i tried to upload the project from the new workspace to codereview, i got the error message: could not guess version control system. Are you in a working copy directory? How does one resolve this issue? I have read somewhere that i need to checkout my svn but i thought that you only checkout when you want to get a folder/file from the svn.
View 2 Replies
Jun 30, 2011
I need to use multiple fonts in my Flex 4 application, so I compile them into swf and load at runtime. I have single .ttf file for each font. When I dont load font's swf file at runtime, flex uses copy of this font installed on my system, and it works fine - I can switch between regular, bold and italic faces of the font correctly.However,when I load fonts from swfs, setting their style to bold or italic makes no effect. I tried different ways of compiling swfs (css using mxmlc compiler, fontswf utility,.as files with [embed] tags), but nothing worked. When compiling using css it sometimes throw errors that font face is not supported, and it seems that some fonts are available only in bold-italic style only or bold style only.I use cff fonts, load them using etcs.ru.utils.FontLoader utility. Fonts are loaded correctly, I check this with Font.enumerate fonts.So is there any way to embed these .ttf files with all styles available?
View 1 Replies
Jun 9, 2009
I'm looking to develop some CMS-able 100% Flash based websites. I have only worked with creating static based Flash websites in the past.
View 4 Replies