Actionscript 3 :: Introspect Fields At Runtime?

Mar 25, 2011

I have a requirement I'm fairly stuck on and wonder if anyone has any suggestions. I am building a salesforce flex application that needs to be able to connect to different salesforce domains. Upon connect, I need to get a list of available objects and their fields. From there I need to parse those fields into a series of components (lablels, data, etc). I'm having trouble finding how to get a list of all available objects and fields upon connection to an domain,

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Referencing Runtime Textinput Fields?

May 16, 2011

I am trying to create a flex form that has a simple add field button that adds textinput or textfields  and a save button that sends out the values of the fields that have been dynamically created.

View 2 Replies

Actionscript 3 :: Need To 'introspect' Innards Of Flex

Oct 14, 2010

I've got a flex app with a DataGrid with several columns (defined in the MXML file), and I need to "introspect" the grid columns. That is, I need to write some ActionScript code which, given the DataGrid object, can determine various things about the grid (and more specifically, the columns of the grid).In particular, if a column is just plain text output, I don't really care about it... but if it's got "actionable" controls within it (checkboxes, linkbuttons, etc) I do. First, I'm assuming that columns which contain "actionable" contents will be within <mx:itemRenderer> tags (else it would just be plain text); please let me know if this is incorrect.Next I need to "dig down" into the structures, pulling the AS object corresponding to the <mx:DataGridColumn> out of the <mx:DataGrid> (I've got this), then pulling the AS object corresponding to the <mx:itemRenderer> out of the mx:DataGridColumn (two diff ways to do this; neither seems very useful), then pulling the AS object that corresponds to the <mx:Component> out of the mx:itemRenderer (if any; it's unclear to me whether the mx:Component actually creates an object), and finally pulling the AS object corresponding to the <mx:LinkButton> (or whatever) out of the mx:Component.

To clarify somewhat, I've been asked to provide Section 508 compliance (accessibility) to an existing application. There are a lot of pieces to this, of course, including screen readers, etc... but one of the first steps is making sure that the application can be used without a mouse. Many of the existing screens have a UI technique consisting of a DataGrid with item renders which place controls like radio buttons and linkbuttons and whatnot into the cells (same type of control all the way down the column). All well and good, except I can find no way to interact with these controls via the keyboard. So, I modified one screen to have a hot key which pops up a context menu, allowing the user to arrow up/down among the actionable items, and press ENTER to choose one (toggle the checkbox, press the linkbutton, etc). But this was screen-specific, and it will be too easy for someone to update the screen (e.g. adding another actionable column) and neglect the menu. A better (?) approach was suggested: subclass the data grid, introspect to find the actionable columns, build the menu automatically, and now all we have to do is swap out the SuperDataGrid for the DataGrid, and our screens will be 508 compliant.If someone can recommend a better way to make the screens 508-compliant (without redesigning the UI) and with minimal per-screen effort, I'm all ears.Maybe I'm not being clear enough, since you keep missing the point, so let me try again.I'm NOT writing application-level code... if I were, I'd know exactly what the logic is doing and I'd be able to use the bound data in the normal way. In fact, the application-level code DOES use the bound data in the normal way. But that's totally beside the point.What I'm TRYING to do is write "infrastructure-level" code: that is, code which runs "below" the level of the application logic. I'm trying to effectively add a feature to DataGrids which Adobe should have included, but didn't. If I can get this class working, it will be possible to just drop it into dozens of screens WITHOUT ME, AS THE CLASS AUTHOR, KNOWING ANYTHING ABOUT THOSE SCREENS OR THE LOGIC WITHIN THEM. The only way I can imagine this working is to look into the datagrid and discover, at run time, what types of controls lurk within it, and possibly what they're bound to (actually, I can probably just execute whatever the click="foo()" attribute says to do, and I won't need to know what they're bound to).

View 1 Replies

Flex :: Connect To Data/service Wsdl URL Introspect Error?

Apr 20, 2011

