Re: [Flashcoders] AS2 SharedObject with Red5

2009-10-14 Thread Andrew Sinning

SharedObject.getRemote.  That is exactly what I was looking for.  Thanks!


Chris Foster wrote:

Hi Andrew,

This page might be helpful to you...
http://www.zehnet.de/2008/04/11/red5-remote-sharedobject-experience-tips
/

Specifically:
---
A Client can connect to a SO using the following Actionscript lines:

// at first you need to establish a connection to the server of course
nc = new NetConnection();
nc.connect( "rtmp://localhost/red5test/", true );

// when the NetConnection is successfully established
// (you have to listen to NetStatusEvent.NET_STATUS event)
// you can connect to a remote SharedObject e.g. named "chat"
so = SharedObject.getRemote("chat", nc.uri, false);

// when the connection to the SO is successfully established,
// you can begin to specify its contents
so.setProperty("message","hello to all");

---


 
C:





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew
Sinning
Sent: Thursday, 15 October 2009 8:27 AM
To: Flash Coders
Subject: [Flashcoders] AS2 SharedObject with Red5

Is there a way to connect a SharedObject to a NetConnection in AS2? 
This appears really easy using AS3, but under AS2 the implementation of

the NetConnection object is quite different, and SharedObject lacks the
connect() method.

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] image upload from flex to .net

2009-10-14 Thread Dave Watts
> I'd like to consolidate all those operations including the upload into some
> kind of remoting gateway.
>
> My question is:
> - is remoting a good option for uploading an image in this scenario?
> - which remoting gateway for .net is a good option?

I think you're better off not using a gateway for file uploads. I
don't know if a gateway will work at all for that. The URL to which
you upload can perform whatever post-processing you need.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Re: image upload from flex to .net

2009-10-14 Thread Merrill, Jason
I don't have a lot of detail for you, but we have had good success using
Webservices built in C#.NET and calling them from Flash and Flex.  We
used FileReference class to upload images from Flash to the Webservice
and C# handled the file from there to place it on the server's
filesystem.  


Jason Merrill 

Bank of  America   Global Learning 
Learning & Performance Soluions

Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the borader multimedia community - join the Bank of America Flash
Platform Community  (note: this is for Bank of America employees only)

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS2 SharedObject with Red5

2009-10-14 Thread Chris Foster
Hi Andrew,

Under Flash Communication Server (OK, it was a long time ago!) I'd do
this using a Remote Shared Object.

That would provide persistent stored information that could be accessed
by multiple clients. Is that what you want to do?

C: 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew
Sinning
Sent: Thursday, 15 October 2009 8:27 AM
To: Flash Coders
Subject: [Flashcoders] AS2 SharedObject with Red5

Is there a way to connect a SharedObject to a NetConnection in AS2?  
This appears really easy using AS3, but under AS2 the implementation of
the NetConnection object is quite different, and SharedObject lacks the
connect() method.

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS2 SharedObject with Red5

2009-10-14 Thread Chris Foster
Hi Andrew,

This page might be helpful to you...
http://www.zehnet.de/2008/04/11/red5-remote-sharedobject-experience-tips
/

Specifically:
---
A Client can connect to a SO using the following Actionscript lines:

// at first you need to establish a connection to the server of course
nc = new NetConnection();
nc.connect( "rtmp://localhost/red5test/", true );

// when the NetConnection is successfully established
// (you have to listen to NetStatusEvent.NET_STATUS event)
// you can connect to a remote SharedObject e.g. named "chat"
so = SharedObject.getRemote("chat", nc.uri, false);

// when the connection to the SO is successfully established,
// you can begin to specify its contents
so.setProperty("message","hello to all");

---


 
C:




-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew
Sinning
Sent: Thursday, 15 October 2009 8:27 AM
To: Flash Coders
Subject: [Flashcoders] AS2 SharedObject with Red5

Is there a way to connect a SharedObject to a NetConnection in AS2? 
This appears really easy using AS3, but under AS2 the implementation of
the NetConnection object is quite different, and SharedObject lacks the
connect() method.

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS2 SharedObject with Red5

2009-10-14 Thread Andrew Sinning
Is there a way to connect a SharedObject to a NetConnection in AS2?  
This appears really easy using AS3, but under AS2 the implementation of 
the NetConnection object is quite different, and SharedObject lacks the 
connect() method.


Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: image upload from flex to .net

2009-10-14 Thread Hans Wichman
Hi,

no takers on this one? Noone any experience with this kind of thing through
remoting?

regards
JC

On Mon, Oct 12, 2009 at 4:05 PM, Hans Wichman <
j.c.wich...@objectpainters.com> wrote:

> Hi list,
>
> I need to upload an image from flex to .net.
> That in addition to a lot of other stuff that I need to do to it.
>
> I'd like to consolidate all those operations including the upload into some
> kind of remoting gateway.
>
> My question is:
> - is remoting a good option for uploading an image in this scenario?
> - which remoting gateway for .net is a good option?
>
> tia,
> Hans
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Access shared object from other class

