Flex :: Filepath - Is There An Equivalent Of C#'s Path.GetExtension

Apr 21, 2010

I want to get the extension of a file path in Flex. In C# I would just use Path.GetExtension() to do this.

Is there an equivalent in Flex, or do I have to write my own?

View 1 Replies


Similar Posts:


Flex :: Debugging - I Added Class Directory Via Flex Build Path/Source Path, And Now 'building Workspace' Takes Forever

Apr 3, 2012

I am coming from flash to flashbuilder I have a directory, AS3_classes_dir, on my computer that stores all of my classes, including my greensock and papervision packages. In every flash app that I make I include that directory in the Source Path, so that I can import whatever I may need. Compiling in flash (using ctrl/enter) takes very little time; only the classes that are specifically imported are compiled.So today I did that in flashbuilder, included AS3_classes_dir via Flex Build Path/Source Path ... but now the compile time are a couple of minutes, even though I am not even importing ANY of the classes from within.

View 2 Replies

Flex Equivalent Of GWT - RPC?

May 23, 2009

Right now a lot of my applications use GWT-RPC for retrieving POJO's from a GWT RemoteService which in turn calls a Web Service (SOAP) to get the data. I am evaluating Flex and didn't really see anything truly analogous to this simple architecture.

View 4 Replies

ActionScript 3.0 :: Creating Filepath Out Of Strings?

Dec 27, 2010

If I remove the variables and just type in the path name, the file does play. So there's no other error in this piece of code. I just can't seem to figure out how to create that filename from variables.

EDIT: I should point out more clearly its about the line = public var soundRequest:URLRequest = new URLRequest("sounds/" + Champ + soundType + ".mp3");

I get a 2044 unhandled ioerrorevent error and a 2032 stream error.

[code]....

View 9 Replies

ActionScript 3.0 :: AIR Other Sources For FLVPlaybackCaptions Other Than Filepath

Jul 6, 2009

I'm curious if anyone has any idea how to use properly-formed XML, generated via script (and user-interaction) as a source for captions?

Since this is an AIR app, I know that I have the option to write a temp file to the application storage directory, but if I can avoid doing this, things will go much smoother.

View 1 Replies

ActionScript 3.0 :: Loading A Filepath Variable From Php Then The File

Jul 9, 2009

I'm loading a filepath variable from a php script that simply returns something like [URL] This works fine, apart from the last bit which reads the text file where it throws an error: Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file: However it works fine if I replace the variable with the actual filepath loadit.load(new URLRequest(filename)); to loadit.load(new URLRequest(C:/wamp/www/text/o/blah.txt);

[Code]...

View 13 Replies

Actionscript 3 :: Flex 3 Equivalent Of '<fx:Declarations>'?

May 26, 2011

I'm trying to migrate a Flex 4 project backwards to Flex 3, and I need to move stuff mapped in a <fx:Declarations> block in MXML. Does Flex 3 have something similar to this? It's been a while since I've done Flex 3.

View 4 Replies

Actionscript 3 :: Load Video From Local Server Via Filepath And Not Via URL

Mar 22, 2011

I'm writing a Flash-based video player which simply plays FLV videos. A filename is passed in via a flashvar. Presently, this is achieved with the following function:

[Code]...

A video is grabbed and then added to the stage, with a player skin overlaid. However, what I want to do is load a video from the file system (the same server the SWF is deployed to) rather than fetching a video from a URL. Reading the documentation for the source property tells me it will only accept URLs. The reason I want to read from the file system is because these videos will be stored outside the root of the server. For example, a standard Apache set-up:

[Code]....

View 2 Replies

Flex :: GetCharIndexAtPoint() Equivalent In Spark RichEditableText?

Mar 25, 2010

I want to find a way to get the character index in a Spark based RichEditableText based on mouse x, y position.The mx.controls.TextArea has a protected getCharIndexAtPoint() method but I can't find an equivalent of this in the Spark RichEditableText which is disappointing.

View 3 Replies

Flex :: Windows.sendkeys Equivalent In Adobe Air?

Feb 13, 2011

Is it possible to capture user typed inputs from keyboard and overwrite user entered text with pre-defined words in Flex/Adobe Air? I'm looking for a functionality in Adobe Air something like "typinator" does.

