Java :: Access Jsp Variable In Mxml
Apr 19, 2011I have to access jsp variable in mxml file... or how to access jsp variable in java file...
View 1 RepliesI have to access jsp variable in mxml file... or how to access jsp variable in java file...
View 1 RepliesI am newer with flex technology.I am creating a chart using ant file & .mxml in eclipse my 'ant' file executes properly but it gives following error when i opens a .swf file which is created auomatically:
Flex Error #1002: Flash Player 9.0.115 and above is required to support signed RSLs. Problem occurred when trying to load the RSL
[Code]...
Is there a way to access the DOM-Elements of a mxml file in a way that you can in JS (e.g. using Prototype or jQuery)?
I need to know if a top-level element has a child (sub-sub-...-childs) with a certain id.
In JS (using prototype) it would be something like:
$('tabs').select('[id="something"]');
I have two mxml files. one is main that is application tag mxml file and another is my mxml component file. I have a viewstack in my main mxml whose id is, say, "mainViewStack". Now I want to set selectedChild property of "mainViewStack" from my mxml component file. [code]...
View 4 RepliesI'm working with eclipse, blazeds and Flex Plugin, and every time I create a Web Dynamic Project then add a Flex Project Nature to it this error: "An unknown item is declared as the root of your mxml document" appears just as the perspective view changes and I click on the design mode. As far as I know the only lines of code written on the screen are the standard in any other program, but I'll put here anyway so you can have a go at it if there's something realyy wrong and I didn't see:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
</mx:Application>
I have a datagrid in my mxml file, say, samp.mxml.
<mx:DataGrid id="taskDataGrid" dataProvider="{initDG}" variableRowHeight="true"
editable="true" width="100%" paddingBottom="1" paddingTop="1" height="55" >
<mx:columns>
[code].....
If I Have an XML variable that equals this:
var X:XML=XML("<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:ns1="Tools.*" minWidth="684" minHeight="484" creationComplete="Init();" xmlns:ns3="Components.*" initialize="I()"/>");
And I try to list the attributes via:
var AList:XMList=X.attributes();
The three namespaces, "xmlns:mx","xmlns:ns1", and "xmlns:ns3" aren't listed among the attributes! How can I access this information programmatically?
If I wanted to do something like this:
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
horizontalScrollPolicy="off"
verticalScrollPolicy="off"
[Code].....
How would I get a handle on myCanvas (where I'd want myCanvas to be the root )?
How do I get round the following error: Access of undefined property pMatrixBack . How do I access this component from within the ascript file?[code]...
View 2 RepliesIs it possible to access a declared component as an IFactory within an MXML class? I've used this style of declaring factories many times for Skin Parts, but I've never figured out how to access those factories from within the MXML.
Here's an example of what I would expect to work:
<fx:Declarations>
<fx:Component id="labelDisplay">
<s:Label fontSize="12" fontWeight="bold"/>
[Code].....
From an HTML form, I wish to launch my existing working flex application passing in parameters E.G, login details.[code]...
View 1 Repliesi'm trying to access an mxml component from my external as file. e.g
main.mxml:
[mx:text id="myText" />]
file.as:
var mainM:main = new main();
mainM.text.visible = true;
i get the following error:
[TypeError: Error #1009: Cannot access a property or method of a null object reference]
I have a text box that receives data from XML. Has activated the service. Everything works fine if i use "taurus" instead myVar in {}. Now I want to change the field and depending on the button is pressed to receive different data. But nothing comes out.
[Code]...
Is it possible to use the Bindable compiler setting when using mxml?
I've got a string that I want to make bindable:
<mx:String id="myString">My Text</mx:String>
I could make it bindable in Actionscript, like this:
[Code]...
But it threw a lot of warnings-- other classes were already marked bindable in my App.
I have my custom component and for example few Label. I want to pass to my component value which will be assign to label's id.[code]Error: {test} is not a valid identifier.
View 1 RepliesIm using Oracle, BlazeDS, Java & Flex. I have an ArrayCollection containing data from a small database table. This table won't be the subject of much change. I want to use this ArrayCollection accross different mxml files to fill e.g. ComboBoxes etc. The reason for asking, is that doing a database call for each time a fill a ComboBox etc is slow and seems unnecessary. I tried doing this once in the "main" .mxml file, but then the variable wasn't accessible where i needed it. What is the best approach for accomplishing this task? What is the best way of making a variable accesible across .mxml files?
View 5 RepliesAgain pulling my hair out due to some Flex/AS3 weirdness. The following code does not compile due to error 1120 - Access of undefined property AbstractWizardModel
<mx:HBox id="cntr_buttons" width="100%" horizontalAlign="right">
<mx:Button label="{model.getButtonLabel(AbstractWizardModel.GO_BACK)}" />
</mx:HBox>
The constant is defined (in AbstractWizardModel) as:
[Code]...
I have extended an mxml component with an actionscript class. I'm trying to access a component in the mxml file using the id (in order to add an event listener) but I cant seem to do it.
I get:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
I've got an object declared and instantiated in my Flex application's singular MXML file: public var CDN:CDNClass = new CDNClass; I would like to access this same CDN object (and its public methods and properties) in another class declared in a separate .as file as such:
[Code]...
But when I try to access the public method parsePlayList in the CDN object in a method in the class defined in the .as file, I get the following error: Access of undefined property CDN The reason I want to do this is to break up the logic of my application into multiple AS files and have minimal MXML files, probably only one.
I have a label component in a mxml file like below
<mx:Label x="700" y="409" text="Label" id="lble" width="131" height="41"/>
if i want to access it and change its text content within a method defined in action script class that i have written, how to do it?
lble.text="test";
It's too complicate to explain but I'll give you an example
I have an AS3 ResultEvent Object and this object has several propeties which can be accessed by this like:event.result.name or event.result.age and, I have this String variable: eventProperty:String that contains "name" or "age" How do I access to event.result. with the variable?
Flash is great tool for animations. I was wondering if I could send events to Java and receive results back. In other words call some functions in flash and get their results.
View 2 RepliesIs it possible to access a movieclip inside an external swf (.fla file), using data from a vector?
The following code works correctly:
this._graphics.message2_mc.textLabel_txt.text = "Test";
Where as when I loop through a vector and try to replace "message2_mc" it cannot find the movie clip:
for(var i:uint = 1; i <= this._playlistState.subMovieVector.length - 1; i++)
{
var movieName:String = this._playlistState.subMovieVector[i].movieName;
this._graphics.movieName.textLabel_txt.text = "Test";
}
Presumably this is because I am putting a string in the middle of the line of code accessing the movie clip?
What are the options (or is it possible at all) for a web page (running on a remote server, not localhost) to access a data stream (not video) coming in via the USB port of the local computer?
Ideally this would work cross-platform (Windows, Unix, Mac anyway) and the local computer would not have to download/install anything to make it work (beyond what you can reasonably expect a computer to have)
An embedded Java applet seems the only way, but I'm wondering if there's any other technologies that could do it. If the restriction is lifted so that the user can install something (basic for non-techies, not setting up a local server running node.js for example) does that make more things possible (Flash?)
I want to develop a GWT javascript application that must interact with a flex widget and fire events from 2 directions (flex to GWT and GWT to flex)For example I develop a function in GWT called onWidgetSelected(int widgetID){ ...} the generated javascript code does not contain the name of this function. So If I want to invoke it from flex through javascript call what should I do ?
View 2 Replieshow to access a shock-wave flash player which has the Content-Type: application/x-shockwave-flashits a request get so i am using GET method of HttpClient .any solution to access flash content through Httpclient?
View 1 Replies[Code].....
getUser was already in UserService.java. I just created getUser2 and it's identical to getUser. When I try to call getUser2, i get the "Cannot invoke method" error. question: Do I need to specify getUser2 in some other file? like in some configuration file? if so, which one and how do I do it.
How can I access the Principal object in a Flex client that was returned by the doAuthenticate() method in the LoginCommand?
Adobe's LCDS Custom Authentication page isn't much help in this matter, as this is the only example they show for a successful login:
// Handle successful login.
private function LoginResultEvent(event:ResultEvent, token:Object=null):void {
switch(event.result) {
[Code].....
I can return a strongly typed object as the Principal from the doAuthenticate() method, but how do I access it in the client's result handler?
Update: I've read the LCDS documentation twice now and there is no mention of accessing the Principal in the client. The only data I can retrieve from a result is the string 'success'. Anyone know if this is this the only result available from a custom authentication?
in java you can load a variable that is in the HTML for example
[Code]...
I would like to know if there's a way to load a variable in that way with flash.
i currently have a Java Observer/Observable setup in which i switch on some field within the Object parameter of Observer.update (e.g. event id) to determine how to handle an Observable notification. this creates verbose code like:
[Code]....