Re: [Flashcoders] fms application class

2007-08-09 Thread Dennis - I Sioux

Hey,

The client is not really an instance of the connection, but a representation 
of the client connected (an id in form of an obj)..
Because FMS wouldn't want any client to call any function. for security 
reasons (otherwise you could never build anything secure on it),
clients can only Call functions that are connected on the client (object 
that represents themself on the server).


So it's not like when you add a function at the fms to the client.. what you 
think is the direct connection.. that it would go tru the line to the 
clients pc and add it there.

(if i'm guessing your thoughts right) :)

With kind regards,

Dennis
I Sioux

- Original Message - 
From: [p e r c e p t i c o n] [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, August 09, 2007 12:51 AM
Subject: Re: [Flashcoders] fms application class



hey Andy,
thanks, yes this helps alot...i was confused about the client having the
definition and conceptually i still don't get what's remote about it...the
clientObj is an instance of the connection right? and that's instantiated
on the client-side right?...anyway as long as it works i'm not going to
quibble too much :)

p



On 8/8/07, Andy Herrman [EMAIL PROTECTED] wrote:


The only way for a client to call a method is for that method to exist
on the Client's object.  That's just the way the Flash RPC stuff
works.  You can either add it to the Client prototype (which I don't
like) or add it to the client object after they connect (my preferred
way).

For instance:

application.onConnect = function(oClient, oParams) {
  this.acceptConnection(oClient);
  oClient.helloServer = function() {
trace(Hello Server);
  };
}

Or, you can get fancy and do some delegate-style work so that your
actual function is defined on application (or some other object):

application.helloServer = function() {
  trace(Hello Server);
}

application.onConnect = function(oClient, oParams) {
  this.acceptConnection(oClient);
  oClient.oScope = this;
  oClient.helloServer = function() {
this.oScope.helloServer.apply(this.oScope, arguments); };
}

The reason you're getting an error about the function not existing is
that it doesn't.  When the client makes a call the server looks for a
function of the given name on the client's object.  If it doesn't
exist you get an error.

I hope that helps!

  -Andy

On 8/8/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote:
 hi Andy,
 the server logs indicate that the method isn't defined...

 however if i define it using Client.helloServer = function()

 it seems to work, but my concern is that this isn't really remote...i
want
 the client to call the application's method

 thanks


 p

 On 8/8/07, Andy Herrman [EMAIL PROTECTED] wrote:
 
  Your syntax looks fine.  What do you mean by it isn't recognized as 
  a

  method?
 
-Andy
 
  On 8/8/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote:
   Hi folks,
  
   i know htis isn't the fms list, but can anyone tell how to define a
  method
   in the asc file... for example
  
   i tried to define a method like this
  
   application.helloServer = function()
   {
   trace(hello from server);
   }
  
   but it isn't recognized as a method...
  
   i'm trying to not have to define it on the client side as a member
of
  the
   NetConnection object...
  
  
   thanks
  
   p
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier 

Re: [Flashcoders] connect to fms using as3

2007-08-09 Thread Brian Lesser

Hi,

I did a short tutorial on some basics of connecting Flex 2/FMS:

http://flash-communications.net/technotes/fms2/flex2FMS/index.html

To set the encoding:

NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;

Yours truly,
-Brian

[p e r c e p t i c o n] wrote:


hello experts...
i'm trying to connect to an fms2 server using as3 like this...

 connection = new NetConnection();
 connection.addEventListener(NetStatusEvent.NET_STATUS,
netStatusHandler);
 connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
securityErrorHandler);

 connection.connect(rtmp://localhost/myApp/_definst_);

however, i keep getting a connection error stating that there's a problem
with object encoding...is there an upgrade for fms2 i should know about?

thanks

p
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
 




--
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD??  E-mail: [EMAIL PROTECTED]
(Enter through LB99)   Web: http://www.ryerson.ca/~blesser
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re[2]: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-09 Thread R�kos Attila

Base64 is superfluous here, since you can load raw binary data - see
URLLoader.dataFormat.

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Muzak [EMAIL PROTECTED]
To:  flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com
Date:Thursday, August 9, 2007, 4:37:02 AM
Subject: [Flashcoders] Prevent flash from caching the loaded assets
--===--
With AS3 you can load the image as binary data (Base64 encoded).


import flash.events.*;
import flash.net.*;
import flash.display.Loader;
import flash.utils.ByteArray;
import com.dynamicflash.util.Base64;

var url:String = 
http://www.muzakdeezign.com/flashcoders/binary_image/image.cfm;
var imgLoader:Loader;
var imgReq:URLRequest;
var imgURLLoader:URLLoader;

function imgLoaderCompleteHandler(evt:Event):void {
 trace(Application ::: imgLoaderCompleteHandler);
 var imgData:ByteArray = Base64.decodeToByteArray(evt.currentTarget.data);
 imgLoader = new Loader();
 imgLoader.loadBytes(imgData);
 addChild(imgLoader);
}

imgReq = new URLRequest(url);

imgURLLoader = new URLLoader();
imgURLLoader.addEventListener(Event.COMPLETE, imgLoaderCompleteHandler);
imgURLLoader.load(imgReq);



// see it in action
http://www.muzakdeezign.com/flashcoders/binary_image/load_binary.html


The Coldfusion file contains the following:

cfsetting enablecfoutputonly=yes showdebugoutput=no
cfcontent type=application/x-shockwave-flash /

cfset imgPath = ExpandPath(leaves.jpg) /
cffile action=readBinary file=#imgPath# variable=imgBinary /
cfset img64 = toBase64(imgBinary) /

cfoutput#img64#/cfoutput


Note that I added a cfcontent tag that changes the content type to Flash, so 
when viewing the cfm page directly in your browser, it 
will *try* to display an swf (and fail) ;-)
http://www.muzakdeezign.com/flashcoders/binary_image/image.cfm

I used a Binary64 class to convert the loaded binary data to ByteArray.
http://www.dynamicflash.com/goodies/base64

regards,
Muzak


- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, August 09, 2007 1:56 AM
Subject: Re: [Flashcoders] Prevent flash from caching the loaded assets


A solution is to convert the image into a textfile which is then used to draw 
the image on the screen using bitmap drawing tools.

 This, of course, is easily hacked by anybody with a copy of Flash because 
 they can read your textfile and draw the bitmap 
 themselves.

 The next step is to encrypt that textfile.  Problem is, you have to put your 
 decryption code inside of Flash, which is, of course, 
 easily hacked by anybody with a free copy of SoThink.

 You cannot make secure games in Flash unless all logic is on the server and 
 Flash becomes a dumb interface.  This isn't going to 
 be possible with your game because you're using a mask to reveal an image.  
 You're also trying to control the browser and the OS 
 file system from inside a plug-in running in that browser.  Give up on that 
 idea.

 Basically, you're trying to secure an open file format (swf).  You cannot do 
 this.  Any swf files you put on any public server can 
 be downloaded and decompiled by anyone.  Flash source code is never safe.

 If you don't like that Flash isn't secure and is an open-format, then I 
 suggest you write a letter to Adobe, ATTN: Circular File.

 In other words, forget it.  Flash is not secure because it is open and that's 
 how it is.  If you want to do something like this, 
 you will have to use a lower-level technology, but I'm doubtful a Java 
 plug-in will support what you're trying to do, either.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Dang IE...

2007-08-09 Thread Marcelo Volmaro
It's a problem with External Interface under IE. Check  
http://www.extremefx.com.ar/blog/fixing-flash-external-interface-inside-form-on-internet-explorer


Regards,

On Wed, 08 Aug 2007 20:44:36 -0300, Dave Mennenoh  
[EMAIL PROTECTED] wrote:


Anyone seen this? In IE I am getting this error: Line: 1, Char: 86,  
Object doesn't support this property or method, Code:0


Page validates with the W3 school's validator service. Works without  
error in FF. Works fine in IE, but generates this error that I cannot  
figure out, and my client is not liking it...


The URL: http://65.211.160.184

Still in testing...but almost ready to launch...



Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/  
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
_
Marcelo Volmaro
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: AS3/Flex: F8 swf / flv Performance Issues

2007-08-09 Thread Jer Brand
Uploaded a sample to http://aut0poietic.us/index.html.

I should mention that this is happening in IE and FF. Test computer spec is
a AMD 64 X2 3400+ / 2G Ram.

Has anyone else seen this?

On 8/8/07, Jer Brand [EMAIL PROTECTED] wrote:

 Noob at Flex:  Been toying with converting a project over from Flash 8 to
 Flex using FlashDevelop 3 Beta + SDK.

 I've noticed that when I embed a Flash 8 swf containing a masked flv, CPU
 usage goes through the roof -- bouncing between 75 and 100% as the swf
 plays. The equivalent flash 8 layout uses about max 40% on load and drops
 back to a (relatively speaking) reasonable 10-20%. If I remove this swf from
 the flex layout, processor usage peaks at 60 on load, and drops to 0-8%.

 In the previous Flash design, this was the focal point of the layout, so
 I'm loath to give it up and use something static. Am I doing something wrong
 or is this just a fact of life?

 What I'm doing:

 The swf was built in flash 8 and contains a FLV file embedded, with a
 movieclip over the flv allowing only a portion of the flv to be seen.

 The flex uses an embed statement in the main mxml file's script, and
 assigns the embedded clip to an image:

 [Embed(source=centerMovie.swf)]
 [Bindable]
 public var centerMovie:Class ;

 ...

 mx:Image id=centerMovieAut0poietic source={centerMovie}
 scaleContent=false verticalAlign=top/mx:Image



 centerMovie.swf is about 300k (which is a bit obscene, but I can refine
 once I get things working).

 Anyone have any suggestions?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re[2]: [Flashcoders] Fuse is adding up instead of tweening the difference

2007-08-09 Thread R�kos Attila

Values obtained from XML attributes are always strings, but the
compiler doesn't know about that, since XMLNode.attributes is a simple
Object, hence no type hinting available (there is no such problem with
XMLNode.nodeValue, since it is declared as String).

MdMS I assign it to a variable of type number.
MdMS I thought that this would be enought to typecast my XML
MdMS retrieved untyped value to number

No, the compiler doesn't cast anything. Type checking is a
compile-time process, while casting values is a run-time one. There is
only type hinting in AS2, which means that during the compilation the
compiler doesn't allow using incompatible values if it knows both the
type of value to be used and the type of the required value where it
would be used. If one or another is unknown (no type hint) the
compiler cannot perform type checking and silently passes over that.
Hinting the type of a variable doesn't mean that it cannot hold values
of another types - it is only some help for the compiler for trying to
detect and avoid such situations. So when you assign the value of a
variable, which holds a string, but has no type hint (as members of
Object), to another variable, which is typed as Number, actually the
latter variable will contain the same string value.

Do not forget, that in fact AS2 compiler is a preprocessor only, which
produces the same output as AS1. If something cannot be done in AS1,
it cannot be done in AS2, too.

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Marcelo de Moraes Serpa [EMAIL PROTECTED]
To:  Rákos Attila [EMAIL PROTECTED]
Date:Thursday, August 9, 2007, 3:18:32 AM
Subject: [Flashcoders] Fuse is adding up instead of tweening the difference
--===--
Hi Rákos,

Typecasting to Number() did the trick (i.e: Number(initHeight)). I'm intrigued 
however.

Let me explain: The value comes untyped from a XML file (loadedthrough pixlib's 
ConfigLoader). Once it is in the player (untypedObject), I assign it to a 
variable of type number. Then I pass it to amethod that then does the following:

var initWidth:Number = initialWidth;
var initHeight:Number = initialHeight;

I thought that this would be enought to typecast my XML retrieved untyped value 
to number but it seems that, even though I'm typing the variables to be a 
Number (var:Number), FlashPlayers doesn't typecast the values to Number. It 
only does so if Iexplicity call the typecast function Number() passing the 
variable asan argument. Is this expected behaviour for ActionScript 2 ?

Thanks again,

Marcelo.

On 8/8/07, Rákos Attila [EMAIL PROTECTED] wrote:

Number values mean absolute positions and string values mean relative
positions. This is a documented feature :)

 Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Marcelo de Moraes Serpa [EMAIL PROTECTED]
To:  Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:Wednesday, August 8, 2007, 11:13:34 PM
Subject: [Flashcoders] Fuse is adding up instead of tweening the difference
--===--
Hey guys, I'm having a really weird issue here. If someone could help me, I
would be really grateful.

I'm using the Fuse Kit (and ZigoEngine) to do the tweens of my AS2 Ria.

I've a MovieClip which gets stretched up and then after some seconds, needs
to get to its original size.

If I put the actual values of the width and height in the sequence (ex:
width:100,height:100) or typecast the variable to Number (which makes no
sense since it **is** already a Number) Fuse tweens the MovieClip from the
actual width,height to 100,100. However, if I use a variable, Fuse seems to
add to the current width,height, making the MovieClip even bigger instead of
tweening it to its original size.

These values are retrieved from a XML file using PixLib's ConfigLoader
class.

Here's the code:

initWidth:Number = this._initialWidth;
initHeight:Number = this._initialHeight;

var f:Fuse = new Fuse(
{
target:this.view,
start_width:this.view._width,
start_height:this.view._height,
width:initWidth, //If I put a number here, it works
height:initHeight, //If I put a number here, it works
x:this._initialGrid_x,
y:this._initialGrid_y,
ease: easeOutBack
});

f.start();
(...)

**However**, if I typecast the initWidth and initHeight like this:

var f:Fuse = new Fuse(
{
target:this.view,
start_width:this.view._width,
start_height:this.view._height,
width:Number(initWidth),  //or put the actual value, such as 100
height:Number(initHeight), //or put the actual value, such as 100
x:this._initialGrid_x,
y:this._initialGrid_y,
ease: easeOutBack
});

f.start();
(...)


...It works as expected (it tweens-down to 100, not adds-up to the current
width,height). However, I have no idea why... could someone enlighten me on
it ?

Thanks in advance,

Marcelo.

Re: [Flashcoders] Dynamically setting properties...

2007-08-09 Thread Ron Wheeler

I would think that the trace on a_sprite would be more interesting.
I am not sure what

  a_sprite[i] = obj[i];

is actually supposed to do.
The code extract does not show how a_sprite[i] comes into existence or 
what a_sprite[i] is.

To my untrained eye it looks like you are creating an array of  obj's.
To use them, you would need to do
   myobj=a_sprite[1]
   trace (myobj.getProperty1());  //show the value of property1 from 
the second obj in a_sprite.


I may be all wet but it would be helpful to see more of the code and to 
see the results of the traces.


Saying that you put traces in and everything is fine and matches up but 
still does not work does not give us much to go on.
The classical bug description would be helpful. Here is what I did. 
This is what I expected. This is what happened


Ron


Karim wrote:

Already added the trace, all props in my obj are fine and match up with the
getter/setters in the class. 


FYI: I am adding these properties to instances of classes ( that extend
movieclip, project is AS2)..


Karim


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JOR
Sent: 08 August 2007 18:22
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Dynamically setting properties...

What is the error you're getting?

Maybe add a trace statement in there to see where it's breaking.  You 
could be trying to set a property that exists only in obj but not in 
a_sprite.


for ( var i in obj ) {
   trace (i +  =  + obj[i]);
   a_sprite[i] = obj[i];
}

-- James


James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Karim Beyrouti wrote:
  

Hi List,


I am trying to add values to properties a classes, the classes properties
are defined like this:

function get isActive():Boolean{ return _isActive; }
function set isActive( val:Boolean):Void{ _isActive= val; }

 so instead of douing this to add values to the class:

if ( obj.isActive!= undefined ) myClass.isActive = obj.isActive

I am trying to do something like this ( as I have quite a lot of


properties
  

/ different classes ):

for ( var i in obj ) {

a_sprite[i] = obj[i]

}

But no joy... and well... has anyone been there with this one.?...


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.11.8/941 - Release Date: 07/08/2007

16:06
 


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.11.8/941 - Release Date: 07/08/2007

16:06
 
  



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re[2]: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-09 Thread Muzak
You can't send raw binary data over http, it has to be Base64 encoded.

This part is required in the Coldfusion page:
 cfset img64 = toBase64(imgBinary) /
 cfoutput#img64#/cfoutput

Coldfusion throws an error when using the following:

cfsetting enablecfoutputonly=yes showdebugoutput=no
cfset imgPath = ExpandPath (leaves.jpg) /
cffile action=readBinary file=#imgPath# variable=imgBinary
cfoutput#imgBinary#/cfoutput

quote
ByteArray objects cannot be converted to strings
/quote

If you'd use remoting or a socket, then the Base64 encoding is not required.

regards,
Muzak

- Original Message - 
From: Rkos Attila [EMAIL PROTECTED]
To: Muzak flashcoders@chattyfig.figleaf.com
Sent: Thursday, August 09, 2007 2:03 PM
Subject: Re[2]: [Flashcoders] Prevent flash from caching the loaded assets



 Base64 is superfluous here, since you can load raw binary data - see
 URLLoader.dataFormat.

  Attila

 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 From:Muzak [EMAIL PROTECTED]
 To:  flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com
 Date:Thursday, August 9, 2007, 4:37:02 AM
 Subject: [Flashcoders] Prevent flash from caching the loaded assets
 --===--
 With AS3 you can load the image as binary data (Base64 encoded).


 import flash.events.*;
 import flash.net.*;
 import flash.display.Loader;
 import flash.utils.ByteArray;
 import com.dynamicflash.util.Base64;

 var url:String = 
 http://www.muzakdeezign.com/flashcoders/binary_image/image.cfm;
 var imgLoader:Loader;
 var imgReq:URLRequest;
 var imgURLLoader:URLLoader;

 function imgLoaderCompleteHandler(evt:Event):void {
 trace(Application ::: imgLoaderCompleteHandler);
 var imgData:ByteArray = Base64.decodeToByteArray(evt.currentTarget.data);
 imgLoader = new Loader();
 imgLoader.loadBytes(imgData);
 addChild(imgLoader);
 }

 imgReq = new URLRequest(url);

 imgURLLoader = new URLLoader();
 imgURLLoader.addEventListener(Event.COMPLETE, imgLoaderCompleteHandler);
 imgURLLoader.load(imgReq);



 // see it in action
 http://www.muzakdeezign.com/flashcoders/binary_image/load_binary.html


 The Coldfusion file contains the following:

 cfsetting enablecfoutputonly=yes showdebugoutput=no
 cfcontent type=application/x-shockwave-flash /

 cfset imgPath = ExpandPath(leaves.jpg) /
 cffile action=readBinary file=#imgPath# variable=imgBinary /
 cfset img64 = toBase64(imgBinary) /

 cfoutput#img64#/cfoutput


 Note that I added a cfcontent tag that changes the content type to Flash, so 
 when viewing the cfm page directly in your browser, 
 it
 will *try* to display an swf (and fail) ;-)
 http://www.muzakdeezign.com/flashcoders/binary_image/image.cfm

 I used a Binary64 class to convert the loaded binary data to ByteArray.
 http://www.dynamicflash.com/goodies/base64

 regards,
 Muzak




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re[4]: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-09 Thread R�kos Attila

I don't know what Coldfusion can do or cannot do (I'm not familiar
with it), but HTTP _is_ capable for sending binary data without
any encodings. So if you cannot send binary data from Coldfusion then
it is a limitation in Coldfusion itself and not in HTTP.

However if you are using base64 here as an encryption for making
harder to obtain the downloaded image from browser's cache, then
that's OK :)

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Muzak [EMAIL PROTECTED]
To:  Rkos Attila [EMAIL PROTECTED]
Date:Thursday, August 9, 2007, 3:05:01 PM
Subject: [Flashcoders] Prevent flash from caching the loaded assets
--===--
You can't send raw binary data over http, it has to be Base64 encoded.

This part is required in the Coldfusion page:
 cfset img64 = toBase64(imgBinary) /
 cfoutput#img64#/cfoutput

Coldfusion throws an error when using the following:

cfsetting enablecfoutputonly=yes showdebugoutput=no
cfset imgPath = ExpandPath (leaves.jpg) /
cffile action=readBinary file=#imgPath# variable=imgBinary
cfoutput#imgBinary#/cfoutput

quote
ByteArray objects cannot be converted to strings
/quote

If you'd use remoting or a socket, then the Base64 encoding is not required.

regards,
Muzak

- Original Message - 
From: Rkos Attila [EMAIL PROTECTED]
To: Muzak flashcoders@chattyfig.figleaf.com
Sent: Thursday, August 09, 2007 2:03 PM
Subject: Re[2]: [Flashcoders] Prevent flash from caching the loaded assets



 Base64 is superfluous here, since you can load raw binary data - see
 URLLoader.dataFormat.

  Attila

 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 From:Muzak [EMAIL PROTECTED]
 To:  flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com
 Date:Thursday, August 9, 2007, 4:37:02 AM
 Subject: [Flashcoders] Prevent flash from caching the loaded assets
 --===--
 With AS3 you can load the image as binary data (Base64 encoded).


 import flash.events.*;
 import flash.net.*;
 import flash.display.Loader;
 import flash.utils.ByteArray;
 import com.dynamicflash.util.Base64;

 var url:String = 
 http://www.muzakdeezign.com/flashcoders/binary_image/image.cfm;
 var imgLoader:Loader;
 var imgReq:URLRequest;
 var imgURLLoader:URLLoader;

 function imgLoaderCompleteHandler(evt:Event):void {
 trace(Application ::: imgLoaderCompleteHandler);
 var imgData:ByteArray = Base64.decodeToByteArray(evt.currentTarget.data);
 imgLoader = new Loader();
 imgLoader.loadBytes(imgData);
 addChild(imgLoader);
 }

 imgReq = new URLRequest(url);

 imgURLLoader = new URLLoader();
 imgURLLoader.addEventListener(Event.COMPLETE, imgLoaderCompleteHandler);
 imgURLLoader.load(imgReq);



 // see it in action
 http://www.muzakdeezign.com/flashcoders/binary_image/load_binary.html


 The Coldfusion file contains the following:

 cfsetting enablecfoutputonly=yes showdebugoutput=no
 cfcontent type=application/x-shockwave-flash /

 cfset imgPath = ExpandPath(leaves.jpg) /
 cffile action=readBinary file=#imgPath# variable=imgBinary /
 cfset img64 = toBase64(imgBinary) /

 cfoutput#img64#/cfoutput


 Note that I added a cfcontent tag that changes the content type to Flash, so 
 when viewing the cfm page directly in your browser, 
 it
 will *try* to display an swf (and fail) ;-)
 http://www.muzakdeezign.com/flashcoders/binary_image/image.cfm

 I used a Binary64 class to convert the loaded binary data to ByteArray.
 http://www.dynamicflash.com/goodies/base64

 regards,
 Muzak



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Dang IE...

2007-08-09 Thread Dave Mennenoh

It's a problem with External Interface under IE.


Actually it was not. ExternalInterface works fine... It was a problem with 
SWFObject - in that I had the name of the object's ID set to that of the 
div. IE didn't like that I guess. All fixed now, but thanks.



Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: AS3/Flex: F8 swf / flv Performance Issues

2007-08-09 Thread Troy Rollins


On Aug 9, 2007, at 8:41 AM, Jer Brand wrote:


Uploaded a sample to http://aut0poietic.us/index.html.

I should mention that this is happening in IE and FF. Test computer  
spec is

a AMD 64 X2 3400+ / 2G Ram.

Has anyone else seen this?


Take heart - on my Mac G5x4 it is only using about 15%.  ;-)

A couple of things to consider trying:

1) I notice this is the debug version of the movie. Perhaps check the  
standard version to see if there is a difference.


2) Republish the swf to Flash 9 AVM2

3) Perform the masking in Flex rather than in the swf.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Drop Area Text Field

2007-08-09 Thread Vivek Gaikwad
Hi,

I am trying to create a drag  drop activity, wherein there will be 4
options provided which we need to drag n drop on to the _ in the
question.

eg:

Q1. The addition of 4 and 5 is __.

a. 10
b. 3
c. 9
d. 7

All the options will be different movieclips. The question is a dynamic text
field. My problem is how will I get the dropArea? which is _.

 

Stuck with this.

 

peace, veiky

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] doLater woes

2007-08-09 Thread Mendelsohn, Michael
Hi list...

I can't get a doLater working for a V2 ComboBox in a movieclip attached
to the stage (_root.mc.cb).

I want the doLater to call a function that lives in a subclass that's
been instanced by my singleton.
i.e.: _root.mc.cb.doLater(_root.singleton.subclass, someFunction)

The help says: componentInstance.doLater(target, function)
target: A reference to a timeline that contains the specified function.

I tried putting the function on the _root timeline, but that hasn't
worked either.  Any ideas are greatly appreciated.

Thanks,
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Dang IE...

2007-08-09 Thread David Ngo
ID's for HTML DOM objects should always be unique.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Mennenoh
Sent: Thursday, August 09, 2007 10:05 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Dang IE...

It's a problem with External Interface under IE.

Actually it was not. ExternalInterface works fine... It was a problem with 
SWFObject - in that I had the name of the object's ID set to that of the 
div. IE didn't like that I guess. All fixed now, but thanks.


Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-09 Thread Niels Endlich

Just saw this solutions. This is what I need. No caching on the client. 
We try to implement this solution in our project. I'll let you know if
works also with PHP. 

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Muzak
Verzonden: donderdag 9 augustus 2007 4:37
Aan: flashcoders@chattyfig.figleaf.com
Onderwerp: Re: [Flashcoders] Prevent flash from caching the loaded
assets

With AS3 you can load the image as binary data (Base64 encoded).


import flash.events.*;
import flash.net.*;
import flash.display.Loader;
import flash.utils.ByteArray;
import com.dynamicflash.util.Base64;

var url:String =
http://www.muzakdeezign.com/flashcoders/binary_image/image.cfm;
var imgLoader:Loader;
var imgReq:URLRequest;
var imgURLLoader:URLLoader;

function imgLoaderCompleteHandler(evt:Event):void {
 trace(Application ::: imgLoaderCompleteHandler);
 var imgData:ByteArray =
Base64.decodeToByteArray(evt.currentTarget.data);
 imgLoader = new Loader();
 imgLoader.loadBytes(imgData);
 addChild(imgLoader);
}

imgReq = new URLRequest(url);

imgURLLoader = new URLLoader();
imgURLLoader.addEventListener(Event.COMPLETE, imgLoaderCompleteHandler);
imgURLLoader.load(imgReq);



// see it in action
http://www.muzakdeezign.com/flashcoders/binary_image/load_binary.html


The Coldfusion file contains the following:

cfsetting enablecfoutputonly=yes showdebugoutput=no
cfcontent type=application/x-shockwave-flash /

cfset imgPath = ExpandPath(leaves.jpg) /
cffile action=readBinary file=#imgPath# variable=imgBinary /
cfset img64 = toBase64(imgBinary) /

cfoutput#img64#/cfoutput


Note that I added a cfcontent tag that changes the content type to
Flash, so when viewing the cfm page directly in your browser, it 
will *try* to display an swf (and fail) ;-)
http://www.muzakdeezign.com/flashcoders/binary_image/image.cfm

I used a Binary64 class to convert the loaded binary data to ByteArray.
http://www.dynamicflash.com/goodies/base64

regards,
Muzak


- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, August 09, 2007 1:56 AM
Subject: Re: [Flashcoders] Prevent flash from caching the loaded assets


A solution is to convert the image into a textfile which is then used
to draw the image on the screen using bitmap drawing tools.

 This, of course, is easily hacked by anybody with a copy of Flash
because they can read your textfile and draw the bitmap 
 themselves.

 The next step is to encrypt that textfile.  Problem is, you have to
put your decryption code inside of Flash, which is, of course, 
 easily hacked by anybody with a free copy of SoThink.

 You cannot make secure games in Flash unless all logic is on the
server and Flash becomes a dumb interface.  This isn't going to 
 be possible with your game because you're using a mask to reveal an
image.  You're also trying to control the browser and the OS 
 file system from inside a plug-in running in that browser.  Give up on
that idea.

 Basically, you're trying to secure an open file format (swf).  You
cannot do this.  Any swf files you put on any public server can 
 be downloaded and decompiled by anyone.  Flash source code is never
safe.

 If you don't like that Flash isn't secure and is an open-format, then
I suggest you write a letter to Adobe, ATTN: Circular File.

 In other words, forget it.  Flash is not secure because it is open and
that's how it is.  If you want to do something like this, 
 you will have to use a lower-level technology, but I'm doubtful a Java
plug-in will support what you're trying to do, either.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Using Flex Library SWC in Flash CS3

2007-08-09 Thread Derek Vadneau
Someone asked this in the Flexcoders list without response for quite a 
while, so maybe this is a better place to ask this question, since it 
involves Flash.

Is it possible to use an SWC created in Flex 2 in Flash CS3? The SWC is a 
Flex Library project that contains no Flex framework-specific code. When I 
include the SWC in the Flash classpath the compiler is happy, but running 
the SWF produces a VerifyError that says the class could not be found.

I know I could just point to the actual AS files, but I want to be able to 
distribute an SWC file.

In Flex Builder there are options for SWCs: merge into code, external, 
RSL. Is there any such option in Flash CS3? It seems like SWCs are treated 
as external.



Derek Vadneau

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Finding a spot on a curveTo Line

2007-08-09 Thread eric e. dolecki
Quick question...

I have a curveTo between points, but I'd like to get the x,y 1/2 way through
the curve, ON the curve. Googling for some code but haven't seen it yet...

I basically want to join another line to the midpoint of the curve, and the
curve is dynamically moving throughout

- eric
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Finding a spot on a curveTo Line

2007-08-09 Thread Frank Pepermans
This should do it :

public function getPositionOnCurve(p1:Point, p2:Point, p3:Point, 
t:Number):Point {
var pos:Point = new Point();
pos.x = Math.pow((1-t), 
2)*p1.x+2*t*(1-t)*p2.x+Math.pow(t, 2)*p3.x;
pos.y = Math.pow((1-t), 
2)*p1.y+2*t*(1-t)*p2.y+Math.pow(t, 2)*p3.y;
return pos;
}

P1 is the start point of the curve (moveTo(p1.x, p1.y))
P2 the control point
P3 the end point (curveTo(p2.x, p2.y, p3.x, p3.y))
T is a number between 0 and 1, .5 for halfway

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eric e. dolecki
Sent: 09 August 2007 17:19
To: Flashcoders mailing list
Subject: [Flashcoders] Finding a spot on a curveTo Line

Quick question...

I have a curveTo between points, but I'd like to get the x,y 1/2 way through
the curve, ON the curve. Googling for some code but haven't seen it yet...

I basically want to join another line to the midpoint of the curve, and the
curve is dynamically moving throughout

- eric
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] Finding a spot on a curveTo Line

2007-08-09 Thread Zeh Fernando

Quick question...
I have a curveTo between points, but I'd like to get the x,y 1/2 way through
the curve, ON the curve. Googling for some code but haven't seen it yet...
I basically want to join another line to the midpoint of the curve, and the
curve is dynamically moving throughout


A quick way is to use Penner's pointOnCurve...

findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return {x:p1x + t*(2*(1-t)*(cx-p1x) + t*(p2x - p1x)),
y:p1y + t*(2*(1-t)*(cy-p1y) + t*(p2y - p1y))};
};

t is 0-1.

It will give you some distortion on the position over the curve 
depending on the angle, and desired position. If you use just halfway 
(0.5) it'll work perfectly though.


Same calculation and more information:
http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Quadratic_B.C3.A9zier_curves

Zeh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] ActiveContent is not enforcing minimum Flash version

2007-08-09 Thread Marc Hoffman
I have published html with the active content template, to require 
Player version 8 and above. But users with lower versions are still 
getting into the site, resulting in some critical elements (notably, 
my navigation menu) being broken. The site is:

http://www.newellcoach.com/flash.html

Is there something wrong with the code that is allowing users of the 
wrong version to proceed without an upgrade alert? Anyone else 
encountering this problem? Fixes?


The html script is below. Thanks for any help!

Marc Hoffman

= html script 

html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /
titleNewell Coach Luxury Motorhomes/title
script language=javascriptAC_FL_RunContent = 0;/script
script src=AC_RunActiveContent.js language=javascript/script
/head

body bgcolor=#0B111F
table width='100%' height='100%'trtd width='100%' height='100%' 
align='center' valign='middle'

!-- saved from url=(0013)about:internet --
script language=javascript
if (AC_FL_RunContent == 0) {
alert(This page requires AC_RunActiveContent.js. In 
Flash, run \Apply Active Content Update\ in the Commands menu to 
copy AC_RunActiveContent.js to the HTML output folder.);

} else {
AC_FL_RunContent(
'bgcolor', '#0B111F',
'codebase', 
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',

'width', '900',
'height', '620',
'src', 'interiorPage',
'quality', 'high',
'pluginspage', 
'http://www.macromedia.com/go/getflashplayer',

'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'interiorPage',
'name', 'interiorPage',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'interiorPage',
'salign', ''
); //end AC code
}
/script

noscript
object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0; 
width=900 height=620 id=interiorPage align=middle

param name=allowScriptAccess value=sameDomain /
param name=movie value=interiorPage.swf /param 
name=quality value=high /param name=bgcolor value=#0B111F 
/embed src=interiorPage.swf quality=high bgcolor=#0B111F 
width=900 height=620 name=interiorPage align=middle 
allowScriptAccess=sameDomain type=application/x-shockwave-flash 
pluginspage=http://www.macromedia.com/go/getflashplayer; /

/object
/noscript
/td/tr/table
script src=http://www.google-analytics.com/urchin.js; type=text/javascript
/script
script type=text/javascript
_uacct = UA-992189-1;
urchinTracker();
/script/body
/html

===  end html script  
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Finding a spot on a curveTo Line

2007-08-09 Thread eric e. dolecki
you guys rock - i'll implement this soon™ and report back.

doesn't matter which way the curve is i imagine (convex/concave)

On 8/9/07, Zeh Fernando [EMAIL PROTECTED] wrote:

  Quick question...
  I have a curveTo between points, but I'd like to get the x,y 1/2 way
 through
  the curve, ON the curve. Googling for some code but haven't seen it
 yet...
  I basically want to join another line to the midpoint of the curve, and
 the
  curve is dynamically moving throughout

 A quick way is to use Penner's pointOnCurve...

 findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
 return {x:p1x + t*(2*(1-t)*(cx-p1x) + t*(p2x - p1x)),
 y:p1y + t*(2*(1-t)*(cy-p1y) + t*(p2y - p1y))};
 };

 t is 0-1.

 It will give you some distortion on the position over the curve
 depending on the angle, and desired position. If you use just halfway
 (0.5) it'll work perfectly though.

 Same calculation and more information:

 http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Quadratic_B.C3.A9zier_curves

 Zeh
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] ActiveContent is not enforcing minimum Flash version

2007-08-09 Thread Marc Hoffman
For some reason, my code was stripped out from the message I just 
posted. Trying once more to include it, but if you cannot see it 
please view it at the URL below.  Thanks --Marc


At 08:49 AM 8/9/2007, Marc Hoffman wrote:
I have published html with the active content template, to require 
Player version 8 and above. But users with lower versions are still 
getting into the site, resulting in some critical elements (notably, 
my navigation menu) being broken. The site is:

http://www.newellcoach.com/flash.html

Is there something wrong with the code that is allowing users of the 
wrong version to proceed without an upgrade alert? Anyone else 
encountering this problem? Fixes?


The html script is below. Thanks for any help!

Marc Hoffman

= html script 


html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /
titleNewell Coach Luxury Motorhomes/title
script language=javascriptAC_FL_RunContent = 0;/script
script src=AC_RunActiveContent.js language=javascript/script
/head

body bgcolor=#0B111F
table width='100%' height='100%'trtd width='100%' 
height='100%' align='center' valign='middle'

!-- saved from url=(0013)about:internet --
script language=javascript
if (AC_FL_RunContent == 0) {
alert(This page requires AC_RunActiveContent.js. 
In Flash, run \Apply Active Content Update\ in the Commands menu 
to copy AC_RunActiveContent.js to the HTML output folder.);

} else {
AC_FL_RunContent(
'bgcolor', '#0B111F',
'codebase', 
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',

'width', '900',
'height', '620',
'src', 'interiorPage',
'quality', 'high',
'pluginspage', 
'http://www.macromedia.com/go/getflashplayer',

'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'interiorPage',
'name', 'interiorPage',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'interiorPage',
'salign', ''
); //end AC code
}
/script

noscript
object 
classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0; 
width=900 height=620 id=interiorPage align=middle

param name=allowScriptAccess value=sameDomain /
param name=movie value=interiorPage.swf /param 
name=quality value=high /param name=bgcolor 
value=#0B111F /embed src=interiorPage.swf quality=high 
bgcolor=#0B111F width=900 height=620 name=interiorPage 
align=middle allowScriptAccess=sameDomain 
type=application/x-shockwave-flash 
pluginspage=http://www.macromedia.com/go/getflashplayer; /

/object
/noscript
/td/tr/table
script src=http://www.google-analytics.com/urchin.js; 
type=text/javascript

/script
script type=text/javascript
_uacct = UA-992189-1;
urchinTracker();
/script/body
/html


===  end html script 
___


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Dang IE...

2007-08-09 Thread Paul Andrews

Nice job, BTW.

Paul
- Original Message - 
From: Dave Mennenoh [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, August 09, 2007 3:04 PM
Subject: Re: [Flashcoders] Dang IE...



It's a problem with External Interface under IE.


Actually it was not. ExternalInterface works fine... It was a problem with 
SWFObject - in that I had the name of the object's ID set to that of the 
div. IE didn't like that I guess. All fixed now, but thanks.



Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] connect to fms using as3

2007-08-09 Thread [p e r c e p t i c o n]
Hi Brian,
Thanks so much for this...ironically enough eventually i found your link!
best
p

On 8/9/07, Brian Lesser [EMAIL PROTECTED] wrote:

 Hi,

 I did a short tutorial on some basics of connecting Flex 2/FMS:

 http://flash-communications.net/technotes/fms2/flex2FMS/index.html

 To set the encoding:

 NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;

 Yours truly,
 -Brian

 [p e r c e p t i c o n] wrote:

 hello experts...
 i'm trying to connect to an fms2 server using as3 like this...
 
   connection = new NetConnection();
   connection.addEventListener(NetStatusEvent.NET_STATUS,
 netStatusHandler);
   connection.addEventListener(
 SecurityErrorEvent.SECURITY_ERROR,
 securityErrorHandler);
 
   connection.connect(rtmp://localhost/myApp/_definst_);
 
 however, i keep getting a connection error stating that there's a problem
 with object encoding...is there an upgrade for fms2 i should know about?
 
 thanks
 
 p
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 


 --
 __
 Brian Lesser
 Assistant Director, Application Development and Integration
 Computing and Communications Services
 Ryerson University
 350 Victoria St.
 Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
 M5B 2K3Fax: (416) 979-5220
 Office: POD??  E-mail: [EMAIL PROTECTED]
 (Enter through LB99)   Web: http://www.ryerson.ca/~blesser
 __

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Drop Area Text Field

2007-08-09 Thread Hairy Dog Digital
Hi Veiky,

Not to long ago (days?) -- on this list or FlashNewbie -- someone posted a
link to http://blog.greensock.com. There is a TextMetrics class that looks
like it will be of great use in creating your droptarget for your exercise.
Essentially, you want to create an empty movie clip to the dimensions of the
bounding box of your _ string for the drop target.

...Rob



 

-Original Message-
From: Vivek Gaikwad [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 09, 2007 10:40 AM
To: flashcoders
Subject: [Flashcoders] Drop Area Text Field

Hi,

I am trying to create a drag  drop activity, wherein there will be 4
options provided which we need to drag n drop on to the _ in the
question.

eg:

Q1. The addition of 4 and 5 is __.

a. 10
b. 3
c. 9
d. 7

All the options will be different movieclips. The question is a dynamic text
field. My problem is how will I get the dropArea? which is _.

 

Stuck with this.

 

peace, veiky

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Finding a spot on a curveTo Line

2007-08-09 Thread eric e. dolecki
works like a charm. if the curve moves really fast, there is some lag in
getting a line to connect to a point on the curve, but its not too bad

On 8/9/07, eric e. dolecki [EMAIL PROTECTED] wrote:

 you guys rock - i'll implement this soon™ and report back.

 doesn't matter which way the curve is i imagine (convex/concave)

 On 8/9/07, Zeh Fernando [EMAIL PROTECTED] wrote:
 
   Quick question...
   I have a curveTo between points, but I'd like to get the x,y 1/2 way
  through
   the curve, ON the curve. Googling for some code but haven't seen it
  yet...
   I basically want to join another line to the midpoint of the curve,
  and the
   curve is dynamically moving throughout
 
  A quick way is to use Penner's pointOnCurve...
 
  findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
  return {x:p1x + t*(2*(1-t)*(cx-p1x) + t*(p2x - p1x)),
  y:p1y + t*(2*(1-t)*(cy-p1y) + t*(p2y - p1y))};
  };
 
  t is 0-1.
 
  It will give you some distortion on the position over the curve
  depending on the angle, and desired position. If you use just halfway
  (0.5) it'll work perfectly though.
 
  Same calculation and more information:
  http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Quadratic_B.C3.A9zier_curves
 
 
  Zeh
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

[Flashcoders] more fms n00b questions

2007-08-09 Thread [p e r c e p t i c o n]
hello again,
I'm trying to obtain the results of a db query on a remote server using
fms.  to achieve this I make the net connection call a method in
Main.ascthat does the remoting.  All of this works well except the
asynchronous part
of returning the results to the client (client-side swf)...can anyone point
out how i can do this without using clientObj.call method from inside the
onResult callback?

let me know if this is too vague...

thanks

p
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] OT Job Post: Flash Developer

2007-08-09 Thread Travis Rimel
Hey all- just wanted to put this up here, pardon the noise- I haven't been
on flashcoders for a while, but back since I first started using ACK and
FLEM this community has been a valuable resource to me and would love to
convince one of you to come down to balmy Texas... Here is the propaganda
from our site regarding the position...

We¹re looking for a new addition to the Terra Incognita team! If you are a
flash developer that lives, eats, and breathes AS and are looking for a
fast-paced team environment, please don¹t hesitate to contact us.

This is a fulltime, salaried position. We are based in Austin, Texas-

For more info and a look at our work please visit us at...
terraincognita.com

Thanks!

Travis Rimel
..
Terra Incognita Productions

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] more fms n00b questions

2007-08-09 Thread Brian Lesser
Not sure this is what you are looking for but if the data must be shared 
across clients some people write it into a shared object that all 
clients subscribe to - one slot per record.  Whenever the shared object 
is updated all subscribed clients automatically see the changes. 
Updating the shared object can get complex unless you simply clear and 
repopulate it. This may not be what you are looking for but there is a 
related article here:

http://www.adobe.com/devnet/flashcom/articles/improving_ria.html
Yours truly,
-Brian



[p e r c e p t i c o n] wrote:


hello again,
I'm trying to obtain the results of a db query on a remote server using
fms.  to achieve this I make the net connection call a method in
Main.ascthat does the remoting.  All of this works well except the
asynchronous part
of returning the results to the client (client-side swf)...can anyone point
out how i can do this without using clientObj.call method from inside the
onResult callback?

let me know if this is too vague...

thanks

p
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
 




--
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD B-66-C E-mail: [EMAIL PROTECTED]
(Enter through LIB-B99)Web: http://www.ryerson.ca/~blesser
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] more fms n00b questions

2007-08-09 Thread [p e r c e p t i c o n]
Hi Brian,
thanks, i have one question regarding shared objects...this may be a dumb
question, but i overheard someone say that shared objects are treated as
streams...is this correct?

thanks

b


On 8/9/07, Brian Lesser [EMAIL PROTECTED] wrote:

 Not sure this is what you are looking for but if the data must be shared
 across clients some people write it into a shared object that all
 clients subscribe to - one slot per record.  Whenever the shared object
 is updated all subscribed clients automatically see the changes.
 Updating the shared object can get complex unless you simply clear and
 repopulate it. This may not be what you are looking for but there is a
 related article here:
 http://www.adobe.com/devnet/flashcom/articles/improving_ria.html
 Yours truly,
 -Brian



 [p e r c e p t i c o n] wrote:

 hello again,
 I'm trying to obtain the results of a db query on a remote server using
 fms.  to achieve this I make the net connection call a method in
 Main.ascthat does the remoting.  All of this works well except the
 asynchronous part
 of returning the results to the client (client-side swf)...can anyone
 point
 out how i can do this without using clientObj.call method from inside the
 onResult callback?
 
 let me know if this is too vague...
 
 thanks
 
 p
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 


 --
 __
 Brian Lesser
 Assistant Director, Application Development and Integration
 Computing and Communications Services
 Ryerson University
 350 Victoria St.
 Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
 M5B 2K3Fax: (416) 979-5220
 Office: POD B-66-C E-mail: [EMAIL PROTECTED]
 (Enter through LIB-B99)Web: http://www.ryerson.ca/~blesser
 __

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash font/text super-bright issue

2007-08-09 Thread Radley Marx
Hi all,

From time to time, a dynamic TextField will appear extremely bright and/or
bold, as if the TextField is doubled up or overlapping itself.

Is anyone familiar with this issue? Any solutions?

Thnx!

-radley
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] localization opportunity.

2007-08-09 Thread Van Tuck

Listers:

My company has an encroaching deadline for a project, (beginning of  
next week basically).  They need someone to come in, (Friday /  
weekend), and setup the xml config so that all the text / some  
imagery can be loaded into the site and later be transcribed for  
other languages.  Some other minor optimization would be involved,  
but the localization is the main target.  The file has been setup  
with appropriate placeholders for all xml targeted content, and  
there's not an overwhelming amount of content that must be loaded.
If any of you are interested in checking into the project - drop an  
email to [EMAIL PROTECTED]  Thought I'd shoot the offer to the list  
before they start calling agencies...


V




On Aug 9, 2007, at 2:38 PM, [p e r c e p t i c o n] wrote:


Hi Brian,
thanks, i have one question regarding shared objects...this may be  
a dumb
question, but i overheard someone say that shared objects are  
treated as

streams...is this correct?

thanks

b


On 8/9/07, Brian Lesser [EMAIL PROTECTED] wrote:


Not sure this is what you are looking for but if the data must be  
shared

across clients some people write it into a shared object that all
clients subscribe to - one slot per record.  Whenever the shared  
object

is updated all subscribed clients automatically see the changes.
Updating the shared object can get complex unless you simply clear  
and
repopulate it. This may not be what you are looking for but there  
is a

related article here:
http://www.adobe.com/devnet/flashcom/articles/improving_ria.html
Yours truly,
-Brian



[p e r c e p t i c o n] wrote:


hello again,
I'm trying to obtain the results of a db query on a remote server  
using

fms.  to achieve this I make the net connection call a method in
Main.ascthat does the remoting.  All of this works well except the
asynchronous part
of returning the results to the client (client-side swf)...can  
anyone

point
out how i can do this without using clientObj.call method from  
inside the

onResult callback?

let me know if this is too vague...

thanks

p
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
_ 
_

Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD B-66-C E-mail: [EMAIL PROTECTED]
(Enter through LIB-B99)Web: http://www.ryerson.ca/ 
~blesser
_ 
_


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] more fms n00b questions

2007-08-09 Thread [p e r c e p t i c o n]
That's fine, but my service provider only allows so many simultaneous
streams...i'm trying to find out if this will factor into that number

thanks

p

On 8/9/07, Brian Lesser [EMAIL PROTECTED] wrote:

 Hi,
 From a developer's perspective they are not streams and are not really
 treated like streams - except that both shared objects and streams have
 a send() method you can use to broadcast a message to other clients. I'm
 told that internally SharedObjects are implemented using two streams -
 one for output and one for input - but developers don't see them. I tend
 not to use the send() method with streams but I'm sure there are lots of
 cases when it would be useful because the stream publisher does not
 receive back their own message.
 Yours truly,
 -Brian

 [p e r c e p t i c o n] wrote:

 Hi Brian,
 thanks, i have one question regarding shared objects...this may be a dumb
 question, but i overheard someone say that shared objects are treated as
 streams...is this correct?
 
 thanks
 
 b
 
 
 
 


 --
 __
 Brian Lesser
 Assistant Director, Application Development and Integration
 Computing and Communications Services
 Ryerson University
 350 Victoria St.
 Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
 M5B 2K3Fax: (416) 979-5220
 Office: POD??  E-mail: [EMAIL PROTECTED]
 (Enter through LB99)   Web: http://www.ryerson.ca/~blesser
 __

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] more fms n00b questions

2007-08-09 Thread Brian Lesser

Hi,
From a developer's perspective they are not streams and are not really 
treated like streams - except that both shared objects and streams have 
a send() method you can use to broadcast a message to other clients. I'm 
told that internally SharedObjects are implemented using two streams - 
one for output and one for input - but developers don't see them. I tend 
not to use the send() method with streams but I'm sure there are lots of 
cases when it would be useful because the stream publisher does not 
receive back their own message.

Yours truly,
-Brian

[p e r c e p t i c o n] wrote:


Hi Brian,
thanks, i have one question regarding shared objects...this may be a dumb
question, but i overheard someone say that shared objects are treated as
streams...is this correct?

thanks

b


 




--
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD??  E-mail: [EMAIL PROTECTED]
(Enter through LB99)   Web: http://www.ryerson.ca/~blesser
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: AS3/Flex: F8 swf / flv Performance Issues

2007-08-09 Thread Jer Brand
Updating:

Importing the flv using the VideoDisplay component cut the CPU utilization
down to 50-60% while looping. Moving to release had no effect. I'm feeling
that's still too high for a non-functional piece -- its just pretty, damn
it.

My testing showed the thing running at ~50% until the video ended, then
utilization dropping to 2%. Looks like I'm gonna go with an image unless
there's some magic FLV component that uses no CPU to play video ; ).

Thanks for the help Troy.

On 8/9/07, Troy Rollins [EMAIL PROTECTED] wrote:


 On Aug 9, 2007, at 8:41 AM, Jer Brand wrote:

  Uploaded a sample to http://aut0poietic.us/index.html.
 
  I should mention that this is happening in IE and FF. Test computer
  spec is
  a AMD 64 X2 3400+ / 2G Ram.
 
  Has anyone else seen this?

 Take heart - on my Mac G5x4 it is only using about 15%.  ;-)

 A couple of things to consider trying:

 1) I notice this is the debug version of the movie. Perhaps check the
 standard version to see if there is a difference.

 2) Republish the swf to Flash 9 AVM2

 3) Perform the masking in Flex rather than in the swf.

 --
 Troy
 RPSystems, Ltd.
 http://www.rpsystems.net


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] more fms n00b questions

2007-08-09 Thread Brian Lesser

Really? On streams? Not on simultaneous connections?
-B



[p e r c e p t i c o n] wrote:


That's fine, but my service provider only allows so many simultaneous
streams...i'm trying to find out if this will factor into that number

thanks

p

On 8/9/07, Brian Lesser [EMAIL PROTECTED] wrote:
 


Hi,
From a developer's perspective they are not streams and are not really
treated like streams - except that both shared objects and streams have
a send() method you can use to broadcast a message to other clients. I'm
told that internally SharedObjects are implemented using two streams -
one for output and one for input - but developers don't see them. I tend
not to use the send() method with streams but I'm sure there are lots of
cases when it would be useful because the stream publisher does not
receive back their own message.
Yours truly,
-Brian

[p e r c e p t i c o n] wrote:

   


Hi Brian,
thanks, i have one question regarding shared objects...this may be a dumb
question, but i overheard someone say that shared objects are treated as
streams...is this correct?

thanks

b




 


--
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD??  E-mail: [EMAIL PROTECTED]
(Enter through LB99)   Web: http://www.ryerson.ca/~blesser
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

   


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
 




--
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD??  E-mail: [EMAIL PROTECTED]
(Enter through LB99)   Web: http://www.ryerson.ca/~blesser
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] more fms n00b questions

2007-08-09 Thread [p e r c e p t i c o n]
figured this one out myself...subclassed NetConnection and made it
dynamic...seems to work...

thanks so much for setting me straight

p

On 8/9/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote:

 i'm going to double-check, but i think so ...

 ok...this is my last
 question.(today :))

 is the NetConnection class no longer dynamic??

 i keep getting this error using as3


 ReferenceError: Error #1056: Cannot create property returnQueryString on
 flash.net.NetConnection.

 i'm not sure how to get around this...

 in Main.asc i'm trying to call a method on the client

 like this

 clientObj.call(someMethod, null, result);

 so frustrating!

 p



 On 8/9/07, Brian Lesser  [EMAIL PROTECTED] wrote:
 
  Really? On streams? Not on simultaneous connections?
  -B
 
 
 
  [p e r c e p t i c o n] wrote:
 
  That's fine, but my service provider only allows so many simultaneous
  streams...i'm trying to find out if this will factor into that number
  
  thanks
  
  p
  
  On 8/9/07, Brian Lesser [EMAIL PROTECTED] wrote:
  
  
  Hi,
  From a developer's perspective they are not streams and are not really
 
  treated like streams - except that both shared objects and streams
  have
  a send() method you can use to broadcast a message to other clients.
  I'm
  told that internally SharedObjects are implemented using two streams -
 
  one for output and one for input - but developers don't see them. I
  tend
  not to use the send() method with streams but I'm sure there are lots
  of
  cases when it would be useful because the stream publisher does not
  receive back their own message.
  Yours truly,
  -Brian
  
  [p e r c e p t i c o n] wrote:
  
  
  
  Hi Brian,
  thanks, i have one question regarding shared objects...this may be a
  dumb
  question, but i overheard someone say that shared objects are treated
  as
  streams...is this correct?
  
  thanks
  
  b
  
  
  
  
  
  
  --
  __
  Brian Lesser
  Assistant Director, Application Development and Integration
  Computing and Communications Services
  Ryerson University
  350 Victoria St.
  Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
  M5B 2K3Fax: (416) 979-5220
  Office: POD??  E-mail: [EMAIL PROTECTED]
  (Enter through LB99)   Web: http://www.ryerson.ca/~blesser
  http://www.ryerson.ca/%7Eblesser
  __
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
   http://training.figleaf.com
  
  
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
  
  
 
 
  --
  __
  Brian Lesser
  Assistant Director, Application Development and Integration
  Computing and Communications Services
  Ryerson University
  350 Victoria St.
  Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
  M5B 2K3Fax: (416) 979-5220
  Office: POD??  E-mail: [EMAIL PROTECTED]
  (Enter through LB99)   Web: 
  http://www.ryerson.ca/~blesserhttp://www.ryerson.ca/%7Eblesser
  __
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com