View 1 Replies

Flex :: Spark's DataGrid CalculateDropIndex Equivalent?

Mar 10, 2011

Is there any function (or any easy way to implement it) equivalent to calculateDropIndex for spark's DataGrid?

(using Flex Hero 4.5.0.19786)

View 1 Replies

Actionscript 3 :: DraggableColumns DataGrid - Equivalent In Flex 4.5?

Dec 22, 2011

I am migrating my Flex 3.2 to FLex 4.5. the property draggableColumns of <mx:DataGrid> is obsolete in the <s:DataGrid>. Have you an idea to have its equivalent in Flex 4.5?

View 1 Replies

Flash :: Flex - Standard Equivalent To HTTPService Class CS4?

Jul 17, 2009

Is there a standard equivalent to the Flex HTTPService class in Flash CS4?

View 2 Replies

Flex :: Equivalent Of Osflex:TreeGridCellRenderer For The Flexlib Package?

Aug 10, 2009

the equivalent of osflex:TreeGridCellRenderer for the flexlib package?

View 1 Replies

Flex :: Mx:Canvas 's Show Event Equivalent In S:Group

Feb 5, 2011

As of Flex 4, I'm using s:Group instead of mx:Canvas.

With s:Group , show event is not fired when the container is visible like with mx:Canvas. creationComplete event fire only once. How can I detect show event or something alike in Flex 4 or should I just use the mx:Canvas instead ?

View 1 Replies

Flex :: Programmatic Equivalent Of Tag-based Event Handlers?

Feb 10, 2011

When I create something like the following:

<mx:DataGrid id"myDataGrid"
itemEditBegin="myDataGrid_itemEditBeginHandler(event)" />

When does the event listener for "itemEditBegin" get added and removed? Is this essentially the same as:

<mx:DataGrid id="myDataGrid"
creationComplete="myDataGrid_creationCompleteHandler(event)" />
protected function myDataGrid_creationCompleteHandler(event:FlexEvent):void
{

[Code]...

Basically, I'm wondering where I should add "myDataGrid.addEventListener" if I want to do it programmatically? Should it be in the creationComplete listener function of the object itself, or perhaps in the creationComplete listener function for whatever parent object it resides in?

View 1 Replies

Flex :: Equivalent Datatypes For Various Wsdl Data Types?

Apr 21, 2011

WSDL defines a number of datatypes supported by web service . Is there a documentation stating the various equivalents of those datatypes on flex side. In general for any language that we use to consume web service, how do we get to know the equivalent datatypes of the wsdl types.

One of the web service that I am consuming is returning base64Binary (an image binary data) , What is the equivalent datatype of this on flex ?

View 2 Replies

Flash :: Flex3 - Flex / Professional Components - What's The Equivalent Of Companies Like Telerik

Apr 16, 2010

In the .NET world order, companies like Telerik provide awesome sets of components for web/windows/silverlight. Who are the equivalents in the Flex/Flash universe? I see lots of sites filled with little 10/20 dollar menu components or uploaders, but I'm really looking to find something a step above that.

View 1 Replies

ActionScript 3.0 :: What Is The Flash (non-Flex) Equivalent Of HTTPService() Method In The Following Code Snippet

Jun 11, 2009

I use the HTTPService() method to post a variable value to a SQL Server database. The suggestion came from someone with some past experience in Flash but nothing specifically related to posting variables to a database.

This person sent me the following code snippet that he found in a Flex forum (and changed a bit), with a suggestion that maybe it will work with a bit of massaging.

PHP Code:

private function start():void  { 
service = new HTTPService(); 
service.url = "http://webServer.aspx"; 

[code]....

My biggest problem is that I'm using Flash instead of Flex. What is the Flash (non-Flex) equivalent of HTTPService() method in the following code snippet?

View 2 Replies

ActionScript 3.0 :: Path Movement - Mc To Follow The Path Drawn Out By The Player's Mouse And When The Player Clicks Again, It Erases All Of The Path?

Jul 18, 2010

So I've created a script where a mc is clicked on and the player can draw a path using the mouse. I'm trying to figure out how I can get the mc to follow the path drawn out by the player's mouse and when the player clicks again, it erases all of the path.my code is below

Code:
import flash.display.Sprite;
import flash.events.MouseEvent;[code].....

View 14 Replies

Flex - Equivalent Of "View Source" For <mx:HTML> Component?

Aug 4, 2010

After setting an control's location to some site. How could I then take a peek at the associated HTML? I notice that as soon as I set Location, htmlText becomes null and vice-versa... So how would one go about looking at the HTML displayed in the control in TEXT form?

View 2 Replies

Flex :: MX List ItemRollOver Event Equivalent On A Spark List Control?

May 26, 2011

Flex 3 List control had a itemRollOver event. Flex 4 List doesn't have it. Is there an equivalent or a workaround for this issue?

View 2 Replies

Flex :: Adding Runtime-library-path To Flex Build Configuration Using Ant Mxmlc Task

Feb 9, 2011

I'm trying to build a flex project, linking it to some RLSs. When setting up the project in Flex Builder, the corresponding "build configuration" (that I got by adding -dump-config to the compiler options) generates (among other things) a tag like this :

<runtime-shared-libraries>
<url>some-lib.swf</url>
<url>some-other-lib.swf</url>

[Code]....

View 2 Replies

ActionScript 3.0 :: Flex Flex "URL Or Path To Launch?

Mar 5, 2009

I hope this is the right place to post this I am working on a flex project in AS3 (no mxml).. I unchecked the "Generate Html wrapper file" and when I compile for debug it works fine in my target deployment path (which is called WWW).

my problem is: if my document class is on the root of the sources folder, the generated SWF will be on the root of the Deployment folder (WWW/main.swf) .... but if my document class is inside a package like com.projectName.main.as for example, the generated swf file will be:

[Code]...

View 1 Replies

Flash :: Mxmlc Compiler - Source-path Preferred Over Library-path?

Nov 9, 2011

the same class is passed to the mxmlc compiler in SWF library as a symbol linkage class and again in a source-path. But the compiler uses the definition from the source-path so creating new instance of that class won't create new instance of the library symbol. How do I tell the compiler to prefer the definition linked to the symbol (the one dfrom SWC)?

I have my design assets in an FLA file and they are linked to classes (e.g. [URL]. Then I export those assets to a SWC library and pass it to the compiler. Now when I create an instance of the class (new MyAsset();) it will be a new instance of the library object.

But there are other classes too in the source folder (e.g. "com.myproject.model.*" so I need to pass the source folder to the compiler too. And that is the problem, now the compiler will use the MyAsset.as definition from the source path, not from the SWC where it is assigned to the library object so if I create new instance of MyAsset now it won't duplicate the library object.

View 1 Replies

ActionScript 2.0 :: String To _level (path) - Hide A MC Depending On The Path Variable?

Nov 24, 2004

Here's what i'm trying to do: Hide a MC depending on the path variable as:

[Code]...

Well that doesn't work, for some reason, i can't use a string as a multiple level path..

View 5 Replies

ActionScript 3.0 :: Senocular's Path Class - Take Line Paths - Drawn And Convert Them Into A Path Object?

Feb 15, 2010

I was wondering if it possible to write up some AS that will take line paths that you have drawn and convert them into a Path object? For example say you drew a jagged line from left to write, would there be a way to have AS convert that into a Path object.

View 11 Replies

ActionScript 3.0 :: Draw A Curved Path In Flash - Use Path Data

Aug 31, 2011

Is it possible to draw out a path in the flash editor, set its visibility to hidden, and use this path data to animate objects in AS3?

View 1 Replies

ActionScript 2.0 :: Root. - Use Parameters To Define A Path Inside A Path?

Aug 27, 2004

i have a quick question what is the syntax if u want to use parametrs to define a path inside a path? i mean:

[CODE]...

does anyone know.... it's very important!

View 6 Replies

ActionScript 3.0 :: Root Relative Path Vs Absolute Path?

Nov 9, 2011

This is a head scratcher. Why would a root relative path cause a Security Sandbox error.. but an absolute path to the exact same path work fine..

[Code]...

View 0 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved