ActionScript :: Flash Builder - Trying To Access Images Source Information

Nov 2, 2011

I'm working on a project (using flash builder 4.5) where a user can click on one of a number of pictures to perform an action. The images are all loaded into an array of UIComponents through actionscript. I have a private variable as follows:
private var _selectedChild:UIComponent;

Which keeps track of which UIComponent is currently "selected" (was the last item clicked). I just want to show an Alert when the picture is clicked displaying it's id and the source filename.
Alert.show("Current id: " + _selectedChild.id + " -- filename: " + _selectedChild.source);

The id comes out easy with _selectedChild.id, but there is no such thing as .source - I looked throughout the entire list of possible variables eclipse gives me and I can't figure out which one would display the url or the source. I feel like I might be missing something easy - does anyone know how to get this information from a UIComponent?

This is the relevant mxml:
<dp:Test id="test" width="100%" height="100%" >
<mx:Image id="i1" source="images/i1.jpg"/>
<mx:Image id="i2" source="images/i2.jpg"/>
</dp:Test>

View 2 Replies


Similar Posts:


Flex - Flash Builder Player Source Control

Sep 9, 2011

Any list which folders need to be excluded from a Flash Builder project when adding it to source control. E.g. bin-debug folder which is automatically generated when the project is compiled should not be in source control and etc.

View 1 Replies

Flash :: Import A Source Folder From Eclipse Into Builder?

Mar 22, 2012

I have the source folder from a friend's Android app and I am going to do all of the design for the app. If I could import the folder that he gave me from Eclipse, it would be easier to create a nice UI for the app.

Is this possible? If not, can I load the XML files into Flash Builder to make the UI? EDIT: To clarify, I have a project file that I can open in Eclipse. I want to edit the appearance of the project using Flash Builder without interfering with the application's functionality.

View 1 Replies

Flex :: Force Flash Builder 4 To Compile All Source Files?

Feb 9, 2011

According to the answers to this question here, the reason why I'm not seeing errors as I work in Flash Builder is that FB is "optimizing" them out because they aren't referenced at any point in the code execution. Is there an option to force Flash Builder to compile all files regardless of whether they're used in the software?

View 2 Replies

Actionscript 3 :: Flash Builder: Define Relative Source Link For Linked Lib

Apr 22, 2011

How do you define a relative link to the source of a linked library in Flash Builder (4).
I have a swc folder defined for a project. I want to link one of the contained swcs to it's associated source. This works fine except that the path stored in the .actionScriptProperties file is absolute. Here you can see the linked lib:

[Code]...

View 1 Replies

Eclipse :: Remove Runnable Attribute From A Source File In Flash Builder?

Jul 20, 2011

I am using Flash Builder 4 and have mistakenly set an abstract class to be the default application class.. It's not too much of an issue as I have set the correct one again, which works fine most of the time, but not when I am editing the incorrect one and hit F11 - it attempts to run the project via this incorrect class. Is there any way to remove the "runnable" attribute from this file so that this doesn't happen?An example of how this looks in the package explorer is below (Application.as is the correct file, AbstractQuickDraggable.as is not):

View 1 Replies

Flash :: Why Does Flex Builder Insist On A Main Class In The Root Of The Source Folder

Mar 3, 2010

Why does FlexBuilder insist on a main class in the root of the source folder? By insist I mean that if I create an Actionscript project called MainTest. A file called MainTest.as will be placed in the root of the src folder. if I now create a package/folder called some/package and place the MainTest.as in it (and adjust the package statement accordingly), I cannot select the project to use this as the application class in Properties/Actionscript Applications as the package is empty as far as Flexbulider is concerned.

So there is a restriction that a main/application class cannot have a package other than the root package. The mxmlc compiler and FDT do not enforce this restriction so why does Flex Builder?

View 1 Replies

Actionscript 3.0 :: Clike An Endless Source Of Information?

Mar 17, 2010

Just discovered this forum recently and it looks like an endless source of information! am only a newby to Flash CS4 and AS3I need to create a CGI Form in AS3, but I really don't know where to start. If you know any good tutorials, websites, books etc

View 2 Replies

Flex :: Builder - Using Flex Builder With Source Control?

May 25, 2010

When setting up a source control repository for a Flex Builder workspace, what do you consider to be worth checking in? Do you exclude the workspace .metadata folder but keep the .project and other project specific files? Keep both? Throw away both? Is there a guideline you use to decide which is worth holding onto or do you do it out of practical experience?

