when you run *lzproxied=solo*
there is already a generated SWF in the same folder like
videoconference.lzx. No need to additionally run the Solo-Deploy wizzard
(unless you need the wrapper code).

This warning is strange to me, I don't know if its really related to
*NetConnection* are you sure that is the case? I think the NetConnection in
the Standard Components is wrapped into the *rtmpconnection* tag [
http://www.openlaszlo.org/lps4.7/docs/reference/lz.rtmpconnection.html].

If nothing helps I would suggest you just initialize your own instance of
the NetConnection and use that instead of the one from the components set
and see if that works. That way you will at least learn how to deal with it
and Debug inside, handle errors et cetera, you will need that anyway.

Sebastian

2010/3/8 cem sonmez <[email protected]>

> I am adding laszlo-user list by cc.
>
> By using like this :
> videoconference.lzx?debug=true&lzr=swf10&lzproxied=solo
> Everyting works fine. Just getting  a warn
> *The tag 'connection' will not work as expected when used in a serverless
> application. *//connection is the class that initializes NetConnection.
>
> I am not using any ant task at all. I just click the SOLO button at the
> bottom of the developer console and running the swf file that locates in the
> given zipped archive.
>
> For the use of : videoconference.lzx?lzt=swf&debug=true&lzr=swf10 * *it is
> also working as expected.
>
>
>
> 2010/3/8 Sebastian Wagner <[email protected]>
> >
> > no ... maybe we should shift this discussion from the red5 group away. I
> think your Issue is strictly OL related.
> >
> > When you run the app like *videoconference.lzx.swf10.swf* ... well then
> the app is already SOLO. No matter if you add the param or not.
> >
> > By adding the param to the url I mean
> > videoconference.lzx?lzr=swf10&lzproxied=solo
> >
> > Additional params:
> > &lzt=swf => just the swf
> > &lzt=html => developer console on the bottom
> >
> > Or do you use an ant task to compile the LZX and copy the resulting SWF
> then?
> >
> >
> > Sebastian
> >
> > 2010/3/8 cem sonmez <[email protected]>
> >>
> >> 2010/3/8 Sebastian Wagner <[email protected]>
> >>
> >>> With developer console you mean the running the lzx-app in the browser
> yes?
> >>
> >> Yes that is what I mean
> >>>
> >>> what happens if you add the param lzproxied=solo in the URL in your
> openlaszlo application?
> >>
> >> when I add this param to the line in the html wrapper like :
> lz.embed.swf({url:
> 'videoconference.lzx.swf10.swf?&lzr=swf10&lzproxied=solo'  ... Nothing
> changes.
> >> When I add to canvas tag by trying proxied="solo", getting compiler
> error that says available values were true, false and inherit.
> >>
> >> So it is not  working too
> >>
> >>> Does it work or not?
> >>>
> >>> Sebastian
> >>>
> >>> 2010/3/8 cem sonmez <[email protected]>
> >>>>
> >>>> Hi Sebastian
> >>>>
> >>>> I just do this operations for the shared object
> >>>> Red5 Side :
> >>>> --------------------
> >>>> createSharedObject(appScope, "chat", true);
> >>>> sharedObjectChat = getSharedObject(appScope, "chat");
> >>>> ISharedObjectListener listenerSOChat = new SharedObjectListener();
> >>>> sharedObjectChat.addSharedObjectListener(listenerSOChat);
> >>>>
> >>>> Openlaszlo
> >>>> --------------------
> >>>> sharedObject.lzx
> >>>>
> >>>> <library>
> >>>>     <class name="sharedObject" extends="node">
> >>>>         <switch>
> >>>>             <when property="$as3">
> >>>>                 <passthrough>
> >>>>                     import flash.net.*;
> >>>>                     import flash.events.*;
> >>>>                 </passthrough>
> >>>>             </when>
> >>>>         </switch>
> >>>>
> >>>>         <attribute name="so" value="null" /> <!--shared object
> object-->
> >>>>
> >>>>         <!--getting Shared Object from server
> >>>>         @param so_Name : shared Object name
> >>>>         @param nc : connection which has the shared object
> >>>>         @persistant : persistency <true | flase>
> >>>>         @secure : secure <true | false>
> >>>>         -->
> >>>>
> >>>>         <method name="connect" args="so_Name,nc,persistant">
> >>>>             this.so =
> SharedObject.getRemote(so_Name,nc.uri,persistant);
> >>>>             //this.so.client=this;
> >>>>             var t = this;
> >>>>             if ($swf8){
> >>>>                 this.so.onSync = function (evtObj){
> >>>>                 if (t.onStatus)t.onStatus.sendEvent(evtObj);
> >>>>                 //_root.Debug.write.write("Shared Object
> onSync",evtObj,arguments);
> >>>>                 }
> >>>>                 this.so.writeMessage= function (msg) {
> >>>>                 Debug.debug(msg);
> >>>>                 }
> >>>>             }
> >>>>             else {
> >>>>                 this.so.addEventListener(NetStatusEvent.NET_STATUS,
> sharedObjectHandler);
> >>>>             }
> >>>>             this.so.connect(nc);
> >>>>         </method>
> >>>>
> >>>>         <method name="sharedObjectHandler" args="event"><![CDATA[
> >>>>             switch(event.info.code) {
> >>>>                 case "SharedObject.Flush.Success" :
> >>>>                     Debug.info("SharedObject.flush() call
> succeeded.");
> >>>>                     break;
> >>>>                 case "SharedObject.Flush.Failed" :
> >>>>                     Debug.error("SharedObject.flush() failed.");
> >>>>                     break;
> >>>>                 case "SharedObject.BadPersistence" :
> >>>>                     Debug.warn("Shared object has already been created
> with different flags");
> >>>>                     break;
> >>>>                 case "SharedObject.UriMismatch" :
> >>>>                     Debug.error("mismatch with the URI while
> connecting to the shared object on the application");
> >>>>                     break;
> >>>>             }
> >>>>
> >>>>         ]]></method>
> >>>>
> >>>>         <method name="send" args="funcName,param1,param2=null">
> >>>>             if (param2==null) {
> >>>>                 return this.so.send(funcName,param1);
> >>>>             } else {
> >>>>                 return this.so.send(funcName,param1,param2);
> >>>>             }
> >>>>         </method>
> >>>>     </class>
> >>>> </library>
> >>>>
> >>>> sharedObjectChat.lzx
> >>>> <library>
> >>>>     <class name="sharedObjectChat" extends="sharedObject">
> >>>>         <!--will be shown to all clients who got the chat shared
> object -->
> >>>>         <method name="writeMessage" args="username, msg">
> >>>>             //Debug.debug(msg);
> >>>>             messageArea.addText(username +" : "+msg+"\n");
> >>>>         </method>
> >>>>
> >>>>         <method name="writeSharedObject" args="message">
> >>>>
> this.send("writeMessage",loginScreen.getUsername(),message); /*username
> comes from loginScreen, uses sharedObject class's send method */
> >>>>         </method>
> >>>> </library>
> >>>>
> >>>> So With this classes I have shared object, itS id  is : soChat
> >>>>
> >>>> And in the classic chat screen, when the user clicks on the send
> button, this operations are being done
> >>>>
> >>>> <button id="sendButton">Send
> >>>>     <handler name="onclick" method="sendClicked" />
> >>>>     <method name="sendClicked" args="v=0">
> >>>>          if (message.text != "") {
> >>>>          //Debug.write("Message sent!");
> >>>>          soChat.writeSharedObject(message.text); // here it is sending
> the message to the soChat object
> >>>>          message.clearText();
> >>>>          message.setAttribute("text_y", 0);
> >>>>          }
> >>>>     </method>
> >>>> </button>
> >>>>
> >>>> For the shared object implementation, I just use these classes and
> methods. The weird thing is : the code works very well when I compile and
> play it via developer console of openlaszlo. But for the generated swf10
> object, it does not work.
> >>>>
> >>>> For example : think about 2 applications, both of them connecting the
> same red5 application.
> >>>>
> >>>> openlaszlo-app -> application works on the developer console
> >>>> swf-app -> swf application
> >>>>
> >>>> when swf-app sends a message, it is being shown by openlaszlo-app but
> not on itS own display. When openlaszlo-app sends a message, it is not being
> shown by swf-app.
> >>>>
> >>>> If you need any additional information, please let me know.
> >>>> I have been looking for the solution for a long time. Hence, I canT
> work anything different. All the days I am struggling with this problem.
> >>>>
> >>>> Kind regards
> >>>>
> >>>>
> >>>> 2010/3/8 Sebastian Wagner <[email protected]>
> >>>>>
> >>>>> hi Cem,
> >>>>>
> >>>>> I have seen your various posts in the Laszlo Mailing list too, but
> unfortunatelly had no time to have a look at it.
> >>>>> I hardly use SharedObjects but what kind of components / construct
> are you using to broadcast / update the Shared Objects? I guess you have
> some simple wrapper class that just triggers the Flash Methods? There are no
> Components in OpenLaszlo for SharedObjects (because there is no DHTML
> equivalent they have decided not to implement it).
> >>>>> What is your construct to use it? Your sample code does not give a
> full description for me.
> >>>>>
> >>>>> I have done this initial Howto as example usage of Red5 + OpenLaszlo:
> >>>>> http://wiki.openlaszlo.org/RtmpRed5Webapp
> >>>>>
> >>>>> maybe you can integrate your sample into it to have a use-case that
> can be duplicated.
> >>>>>
> >>>>>
> >>>>>
> >>>>> Sebastian
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> 2010/3/8 cem sonmez <[email protected]>
> >>>>>>
> >>>>>> hi charles
> >>>>>> thanks a lot for the reply.
> >>>>>>
> >>>>>>>
> >>>>>>> I know there are a lot of people on this list that have worked with
> >>>>>>> shared objects, but I think your use of OpenLazlo is what may be
> >>>>>>> hindering people being able to provide more help.  I don't
> recognize
> >>>>>>> your code as Flex, Java, or Actionscript 3, so I am not exactly
> sure
> >>>>>>> what it is doing.  I take it your code is from the client side in
> >>>>>>> OpenLazlo?
> >>>>>>
> >>>>>>
> >>>>>> at the code, it is just getting the message and broadcasts it to the
> all clients that is connected to the remote shared object.
> >>>>>> Probably my problem is about the flash object security issue. Becase
> when I run the same flash application, there isnT any problem at displaying
> shared object by the clients. Problem occurs when I run the generated flash
> object. And I am sure that, when I run the flash object, it connects to the
> red5 application and the shared object (can see this on the red5 application
> logs) successfully.
> >>>>>>
> >>>>>> I have looked at the flash player 9 security doc., but unfortunately
> couldnT find the solution.
> >>>>>> Maybe this is not related with red5, but I think most of the people
> on the list have an experience on flash with red5. And I think this is not a
> openlaszlo-specific problem. I hope some of you had an experience about such
> like issue.
> >>>>>>
> >>>>>> I have been asking my problem to all the flash forums and mailing
> lists for a week, but there are no replies.
> >>>>>> Any help would be appreciated.
> >>>>>> Thanks in advance
> >>>>>>
> >>>>>>>
> >>>>>>> I have dealt with Shared Objects in Red5 and pure actionscript 3.
>  In
> >>>>>>> my implementation, my shared objects are created and managed purely
> on
> >>>>>>> the client side.  My understanding is that once the last connection
> >>>>>>> handling a client side shared object disconnects, the server will
> >>>>>>> discard the shared object.
> >>>>>>>
> >>>>>>> There are two ways you can share data when using a shared object.
>  You
> >>>>>>> can either broadcast a message to everyone, or you can change a
> >>>>>>> property on the shared object.  This property will be updated on
> all
> >>>>>>> connected clients at a certain rate per second.  From your above
> code,
> >>>>>>> it looks like you are using the broadcast to everyone methodology.
> >>>>>>> When doing this, you have to make sure that there is a callback
> >>>>>>> function on the clients getting this broadcast.  You also have to
> make
> >>>>>>> sure that you are correctly implementing event handlers on all the
> >>>>>>> clients that recognize that a message has been broadcast to
> everyone.
> >>>>>>>
> >>>>>>> Even if you aren't using the broadcast to everyone methodology, you
> >>>>>>> still need to make sure you have the correct event handlers in
> place
> >>>>>>> to know when the shared object is updated.  Are you sure you aren't
> >>>>>>> checking the objects properties prior to it being updated?  I am
> not
> >>>>>>> sure for Open Lazlo, but it you look at the Actionscript 3
> reference,
> >>>>>>> the event I am referring to is a "sync" event.
> >>>>>>>
> http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/SharedObject.html
> >>>>>>>
> >>>>>>> On Mar 7, 2:30 pm, cem sonmez <[email protected]> wrote:
> >>>>>>> > so, is there anyone who can help me about this issue.
> >>>>>>> > Is this about the red5 side issue, or about the flash side? As I
> see on the
> >>>>>>> > red5 logs that there is no problem with the flash applciation
> connetion with
> >>>>>>> > the red5 server application and the shared objedcts.
> >>>>>>> > But I canT see the contents of shared object on the flash
> application. This
> >>>>>>> > might be a security issue of flash, right? Even if it is, please
> can anyone
> >>>>>>> > help me how to work out this problem.
> >>>>>>> > Thanks in advance
> >>>>>>> >
> >>>>>>> > 2010/3/6 cem sonmez <[email protected]>
> >>>>>>> >
> >>>>>>> >
> >>>>>>> >
> >>>>>>> > > swf10 is the flash 9 player object that is being genereted by
> the
> >>>>>>> > > openlaszlo compiler.
> >>>>>>> > > Known flash swf just for the flash 9 runtime.
> >>>>>>> > > If you need any additional information, please let me know.
> Becasuse, I
> >>>>>>> > > have been trying to find the solution for a week.
> >>>>>>> > > Regards
> >>>>>>> > > Cem
> >>>>>>> >
> >>>>>>> > > 2010/3/6 Rajdeep Rath <[email protected]>
> >>>>>>> >
> >>>>>>> > > can you restate the problem ? what is this swf10 ?
> >>>>>>> >
> >>>>>>> > >> On Sat, Mar 6, 2010 at 5:20 AM, cem sonmez <
> [email protected]> wrote:
> >>>>>>> >
> >>>>>>> > >>> hi
> >>>>>>> > >>> At first I want to say this, this might not be an issue about
> red5.But I
> >>>>>>> > >>> thought that somewhere in deep it can be pertinent to red5.
> >>>>>>> >
> >>>>>>> > >>> At the red5 side I am creating a shared object called
> *chatSharedObject*connecting from the client to this with no problem.
> >>>>>>> > >>> For the client side,I am using openlaszlo platform, but using
> >>>>>>> > >>> actionscript code for the shared object implementation.
> cilent application
> >>>>>>> > >>> is connecting to the shared object on the red5 side
> successfully(as I see on
> >>>>>>> > >>> the red5 logs).
> >>>>>>> >
> >>>>>>> > >>> here is the calling code snippet:
> >>>>>>> >
> >>>>>>> > >>> [CODE]
> >>>>>>> > >>> <button id="sendButton">send
> >>>>>>> > >>>       <handler name="onclick" method="sendClicked" />
> >>>>>>> > >>>       <method name="sendClicked" args="v=0">
> >>>>>>> > >>>         if (message.text != "") {
> >>>>>>> > >>>     //Debug.write("Message sent!");
> >>>>>>> > >>>     classroot.writeSharedObject(message.text);
> >>>>>>> > >>>     message.clearText();
> >>>>>>> > >>>     message.setAttribute("text_y", 0);
> >>>>>>> > >>>     }
> >>>>>>> > >>>     </method>
> >>>>>>> > >>> </button>
> >>>>>>> >
> >>>>>>> > >>> <method name="writeSharedObject" args="message">
> >>>>>>> > >>> [B]//shared object send method is being called[/B]
> >>>>>>> > >>>
> this.send("writeMessage",loginScreen.getUsername(),message);
> >>>>>>> > >>> </method>
> >>>>>>> >
> >>>>>>> > >>> <!--this method writes the messages to the debug window which
> will be
> >>>>>>> > >>> shown to all users-->
> >>>>>>> > >>> <method name="writeMessage" args="username, msg">
> >>>>>>> > >>>     //Debug.debug(msg);
> >>>>>>> > >>>     messageArea.addText(username+ " : "+msg+"\n");
> >>>>>>> > >>> </method>[/CODE]
> >>>>>>> >
> >>>>>>> > >>> When I generate the swf object and try to use this
> application, nothing
> >>>>>>> > >>> is being displayed although there is no problem on this issue
> on the
> >>>>>>> > >>> development enviroment. Problem causes when I try to run the
> swf10 object.
> >>>>>>> >
> >>>>>>> > >>> Is this maybe a flash security issue? Although I have added
> the
> >>>>>>> > >>> corresponding locations as the trusted location on the flash
> settings
> >>>>>>> > >>> manager. Still problem goes on. And I think this is not about
> the flash
> >>>>>>> > >>> player, it might be a special problem about the flash object.
> >>>>>>> >
> >>>>>>> > >>> Has anyone faced such like behaviour while swf10 object
> running.
> >>>>>>> >
> >>>>>>> > >>> Thanks in advance
> >>>>>>> > >>> Cem
> >>>>>>> >
> >>>>>>> > >>> --
> >>>>>>> > >>> Cem SONMEZ
> >>>>>>> >
> >>>>>>> > > --
> >>>>>>> > > Cem SONMEZ
> >>>>>>> >
> >>>>>>> > --
> >>>>>>> > Cem SONMEZ
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Cem SONMEZ
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Sebastian Wagner
> >>>>> http://www.webbase-design.de
> >>>>> http://openmeetings.googlecode.com
> >>>>> http://www.laszlo-forum.de
> >>>>> [email protected]
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Cem SONMEZ
> >>>
> >>>
> >>>
> >>> --
> >>> Sebastian Wagner
> >>> http://www.webbase-design.de
> >>> http://openmeetings.googlecode.com
> >>> http://www.laszlo-forum.de
> >>> [email protected]
> >>
> >>
> >>
> >> --
> >> Cem SONMEZ
> >
> >
> >
> > --
> > Sebastian Wagner
> > http://www.webbase-design.de
> > http://openmeetings.googlecode.com
> > http://www.laszlo-forum.de
> > [email protected]
>
>
>
> --
> Cem SONMEZ
>



-- 
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
[email protected]

Reply via email to