i am trying to add a web service in flex 4. This web service is deployed in share point 2010 in the intranet . I am able to see this wsdl file through browser but trying to introspect the service is giving an authentication error. I am getting the following error :-

There was an error during service introspection.

WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'http://sql2008:47672/_vti_bin/StoryboardingDatabaseConnect.asmx?WSDL'.: java.io.IOException: Authentication failure

View 1 Replies

ActionScript 1/2 :: Get Rid Of Displaying 'undefined' In Fields And Get Instead Blank Fields?

Mar 2, 2008

I already post this question in late December but didn't get a positive reply.How can I get rid of displaying "undefined" in fields and get instead blank fields?Is it possible to build a global function which could be applied to the entire .swf file?

View 7 Replies

ActionScript 2.0 :: How Come On Application In The Input Fields Theres Already Txt In The Fields

May 13, 2005

How come on my application, in the input fields, theres already txt in the fields? is there a way to get that deleted?

View 2 Replies

Load-time Weaving Of Pointcuts Into Existing Binary Code At Runtime With The AVM2 Runtime?

Feb 23, 2010

I've seen the Loom project, but are there any alternatives that are more mature (and actively developed)? I am looking for something that would allow load-time weaving of pointcuts into existing binary code at runtime with the AVM2 runtime.

Has any work been done in this area?

View 3 Replies

Difference Between The Flash Player Runtime And Adobe AIR Runtime?

Nov 16, 2009

I've been into coding for about 5 years now, but I'm a recent convert to Flash development. One of the questions I have at the moment is, considering that SWF files can be run by either Adobe Flash Player OR Adobe AIR, what's the real difference between the two runtime environments? What API's and Objects exist in one environment, but not the other?

Basically what I'm more or less trying to establish is, when would I want to develop an SWF for AIR, and when would I want to develop for Flash Player, considering that Flash Player can also execute locally (providing support for creating "desktop applications")

View 1 Replies

ActionScript 3.0 :: BoneArmature Runtime Error "Runtime Symbols With Skewed Matrices Should Be Wrapped In A Movie Clip"?

Oct 9, 2009

Whenever I link a set of movieclips together with the bone tool which are inside a containing movieclip, and also set the type to "runtime" instead of "authortime", I get this error when published.

"Runtime symbols with skewed matrices should be wrapped in a movie clip" What does it mean? I need the type to be set to runtime so I can use scripting with it..

View 2 Replies

Use A PHP To Submit Some Fields?

Feb 20, 2010

i have this action on a button:

loadVariables ("http://www.gogisdesign.com/bytavi/sendmail.php", "", "POST");

and it works when i preview it in the flash console but when i go to the actual site it does not work becaue i do not get the email that the PHP creates. any thoughts?

the PHP works (if you put [URL] this in it works...) but on the site below when you ht the votenow it does not (although again, it does in teh flash preview when i run that)

site: [URL]

View 1 Replies

ActionScript 2.0 :: CS3 AS2 Dynamic Text Fields...

Mar 15, 2009

I am wondering how do we determine when a user "starts" entering text into a dynamic text field. Say a person has entered the wrong information and they get an error. I would like to be able to remove that error message as soon as the person selects the input fields again.

View 2 Replies

Can't Get Dynamic Text Fields To Work

Sep 29, 2009

I'm trying to make this guessing game where you have to guess how many times a penguin will bounce off the water surface before it sinks The way I'm planning to do it is kind of like this:

1.[Script telling textbox to add +1] >>
2.[Bounce animation] >>
3.[Script that randomly sends you to point 1, or 4] >>
4.[Ending animation]

Yeah, and right now I'm desperately trying to get that dynamic text field to work ...I've made a button with this code:

(The textbox is called "test")
on (release) {
test ++;
}

And on the first frame of the timeline I've added this:

stop();
point = 0;

I've tried changing names, tried adding "_root." (_root.test ...) nothing works!

View 1 Replies

Actionscript 3.0 :: Buttons To Toggle Fields On/off?

Oct 8, 2009

I am trying to create an interface with multiple buttons (left side of screen) that will toggle on or off (increase alpha) multiple graphic fields (right side of screen) that are not mutually exclusive

Ex.

If btn1 is pressed (checked), fields a, b, c will turn on.
If btn1 is pressed (unchecked) again, fields a, b, c will turn off.
If btn2 is pressed (checked), fields b, c, d will turn on.
If btn2 is pressed again (unchecked), fields b, c, d will turn off.

[code]....

View 2 Replies

2 Input Text Fields And 1 If Condition?

Aug 25, 2010

So, what I'm trying to do can't really be that hard, I still can't get it to work properly...

So, I have two textfields and one button. Whenever I type a set message into one of the textfields and then press the button, I want the other textfield to return another set message. Probably the trickier part: this should work both ways.

View 3 Replies

Actionscript Not Loading XML Into Dynamic Fields?

Oct 13, 2010

I am working on a project where I am reading (trying to!) from an xml file. I have 5 separate dynamic text fields that I am filling with the individual digits from a string. I am not an expert but really think my code should work. Below is the actionscript and the xml I am using.

import fl.controls.*;
var digit01_xml:XML;
var xmlReq:URLRequest = new URLRequest("testRBS.xml");
var xmlLoader:URLLoader = new URLLoader();

[Code]......

View 1 Replies

ActionScript 3.0 :: Input Fields Won't Allow Certain Characters

Apr 20, 2011

I have a form for signing up for a email newsletter, requesting name, phone number, email, etc. However, for some reason, it won't allow me to enter "3" "4" or the "@" symbol in any of the textfields. You can see how that could be a problem.I'm working with a preexisting site, build by someone else. The SWF on the site doesn't have this problem, (it works fine) but when I create a new SWF from the FLA they got from the previous designer, I have these problems, even before I made any changes.