View 2 Replies

Flex :: Open Source Alternatives To Builder?

Mar 15, 2010

Are there any open source (read free) alternatives to Flex Builder? I do not qualify for their student waiver (sad)

View 4 Replies

Flash :: Builder Access CS5 Components?

Sep 26, 2010

I have a project in flash cs5 with some buttons and textInputs. Ive linked my project up with Flash Builder and now want to access my textInput from within my Flash Builder source. i gave the textInput instance name of "txt1" in Flash CS5 but when i try to reffrence it in my Flash Builder project there is no option to set it as type TextInput. I can only set it to type MovieClip and when i do that and publish it tells me cannot convert from fl.controls.TextInput to MovieClip.

View 1 Replies

Flex :: Load / Steup Flexlib Project Source In Builder?

Sep 11, 2009

I downloaded flexlib source from [url]...

I want to be able to set it up and run it in flex builder and play with it for learning purpose.

I tried to use the import project option by pointing to the flexlib directory but it did not work - I think thats because the source by default does not have any .project or properties files.

View 1 Replies

Fetch The Images From A Given URL In Flash Builder?

Oct 1, 2010

How to Fetch the images from given URL in Flash builder

View 2 Replies

Loading Images From Facebook In Flash Builder

Mar 8, 2011

I'm doing a Facebook App where I'd like to pull out all the possible images from a user's album.What I'm trying to do at the moment is a fql query so that i can find all the images that belong to that specific user. it goes something like that:[code]I store this images in an array collection but I don't know how to proceed after that. How can I load those images into, say, a Tile List or a Loader?

View 2 Replies

Professional :: Access UserLabel Attribute In Flash Builder

Oct 14, 2009

Is there a way to access the d:userLabel attribute in Flash Builder? I want to use a number of different files created from Illustrator -> Catalyst -> Flash Builder

Looks like this:
<fx:DesignLayer d:id="2" d:userLabel="A1">
<s:Rect d:userLabel="R_1" x="150" y="200" width="500" height="300" ai:knockout="0">
<s:fill><s:SolidColor color="0xffffff"/></s:fill></s:Rect>
<s:Rect d:userLabel="R_2" x="150" y="200" width="80" height="60" ai:knockout="0" >
</s:Rect>... </fx:DesignLayer>
 
Now the question:
Can I access the "userLabel" with a scriptfunction? Something similar to getElementByID? I want to change for example the fillcolor of a rect or path with that function. Because I have no id here I can't do something like:
R_1.fill = blue
And I don't want to manually change the files from Illustrator.

View 1 Replies

Flex :: Access Mongodb From Flash Builder / Actionscript

May 25, 2011

Is there a way to directly communicate with a mongodb server from a flash builder 4 AIR / actionscript (cli?) application?

I know it is possible to use AMF - for example through Zend AMF (PHP), but I was hoping for this particular application to eliminate that hop or overhead and communicate directly with the database.

View 3 Replies

Flex :: Flash Builder 4.6 Access To Undefined Property

Jan 3, 2012

I have a lot of strange info in my project in Flash Builder, why ?

"Type was not found or was not a compile-time constant" and "Access to undefined property", "Call to a possibly undefined method " When i go to those class and make space " " and save, parrent class is ok,
cleaning doesnt help for long time.

[Code...

View 2 Replies

Flex :: Display Embed Images In Flash / Builder?

Jun 7, 2010

I'm using image embedding in Flex 4 (the same goes with Flex 3). [code]...

When i run the application i see the icon but in Flash(Flex) Builder i can't see the images while working in Design mode. Is there any way to enable image visualization in Flash Builder design mode ? or a better way to include resources.

View 2 Replies

Flash :: Flex - Export Builder Project With Images?

Aug 23, 2010

I will not be hosting the .swf file and I would like to include images using Flash Builder 4. The images appear in a folder in the exported version and I'm not sure how to "embed" them into the .swf (so that I can deploy the file to sites like Kongregate, etc.)

Seems like it should be simple, but my Google fu is currently poor.

Edit: Note, I would like to continue using the Flex framework, which is what I am using now.

View 2 Replies

Flex :: Flash Builder 'Access Of Undefined Property Bindable'

Jun 2, 2011

I have inherited an Adobe AIR application, and am attempting to debug it through Flash Builder 4.5. Within Flash Builder, when I look at one of the MXML files, I see warnings for each use of the [Bindable] tag:[code]And there are no missing semi-colons on the lines preceding each warning as per the suggestion in this blog post.The project is configured to use Flex SDK 3.6.Additionally the file will not load in the designer, with this warning:Design mode: Error during component layout. Choose Design > Refresh to refresh design mode.At runtime I am seeing a blank window - which I assume is the result of the bindings not being triggered. Is this tag not available in Flex SDK 3.6?

View 1 Replies

ActionScript 1/2 :: Getting Information From XML Information Sent To Flash File From The Socket Server

Jul 5, 2009

I'm kinda noobish when it comes to getting information from XML information sent to my flash file from the socket server. OK so for example the server sends me this:

[Code]...

I want to get the name of the user and the X and Y position! Is there a way I can get this information without a load of fuss from functions and other junk remember im kinda noobish.

View 1 Replies

Flash - Obtain System Information Or Cpu Information Using Adobe Flex?

Feb 11, 2011

I want to build a program built around my pc specs. Is there a way to access such information as how much ram I have or how much cpu usage is being consumed, etc.?

View 2 Replies

Flash :: Flex - Builder 4.5 Mobile App ... Scroller And Preloaded Images

Oct 26, 2011

I got some Images in my scroller component. while scrolling the scroller sometimes hang for a second... i think the image is loading. is it possible to load the image before the scroller is on the position?!.

View 1 Replies

Actionscript 3 :: Storing Multiple Images In A Variable With In Flash Builder 4.5

Dec 6, 2011

I have a flash assignment that. The assignment is to create an application for playing a card game, I have to create an MXML component that has two variables, one variable stores the image of the back of a playing card, the other variable has t store all 52 options of a front facing card (the second variable will store over 50 images).

I've written the variable for the back of the card image like this:

[Code]...

View 1 Replies

Flash :: Flex - Setting Up Dynamic Images And Event Handlers For Each In Builder

Aug 26, 2010

How can I add a set of dynamic images and then add event handlers to each that trigger a different event? My scenario is that I have a remote service that grabs a set of data (ArrayCollection) that has a className, classID and classDescription. I would like the images to have event handlers that trigger a new panel display that would show the "classDescription" for the particular class that is clicked. My problem is figuring out how to retrieve the proper set of data and adding the images properly to the panel.

View 1 Replies

Net - Access Hardware Information From Web Browser?

Dec 7, 2011

I am interested in creating a website that needs to know as much specific hardware (ie computer model, cpu model, RAM size, etc) as possible.

Are you aware of any method to find out this information? I know about ActiveX controls, however I'd prefer to use a more flexible method. Javascript? Asp.NET? Flash? Java? Silverlight?

View 1 Replies

Flex :: Access Log Information For ColdFusion Server ?

Mar 30, 2011

I have Flex front end talking with ColdFusion as the back end. I have to debug my application and need to: Add log support to ColdFusion where I can add my custom messages to log list.Access this log at Flex end.Is it possible? Has anyone tried it before?

View 1 Replies

ActionScript 3.0 :: Access Some Web Services To Download Information From SWF?

Jan 22, 2009

I am at a point where I need to access some web services to download information from my SWF using AS 3.0.I have not been able to find any built-in support for web service invocation and consumption of results in AS 3.0. Am I looking in the right places? (note: I am not familiar with Flex and I am not using it).

So what I did was to build my own HTTP/SOAP request and POSTing it using a URLRequest. That works and I got the results back, however, I was just looking at the results and was wondering if there is some library out there that can help me parse the XML results of the web service call.

Is there any built-in support for calling and parsing web service data for AS 3.0? And if not, any useful tools out there that can make this task easier/simpler?

View 7 Replies

Media Server :: User Information Logging / Extend Access.log

Oct 9, 2009

is it possible to extend the access.log file? I want to pass user information via the connect method to the application and want to include this data in the access.log file.

View 5 Replies

Media Server :: Appending User Information String Into Access.log?

Jul 27, 2010

I want to add some custom string into the FMS log file. If I am playing a video and I want to append some string every time when that video is played, which is in some way useful to me in analyzing FMS log, then is there anything provided or some function in which we can just pass the string as an input argument that appends it at appropriate place in the log file.

View 3 Replies







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