2009-10-14 Thread Barry Hannah
You're declaring it as a public variable, so if your other class has a
relationship with your main instance you should have direct access:
yourMainInstance._sharedBoardObject;

I suspect what you're missing is a relationship with the instance of
Main.

Barry



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ktt
Sent: Thursday, 15 October 2009 9:33 a.m.
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Access shared object from other class


Hello,

How to acces remote shared object from other class?

I have

package {
   import flash.net.*;
   import flash.display.*;

   public class Main extends Sprite {

   public var _sharedBoardObject:SharedObject;
   public var ncBoard:NetConnection;
   public var rtmpAddress:String;

   public function Main():void {

   ncBoard = new NetConnection();
   rtmpAddress = "rtmp://192.168.0.1/myApp";
   ncBoard.connect(rtmpAddress);
   _sharedBoardObject =
SharedObject.getRemote("sharedBoard02",
ncBoard.uri, false);
   _sharedBoardObject.connect(ncBoard);

   }
   }
}

I would like to add some data or modify shared object.
How can I acces _sharedBoardObject from another class?
Or maybe I need to connect to "sharedBoard02" directly?

Regards,
Ktt


  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Access shared object from other class

2009-10-14 Thread Paul Andrews

ktt wrote:

Hello,

How to acces remote shared object from other class?

I have

package {
   import flash.net.*;
   import flash.display.*;

   public class Main extends Sprite {

   public var _sharedBoardObject:SharedObject;
   public var ncBoard:NetConnection;
   public var rtmpAddress:String;

   public function Main():void {

   ncBoard = new NetConnection();
   rtmpAddress = "rtmp://192.168.0.1/myApp";
   ncBoard.connect(rtmpAddress);
   _sharedBoardObject = 
SharedObject.getRemote("sharedBoard02",
ncBoard.uri, false);
   _sharedBoardObject.connect(ncBoard);

   }
   }
}

I would like to add some data or modify shared object.
How can I acces _sharedBoardObject from another class?
  

Pass it as a parameter. For example

var myNewObj:SomeClass = new SomeClass(_sharedBoardObject);

or perhaps

var myNewObj:SomeClass = new SomeClass();
myNewObj.sharedBoardObject = _sharedBoardObject;

Also look carefully at your coding conventions an underscore prefix is 
generally used for private class variables.


Paul


Or maybe I need to connect to "sharedBoard02" directly?

Regards,
Ktt


  
___

Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Access shared object from other class

2009-10-14 Thread Karl DeSaulniers
Not positive, but I think you have to have the public variable  
outside any functions or extended classes.

Someone please correct me if I am wrong.

package {
   import flash.net.*;
   import flash.display.*;
   public var _sharedBoardObject:SharedObject;
   public class Main extends Sprite {

   public var ncBoard:NetConnection;
   public var rtmpAddress:String;

   public function Main():void {

   ncBoard = new NetConnection();
   rtmpAddress = "rtmp://192.168.0.1/myApp";
   ncBoard.connect(rtmpAddress);
   _sharedBoardObject = SharedObject.getRemote 
("sharedBoard02",

ncBoard.uri, false);
   _sharedBoardObject.connect(ncBoard);

   }
   }
}

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Access shared object from other class

2009-10-14 Thread ktt

Hello,

How to acces remote shared object from other class?

I have

package {
   import flash.net.*;
   import flash.display.*;

   public class Main extends Sprite {

   public var _sharedBoardObject:SharedObject;
   public var ncBoard:NetConnection;
   public var rtmpAddress:String;

   public function Main():void {

   ncBoard = new NetConnection();
   rtmpAddress = "rtmp://192.168.0.1/myApp";
   ncBoard.connect(rtmpAddress);
   _sharedBoardObject = 
SharedObject.getRemote("sharedBoard02",
ncBoard.uri, false);
   _sharedBoardObject.connect(ncBoard);

   }
   }
}

I would like to add some data or modify shared object.
How can I acces _sharedBoardObject from another class?
Or maybe I need to connect to "sharedBoard02" directly?

Regards,
Ktt


  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


SV: [Flashcoders] Component (dataGrid) issues flash 8 destroyObjectvs removeMovieClip

2009-10-14 Thread Mikael Wirén
Hi guys,
All your answers put me in the right direction, thanks a bunch for that.
After some deep digging i found 2 things needed to delete the instance of my
dataGrid (for real).

1. locking the root of the container movieClip.
2. swapping depths of the dynamically added (container) movieclip before
purging it.

But, that puts me back to the question of using destroyObject() vs.
delete().
Can anyone shed some light on the difference between them?
Both seems to be doing the same thing memorywise.

Thanks again for good info as always.

/Micke