The site was built with something newer than Flash 8 (I couldn't open it with Flash 8), but older than CS5 (when I save a new version of the FLA, it tells me it will no longer be compatible with older versions of Flash) Could this be caused by that?

the code from the form:

Code:

stop ();
this.tabEnabled;
name.tabIndex = 1;
street.tabIndex = 2;

[code]....

View 2 Replies

Text Input Fields Are Invisible?

May 4, 2009

I am embarrassed to admit that I am still working in Flash 6. But I am. I do not have the ability to upgrade at this point. I have created a contact form and all is working, but the input text is invisible to the end user. Oddly, anything that is typed is sent ok, they just can't see anything they are typing!

View 10 Replies

Submission Forms & Input Fields?

Jul 28, 2009

I'm looking to create an input field in my flash site where users can enter their email address to sign up for a newsletter, ultimately so the email gets added to our mailing list (hosted by constant contact).I can create the look, i'm just terrible at the science that makes it work.

View 15 Replies

ActionScript 3.0 :: Fromatting Text Fields?

Sep 30, 2009

I have a textfield that contains the text of an external XML file.In the xml file i got alot of symbols that disappear when i import the text to the textfield.Is there a way to preserve symbols like quatition marks and extra dots when import to a textfield

View 3 Replies

Make Text Fields Required?

Apr 8, 2010

Can I do this in flash or do I have to do it in php?

View 2 Replies

Professional :: Regarding Input Text Fields

Nov 11, 2010

This is about fill in the blanks in flash 8 as2. In this i used input text fields and three buttons.In first frame i used multiple input text fields and a submit button. After filling all the blanks we click on submit button then in the second frame we will show the result like if the blank is correct it should change the color to green and if it is wrong it should change to red.and in the frame i have check button when we click on it will display all the answers. And when we click on analyse button we have to display the answer which the user types and the correct answers.And my problem is when we click on submit there is no difference in the blanks color all are in black only.

View 3 Replies

ActionScript 1/2 :: 0 For Empty Text Fields?

Nov 16, 2010

I've got txt_1, txt_2, etc... upto txt_15. How do I make "0" appear for the empty text fields.

main_btn.onRelease = function () {
//do something and
for (i=0; i <16; i++){

[code].....

View 3 Replies

Actionscript :: Rename Fields In Array?

Jul 21, 2009

I have an array. The fields in the array have underscores that I would like to remove e.g. "Column_1" to "Column 1". Does anyone know a good way to do this without looping through the whole array and rebuilding it anew? I didn't see any methods in the reference that would make this easy.

View 2 Replies

Flex :: Checking For Change In Fields Under A Tab

Aug 9, 2009

I'm developing a flex application with 4 tabs. When the user switches a tab I want to reset the previous tab to its initial state. Also I need to alert the user, if he hasn't saved the changes he made if any, will be lost.I'm planning to set a variable in the Model, and set/reset it if any change happens in a field under a tab. But how do I monitor this? Is there any listener available for this?Also how do I check and reset the state of the previous tab? The contents that come under the tab is from components only.

How do I check if the user has made any edits in the current tab? Some fields are generated dynamically too.I'm calling a function in the onchange event of TabNavigator and asks the user if he really want to switch the tab.I want the other tab to load its contents only if the user clicks Yes to the Alert box I'm popping up. But now the confirmation box pops up, and the contents are loaded into the other tab and if the user clicks No it goes back to the other tab. How do I prevent the action of loading the contents of the other tab at all till the user presses Yes?

View 3 Replies

Flex :: Why Is BlazeDS Not Serializing Some Fields

Sep 7, 2010

I'm using Flex 3.5, BlazeDS 3.2.0.3978 and EJB3 for backend. There are two RPC which are important to the problem. The first call will get a list of ThirdParty objects, this works fine. The second call happens when the user clicks on a ThirdParty, the details of this object (lazy collections) are retrieved. A single object is returned with most fields serialized. I say most, because for some reason, 4 boolean fields are not serialized and are put on false by flex by default.[code]I've set blazeDS logging to debug and all fields but these booleans are shown in the output. Next, I've tried stepping through the serialization process but it's fairly easy to get lost in there.

View 3 Replies

Flex :: How To Create Custom Fields In AS3

Jun 1, 2011

I'm trying to CREATE custom fields from flex, but I'm having hard time finding the correct syntax. Below is the piece of code that I'm using and it's resulting in error

"sf:INVALID_TYPE INVALID_TYPE: null objects not allowed in create/update request"
var con:Connection = new Connection();
var lRequest:LoginRequest = new LoginRequest();
lRequest.username = username1.text;
lRequest.password = password1.text;
[Code] .....

View 1 Replies

Flash :: Input Fields And Embedding?

Jul 28, 2011

Is there any ways to use input fields without embedding the font to minimize .swf file weight?

View 1 Replies

ActionScript 3.0 :: Text Fields Are Overlapping

Jan 27, 2009

I'm trying to develop a textual analysis program that randomly displays words around the canvas. These words are different sizes.

I've been able to randomize the positions of the words around the screen, but often times, they are overlapping each other. I'm stuck on how to check if the words are overlapping, and if they are, to re-randomize again until the textfield square is in an open spot.

View 2 Replies

ActionScript 3.0 :: Input Fields Not Working?

Sep 17, 2009

I ran over a problem with a video player that fades over a contact form. the problem is that the video player somehow disables the textfields of the form - even after the player fades away again.

I removed childs and set buttonMode=false for all the elements of the video player... ( when the player is closed ) --- but somehow it still disturbs the form after its gone.

The form works until the video player comes in

Here is the links: [URL] See how u can type in the text fields until the player appears...

View 2 Replies

ActionScript 2.0 :: Input Fields Not Adding

Nov 23, 2009

I have different input fields and i'm trying to add the numbers in the fields but I keep getting the following:

[Code]...

View 1 Replies







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