In Flex 3/AS 3, what would be a good way to check if a remote file exists?
I'm thinking in PHP ways where you'd try to "fopen" a remote path (like "http://example.com/somefile.exe"), and see if it works or not. I'm not asking to just download all of the file, I just want to know if the file is there (and accessible).
...
I have an input text box with the instance name of input_txt and a dynamic text field named output_txt. I'm trying to do something with the dynamic field when the user has entered text into the input field. So far, this is what I have:
input_txt.addEventListener(TextEvent.TEXT_INPUT, update);
function update(event:TextEvent):void {
...
Hi,
I am using TLF in my application. the textflow contains text & inlinegraphics. I am trying to implement spell checker on my own. So I want to add the suggested words for the miss-spelt word. For that I want to know the word I have right cliked on. After that fetching it from library & getting the suggested words part is done.
So I ...
I have the an ASCII message of SNMP traps, how can i sent it to different IP address? i dont want to use email instead. Given a IP address and the port, of that receiver machine.
PLease tell me the solution or where can i get references to the command at
least. coz i could find anything regarding it.
PLease...Hope someone can help me.....
I have a Mate project with a WebService tag instance in the EventMap (which I'm using within various event handlers). I'd quite like to be able to set the wsdl property of the WebService via flashvars, but I'm not entirely sure where or how I could do that.
I know I can access flashvars via the Application.application.parameters collect...
In my application i used combobox and adding value using dataprovider like
id="teamComboBox" dataProvider="{xml_teamcoupon.lastResult.coupon.teamcoupon_name}
my xml like this
<pick15>
<coupon>
<teamcoupon_id>1</teamcoupon_id>
<teamcoupon_name>teamcoupon1</teamcoupon_name>
coupon></pick15>
so comobobox shows team coupon name . Bu...
Hello,
I'm just trying to load an xml file witch can be anywere in the hdd, this is what I have done to browse it, but later when I'm trying to load the file it would only look in the same path of the swf file
here is the code
package {
import flash.display.Sprite;
import flash.events.;
import flash.net.;
public class carg...
I am trying to iterate through each of the members of an object. For each member, I check to see if it is a function or not. If it is a function, I want to get the name of it and perform some logic based on the name of the function. I don't know if this is even possible though. Is it? Any tips?
example:
var mems: Object = getMembe...
Title pretty much says it all.
I'm wondering if there's a way to check the current size-limit on the users local hard-drive for sharedObject.
...
I'm caching really big amount of data on the users hard-drive using sharedObject, this data can be like 0.5GB. But I don't want to place the whole sharedObject in memory, and the data also needs to be accessed very fast. Should I split the data up into multiple sharedObjects, or do you think it wouldn't be a problem loading the whole thi...
I'm trying to show image files (jpg, png, gif) that can be larger than the available display area. I've embedded an Image inside a cCanvas (to get scrolling), but the large images are not completely displayed.
Very large images (e.g. 2480 x 3507) have the top or the top and bottom of the image clipped withing the scrolling Image.
What ...
Is there a way to display or log verbose communication DURING a remote service call with flex? In particular is there a way to get very detailed information about the service call while it is happening. Kind of like tracing HTTP headers from a command line. Basically, getting insight into the server transaction before the result or fault...
Hi
I want to have custom images with in a Flex List, so I want to have a selected image, hover image and normal image. I have tried many different ways I cannot seems to get it working.
The closest I have got is to use a custom image renders with a button within the itemrender, even then
-selectedUpSkin doesnt work, you can see it is ...
I've done this before, but i can't quite remember the syntax.
What i've got (simplified):
function createText(clazz:Class)
{
var font:Font = new clazz(); //throws Instantiation attempted on a non-constructor.
}
I believe this can be done without using getQualifiedClassName, but its been a long time. Any help appreciated.
...
Hello everyone
I have a problem with a fla.
I search for a portion of action script code and when i click on the line of the result, i see an empty code window !
Have you ever had a similar problem ?
I use flash cs3 but i don't know the version used to develop this fla.
Is it possible to discover the version used ?
Thanks by advance
...
hi .
i am having a sound ,length of 1:30min. I embedded it into my swf and sync it with the frame.
What i need is to pause and play this sound by my action script.
how to do this ? Any ideas?
...
I need to use a string to access nodes and attributes in XML using E4X. It would be ideal to have this scenario (with XML already loaded):
var myXML:XML = e.target.data;
var myStr:String = "appContent.bodyText.(@name == 'My Text')";
myXML.myStr = "New Value for bodyText node where attribute('name') is equal to 'My Text'";
I ultimate...
I'm embedding an image like this:
[Embed(source="/tool_deleteUp.png")]
private static const c_deleteButton_styleUp:Class;
I'm using it like this:
_removeButton = new Button();
_removeButton.setStyle('upSkin', c_deleteButton_styleUp);
When I rotate the button, the image doesn't scale smoothly. I know the tricks one uses to scale an ...
Is there a easy / good way of getting the url from the URLLoader object? It seems at least two other people (this guy and this this guy) have wondered the same thing. Maybe we can get an answer here on s.o.?
...
Hi, for some reason, whenever I dynamically load a swf on a $(document).ready() by writing to a div, I am unable to make javascript calls to the browser. Specifically, all calls to the browser return "null". This does not occur when embedding the swf normally on the page load, but I would like to prevent loading of the swf until a specif...