[Flashcoders] Re: [ Air Application - File.browse ] - Font file

2008-11-27 Thread david costard
OK I find a solution.
I can't select a font if I try to select it in the Windows Font Folder.
If I try from a non System folder (for ex: d:\projects\font) it's ok.

david



2008/11/26 david costard <[EMAIL PROTECTED]>

> Hi list,
>
> In a new AIR application, I want to catch the path of a font in the user's
> sytem.
> The user will click on a "Browse" button. It will open a file dialog box
> and the user select the font.
>
> My problem is each time I select a font my OS (Windows XP) open the font in
> the Windows font player.
> I just want to catch the path of the file, not open it.
>
> Any idea ?
>
>
> David
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AIR execute file .bat

2008-11-27 Thread david costard
Thanks Ricky for your reply.
I'm not very fan of Zinc but I will watch this version and its opportunity.

david



2008/11/26 Ricky Blaha <[EMAIL PROTECTED]>

> If that doesn't work for you, I have found Zinc to be a much better
> alternative to AIR for this and many other reasons such as database
> connectivity and COMPort access.
> Here is how you would launch a batch file using ActionScript and the Zinc
> package:
> mdm.System.exec(mdm.Application.path + "myFile.bat");
>
> Then you would publish that FLA to a SWF, import the SWF to Zinc, and
> publish from Zinc to an EXE file.
>
> Here is the reference page on that method:
>
> http://www.multidmedia.com/support/livedocs/index.php?url=main.php?action=methods
> ¬class=System¬id=10148<
> http://www.multidmedia.com/support/livedocs/index.php?url=main.php?action=methods%C2%ACclass=System%C2%ACid=10148
> >
>
> ~Ricky
> http://codingjourney.blogspot.com
>
>
> On Wed, Nov 26, 2008 at 1:11 PM, david costard <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I find a solution with this framework.
> > http://aperture.fluorinefx.com/
> >
> > david
> >
> >
> > 2008/11/25 Steven Sacks <[EMAIL PROTECTED]>
> >
> > > No.
> > >
> > >
> > > david costard wrote:
> > >
> > >> Hi List,
> > >>
> > >> Is it possible to execute a .bat file from an AIR application ?
> > >>
> > >>
> > >> david
> > >> ___
> > >> Flashcoders mailing list
> > >> Flashcoders@chattyfig.figleaf.com
> > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >>
> > >>  ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] [ Air Application - File.browse ] - Font file

2008-11-26 Thread david costard
Hi list,

In a new AIR application, I want to catch the path of a font in the user's
sytem.
The user will click on a "Browse" button. It will open a file dialog box and
the user select the font.

My problem is each time I select a font my OS (Windows XP) open the font in
the Windows font player.
I just want to catch the path of the file, not open it.

Any idea ?


David
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AIR execute file .bat

2008-11-26 Thread david costard
Hi,

I find a solution with this framework.
http://aperture.fluorinefx.com/

david


2008/11/25 Steven Sacks <[EMAIL PROTECTED]>

> No.
>
>
> david costard wrote:
>
>> Hi List,
>>
>> Is it possible to execute a .bat file from an AIR application ?
>>
>>
>> david
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>  ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AIR execute file .bat

2008-11-24 Thread david costard
Hi List,

Is it possible to execute a .bat file from an AIR application ?


david
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Arabic Text Problem

2008-08-29 Thread david costard
Thanks four your answer Ibrahim.
We find the solution, we just chnage the language in Windows parameters.




2008/8/29 Ibrahim Y <[EMAIL PROTECTED]>

> try to use notepad
> by the way, even it's reversed it will work fine.
>
> --
> Ibrahim
>
> On Fri, Aug 29, 2008 at 1:46 PM, david costard <[EMAIL PROTECTED]> wrote:
>
> > Hi list,
> >
> > We are having trouble to create XML files containing Arabic text. When we
> > copy and paste the text from Word or Excel (Arabic is displayed correctly
> > in
> > theses software), the text appears reversed in the XML editor.
> >
> > Is there a way to write XML file with Arabic language on a European OS.
> >
> >
> >
> > Thanks
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Arabic Text Problem

2008-08-29 Thread david costard
Hi list,

We are having trouble to create XML files containing Arabic text. When we
copy and paste the text from Word or Excel (Arabic is displayed correctly in
theses software), the text appears reversed in the XML editor.

Is there a way to write XML file with Arabic language on a European OS.



Thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: AS3 - Eclipse FDT - Problem with Embed Fonts

2008-07-30 Thread david costard
Thank you Romuald for your answer.
I will try with an mxml file if it's possible.

I know the solution whith the swf and swc and if it's not possible whith a
.ttf file i will use one of those solution.


David



2008/7/30 Romuald Quantin <[EMAIL PROTECTED]>

> Are you making mxml file with FDT?
>
> mx.core.FontAsset is part of the Flex Framework if I'm not wrong. You can't
> use it for Flash, like you can't use Tile, HBox or other part of the Flex
> framework.
>
> For flash with FDT
>
> - you can load a SWF containing the fonts
>
> - add a SWC containing your fonts in the compiler
> In the compiler arguments add:
> -include-libraries C:\Fonts.swc
>
> - use the metadata tag Embed (not work in flash IDE, only with Flex SDK):
>
> http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding
> -in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/<http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/>
>
> A useful method to check what's embedded
>
> public function showEmbeddedFonts():void {
>trace("Embedded Fonts");
>var fonts:Array = Font.enumerateFonts();
>fonts.sortOn("fontName", Array.CASEINSENSITIVE);
>for (var i:int = 0; i < fonts.length; i++) {
>trace(fonts[i].fontName + ", " + fonts[i].fontStyle);
>    }
> }
>
> Hope it helps.
>
> Romu
> www.soundstep.com
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of david
> costard
> Sent: 30 July 2008 10:41
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Re: AS3 - Eclipse FDT - Problem with Embed Fonts
>
> Hi,
>
> I try whith a font from my file system and my problem is resolved but a new
> one is present.
> Now the error message is
>
> Main_impact.as(10): col: 42 Error: La définition de la classe de base
> FontAsset est introuvable.
> public class Main_impact extends mx.core.FontAsset
>
> Any ideas ?
>
> Thanks.
>
>
>
> 2008/7/29 david costard <[EMAIL PROTECTED]>
>
> > Hi List,
> >
> > I'm using Eclipse and FDT for an AS3 application.
> > In this application I need to embed fonts.
> >
> > I search the correct technique in Joey Lott and in tutorial on the web.
> >
> > So in my class just before the constructor I write that :
> > [Embed(source="assets/Arial Unicode MS.TTF", fontFamily="EaganFont",
> > mimeType="application/x-font-truetype")]
> > private var EAGAN : String;
> >
> > And when I try to generate the swf eclipse generate this error :
> > --
> > Loading configuration file
> > D:\work\nurun\environement\eclipse\flex_sdk_3\frameworks\flex-config.xml
> > Recompile: D:\work\nurun\environement\workspaces\test\fonts\src\Main.as
> > Reason: The source file wasn't fully compiled.
> > Files changed: 0 Files affected: 1
> > D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): Error:
> > exception during transcoding: Unexpected exception encountered while
> reading
> > font file '/D:/work/environement/workspaces/test/fonts/src/assets/Arial
> > Unicode MS.TTF'
> >
> > [Embed(source="assets/Arial Unicode MS.TTF",
> > fontFamily="EaganFont", mimeType="application/x-font-truetype")]
> >
> > D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
> > Error: unable to build font 'EaganFont'
> >
> > [Embed(source="assets/Arial Unicode MS.TTF",
> > fontFamily="EaganFont", mimeType="application/x-font-truetype")]
> >^
> >
> > D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
> > Error: Unable to transcode assets/Arial Unicode MS.TTF.
> >
> >
> >^
> >
> > (fcsh)
> > --
> >
> > I've got the same errors if my var is a Class
> > private var EAGAN : Class;
> >
> >
> > Anyone had the solution of my problem ?
> >
> >
> > Thank you.
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: AS3 - Eclipse FDT - Problem with Embed Fonts

2008-07-30 Thread david costard
Hi,

I try whith a font from my file system and my problem is resolved but a new
one is present.
Now the error message is

Main_impact.as(10): col: 42 Error: La définition de la classe de base
FontAsset est introuvable.
public class Main_impact extends mx.core.FontAsset

Any ideas ?

Thanks.



2008/7/29 david costard <[EMAIL PROTECTED]>

> Hi List,
>
> I'm using Eclipse and FDT for an AS3 application.
> In this application I need to embed fonts.
>
> I search the correct technique in Joey Lott and in tutorial on the web.
>
> So in my class just before the constructor I write that :
> [Embed(source="assets/Arial Unicode MS.TTF", fontFamily="EaganFont",
> mimeType="application/x-font-truetype")]
> private var EAGAN : String;
>
> And when I try to generate the swf eclipse generate this error :
> --
> Loading configuration file
> D:\work\nurun\environement\eclipse\flex_sdk_3\frameworks\flex-config.xml
> Recompile: D:\work\nurun\environement\workspaces\test\fonts\src\Main.as
> Reason: The source file wasn't fully compiled.
> Files changed: 0 Files affected: 1
> D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): Error:
> exception during transcoding: Unexpected exception encountered while reading
> font file '/D:/work/environement/workspaces/test/fonts/src/assets/Arial
> Unicode MS.TTF'
>
> [Embed(source="assets/Arial Unicode MS.TTF",
> fontFamily="EaganFont", mimeType="application/x-font-truetype")]
>
> D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
> Error: unable to build font 'EaganFont'
>
> [Embed(source="assets/Arial Unicode MS.TTF",
> fontFamily="EaganFont", mimeType="application/x-font-truetype")]
>^
>
> D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
> Error: Unable to transcode assets/Arial Unicode MS.TTF.
>
>
>^
>
> (fcsh)
> --
>
> I've got the same errors if my var is a Class
> private var EAGAN : Class;
>
>
> Anyone had the solution of my problem ?
>
>
> Thank you.
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3 - Eclipse FDT - Problem with Embed Fonts

2008-07-29 Thread david costard
Hi List,

I'm using Eclipse and FDT for an AS3 application.
In this application I need to embed fonts.

I search the correct technique in Joey Lott and in tutorial on the web.

So in my class just before the constructor I write that :
[Embed(source="assets/Arial Unicode MS.TTF", fontFamily="EaganFont",
mimeType="application/x-font-truetype")]
private var EAGAN : String;

And when I try to generate the swf eclipse generate this error :
--
Loading configuration file
D:\work\nurun\environement\eclipse\flex_sdk_3\frameworks\flex-config.xml
Recompile: D:\work\nurun\environement\workspaces\test\fonts\src\Main.as
Reason: The source file wasn't fully compiled.
Files changed: 0 Files affected: 1
D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): Error:
exception during transcoding: Unexpected exception encountered while reading
font file '/D:/work/environement/workspaces/test/fonts/src/assets/Arial
Unicode MS.TTF'

[Embed(source="assets/Arial Unicode MS.TTF", fontFamily="EaganFont",
mimeType="application/x-font-truetype")]

D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
Error: unable to build font 'EaganFont'

[Embed(source="assets/Arial Unicode MS.TTF", fontFamily="EaganFont",
mimeType="application/x-font-truetype")]
   ^

D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
Error: Unable to transcode assets/Arial Unicode MS.TTF.


   ^

(fcsh)
--

I've got the same errors if my var is a Class
private var EAGAN : Class;


Anyone had the solution of my problem ?


Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [ AS3 ] - Problem with an AS3 application who use a swf AS2 who load images

2008-03-12 Thread david costard
Hey Glen thanks for your help.
I check for crossdomain but I think the problem is not with crossdomain.
I've got the problem in local and all of the swf in as2 in need to load are
one the same domain.



2008/3/12, Glen Pike <[EMAIL PROTECTED]>:
>
> Check for crossdomain problems - look in the HTTP Requests for
> "crossdomain.xml" - try loading this yourself to check it's there.  If
> it is requesting crossdomain files, you probably need to have one setup
> - this maybe one issue, may not be...
>
> Glen
>
>
> david costard wrote:
> > Hey list,
> >
> > Since few days I'm developping my first AS3 application.
> > In this project I need to load some swfs who are developped in AS2.
> >
> > One of them is a diaporama who load images.
> > The diaporama can load the first images but then he never load the other
> > images.
> > In the MovieClipLoader object the method onLoadInit() is never use
> except at
> > the end of the first image loading.
> >
> > I read in the adobe documentation :
> >
> >- The AVM1 content cannot load files into levels. For example, it
> >cannot load files by calling loadMovieNum("url", levelNum).
> >- The AVM1 SWF file that is loaded by an AVM2 SWF file cannot load
> >another SWF file into this. That is, it cannot load another SWF file
> >over itself. However, child Sprite objects, MovieClip objects, or
> other AVM1
> >SWF files loaded by this SWF file can load into this.
> >
> >
> > But why I can load the first image only ?
> >
> > I watched what happened in Fiddler and TamperData.
> > For the first image there's a reuqest to the server but for the other
> one
> > nothing happen.
> >
> > If I use the diaporama alone there's no problem, everything is OK.
> > I've got the bug each time I load it in an as3 application.
> >
> >
> > Thanks for your help.
>
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
> >
>
> --
>
>
> Glen Pike
> 01736 759321
> www.glenpike.co.uk <http://www.glenpike.co.uk>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] [ AS3 ] - Problem with an AS3 application who use a swf AS2 who load images

2008-03-12 Thread david costard
Hey list,

Since few days I'm developping my first AS3 application.
In this project I need to load some swfs who are developped in AS2.

One of them is a diaporama who load images.
The diaporama can load the first images but then he never load the other
images.
In the MovieClipLoader object the method onLoadInit() is never use except at
the end of the first image loading.

I read in the adobe documentation :

   - The AVM1 content cannot load files into levels. For example, it
   cannot load files by calling loadMovieNum("url", levelNum).
   - The AVM1 SWF file that is loaded by an AVM2 SWF file cannot load
   another SWF file into this. That is, it cannot load another SWF file
   over itself. However, child Sprite objects, MovieClip objects, or other AVM1
   SWF files loaded by this SWF file can load into this.


But why I can load the first image only ?

I watched what happened in Fiddler and TamperData.
For the first image there's a reuqest to the server but for the other one
nothing happen.

If I use the diaporama alone there's no problem, everything is OK.
I've got the bug each time I load it in an as3 application.


Thanks for your help.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders