Actionscript 3 :: Add System Icons Into The Flex Application?
Apr 5, 2010can i add system icons (.doc, .ppt icons etc) into my flex application without embedding them into the application directly.
View 2 Repliescan i add system icons (.doc, .ppt icons etc) into my flex application without embedding them into the application directly.
View 2 RepliesI 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?
I've built a simple flash application that takes a user's photo/image, offers various effects and filters to play with. In the end, the application can write-out the resulting image to a PDF print file (to be purchased and sent to a printer).Currently I'm using PHP to template the web pages, with the Flash app embedded in the body of one of the pages.
I now need to integrate a shopping cart and check-out system, the idea being that the user can play with images, add various images to a shopping cart, at some point choose print sizes for each image, check-out and purchase etc. My app would attached the necessary print files, and email/submit the order to the printer.In researching the various cart systems out there like Zen-cart, Magento, osCommerce, etc.. these all seem to be full featured CMS systems, full websites, that you deploy, customize and skin, add products to etc... a "canned store". But in my case, I'm adding/creating the product at run-time. It's not a traditional store where you browse and select items.
At first glance its not clear to me how I would use one of these systems, how to integrate with my Flash app.... it seems I only want to make use of the shopping cart, customer database portion, payment transaction features.Is it possible to use one of these, using only the checkout and order management through a API? called from my Flash app? or processed via back-end PHP?
I need to disable all the aspects of functionality which access the client file system in a flash/flex application. I started having a look on how to do this. It appears that the package flash.filesystem need to be importated to allow the interaction with the file system. However, I did not find any reference to this package in the application. I am a beginner concerning these technologies so maybe I am missing a point here. Do I need to look into an other direction?
View 1 RepliesI'm trying to access local file system from Flex web application. I know it is pretty difficult, but I think there must be a way. Is there a way that Flex app can use AIR components or maybe web application can call some AIR module in order to choose files and upload?
View 2 RepliesI started a project a while back using the following architecture from Adobe Developer Article talking about Creating marketing platforms in Flex. I did my first set of coding locally forgetting that my server did not handle Tomcat. So I said okay, and cut some corners and then some other limitation came up and I cut some more corners. Eventually for a good week or two, it was trying to get the project working with making the ends meet. Layers started to merge.
In the end I used a
PureMVC (Presentation/Client) -> ZendAMF (Communication) -> MySql (Data) Layout.
It worked but I never felt as though I had some layer just to take care of all the SQL calls to the data.It just felt hacked together
So should I keep the above setup and just start from the presentation layer and move downwards like they said in the article or is there a better layering (based on a hosting plan that does not handle Java) I could accomplish ?
UPDATE: My current hosting plan - [URL]
I am able to port much of my application from Flex 35 to Flex 4.0
Next is to show my current system Operating system name (XP Pro, Vista, Linux..etc) along with the service pack level of my system on which my application is running.
I am able to show uo OS name "Windows XP" using "Capabalities.os" in Flex4.0. but not "Professional" or "Pro" exactly. But I could not find an API for showing up the service pack level.
I have to display the content in a label. I tried with Capabilities.cpuArchitecture and System.vmversion, but it shows up some other system data.
I want to show up Service pack version.
I'm developing an application for the Blackberry Playbook using Flash Burrito 4.5 and Flex. I'd like to create a file browser to allow users to load images from the local system into the application. I followed this example [URL] When I click on the Load Image button in the simulator however, the file browser pops up but tells me that "no file was found with the specified filter", even though I don't specify any filter or even if I specify a . filter.
View 2 RepliesI have an AIR app (ActionScript only) that I build with Flash Builder 4. In the application descriptor I define the icons like that:
<icon>
<image16x16>icon-16.png</image16x16>
<image32x32>icon-32.png</image32x32>
[Code]....
and when compiling I add those icons to the ressources to export.
After installation, the MyApplication.exe file displays my custom icon. However - the taskbar shows the normal AIR icon and if I open a Native Window then the top left icon also displays the normal AIR icon.
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].....
I'm building image processing or mapping system kinda like google map except we have our own HD images so i'm not sure what is the best way to do this in .NET here is what im trying to do Mapping web application build in .NET i've High resolution images , the user first load the selected area a full scaled image should be loaded 100% (original image) then he Zoom to the area he want, then he can move around this area almost like google map
1.user select area - full scaled image loaded
2.user zoom to random area - (i will receive some values for X, Y, etc.. in query string then i will extract these values and zoom/return the image based on these values)
So i'm not sure what is the ideal solution for this is it just zoom/re-size image based on the vales received from the user, or its more complicated than that?
I want to develop a logging system for my application. This system is intended to log warning,messages(like traces) and errors in a log file in the server with time stamp and user information.
I am familliar with flash tracer but that is temporary. Sometime to debug real time user's reports I need this system. Some of the files in the application are in AS1 and the rest in AS2.
I'm currently in the planning/early building phase of a desktop flex application that will be communicating to a Zend Application on a web server.The flex app will basically be like a layout/view in terms of the MVC pattern, it will make requests to various controller actions and display the data returned in a meaningful way, and post data that will update various data in the database on the server. Basically what I'm wondering is what the best way is to go about building a login system for the desktop application.I can't use the regular channels that you would if your users were accessing the application via a browser, so I was thinking I would do this:
Flex app posts login details (email, password) to a login action.The login action uses Zend Auth to check if the details are valid.The login action creates a unique hash (and stores it in the db somewhere along with the user's id) and returns a json object containing the hash along with the user's id to the flex app.Whenever the flex app makes requests to any action in the web app, it also sends along the user's id and the unique hash so the web app can verify the user.
I am creating an web application in which users can upload documents, create folders (just like any file explorer) problem Is how should I translate this Hierarchical structure into Mysql database flat structure, how should I creat a tree view from database?
View 1 RepliesI 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].......
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 RepliesIn 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 RepliesIn Python there is a function: os.system(command) that runs the command passed by parameter in the command line, there is something similar in AS3 (or MXML) running an Adobe AIR Desktop Application?
View 1 RepliesI'm starting to localize my flash application.I'm trying to see if there is a way to rollback on default operating system fonts for languages like japanese so I don't have to embed them.So far I didn't find anything online.I'm currently using css to define the font family like :
@font-face
{
fontFamily: "Tuffy Regular";
src:url("/assets/fonts/Tuffy-Regular.ttf");
embedAsCFF: true;
}
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.
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.
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 Repliesi 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 RepliesIn 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 RepliesI 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.
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]....
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.
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 RepliesI 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 RepliesI'm trying to develop a simple mxml Flex application to start Skype from the AIR/Flashplayer runtime. Is it possible to get back events from a native Windows application? In the simple example of Skype, the OS returns control to the Flex app when Skype exits. But what about native applications which have their own event model and wants to communicate with the Flex event model. For example, a Face detection system which shows "Hello" on a Flex app when the camera detects a face. Can this be done in the current Flex framework?
View 1 Replies