can we add system icons into the flex application - apache-flex

can i add system icons (.doc, .ppt icons etc) into my flex application without embedding them into the application directly.

I'm assuming that you're trying to make an AIR application and you want to use the system's icons for .doc, .ppt, etc files.
This is possible!
Check out the link...
http://livedocs.adobe.com/flex/3/langref/flash/filesystem/File.html#icon
This won't work on Linux as far as i can recall...
Cheers

You can, but for that u need to know the path in which the icons are installed and your application should have access to it.
Thanks,
Nirmal

Related

Unity Launcher icon not being set by Qt application

I'm trying to get my Qt application to display an icon in the Unity Launcher but it's not working. In code, I'm simply using:
qApp->setWindowIcon(QIcon("path/to/icon.png"));
but it's not doing anything. I've also tried setting the icon directly on the main window but it doesn't help either.
Any idea what could be the issue?
PS: I've checked the icon path and it is correct.
Without knowing the details of unity, I'm pretty sure that you'll have to create and install a .desktop file with the icon in it. See for example here. Whatever you set at runtime, the launcher cannot know about before starting the application, so it will need the information from an external configuration.
To enable picture encoding in Windows(not in Ubuntu) I've put the QT\4.8.3\plugins\imageformats folder near my app.
I think You should try the same.

Adobe AIR make screenshot

I have an adobe air application and it must make screenshot for entire screen (not only app area) and save it to a file on hdd.
Could you give me a link how can I achieve this?
thank you
On Windows, you can use this one to grab screenshot ...
https://github.com/pcichon/ScreenShooter
it uses Native Extensions for AIR.
Video Tutorial:
http://gotoandlearn.com/play.php?id=125
http://gotoandlearn.com/play.php?id=126
Look at this project; which is called the Nitro ScreenCap component.
You can build native extension for all platforms.
If are making windows application you can make dll with c or c++.
Here are some usefull links for start.
http://easynativeextensions.com/air-native-extension-for-windows/
https://forums.adobe.com/thread/2307093

Convert Multiple SWF files to Single EXE

Hi I have an application in flash, I build in ActionScript 3.0 Flash IDE, my application loads some external swfs which mentioned via XML file. Its working fine at the moment. But I need to compile all these external SWFs and xml file into single exe file. How can I compile like this. or how can I code like this?
EDIT: 1
from here : http://page-flip.com/products/pdf-publisher/
You can see an example, the application is build in .net and it import pdf and publish it as flash projector or web based(swf). How is it compiling all the external SWF files.
If you have Flash CS4 you can make use of the mxmlc compiler which has some additional tricks up it's sleeve.
Using the embed tag like this will allow you to embed an entire swf "inside" your swf:
[Embed(source = '../assets/items/9.swf')] public static const ITEM_9:Class;
Then, to instantiate it you simply go:
var mySprite:Sprite = new ITEM_9() as Sprite;
Using this and some clever overloading of your current classes for external loading should allow you to get a single swf (xml files can be embedded in a similar fashion).
Then it's just a matter of using the Publish settings to make Flash spit out an .exe
On an unrelated note, please go back and accept some answers to your questions. It's not very nice not to.
You can try mdm Zinc.
Zinc is really powerful. It lets you package your Flash or Flex in different ways, with lots of native platform hooks.
you can build an AIR application. if you don`t want it to be cross platform, you can build an AIR application with a windows native installer.
Flash > File > Project settings > Windows Projector.
For MAC, choose a MAC projector.
If you are burning to a disc and you need both platforms to work...a good option is to use Toast (if you are on a MAC)...it will hide the files you don't need the user to see, and also hide windows files from MACs and vice versa.
There is an application for Windows called SWFKit, which allows you to package your SWF and external files into one exe file. I had the same problem as you, and this worked a treat for me. Unfortunately you do need to pay for it :( http://www.swfkit.com
Hope this helps,
Will
I would go about it with these steps
create a flex application
embed all of the SWF's and the XML into that application
create a release of the application you just created
open the SWF application with the stand-alone flash player and not with the browser
from the file menu select the option create projector
All of this will result a single EXE file that contains all of the SWF's and the XML file.
You can use a projector or make an windows only AIR project.
Use flajector and forget about your problems

Put an Icon in a eVB Application

Someone knows how to put an icon in a eVB 3 application, because i hate that default icon for *.vb files, something like using the registry editor or using resource files. Thanks
How To Associate an Icon with an eVB Application
http://support.microsoft.com/kb/268309
It says:
eVB applications are not compiled to
executable files but to binary files
that the Pvbload.exe executable
interprets. Thus, eVB applications use
the icon from Pvbload.exe in the same
way that Microsoft Excel worksheets
use the icon from Excel.exe. To allow
for a customized application icon, you
must create an eMbedded Visual C++
(eVC) application that only shells out
to the operating system to run the
application. The operating system
recognizes that there is a file
association with Pvbload.exe.
Another possibility is to convert to NS Basic/CE. It allows you to specify icons - even to meet the requirements of Windows Mobule 6.5.

adobe air - Is there anyway to get OS open a file, their native applications?

In adobe air, is there anyway to get OS open a file, in their native applications?
What about in Flex 4?
In AIR 1.5 there isn't any way to do it. But stay tuned ;)
=Ryan
ryan#adobe.com
You might want to checkout StackOverflow Question 265265 - Can Adobe AIR applications execute processes on the local client machine?
You may be able to use something like this:
var file:File = File.desktopDirectory.resolvePath('Yodl_RBI.ppt.zip');
navigateToURL(new URLRequest(file.url));
It will normally open the asset in a browser window though, but for images and stuff that kind of works.
However if you point it to a folder it will typically open the folder containing the item, which is half way there...

Resources