-Ursprungligt meddelande-
Från: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com]för Karl DeSaulniers
Skickat: den 5 oktober 2009 01:07
Till: Flash Coders List
Ämne: Re: [Flashcoders] Component (dataGrid) issues flash 8
destroyObjectvs removeMovieClip


Possibly, but I have not worked with data grids.
But deleting it completely will clear it so when you load it again it
will probably let the scroll bar get the correct height.
I'm thinking.

Karl


On Oct 4, 2009, at 5:57 PM, Paul Andrews wrote:

> Mikael Wirén wrote:
>> Hi folks,
>> New member, or actually old member back on the list.
>>
>>
>> Backstory:
>> I am doing a flash piece for a clients intranet. Due to update
>> policies i
>> have to work with flash player 8.
>> So i´m back to Flash 8 =).
>> I never did any component work back then.
>>
>> Now i´m using a data grid component in one part of the movie.
>> Can anyone point me to some good reading about unloading a dataGrid
>> component.
>> Now i use:
>>  destroyObject("my_dg")
>> to get rid of it.
>> But for some reason that plays havoc with removing the container
>> movieClip
>> with:
>>  removeMovieClip(content_clip)
>> Plus 2nd time i load the data grid the scrollbar is about 10px
>> shorter than
>> the actual dataGrid?
>> It seems someone in their marketing staff got a look at the
>> prototype and
>> decided to use it in a live presentation tomorrow.
>> So my work week starts early =)
>> And i had to do a pretty darn bad movieClip removal. I´m actually
>> forcing
>> the container out by creating an empty movieClip at the same depth.
>> I have no clue what this does for preformance.
>>
>> Any pointers to any documentation / resources / examples are greatly
>> appreciated.
>>
> A lot of people seem always to remove and recreate components.
> Would it be possible to keep the component and just hide it, rather
> than remove and recreate all the time?
>
> Paul
>> Best regards
>>
>> Micke
>>
>> --
>> Mikael Wirén
>> Flash Monkey / Co founder
>> Madness Marketing
>> http://www.madnessmarketing.com
>> mi...@madnessmarketing.com
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] RE: how to set DataGridColumn textAlign

2009-10-14 Thread Craig Bowman
In AS3: 

 

Alignment of text for a column in a DataGrid component is handled indirectly
through the TextFormat object which is used in styling text by the
cellRenderer of a DataGridColumn.

 

I often create custom cellRenderers for the DataGrid to handle pictures,
video, radio button groups, comboboxes, etc. and aligning various items used
in and by the cellRenderers is handled in this manner.

 

Also something to note: There are errors in the component architecture in
the way certain calculations were set up between objects. For example, the
HeaderRenderer class of the fl.controls.dataGridClasses has one of these in
the drawLayout function. You can simply derive a new class from the
HeaderRenderer and then do an override on the drawLayout function to make
the necessary adjustments. Without that, your HeaderText isn't going
anywhere, regardless of how you want it aligned.

 

 

Cheers,

 

Craig Bowman

http://www.techyoumedia.com  

 

--

 

Date: Mon, 12 Oct 2009 12:06:05 -0500

From: Andrew Sinning 

Subject: [Flashcoders] how to set DataGridColumn textAlign

To: Flash Coders 

Message-ID: <4ad361fd.9020...@learningware.com>

Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 

I'm trying to set the textAlign of a column in the DataGrid component.  

There are examples of how to do this in Flex, but the required 

methods/properties seem to be missing from fl...DataGridColumn.

 

Thanks!

 

 

--

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Metadata in actionscript files

2009-10-14 Thread Dave Watts
> So my question now becomes:
>
> Are there only two types of metadata used in actionscript classes, being SWF 
> and
> EMBED?

No, there are other metadata tags, such as Bindable, Event,
RemoteClass and Managed. A partial list is available here:

http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_3.html

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] SWF compiling

2009-10-14 Thread John Bertrand
For Actionscript 3 (specifically Flash Player 9+) is it correct to say there 
are no longer any third party actionscript compilers?

So to create a SWF file, you have 2 options - 1) the Flash IDE OR 2) FlexSDK.

The reason I ask is because I'm confused when an actionscript class contains a 
SWF tag, eg:

[SWF(backgroundColor="#00", frameRate="60", quality="LOW", width="800", 
height="600")]

What does this do because it seems to me that FlexBuilder ignores this and I 
know the Flash IDE ignore it?








  
__
Get more done like never before with Yahoo!7 Mail.
Learn more: http://au.overview.mail.yahoo.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Metadata in actionscript files

2009-10-14 Thread John Bertrand
Ignore that last question. The SWF metadata is very much used when compiling in 
FlexBuilder.

So my question now becomes:

Are there only two types of metadata used in actionscript classes, being SWF 
and EMBED?

Thanks.



  
__
Get more done like never before with Yahoo!7 Mail.
Learn more: http://au.overview.mail.yahoo.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders