How can I convert client-side Shared Object in server-side Shared Object?
Hello world....
I have a problem...
I have a program that uses client-side shared Object, like the Example "Ball" il the FMS 3.5 guide: I can move a ball around the stage...
I need to convert this program so I can use server side shared object. This is because I can load the .swf to another .swf and I must to be able to reset, or delete, the properties of my shared object. With client-side sahred object I can't delete or reset the shared object after I loaded my external .swf....
My script is:
private var pointer1_so:SharedObject;
nc=new NetConnection ;
nc.connect (rtmpNow);
nc.addEventListener (NetStatusEvent.NET_STATUS,doSO);
Cerchio=new cerchio ;
addChild (Cerchio);
Cerchio.x=220;
Cerchio.y=280;
Cerchio.addEventListener (MouseEvent.MOUSE_DOWN,beginDrag1);
Cerchio.addEventListener (MouseEvent.MOUSE_UP,endDrag1);
private function doSO (e:NetStatusEvent):void
good=e.info.code == "NetConnection.Connect.Success";
if (good)
//Shared object
pointer1_so=SharedObject.getRemote("point1",nc.uri,false);
pointer1_so.connect (nc);
pointer1_so.addEventListener (SyncEvent.SYNC,doUpdate1);
private function doUpdate1 (se:SyncEvent):void
for (var cl1:uint; cl1 < se.changeList.length; cl1++)
trace(se.changeList[cl1].code);
if (se.changeList[cl1].code == "change")
switch (se.changeList[cl1].name)
case "xpos" :
Cerchio.x=pointer1_so.data.xpos;
break;
case "ypos" :
Cerchio.y=pointer1_so.data.ypos;
break;
private function beginDrag1 (e:MouseEvent)
Cerchio.addEventListener (MouseEvent.MOUSE_MOVE,moveMc1);
Cerchio.startDrag (false,Rect1);
private function endDrag1 (e:MouseEvent)
Cerchio.stopDrag ();
private function moveMc1 (e:MouseEvent)
e.updateAfterEvent ();
pointer1_so.setProperty ("xpos",Cerchio.x);
pointer1_so.setProperty ("ypos",Cerchio.y);
Can someone helps me?
I know I need of a server side script but...
Please...
Emiliano.
ResultSet is not serializable. It is an active connection. If you wish to serialize the info, then read it into an ArrayList in your serializable class and pass the Data that way.
Similar Messages
-
How to print the client ip address at the server side( reqd for logging )??
Hello everybody...
joined this forum recently.....
In RMI programming.... is there any way by which the server can know the the Client ip address or machine name.... i want to know this bcoz i need to create a log file as to who all had connected withe the server..
need a solution soon..... thanks in advance....@ejp....
thanks buddy....
u made my world a better place to live..... -
How can i convert /var/mail mailboxes to Messaging server 5.1?
Hi,
U need to follow the following steps to configure the Mailboxes for the user from NMS 4.x to ICS 5.x
Migrate the Netscape Messaging Server message store to iPlanet Messaging Server message store.
Change the primary store partition path to point at the Netscape Messaging Server 4.x message store path as follows:
Use the iPlanet Messaging Server Administration Console to change the message store configuration to point to all the Netscape Messaging Server 4.x mail store partitions (mailstore is the example given in step 5).
Remove the user subscriptions directory.
Copy the Netscape Messaging Server message store:
NMSServerRoot/mailstore/store/user/
to:
iMSServerRoot/msg-instance/store/user/
(mailstore is the example given in step 5.)
Copy the mboxlist file:
NMSServerRoot/mailstore/store/mboxlist/data.db2
to
iMSServerRoot/msg-instance/store/mboxlist/folder.db
Copy the quota files:
NMSServerRoot/mailstore/store/quota.db2
to
iMSServerRoot/msg-instance/mboxlist/quota.db
Do not copy any other files!
(Step 12) Configure dirsync to support the new multi-system schema by using configutil to add the following two parameters:
InstanceRoot/configutil -o local.imta.schematag
-v "ims50,nms41"
InstanceRoot/configutil -o local.imta.ugfilter
-v (|(objectClass=inetLocalMailRecipient)
(|(objectClass=mailRecipient) (objectclass=mailGroup)))
(Step 13) Run a full dirsync to pick up the user and group entries:
InstanceRoot/imsimta dirsync -F
(Step 14) Restart iPlanet Messaging Server. You can now see the Netscape Messaging Server 4.x user mailboxes.
The mail server is now available for use. At this time iPlanet Messaging Server is working off the old directory entries in: ldap.sesta.com using multi-schema support. New user and group entries will be created in the new directory nodes.
http://docs.iplanet.com/docs/manuals/messaging/ims51/relnotes/relnotes.htm -
How to access a JS changed attribute on the server side?
hi all;
if i change an attribute on a custom component via java script on the client side.
how can i access the changed value on the server side?
in what method will i have the access to this changed field?
thanks in advance.You can hardcode the ID of the component in the backingbean (or some propertiesfile) and use ViewRoot.findComponent(componentId). Using the binding is (much!) more elegant anyway.
-
How can I convert an array off byte into an Object ?
Hi folks...
I�m developing an application that comunicates a PDA and a computer via Wi-Fi. I�m using a DataStream ( Input and Output ) to receive / send information from / to the computer. Most off the data received from him is in the byte[] type...
How can I convert an array off byte ( byte[] ) into an Object using MIDP 2.0 / CLDC 1.1 ?
I found on the web 2 functions that made this... but it uses a ObjectOutputStream and ObjectInputStream classes that is not provided by the J2ME plataform...
How can I do this ?
Waiting answers
Rodrigo KerkhoffThere are no ObjectOutputStream and ObjectInputStream classes in CLDC. You must know what you are writing to and reading from the DataStream. You should write the primitives like int, String to the DataOutputstream at one end and read those in exactly the same sequence at the outher end using readInt(), readUTF() methods.
-
How can i convert an object to stream of chars or bytes?
how can i convert an object to stream of chars or bytes?
One way is the serialization mechanism. There are examples and explanations of it in the Java tutorial: http://java.sun.com/docs/books/tutorial/essential/io/serialization.html
-
How can I convert a layer into a smart object with Adobe Photoshop Elements 10?
How can I convert a layer into a smart object with Adobe Photoshop Elements 10?
That feature is only in PS. Elements as you buy it has only limited support for smart objects. If you use File>Place to add something to your image it will come in as a smart object (within the limits to which PSE understands smart layers). However, if you know someone who can write an action for you in PS you can install it in PSE, or you could look into something like elements+ from simplephotoshop.com.
-
How can I convert an ArrayList to a String[]
Hi,
How can I convert an ArrayList (only with strings) to a String[] ?
I've tried this :
public static String listToString(List l) {
StringBuffer sb = new StringBuffer();
Iterator iter = l.iterator();
while (iter.hasNext()) {
sb.append(iter.next().toString());
if (iter.hasNext()) {
sb.append(',');
return sb.toString();
But what I get is an array of xxxxx@435634 (for example).
Thanks a lot !Strings are Objects but not all Objects are Strings and at least one of the elements in your List is not a String.
-
How can i convert the HTML information in XML form to a PDF?
Hi does any body know how can i convert the content of an HTML field in a XML Form in a regular text to include in a PDF in a Java program?
Hi ,
On the tool bar you have an option "Browser" which is next to "HTML Editor" .
You know that for using these elements wo have to map them with Data Schema.
Step by step
1. In data Model Under Data Schema Add a child and name it Read_More.
2. In the left hand corner ,click on tab Type and from the drop down select "rid"
3.Click on the "Browser" from the toolbar (as told earlier) and drag and drop it on the form.
4. Drag the Data schema which u have made(Read_more) and drop it on the browser on form. On right hand side u will se the mapping done.
5.Click on the "Browser" which is there in the form and on the right hand side of the form u will see the property window.
6.In property window change the value of action property to "Item Entry point"
7. Repeat step 3 and 4 in Render and show form but using "label" nad not browser.
Do not forget to add Save button in Edit Form.
This will solve your problem.
PS:Rewards Point Please.
Regards,
Naveen Gupta -
How can i convert java application of bibeans to java applet?
Hi Bibeans PMTeam,
Bibeans provide two type client:java application and web client(JSP/Servlet),because web client's function is weaker than java app,so we want to convert java app to java applet,thus,we can embed java applet into web browser(our system framework is in web browser).
That is,we want one applet client that commution with a server side service(can by socket,just like oracle 9i form service)that provide the data that applet need,or the applet connect to olap server and bibeans catalog server by socket(this need security authentication if olap server,bibeans catalog,web server is not in one machine).
so we need you provide whole resolve scheme,thanks a lot,if this answer is not clarity,please connect:[email protected],thanks a lot!hi tomsong
well, in my experience 20mb are quite large for an applet. also take into account that you need a certain jvm that supports this type of application (my guess is that internet explorers native vm isnt an option)
i personally would tend to deliver the functionality via java webstart (look at the sunsite):so you can centrally manage the software, download it once and opertae an application on your client (i mean an APPLICATION and not an applet)
regarding 2: well but there is NO bibean service in ias: so you have to open the former mentioned jdbc connection to the olap service from your client
for the availability: you have to check with the pm team
in the meantime: what about the following approach: give power users a java application and lightweight or random users a handy html client ?
regards,
thomas -
How can I convert a pages color document to a PDF Black and White doc.
How can I convert a pages color document to a PDF Black and White doc. Or, covert the color to B&W in a new doc?
> How can I convert a pages color document to a PDF Black and White doc. Or, covert the color to B&W in a new doc?
The general idea is that you colour correct photographs once, archive, and convert with or without colour changes. The archived photograph is unchanged - or we would be colour correcting the same photographs again and again and again.
If you have a photograph with a corrected exposure, you can open the photograph in the Apple ColorSync Utility, apply a colour space conversion to a grayscale appearance using the preinstalled ICC profile, save the photograph under another name, and place that in your pagination.
If you have a paginated document with corrected exposures, and any such non-scalable bitmap or scalable spline graphics as you have chosen to add, you can render the pagination as a whole to PDF through the same ICC profile, carrying out the same colour space conversion on any and all objects.
Caveat: If you intend the pagination for certain processes, in particular offset lithography, then you are probably expected not to render the type to grayscale, but rather to render it to single ink solid black. No software can determine what printing process you intend, you have to understand a bit about printing, and how to set up general colour space conversions in software. Ask your prepress provider, and if the answer is not prompt and proficient, pick another provider.
/hh -
How can I convert the variable expression stored as string back to variable expression
How can I convert the variable expression stored as string back to variable expression?
I am storing the expression enterd in the TSExpresssionEditControl as simple string and want to convert back to expression since I want to get the data type of that expression.pritam,
I'm not sure what you're trying to do exactly. If you are trying to get the value of a variable and you only have the name of value in a string, then you can use Evaluate() to get its value. If you want the data type, my advise is to use the GetPropertyObject() API method and just pass in the loop up string. Then you'll have a handle to the data object and then proceed from there.
Regards,
Song D
Application Engineer
National Instrument
Regards,
Song Du
Systems Software
National Instruments R&D -
If I already created additional Apple IDs for use on my kids devices, how can I convert them to "kids" Apple IDs?
You can't
Family Sharing and Apple IDs for kids
http://support.apple.com/en-us/HT201084
The Apple ID has it's right already set and can not be changed -
How can I convert an int to a string?
Hi
How can I convert an int to a string?
/ad87geaoHere is some the code:
public class GUI
extends Applet {
public GUI() {
lastValue = 5;
String temp = Integer.toString(lastValue);
System.out.println(temp);
showText(temp);
private void showText(final String text) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
tArea2.setText(text + "\n");
} -
How can I convert an InputStream to a FileInputStream ???
How can I convert an InputStream to a FileInputStream ???
Thanks for you reply, however, I am still stuck.
I am trying to convert my application (which runs smoothly) to a signed applet. The following is the original (application) code:
private void loadConfig() {
String fileName = "resources/groupconfig";
File name = new File(fileName);
if(name.isFile()) {
try {
ObjectInputStream in = new ObjectInputStream(new FileInputStream(fileName));
pAndGConfig = (PAGroupsConfig)in.readObject();
in.close();
return;
} catch(ClassNotFoundException e) {
System.err.println("++ERROR: "+e);
} catch(IOException e) {
System.err.println("++ERROR: "+e);
System.out.println("Can't find file: " + fileName);
Because all code and resources now reside in a Jar file (for the signed applet), I must use the following line to access the resources:
InputStream is = this.getClass().getResourceAsStream(fileName);
I then need to convert the 'InputStream' to 'ObjectInputStream' or 'FileInputStream' so that I can work with it.
I would be very grateful if you could help shed some light on the matter - Cobram
Maybe you are looking for
-
Brading Image Not appearing in Portal Logon But appearing in /NWA /U
Hello Gurus , I am stuck up in a situation where in while doing the branding , I am able to see the branding image and text in http://<SERVER>:<PORT>/NWA http://<SERVER>:<PORT>/cms http://<SERVER>:<PORT>/useradmin But when I click on http://<SERVER>:
-
ACL found but not expected on . . . applications
Like others who've posted here, I stupidly did an "apply to enclosed items" when trying to fix a permission problem on a non-Apple application. I should have targeted my repair to that one application, but assumed there were more permission problems
-
Scess value field is grey out in MIGO while posting rejection excise invoic
HI.. In Return delivery ,i am capturing & posting excise invoice... The problem is while we can change the values of BED,AED,ECS but the SCESS field is coming grey out.Therefore i cannot change it. How can we remove the grey out so that we can enter
-
Help in Object.clone()
Hi All, why i am unable to call the clone() in Object class from the subclass of the Object class. Obj o1 = new Obj(); //Simple bean class. o1.clone() //error.error:- the method clone() from the type Object is not visible note : clone() is protected
-
I can open my yahoo mail in internet explorer but I canot open in mozill firefox why?
give me error 404