How to enumerate object properties using AS3 flascc bridge classes?
For sample translate this code:
var params:Object = ...
for (var i: String in params) {
var key:String = i;
var value:String = params[i];
For sample translate this code:
var params:Object = ...
for (var i: String in params) {
var key:String = i;
var value:String = params[i];
Similar Messages
-
How to Access Custom Event using AS3?
Hi All,
Maybe it's that its Monday morning and my brain is still foggy, but I can't seem to figure out how to set custom events using AS3.
I have a custom GridRow itemRenderer, and have declared the event using the appropriate metatags.
Then I create the GR item dynamically using AS3 instantiation, but the event is not available for selection in the intellisense drop-down.
Let's take the following as an example:
<?xml version="1.0" encoding="utf-8"?>
<mx:Grid
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:renderers="com.brassworks.renderers.*"
creationComplete="componentInit();"
>
<mx:Script>
<![CDATA[
private function componentInit():void
newRow :MyRow = new MyRow();
//newRow.myEvent is not an available option to set
]]>
</mx:Script>
</mx:Grid>
Then the itemRenderer:
<?xml version="1.0" encoding="utf-8"?>
<GridRow
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:classes="com.brassworks.components.classes.*"
creationComplete="componentInit();"
>
<mx:Metadata>
[Event(name="myEvent", type="flash.events.Event")]
</mx:Metadata>
<mx:Script>
<![CDATA[
private function itemChanged(event:Event):void
Alert.show("test");
this.dispatchEvent(new Event("myEvent"));
]]>
</mx:Script>
<mx:GridItem>
<mx:TextInput
change="itemChanged"
/>
</mx:GridItem>
</GridRow>
How do I go about setting the handler method for custom events on instantiated items? Do I need to do this via the AddEventListener() method? Does this mean that events aren't exposed in ActionScript like they are in MXML? (In MXML all I have to do is <MyRow myEvent="handler(event)" />.)
Thanks!
-MikeYes, I you need to do this via the addEventListener() method.
myRow.addEventListener( "myEvent", myHandler );
I hope that helps.
Ben Edwards -
How to obtain object number using cost center??
hI.
i need to obtain all the cost elemnts of a particular cost center..
cost elemnt can b fetched from COSP using OBJNR..
How do i obtain OBJNR using KOKRS,KOSTL????Hi
From the table
CSSK
take the related Cost elements for a cost center.
Concatenate the cost element with KS and other Orgn unit
and pass to the Costing tables
see an entry in those tables you will know what are the fields in OBJNR that are concatenated
Reward points if useful
Regards
Anji -
How to update user properties using CSOM
Hello All ,
Is it possible to update a SharePoint user properties (like email, title, etc) using CSOM API? In the User class (Microsoft.SharePoint.Client.User) i saw properties like Email, Title are possible to get and set. I tried updating these properties through code
like below, but it is not getting updated in SharePoint. Is there any alternative way?
String updateUser= "john alex";
User user1 = web.EnsureUser(updateUser);
user1.Email = "[email protected]";
clientContext.Load(user1);
clientContext.ExecuteQuery();
Regards
ShahabasYou are not calling the update on the user object. Here is an example:
String updateUser= "john alex";
User user1 = web.EnsureUser(updateUser);
user1.Email = "[email protected]";
user1.Update();
clientContext.Load(user1);
clientContext.ExecuteQuery();
Nadeem Yousuf -
How to destroy object after use.
Hello friends,
i have used one class which is making telnet connection to some remote system and running commands over remote system.
after finishing everything successful, that telnet connection is not closed.
how can i close the telnet connection explicitly. i think if we forcefully destroy the class object, then the telnet connection will be closed automatically.
Is there any method to destroy the object explicitly with out using finalize() method.
rgds
tskarthikeyanmasijade. wrote:
kajbj wrote:
masijade. wrote:
TSKarthikeyan wrote:
Is there any method to destroy the object explicitly with out using finalize() method.Stand in front of your computer and watch the program execute. As soon as you get to the point where you want to destroy an object ... pull out your sledgehammer and swing away.Will that work if it's executing on a remote server?I don't know, but I'd like to give it a try. ;-)Stop stop stop stop it please
LMAO... Yep, there it goes... Don't look at me like that ya' smelly hairy little... Now i've compeltey lost it. -
How to reference the properties used in different file in ant
Hello,
in my build.xml :
<?xml version="1.0" encoding="UTF-8"?>
<project name="name of project" basedir=".">
<property file="build.properties"/>
<target name="all" depends="clean,compile"
description="Clean build and then compile">
<jar jarfile="${zkintranet.home}/WebContent/WEB-INF/lib/${app.molotto}.jar">
<fileset dir="${molotto.build.home}/classes"/>
</jar>
</target
</project>
and in my build.properties
<project name="common properies" basedir=".">
<property name="app.molotto" value="Missouri Lottery"/>
</project>
When I run my ant gives an error ${app.molotto} doesn't not exist !what I am trying to achieve is not to repeat the common code
Basically I can use the loaded.properities (where common code is there) and reference this file in my build.xml and buildAPP.xml without repeating the common code.
Edited by: cookjava on Jan 23, 2009 9:50 AM -
How to exit the program using AS3??
Hi guys , i'm trying to use a button to exit the program. anyone knows which code to use?
What exactly do you mean by 'exit the program'? What program? Is your Flash Object in a browser, or is it an AIR app?
If you're talking about an AIR app, have a look at:
NativeWindow.close() -
How to layer object created with as3
I have cartoonish looking sun rays that rotate in the
background. They are created and animated(rotated) with as3. My
problem is that I now want to place a layer in front of this
animation. Is it possible to assign the object to a layer so i can
place other layers on top of it. The script is rather long, but i
believe this is the pertinent part of it:
==============================
SunGlow.addChild(sun);
addChild(SunGlow);
SunGlow.x=stage.stageWidth/2;
SunGlow.y=stage.stageHeight/2;
========================================Then you could create an empty movie clip container, on
stage, in the layer
you want and then addChild on it...
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
How to find objects ( tables) used in SP
Is there any query with which I can find all the tables used ( to perform Select Insert Update Delete operation) in a procedure in oracle 10g.
I want to take back up of all the tables used in a particular. but it is becoming difficult to find by looking at line by line as the sp is of 3K + lines.With USER_DEPENDENCIES view :
SELECT referenced_owner, referenced_name
FROM user_dependencies
WHERE type = 'PROCEDURE'
AND name = 'YOUR_SP_NAME'
AND referenced_type = 'TABLE'
; -
How to find object dependencies using the DBA_DEPENDENCIES
Hi,
Could some one please help me in finding out the object dependencies among objects?
I was trying to find out the all levels of dependencies for a given object in a given schema, but this following query is not working for packages type.
I want to find out all LEVELS of object involved in the creation of a package.
Example:
SELECT DISTINCT owner,name,referenced_owner,referenced_name,referenced_type, LEVEL Le1
FROM dba_dependencies
where owner =user
START WITH NAME = 'object name'
CONNECT BY NOCYCLE PRIOR referenced_name = NAME
--AND PRIOR REFERENCED_OWNER = OWNER
--AND REFERENCED_TYPE = 'PACKAGE'
ORDER SIBLINGS BY name
Please help.Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
WITH v AS (
SELECT line
,col
,name
,object_type
,object_name
,type
,usage
,usage_id
,usage_context_id
FROM user_identifiers
WHERE object_name = 'XML_SPREADSHEET'
AND object_type = 'PACKAGE'
SELECT LEVEL,LPAD(' ', 2*(LEVEL-1)) ||NAME
,object_type
,type
,usage
,line
FROM v
START WITH name = 'T_REC_CAPTION'
CONNECT BY PRIOR usage_id = usage_context_id
ORDER SIBLINGS BY line, col
LEVEL LPAD('',2*(LEVEL-1))||NAME OBJECT_TYPE TYPE USAGE LINE
1 T_REC_CAPTION PACKAGE RECORD DECLARATION 317
2 TITLE PACKAGE VARIABLE DECLARATION 318
3 VARCHAR2 PACKAGE CHARACTER DATATYPE REFERENCE 318
2 TOPTITLE PACKAGE VARIABLE DECLARATION 319
3 VARCHAR2 PACKAGE CHARACTER DATATYPE REFERENCE 319
2 SPAN PACKAGE VARIABLE DECLARATION 320
3 PLS_INTEGER PACKAGE SUBTYPE REFERENCE 320
2 COMMENT PACKAGE VARIABLE DECLARATION 321
3 VARCHAR2 PACKAGE CHARACTER DATATYPE REFERENCE 321
2 REPEATTITLE PACKAGE VARIABLE DECLARATION 322
3 BOOLEAN PACKAGE BOOLEAN DATATYPE REFERENCE 322
1 T_REC_CAPTION PACKAGE RECORD REFERENCE 324
2 BINARY_INTEGER PACKAGE SUBTYPE REFERENCE 325
13 Zeilen gewählt
What do you mean with They are giving only one level depth of dependencies? -
How to read pdf files using java.io package classes
Dear All,
I have a certain requirement that i should read and write PDF files at runtime. With normal java file IO reading is not working. Can any one suggest me how to proceed probably with sample code block
Thanks in advance.hi I also have the pbm. to read pdf file using JAVA
can any body help meWhy is it so difficult to read the thread you posted in? They say: java.io is pointless, use iText. So why don't you?
or also I want to read a binary encoded data into
ascii,
can anybody give me a hint how to do it.Depends on what you mean with "binary encoding". ASCII's binary encoding, too, basically. -
How to find the configuration use the Z message class.
Usually when I do some configuration, it may need to create some message. such as the Validation.
It raise a message when I run some standard t-code. So when I check some Z message class to find what program use this message, i can not find anything. So I assume there might two situation:
1、we can not trace it dome when the program didn't write like this way: MESSAGE E003(ZFI).
2、this message might be used in some configuration,not in program.
so how do we find the configuration use this message? or Is there any way can trace all message ?
Thank you so much for your sincere answer.Hi,
Case 1: Message is defined correctly with message number & message class.
Example - Message E003(ZFI).
Easy to locate the message using whereused list.
Case 2 :
There are some FM's like BALW_BAPIRETURN_GET where we pass the message details.
For example :
call function 'BALW_BAPIRETURN_GET'
exporting
type = p_message-msgty
cl = p_message-msgid
number = p_message-msgno
par1 = p_message-msgv1
par2 = p_message-msgv2
par3 = p_message-msgv3
par4 = p_message-msgv4
* LOG_NO = ' '
* LOG_MSG_NO = ' '
importing
bapireturn = p_return
exceptions
others = 1.
In these case, we won't be able to track the message number from where used list. So, what we do is before calling these FM we use the below statement,
IF 1 = 2. message e003(zfi). ENDIF.
so that message can be tracked using where used list.
Case 3: Some messages can be configured in message control.( Table T100S ) . For those
messages we search for table T100S in the program.
Regards,
DPM -
How to access SOAP message using JAXP and SOAP class?
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder b = factory.newDocumentBuilder();
FileInputStream fr = new FileInputStream(args[1]);
Document doc = b.parse(fr);
Envelope msgEnv = Envelope.unmarshall (doc.getDocumentElement()); <---
the exception raised:
java.lang.IllegalArgumentException: Root element of a SOAP message must be: 'htt
p://schemas.xmlsoap.org/soap/envelope/:Envelope'
And the xml file is:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"...>
</env:Envelope>The problem is that your DocumentBuilderFactory is not set to be namespace aware. If add a call to factory.setNamespaceAware(true) that should fix your problem.
-
How to read a local file using as3 in a flash object in HTML? [urgent]
My web site contains a flash object.
I want to use as3 to read some local .txt file
by getting the user directory of the file.
i know AIR can support this by sth like:
File.desktopDirectory.resolvePath
but when i open a AIR file for this, it seems
the action cant be run when i embed it in html.
And i tried to use the above function in a normal
flash file in the action script.
But it cant recognize the File. class..
How can it be done ?
It's reli urgent,
please help...
Thanks !a web based flash app can't detect user directories. you can use the filereference class'es browse method to let the user locate a file in any directory the user wants. flash can then retrieve the file's name and type. but, as mentioned before, flash can't determine the file's directory.
-
How to print the properties in an object
I have the following method that is meant to print all the details in a hashmap (allStudents). this hashmap contains references to objects of different students.
what i need is to be able to print each object stored in allStudents, and each of those objects properties....
Please show me the light!!!
public void printAllStudents()
for (Integer eachStudent : allStudents) //for each loop
System.out.println(eachStudent);// prints out every element in set
}Hi Kaj,
So when I overide the toString method, and then call
another method that prints out the contents of the
objects held a Map, the toString formatted text is
used? If so.. how does that work?For objects (as opposed to primitives), System.out.println() calls the toString method.
Maybe you are looking for
-
Flashplayer no longer working on Ubuntu 10.4
Hi, i've a fresh install of ubuntu 10.4 , dual boot with window vista, i've installed the flashplugin-installer of the repository. For the first month everything work , youtube, flashgame, megavideo video files. From yesterday when I go in megavideo
-
Dynamic Date selection inactive
Hi, I am not able to give dynamic date selection in a variant. (D: Dynamic date calculation).The traffic light is displayed in red and there is no options such as current date etc. is there any need to do some settings to get these options.
-
Adobe reader prints in low resolution
Hello Adobe Forum, I'm having a problem with one of the users here at the company I work at. He creates a picture using indesign and exports it to PDF and via Adobe Acrobat edits it into something he can edit however when he prints it the resolution
-
Multiple property files, or one large one
I am just starting internationalization on a Java application, and am externalizing my Strings into property files. My question is: what is better, to store all the Strings in one large property file (making it easier to edit, and reduce duplicates)
-
MacBook Air 2013 Monitor slow response bug
Hello, I have very big trouble with my Macbook Air Display. The monitor has a big response. During my work, my eyes are very tired. Bug very well seen in the video. https://www.youtube.com/watch?v=5hSgms8FiNw