Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

AS3 e gli SharedObject Remoti, AIUTO!

This is a discussion on AS3 e gli SharedObject Remoti, AIUTO! within the Actionscript 3.0 avanzato forums, part of the Flash CS3 generale category; Caro Flep, sono ormai 2 settimane che ci provo, ho letto tutorial, guide, forum, ho provato addirittura a chiamare la ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 e Actionscript 3.0 > Flash CS3 generale > Actionscript 3.0 avanzato

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-01-08, 15:28
Junior Member
 
Join Date: Dec 2007
Posts: 14
Rep Power: 0
lorenz82 is on a distinguished road
Unhappy AS3 e gli SharedObject Remoti, AIUTO!

Caro Flep, sono ormai 2 settimane che ci provo, ho letto tutorial, guide, forum, ho provato addirittura a chiamare la Adobe ma non mi hanno cagato.

ho questo codice in AS3:
PHP Code:
var nc:NetConnection = new NetConnection(); 
nc.connect("rtmp://localhost/SOSample"); 
var 
so:SharedObject SharedObject.getRemote("Chat"nc.uri);  
so.connect(nc); 

function 
sendMessage():void{     
    
history.appendText(so.data.chatMessage "\n"); 
    
so.data.chatMessage message.text
    } 
sendMessage();} 
ho anche provato ad aggiungerci:
PHP Code:
NetConnection.defaultObjectEncoding ObjectEncoding.AMF0
SharedObject.defaultObjectEncoding  =  ObjectEncoding.AMF0
ma niente, non va, il getremote sembra non voler funzionare,
non riesco a mettere in comunicazione 2 client.
La cosa strana è che con AS2 va tutto alla perfezione.
Ti prego aiutami non so più che fare... :(
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 12-01-08, 15:33
Junior Member
 
Join Date: Dec 2007
Posts: 14
Rep Power: 0
lorenz82 is on a distinguished road
Re: AS3 e gli SharedObject Remoti, AIUTO!

Dimenticavo di dirti che come Server uso RED5 non FMS.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 12-01-08, 19:04
Junior Member
 
Join Date: Dec 2007
Posts: 14
Rep Power: 0
lorenz82 is on a distinguished road
Re: AS3 e gli SharedObject Remoti, AIUTO!

A posto, trovato il problema, in AS3 il so.data non è writabile quindi bisogna scrivere so.setProperty("chatMessage", message.text);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
SharedObject con Actionscript 3.0 Flep Articoli e tutorials 2 17-09-08 15:24
SharedObject with Actionscript 3.0 Flep Tutorials 9 16-06-08 04:43


All times are GMT. The time now is 18:27.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406