Re: [Flashcoders] Flash crashing dilemna - when adding an input text field

2007-03-22 Thread Ray Chuan

Hi,

there's no code to work with here, but i would guess it's a
recursive/infinite loop problem.

Are there any handlers hooked up to that particular text field?

On 3/22/07, Paul Steven [EMAIL PROTECTED] wrote:

I have a really weird bug going on in a game I am making. Game is
developed in Flash 8 PC. (Published Flash 8 Actionscript 2)

My game was crashing the second time I played it so I have spent the last
day and a half tracking down the cause.

I have narrowed it down to a text input field. This is where the user enters
their name if they get a high score. If a user goes to this screen before
playing the game a second time, then a few seconds into playing the game the
second time, the game hangs with an error saying a script in this movie is
causing the flash player to run slow or something to that effect which
requires me to choose to stop this script. The game often hangs at this
stage and I have to force quit Flash.

If they do not get a high score they do not go to this frame of the flash
movie with the text input field and playing the game a second time does not
cause it to crash.

I have tried recreating this text input field, changing the font, changing
the instance name but still seems to cause the game to hang on playing it a
second time.

If anyone has any idea why this is happening or how I can determine what
script is causing the error, I would be extremely grateful.

Thanks

Paul



___
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




--
Cheers,
Ray Chuan
___
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] (AS3) Regular Expression

2007-01-19 Thread Ray Chuan

var arr:Array = split(str, \r);
arr.join(br /);

On 1/19/07, Oliver Müller [EMAIL PROTECTED] wrote:

Hi,

I'm looking for a tinier and probably faster solution for my RegExp here:


var pattern:RegExp = /(?!)(r+)/sg;
var str:String = \rjustus\rjustus\rjustus;

function myfunc()
{
if (arguments[3].substr((arguments[2]-1),1) != ) return br /;
return ;
}

trace(str.replace(pattern, myfunc));

// result: justusbr /justusbr /justus


Has anyone a clue ?

--
greets,
Olli
___
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




--
Cheers,
Ray Chuan
___
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] XML.onLoad peculiarity

2007-01-07 Thread Ray Chuan

Quote XML.onLoad docs from FMX2004:

Event handler; invoked by Flash Player when an XML document is
received from the server. If the XML document is received
successfully, the success parameter is true. If the document was not
received, or if an error occurred in receiving the response from the
server, the success parameter is false...

So yes i think the end of a data stream could trigger it.

On 1/7/07, Miles Thompson [EMAIL PROTECTED] wrote:


So it's most likely that ii) - nothing to parse - is most likely, how long
does Flash wait / what triggers XML.onLoad?
Just the end of a data stream?

Miles

At 08:12 PM 1/5/2007, Ray Chuan wrote:

Hi,

a status code of '0' could either mean

i) no errors parsing
ii) no XML parsed -- no errors parsing (since there's nothing to parse)

On 1/5/07, Miles Thompson [EMAIL PROTECTED] wrote:

How or why can I have an XML Status Code of 0, but XML.onLoad is not
succeeding?

My XML.onLoad has a success section, like so ..
 xmlReceiver.onLoad = function( success:Boolean )
and if there is no success, the else part looks like this:
 // Otherwise tell the user the vars couldn't be loaded.
 txtNews.text = txtNews.text + GetStories: Loading of news storys
failed.;
 txtNews.text = txtNews.text + GetStories: XML did not load.;
 txtNews.text = txtNews.text + GetStories: XML Status code:  +
xmlReceiver.status;

Some users are not getting the news stories, which are sent as XML and
parsed within the success section,
but they report a status code of 0 - which indicates everything should
be OK.

This is Flash MX, users are running Flash Player 7 in their browsers.

Does anyone have any ideas? Suggestions will be most welcome.

Regards - Miles Thompson


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007


___
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


--
Cheers,
Ray Chuan
___
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 outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.7/618 - Release Date: 1/6/2007


___
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




--
Cheers,
Ray Chuan
___
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] attachMovie fails with runtime shared asset

2007-01-06 Thread Ray Chuan

Hi,

from what I've experienced before, the assets are only available to
the child clips.

Eg.

_root
 |- some_clip
 |- asset_mc
 |- child

If you load assets into asset_mc, some_clip cannot access it, ie,
_root.some_clip.attachMovie(asset...) won't work, neither will
_root.attachMovie(...).

Only asset_mc.attach... and child.attach... will.

On 1/6/07, Mendelsohn, Michael [EMAIL PROTECTED] wrote:

Hi list...

I'm trying to do _root.attachMovie(runtimeShared,runtimeShared,1);
where runtimeShared is an asset from another swf that's exported for
runtime sharing and dropped into this movie's library as import for
runtime sharing.

I have found that the attachMovie method *only* works if I drop an
instance of runtimeShared on the stage first.  Why would this be, and is
there a way around it?  Can't you simply attach a movie of a runtime
shared asset?

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




--
Cheers,
Ray Chuan
___
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] AS2 OOP Class Structure for simple pong type game

2006-12-14 Thread Ray Chuan
 in error, please inform the sender immediately and
  delete
   and
   destroy any record of this message. Thank you.
   ___
   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
  
   This e-mail and its attachments are intended only for the use of
the
   addressee(s) and may contain privileged, confidential or
proprietary
   information. If you are not the intended recipient, or the
employee
  or
   agent responsible for delivering the message to the intended
  recipient,
   you are hereby notified that any dissemination, distribution,
  displaying,
   copying, or use of this information is strictly prohibited. If
you
  have
   received this communication in error, please inform the sender
   immediately and delete and destroy any record of this message.
Thank
  you.
   ___
   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
 






 --


 : : ) Scott
 ___
 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

This e-mail and its attachments are intended only for the use of the
addressee(s) and may contain privileged, confidential or proprietary
information. If you are not the intended recipient, or the employee or agent
responsible for delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution, displaying, copying,
or use of this information is strictly prohibited. If you have received this
communication in error, please inform the sender immediately and delete and
destroy any record of this message. Thank you.
___
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




--
Cheers,
Ray Chuan
___
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] loadClip vs loadMovie: swf's losing control... literally

2006-12-01 Thread Ray Chuan

Hi,
where are you putting those commands? If you put them in onLoadInit it
should work:

mcl.addListener({
 onLoadInit: function(target:MovieClip) {
   target.stop();
 }
});

On 12/2/06, Micky Hulse [EMAIL PROTECTED] wrote:

Hi,

Before I hit hay, I noticed loadClip() is causing my loaded swf to loose
control... I can't seem to tell the loaded clip(s) to do anything
(targMc.play(), targMc.stop(), targMc.goToFrame())... Is this normal
behavior, or am I doing things wrong (can post code later if need be)?

It sounds like I should be using loadMovie() if I want to target and
control the timeline of my loaded clips. From livedocs:

This class [MovieClipLoader] lets you implement listener callbacks that
provide status information while SWF, JPEG, GIF, and PNG files are being
loaded into movie clips. To use MovieClipLoader features, use
MovieClipLoader.loadClip() instead of loadMovie() or
MovieClip.loadMovie() to load SWF files.

I really like the listener callbacks.

Anyway, just testing code... so not a big deal (other options are
available thanks to the kind peeps on this list), but for learning
purposes: am I correct in thinking that loadClip takes-away timeline
control of loaded swf's? Or, do I access the timeline in some other way
(i.e. something other than targMc.goToFrame(8);)?

Just curious if my sleep deprived thinking is on the right track... if
so, how do you handle similar situation?

Many thanks!
Cheers,
M



--
  Wishlist: http://snipurl.com/vrs9
Switch: http://browsehappy.com/
  BCC?: http://snipurl.com/w6f8
My: http://del.icio.us/mhulse
___
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




--
Cheers,
Ray Chuan
___
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] onFrameReached {do something}

2006-12-01 Thread Ray Chuan

Hi,

afaik there's no such thing.

If you want to, in the frame that you are looking for you can put a
dispatch call, eg at frame 30:

trace(frame reached);
broadcaster.dispatch({type: onFrameReached});

I made that up, there's no event by the name onFrameReached.

Even if you do that or use onEnterFrame you may not get what you want
since the player can choose to skip that frame/not call onEnterFrame
for performance reasons.

On 12/1/06, Wendy Richardson [EMAIL PROTECTED] wrote:

Hi All,

I'm looking for some suggestions for the best way to know when a certain
frame has been reached or plays.

Barring checking for that frame-by-frame on each onEnterFrame, is there
a way to listen for a swf reaching or playing a certain frame?  Some
event to listen for?

Code will be 1st frame only or via new classes.

Thanks for any ideas!

Wendy
___
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




--
Cheers,
Ray Chuan
___
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] AS2 Flash Remoting Troubles

2006-11-24 Thread Ray Chuan

Your gateway url is down.

On 11/24/06, Graham Pearson [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Here is my entire code which I am having issues with:

import mx.remoting.Service;
import mx.remoting.PendingCall;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.services.Log;

var gatewayServer:String = devel.yourcfpro.com;
var webServiceLog = new Log(Log.VERBOSE);
var createAccount = new Object();
createAccount_btn.addEventListener(click, createAccount);

CheckSO();
var FlashChat:Service = new Service(http://; + gatewayServer +
/flashservices/gateway, webServiceLog, properties.cfc.flashchat,
null, null);

createAccount.click = function() {
var checkUsername_pc:PendingCall =
FlashChat.CheckUsername(username_txt.text);
var checkUsername_pc:RelayResponder = new RelayResponder(this,
CheckUsernameResult, CheckUsernameFault);
function CheckUsernameResult(msg) {
trace(-- CheckUsernameResult was  + msg);
}
function CheckUsernameFault(msg) {
trace(-- CheckUsernameFault was  + msg);
}
}

webServiceLog.onLog = function(txt) {
trace(txt);
}
stop();


Which produces the following in the Debug Window:
11/25 10:2:18 [INFO] : Creating Service for properties.cfc.flashchat
11/25 10:2:18 [INFO] : Creating gateway connection for
http://devel.yourcfpro.com/flashservices/gateway
11/25 10:2:18 [INFO] : Successfully created Service
11/25 10:2:23 [INFO] : Invoking CheckUsername on properties.cfc.flashchat
11/25 10:2:25 [INFO] : properties.cfc.flashchat.CheckUsername() returned
true



Graham Pearson wrote:
 I am working on moving my AS1 Flash Remoting Applications over to AS2
 and having a devil of a time. The problem that I am running into is that
 the code within the RelayResponder does not execute to my knowledge.
 Here is an example of what I am doing.

 function onEchoFault(rs:FaultEvent) {
 trace(-- onEchoFault has been executed );
 }
 function onEchoResult(re:ResultEvent) {
 trace(-- onEchoResult has been executed );
 }

 var pc:PendingCall = myService.makeEcho(Hello World!);
 pc.responder = new RelayResponder(this, onEchoResul, onEchoFault);


 When I run the application in my debugger window I get the following


 11/25 7:26:11 [INFO] logger1: Creating Service for properties.cfc.HelloWorld
 11/25 7:26:11 [INFO] logger1: Creating gateway connection for
 http://devel.yourcfpro.com/flashservices/gateway
 11/25 7:26:11 [INFO] logger1: Successfully created Service
 11/25 7:26:13 [INFO] logger1: Invoking makeEcho on properties.cfc.HelloWorld
 11/25 7:26:15 [INFO] logger1: properties.cfc.HelloWorld.makeEcho()
 returned Hello Hello World!

 I do not get the Trace statement on the onEchoResult. What am I doing wrong.



- --
Graham Pearson, System Administrator / DCG Administrator / Application
Developer
Northern Indiana Educational Services Center
Mishawaka, IN 46544
Voice (866) 254-5322 or (574) 254-5210 / Fax (574) 254-0148
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFZwoKakuGrBT7wfkRAkBzAKDlD9fomYFZPT40EyqZvSvMBa36mwCgsWfW
DXv449oid5YtjdZh5HgoEHA=
=BBwv
-END PGP SIGNATURE-

--
This message has been scanned for viruses and
dangerous content by our Email Filtering System
and is believed to be clean.

___
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




--
Cheers,
Ray Chuan
___
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] swf and referring domain

2006-11-16 Thread Ray Chuan

The swf (SWFA) that wants to load your swf (SWFB) can't do so if you

i) you don't allow it
ii) you don't know where SWFA is

You have to know where SWFA is to allow it.

See the System.security.allowDomain entry in the Flash 8 docs; it has
a nice diagram to illustrate things.

http://livedocs.macromedia.com/flash/8/main/2647.html


On 11/16/06, Dave Segal [EMAIL PROTECTED] wrote:

Is there a way to find the domain of the page that loads my swf. For
example, someone embeds an swf served from my server on their
www.myspace.com http://www.myspace.com/  page. Is there is way for me to
determine that the request is coming from myspace.com at runtime?

A search of the archive revealed this thread that describes exactly the
problem that I am facing but I didn't see any solution.
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-October/175064.html

I have the option of using AS 3 if it provides a solution.

Thanks.

___
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




--
Cheers,
Ray Chuan
___
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] Strange XML problems

2006-11-16 Thread Ray Chuan
.
   
   
   
___
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 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




--
Cheers,
Ray Chuan
___
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] flash.geom.Point Problem.

2006-11-13 Thread Ray Chuan

That means you were stupid before having that girlfriend. =p

On 11/13/06, Arse @ Snepo [EMAIL PROTECTED] wrote:

Having a girlfriend who knows flash makes you clever by default. :)

just sayin.

a

jim wrote:
 Thanks man, my girlfriend just pointed the same thing to me, you are both
 clever  I am stupid.

 Jim

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Rákos Attila
 Sent: 12 November 2006 21:32
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] flash.geom.Point Problem.


 j As you can see the first value is correct, the rest have weird values.
 Can
 j anyone explain this to me?

 This is because of the precision errors of floating-point arithmetic.
 Try to round the results:

 import flash.geom.Point;

 var angles: Array = [0, 90, 180, 270, 360];

 for (var i = 0; i  angles.length; i++) {
 var p: Point = Point.polar(10, (angles[i] * (Math.PI/180)));
 trace(x:  + Math.round(p.x) + , y:  + Math.round(p.y));
 }

   Attila

 ___
 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




--
*Anthony Eden*: Inventor at Snepo http://www.snepo.com/
contact | [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] | 0411 5622 02

___
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





--
Cheers,
Ray Chuan
___
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] F-ab 2.0.1

2006-11-13 Thread Ray Chuan

cool idea + cool name = cool project

Nice one.

On 11/13/06, Jiro Harada [EMAIL PROTECTED] wrote:

Hello,

I am pleased to announce that Version 2.0.1 of F-ab (freeware) is
available for download.
F-ab is a browser for Flash movies. In F-ab Flash movies are switched
by changing the channel instead of the URL. You can see 1 Flash
movies by changing the channel from  to . However, the Flash
movie has not been registered in every channel yet. Now only 32
movies are registered from Ch.1000 to Ch. 1031.

In F-ab version 2.0 or later, FLVPhone can be used. FLVPhone is a
video conferencing telephone using the Flash movie. In FLVPhone,
instead of a telephone number, an e-mail address is used to specify a
person to be called. Red5(http://osflash.org/red5.) is embedded in F-
ab to communicate with the remote FLVPhone.

System Requirements:
OS: Windows XP, 2000, Mac OS 10.4.5 or later
Java Runtime Environment: J2SE 5.0 or later

Download:
http://www.f-ab.net/

Enjoy!

Jiro Harada
[EMAIL PROTECTED]

___
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




--
Cheers,
Ray Chuan
___
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] Completely stumped about MovieClipLoader not working

2006-11-09 Thread Ray Chuan

I think you can get the same effect using System.security.allowDomain.

On 11/9/06, Ben Smeets [EMAIL PROTECTED] wrote:

.Fla - Publish settings - Flash - Local playback security is set to Access 
network only right?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ray Chuan
Sent: donderdag 9 november 2006 5:44
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Completely stumped about MovieClipLoader not working

Hi,
assuming that you use a relative path to the swf, then you can just use one 
substring:

var baseurl:String = _root._url;
baseurl = baseurl.substr(0, baseurl.lastIndexOf(/)+1);

mcl.loadClip(baseurl+ar07ui.swf);

On 11/9/06, Hans Wichman [EMAIL PROTECTED] wrote:
 ps that can be made way more efficient, its still under construction
 :)

 On 11/8/06, Hans Wichman [EMAIL PROTECTED] wrote:
 
  Hi,
  instead of using your path directly try something like this:
  class App {
   public static function getPath (parent:MovieClip, path:String):String {
var parUrl:String = parent._url;
 parUrl = parUrl.split(\\).join(/);
 
var pathUrl:String = path.split(\\).join(/);
 
var parArr:Array = parUrl.split(/);
 parArr.pop();
 parUrl = parArr.join(/)+/;
 
return parUrl+pathUrl;
   }
  }
 
  And in your code:
  mcl.loadClip(App.getPath(_root, ar07ui.swf), ui);
 
  greetz
  JC
 
 
 
 
 
 
 
  On 11/8/06, Éric Thibault [EMAIL PROTECTED] wrote:
  
   I've redone the test on my webserver with the externalinterface
   and all is functionning normaly if all (HTML and SWF) are in the same 
folder!
   If the HTML page is not in the same folder, the external SWF must
   be called relative to the HTML, not to the loader SWF.  Maybe your
   bug is there!
  
   A+
  
   Mendelsohn, Michael a écrit :
Thanks for trying.
   
The External Interface is the only thing there that works for
me.  I
   get
the alerts from the html page, but that's it.  It never finds
the
   other
swf.  Could it be some kind of security issue?
   
   
  
   ___
   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



--
Cheers,
Ray Chuan
___
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




--
Cheers,
Ray Chuan
___
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] Completely stumped about MovieClipLoader not working

2006-11-09 Thread Ray Chuan

Thanks for the tip.

Any examples of how this behaviour changes? Eg in version this and that.

On 11/9/06, Hans Wichman [EMAIL PROTECTED] wrote:

Hi,
whether baseurl = baseurl.substr(0, baseurl.lastIndexOf(/)+1);  works
depends on player version and whether you are running it in a browser or on
a disk.
To be sure, replace any \ by / upfront.

greetz
JC

On 11/9/06, Ray Chuan [EMAIL PROTECTED] wrote:

 I think you can get the same effect using System.security.allowDomain.

 On 11/9/06, Ben Smeets [EMAIL PROTECTED] wrote:
  .Fla - Publish settings - Flash - Local playback security is set to
 Access network only right?
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Ray Chuan
  Sent: donderdag 9 november 2006 5:44
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Completely stumped about MovieClipLoader not
 working
 
  Hi,
  assuming that you use a relative path to the swf, then you can just use
 one substring:
 
  var baseurl:String = _root._url;
  baseurl = baseurl.substr(0, baseurl.lastIndexOf(/)+1);
 
  mcl.loadClip(baseurl+ar07ui.swf);
 
  On 11/9/06, Hans Wichman [EMAIL PROTECTED] wrote:
   ps that can be made way more efficient, its still under construction
   :)
  
   On 11/8/06, Hans Wichman [EMAIL PROTECTED] wrote:
   
Hi,
instead of using your path directly try something like this:
class App {
 public static function getPath (parent:MovieClip,
 path:String):String {
  var parUrl:String = parent._url;
   parUrl = parUrl.split(\\).join(/);
   
  var pathUrl:String = path.split(\\).join(/);
   
  var parArr:Array = parUrl.split(/);
   parArr.pop();
   parUrl = parArr.join(/)+/;
   
  return parUrl+pathUrl;
 }
}
   
And in your code:
mcl.loadClip(App.getPath(_root, ar07ui.swf), ui);
   
greetz
JC
   
   
   
   
   
   
   
On 11/8/06, Éric Thibault [EMAIL PROTECTED] wrote:

 I've redone the test on my webserver with the externalinterface
 and all is functionning normaly if all (HTML and SWF) are in the
 same folder!
 If the HTML page is not in the same folder, the external SWF must
 be called relative to the HTML, not to the loader SWF.  Maybe your
 bug is there!

 A+

 Mendelsohn, Michael a écrit :
  Thanks for trying.
 
  The External Interface is the only thing there that works for
  me.  I
 get
  the alerts from the html page, but that's it.  It never finds
  the
 other
  swf.  Could it be some kind of security issue?
 
 

 ___
 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
  
 
 
  --
  Cheers,
  Ray Chuan
  ___
  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
 


 --
 Cheers,
 Ray Chuan
 ___
 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




--
Cheers,
Ray Chuan
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman

Re: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-08 Thread Ray Chuan

Hi,
assuming that you use a relative path to the swf, then you can just
use one substring:

var baseurl:String = _root._url;
baseurl = baseurl.substr(0, baseurl.lastIndexOf(/)+1);

mcl.loadClip(baseurl+ar07ui.swf);

On 11/9/06, Hans Wichman [EMAIL PROTECTED] wrote:

ps that can be made way more efficient, its still under construction :)

On 11/8/06, Hans Wichman [EMAIL PROTECTED] wrote:

 Hi,
 instead of using your path directly try something like this:
 class App {
  public static function getPath (parent:MovieClip, path:String):String {
   var parUrl:String = parent._url;
parUrl = parUrl.split(\\).join(/);

   var pathUrl:String = path.split(\\).join(/);

   var parArr:Array = parUrl.split(/);
parArr.pop();
parUrl = parArr.join(/)+/;

   return parUrl+pathUrl;
  }
 }

 And in your code:
 mcl.loadClip(App.getPath(_root, ar07ui.swf), ui);

 greetz
 JC







 On 11/8/06, Éric Thibault [EMAIL PROTECTED] wrote:
 
  I've redone the test on my webserver with the externalinterface and all
  is functionning normaly if all (HTML and SWF) are in the same folder!
  If the HTML page is not in the same folder, the external SWF must be
  called relative to the HTML, not to the loader SWF.  Maybe your bug is
  there!
 
  A+
 
  Mendelsohn, Michael a écrit :
   Thanks for trying.
  
   The External Interface is the only thing there that works for me.  I
  get
   the alerts from the html page, but that's it.  It never finds the
  other
   swf.  Could it be some kind of security issue?
  
  
 
  ___
  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




--
Cheers,
Ray Chuan
___
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] EventDispatcher and onEnterFrame.... problems

2006-11-08 Thread Ray Chuan

I think he is against using this in class definitions.

On 11/9/06, Muzak [EMAIL PROTECTED] wrote:

From a person who keeps posting against the use of 'this' and who says it's 
bad practice I'd expect something better than using
nested functions, especially if there's no need for it whatsoever.


- Original Message -
From: Steven Sacks | BLITZ [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 08, 2006 7:23 PM
Subject: RE: [Flashcoders] EventDispatcher and onEnterFrame problems


Inside an onEnterFrame function you have to use this when referring to
things in the class (if the class extends MovieClip, which I hope it
does because only MovieClips can have onEnterFrame as far as I know).


class MyClass
{
var foo:Boolean;

function MyClass()
{
this.onEnterFrame = function()
{
this.foo = !this.foo;
this.traceFoo();
}
}
function traceFoo()
{
trace(foo);
}
}


___
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




--
Cheers,
Ray Chuan
___
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] math for getting textField's line number? ie height/(font.size+font.leading) ??

2006-11-03 Thread Ray Chuan

Hi,
are you sure negative leadings are allowed? I've tried and don't see
any difference.

I'm guessing lineCount should be an integer, so you should use:

Math.floor(ht/(size+leading))

Assuming leading0.

On 11/3/06, grimmwerks [EMAIL PROTECTED] wrote:

It's time for one of those brainfarts.

I'm trying to position a textField's bottom in line with other
textfields; I've added leading to all the textField's so my math is
now off.

All the single-line textFields are positioned properly, but the
mutli-line textfields are not.

In the one I'm testing out with, the font size is 30, and the leading
is -10. So I did this:

lineCount = (txt._height/(font.size + font.leading))

This never works for my example, ie ht = 70, size = 30, leading = -10
  ie  70/(30+-10) == 1.6


What am I missing?
___
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




--
Cheers,
Ray Chuan
___
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] Useful Ascii codes:

2006-11-03 Thread Ray Chuan
 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




--
Cheers,
Ray Chuan
___
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] Flash Reomoting Service not connecting

2006-11-01 Thread Ray Chuan

Hi,
- how are you opening the SWF? Is your swf loading any swfs/files?
This won't work (without work):

http://domain.com/
flash.HTML

http://domain.com/assets/
flash.SWF

On 11/1/06, Liam Mincy [EMAIL PROTECTED] wrote:

This is a new one for me...

I have a Flash application that uses Flash Remoting to pass along test 
information.
I should first mention that I am using the same Service on a live server in both
testing on local machine and when I deploy to the web.

The thing is that when I test all of this from my local machine it all wowrks 
well.
The test information is passed along the Service, all the data appears in the
database, and I get feedback inside of Flash. It is only when I upload Flash to 
the
server that I have no connection at all to the service. The Flash and the 
Service
both sit on the same domain when uploaded.

Here is what i have tried:
  - Made sure that the link to the Service is correct
  - Installed a crossdomain.xml at the root of the domain with very generous
settings
  - Tried dumping result and fault into onscreen text field but since there is 
some
communication/security issue nothing comes back

What I am seeing is that the Flash essentially just runs and runs with no 
connection
or indication that it is getting a fault back. It just keeps trying and nothing 
is
coming back.

What has me stumped is why this would happen.

Does anyone have any experience with this scenario using Services?

Thanks,
liam m-




Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates
(http://voice.yahoo.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




--
Cheers,
Ray Chuan
___
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] LocalConnection and Media Components?

2006-10-27 Thread Ray Chuan

Hi,
in your receiving LocalConnection object add allowDomain:

this.receiving_lc.allowDomain = function():Boolean {
 return true;
}

Also, use an underscore at the front of your connection name: _MyConnections.

See the docs for more info:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/1422.html
http://livedocs.macromedia.com/flash/mx2004/main_7_2/1425.html


On 10/27/06, Martin Scott Goldberg [EMAIL PROTECTED] wrote:

Martin,


Sorry I'm just getting back to you, was out of town for a wedding.



You have things a bit in a weird order in the receiving swf.
Also, receiving_lc outside and inside the initialize function are 2 
differenct variables/instances.
receiving_lc in the initialize function is local to the function, because of 
the var keyword.

And nested functions are a 'no no'..

If you're coding in the main timeline, try this:


Yes, I'm coding in the main timeline.  I have the following code now
(after modding yours) and I still can't get it to work:

import mx.utils.Delegate;

my_display.associateController(my_controller);
my_controller.controllerPolicy = on;

function setMedia(file:String, type:String){
 this.my_display.setMedia(file, type);
}

var receiving_lc:LocalConnection = new LocalConnection();
this.receiving_lc.setMedia = Delegate.create(this, this.setMedia);
this.receiving_lc.connect(myConnections);



In the button movie I have the following code in the main timeline:

var sending_lc:LocalConnection = new LocalConnection();
sending_lc.connect(myConnections);

play_button.onRelease = function()
{
sending_lc.send(myConnections, setMedia, inmylife.mp3,
MP3);
}



For the test HTML, I have following code (created by merging the two
html's created by publishing:


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 /
titleplayer/title
/head
body bgcolor=#ff
!--url's used in the movie--
!--text used in the movie--
!-- saved from url=(0013)about:internet --
object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354
codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0;
width=700 height=200 id=player align=middle
param name=allowScriptAccess value=sameDomain /
param name=movie value=player.swf /param name=quality
value=high /param name=bgcolor value=#ff /embed
src=player.swf quality=high bgcolor=#ff width=700 height=200
name=player align=middle allowScriptAccess=sameDomain
type=application/x-shockwave-flash
pluginspage=http://www.macromedia.com/go/getflashplayer; /
/object
object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354
codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0;
width=30 height=32 id=play align=middle
param name=allowScriptAccess value=sameDomain /
param name=movie value=play.swf /param name=quality value=high
/param name=bgcolor value=#ff /embed src=play.swf
quality=high bgcolor=#ff width=30 height=32 name=play
align=middle allowScriptAccess=sameDomain
type=application/x-shockwave-flash
pluginspage=http://www.macromedia.com/go/getflashplayer; /
/object
/body
/html


Could it be I have to allow connections from this domain?  (I saw another
recent topic on that here).


Marty
___
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




--
Cheers,
Ray Chuan
___
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] LocalConnection and Media Components?

2006-10-27 Thread Ray Chuan

Hi,

setMedia should be defined on the LocalConnection instance:

receiving_lc.setMedia = function(file:String, type:String):Void {
 //do stuff
};

On 10/28/06, Martin Scott Goldberg [EMAIL PROTECTED] wrote:

Hi Ray, that didn't work either.  Changed the code to reflect those
help pages as well, and that didn't work either.  Here's the sending code:

play_button.onRelease = function()
{
var sending_lc:LocalConnection = new LocalConnection();
sending_lc.send(_myConnections, setMedia, inmylife.mp3,
MP3);
}


Here's the recieving code:

_root.my_display.associateController(my_controller);
_root.my_controller.controllerPolicy = on;

var receiving_lc:LocalConnection = new LocalConnection();
function setMedia(file:String, type:String){
 _root.my_display.setMedia(file, type);
}
receiving_lc.allowDomain = function():Boolean {
  return true;
}
receiving_lc.connect(_myConnections);




This is getting really dissheartening that there's this much of a problem
to do what should be a simple function.



Marty




Hi,
in your receiving LocalConnection object add allowDomain:

this.receiving_lc.allowDomain = function():Boolean {
  return true;
}

Also, use an underscore at the front of your connection name: _MyConnections.

See the docs for more info:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/1422.html
http://livedocs.macromedia.com/flash/mx2004/main_7_2/1425.html


On 10/27/06, Martin Scott Goldberg [EMAIL PROTECTED] wrote:
 Martin,


 Sorry I'm just getting back to you, was out of town for a wedding.


 
 You have things a bit in a weird order in the receiving swf.
 Also, receiving_lc outside and inside the initialize function are 2 
differenct variables/instances.
 receiving_lc in the initialize function is local to the function, because 
of the var keyword.
 
 And nested functions are a 'no no'..
 
 If you're coding in the main timeline, try this:
 

 Yes, I'm coding in the main timeline.  I have the following code now
 (after modding yours) and I still can't get it to work:

 import mx.utils.Delegate;

 my_display.associateController(my_controller);
 my_controller.controllerPolicy = on;

 function setMedia(file:String, type:String){
  this.my_display.setMedia(file, type);
 }

 var receiving_lc:LocalConnection = new LocalConnection();
 this.receiving_lc.setMedia = Delegate.create(this, this.setMedia);
 this.receiving_lc.connect(myConnections);



 In the button movie I have the following code in the main timeline:

 var sending_lc:LocalConnection = new LocalConnection();
 sending_lc.connect(myConnections);

 play_button.onRelease = function()
 {
 sending_lc.send(myConnections, setMedia, inmylife.mp3,
 MP3);
 }



 For the test HTML, I have following code (created by merging the two
 html's created by publishing:


 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 /
 titleplayer/title
 /head
 body bgcolor=#ff
 !--url's used in the movie--
 !--text used in the movie--
 !-- saved from url=(0013)about:internet --
 object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354
 
codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0;
 width=700 height=200 id=player align=middle
 param name=allowScriptAccess value=sameDomain /
 param name=movie value=player.swf /param name=quality
 value=high /param name=bgcolor value=#ff /embed
 src=player.swf quality=high bgcolor=#ff width=700 height=200
 name=player align=middle allowScriptAccess=sameDomain
 type=application/x-shockwave-flash
 pluginspage=http://www.macromedia.com/go/getflashplayer; /
 /object
 object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354
 
codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0;
 width=30 height=32 id=play align=middle
 param name=allowScriptAccess value=sameDomain /
 param name=movie value=play.swf /param name=quality value=high
 /param name=bgcolor value=#ff /embed src=play.swf
 quality=high bgcolor=#ff width=30 height=32 name=play
 align=middle allowScriptAccess=sameDomain
 type=application/x-shockwave-flash
 pluginspage=http://www.macromedia.com/go/getflashplayer; /
 /object
 /body
 /html


 Could it be I have to allow connections from this domain?  (I saw another
 recent topic on that here).


 Marty
 ___
 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



--
Cheers,
Ray Chuan
___
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] LocalConnection and Media Components?

2006-10-27 Thread Ray Chuan

I forgot to mention that there is a risk that your variables can go
out of scope, especially for your receiver.

Might want to consider this is it still doesn't work.

On 10/28/06, Ray Chuan [EMAIL PROTECTED] wrote:

Hi,

setMedia should be defined on the LocalConnection instance:

receiving_lc.setMedia = function(file:String, type:String):Void {
  //do stuff
};

On 10/28/06, Martin Scott Goldberg [EMAIL PROTECTED] wrote:
 Hi Ray, that didn't work either.  Changed the code to reflect those
 help pages as well, and that didn't work either.  Here's the sending code:

 play_button.onRelease = function()
 {
 var sending_lc:LocalConnection = new LocalConnection();
 sending_lc.send(_myConnections, setMedia, inmylife.mp3,
 MP3);
 }


 Here's the recieving code:

 _root.my_display.associateController(my_controller);
 _root.my_controller.controllerPolicy = on;

 var receiving_lc:LocalConnection = new LocalConnection();
 function setMedia(file:String, type:String){
  _root.my_display.setMedia(file, type);
 }
 receiving_lc.allowDomain = function():Boolean {
   return true;
 }
 receiving_lc.connect(_myConnections);




 This is getting really dissheartening that there's this much of a problem
 to do what should be a simple function.



 Marty



 
 Hi,
 in your receiving LocalConnection object add allowDomain:
 
 this.receiving_lc.allowDomain = function():Boolean {
   return true;
 }
 
 Also, use an underscore at the front of your connection name: 
_MyConnections.
 
 See the docs for more info:
 
 http://livedocs.macromedia.com/flash/mx2004/main_7_2/1422.html
 http://livedocs.macromedia.com/flash/mx2004/main_7_2/1425.html
 
 
 On 10/27/06, Martin Scott Goldberg [EMAIL PROTECTED] wrote:
  Martin,
 
 
  Sorry I'm just getting back to you, was out of town for a wedding.
 
 
  
  You have things a bit in a weird order in the receiving swf.
  Also, receiving_lc outside and inside the initialize function are 2 
differenct variables/instances.
  receiving_lc in the initialize function is local to the function, 
because of the var keyword.
  
  And nested functions are a 'no no'..
  
  If you're coding in the main timeline, try this:
  
 
  Yes, I'm coding in the main timeline.  I have the following code now
  (after modding yours) and I still can't get it to work:
 
  import mx.utils.Delegate;
 
  my_display.associateController(my_controller);
  my_controller.controllerPolicy = on;
 
  function setMedia(file:String, type:String){
   this.my_display.setMedia(file, type);
  }
 
  var receiving_lc:LocalConnection = new LocalConnection();
  this.receiving_lc.setMedia = Delegate.create(this, this.setMedia);
  this.receiving_lc.connect(myConnections);
 
 
 
  In the button movie I have the following code in the main timeline:
 
  var sending_lc:LocalConnection = new LocalConnection();
  sending_lc.connect(myConnections);
 
  play_button.onRelease = function()
  {
  sending_lc.send(myConnections, setMedia, inmylife.mp3,
  MP3);
  }
 
 
 
  For the test HTML, I have following code (created by merging the two
  html's created by publishing:
 
 
  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 /
  titleplayer/title
  /head
  body bgcolor=#ff
  !--url's used in the movie--
  !--text used in the movie--
  !-- saved from url=(0013)about:internet --
  object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354
  
codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0;
  width=700 height=200 id=player align=middle
  param name=allowScriptAccess value=sameDomain /
  param name=movie value=player.swf /param name=quality
  value=high /param name=bgcolor value=#ff /embed
  src=player.swf quality=high bgcolor=#ff width=700 height=200
  name=player align=middle allowScriptAccess=sameDomain
  type=application/x-shockwave-flash
  pluginspage=http://www.macromedia.com/go/getflashplayer; /
  /object
  object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354
  
codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0;
  width=30 height=32 id=play align=middle
  param name=allowScriptAccess value=sameDomain /
  param name=movie value=play.swf /param name=quality value=high
  /param name=bgcolor value=#ff /embed src=play.swf
  quality=high bgcolor=#ff width=30 height=32 name=play
  align=middle allowScriptAccess=sameDomain
  type=application/x-shockwave-flash
  pluginspage=http://www.macromedia.com/go/getflashplayer; /
  /object
  /body
  /html
 
 
  Could it be I have to allow connections from this domain?  (I saw another
  recent topic on that here).
 
 
  Marty
  ___
  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

Re: [Flashcoders] Flashcoders Emails

2006-10-18 Thread Ray Chuan

You should also avoid subscribing with the digest option, because
your email won't be recognized as a follow-up to a thread.

(So far I haven't seen an email client that gives you control over the
message-id header of email messages, because that's how messages are
recognized as follow-ups)

On 10/18/06, Count Schemula [EMAIL PROTECTED] wrote:

Get a gmail account just for this (and other) lists.

It's perfect for this stuff.

On 10/17/06, Darren Cline [EMAIL PROTECTED] wrote:
 Am I missing something or is there not a way to link the titles at the
 top of the page to the actual e-mail? I am using Outlook (go figure) and
 can't seem to find a setting on the e-mail list home page. It's just
 that some of these are getting really long (especially when people leave
 in the reply copy) and finding the e-mail you want to read can take
 forever.

 - darren
--
count_schemula

a href=http://www.thelargeglass.com/flashNo0b/;files for No0bs/a
___
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




--
Cheers,
Ray Chuan
___
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] Interfaces: what are the advantages?

2006-10-16 Thread Ray Chuan

Hi Ian,

an intrinsic is not used only for built-in Flash Player classes/code.
You can use it to save yourself some time, since the compiler doesn't
compiler the bytecode all again.

With intrinsics no bytecode is generated, only type-checking is done.
With interfaces bytecode is generated.

I'm not saying that interfaces should be done away with and replaced
with intrinsics. Interfaces are part of the paradigm, while Intrinsics
are, to me, a Flash compiler-only feature for speed purposes, and has
no impact whatsoever on your paradigm.

(By paradigm i refer to OOP, coding methodology, etc.)

On 10/14/06, Ian Thomas [EMAIL PROTECTED] wrote:

Hi Ray,
  Yes - but why would you, if the language spec already supports
interfaces? Using interfaces is a much more 'standard' way (i.e. the
same sort of thing you'd do if you were talking to dynamic libraries
in other languages).

  I still see intrinsics as a bit of a hack. These classes are
internal to the Flash Player, honest! Don't look for their
implementation.

  Note the line from the page you link to: This keyword was not meant
for general purpose use...

  Still - I'd imagine, like many of these things, in the end it comes
down to personal taste. :-) Whatever gets the job done...

Ian

On 10/14/06, Ray Chuan [EMAIL PROTECTED] wrote:
 Hi,
 can't this be done with intrinsics?

 
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1879.html
___
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




--
Cheers,
Ray Chuan
___
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] Interfaces: what are the advantages?

2006-10-14 Thread Ray Chuan

Hi,
can't this be done with intrinsics?

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1879.html

On 10/14/06, Ian Thomas [EMAIL PROTECTED] wrote:

On 10/13/06, Jim Kremens [EMAIL PROTECTED] wrote:
 I understand what interfaces are, but I'm not entirely clear on when
 they become advantageous to use.  Anyone care to shed some light?

Interfaces are also very handy when you want to put the actual
implementation code for a class in one .swf, but still get all the
type-checking when writing code in another .swf that'll use it. Both
.swfs include the interface code, but only the implementing .swf needs
to include  a concrete implementation of the class.

Ian
___
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




--
Cheers,
Ray Chuan
___
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] Logging Flash-Internal User Access?

2006-10-11 Thread Ray Chuan

Hi,
i doubt this is possible. Try separating the sub pages into separate
swfs, and load them on-demand. You can then look at your server logs
and see which swfs have been accessed.

On 10/11/06, Sascha [EMAIL PROTECTED] wrote:

Hi,

My Client asked for a feature with that they can check how many users
accessed which sections in their Flash Movie so they can see how popular the
sections are. Their Flash is divided into 5 sub pages, all inside the same
SWF. I'm sure this is possible by utilizing PHP or similar server-side
language, I just haven't done such a thing yet and I'm on a tight deadline
with this job.
Could somebody lead me to any source on the web that does this task? A
PHP-Flash Example would be best!

Thanks a lot,
Sascha


___
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




--
Cheers,
Ray Chuan
___
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] Error check for parseXML()

2006-10-07 Thread Ray Chuan

Hi,
you should put the conditional in a callback, because when execution
reaches the conditional xml parsing might not have finished parsing.

var xml:XML = new XML();
xml.ignoreWhite = true;
xml.parseXML(someTextVar);
xml.onLoad = function(success:Boolean):Void {
if (xml.status == 0) {
trace(Success!);
} else {
trace(Error in XML! Code:  + xml.status);
}
}

Note that the success argument can be ignored if you're using
functions like parseXML(), because it's got to do with the success of
loading a document using XML.load() or XML.sendAndLoad().

On 10/7/06, Mike Keesey [EMAIL PROTECTED] wrote:

Use the XML.status field.

var xml:XML = new XML();
xml.ignoreWhite = true;
xml.parseXML(someTextVar);
if (xml.status == 0) {
trace(Success!);
} else {
trace(Error in XML! Code:  + xml.status);
}

―
Mike Keesey
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael
 Sent: Friday, October 06, 2006 6:50 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Error check for parseXML()

 Hi list...

 According to the help docs,
 public parseXML(value:String) : Void
 doesn't return an integer or anything to indicate successful parsing
of
 the xml.  How can I be certain that I've passed in some error free xml
 and it was able to parse?

 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

___
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




--
Cheers,
Ray Chuan
___
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] Class Problem + Bad attitudes

2006-10-07 Thread Ray Chuan

Hi,

I take offence. To link bad manners and attitude issues to age is
downright wrong. Are there not non-adolescent people who curse and
swear and condescend?

On 10/7/06, slangeberg [EMAIL PROTECTED] wrote:

 Unfortunately the condescending attitudes have been pretty thick her on
the list lately.

I've noticed the same thing here and on a local Flash list. Not sure if it's
because the programmers who're drawn to Flash tend to be tender young
bas+ards, or is it just that programmers in general are condescending punks?

That said, most of you could stand to learn a lot from myself.

Scott


On 10/6/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 AS2 101.
 Try
 http://www.amazon.com/Essential-ActionScript-2-0-Colin-
 Moock/dp/0596006527/s
 r=8-1/qid=1160106358/ref=sr_1_1/104-8535662-7712736?ie=UTF8s=books

 Unfortunately the condescending attitudes have been pretty thick her on
 the list lately.  Victor, pay no mind to the attitude, your question was
 perfectly legit here- it's often hard quickly to find the answer to a
 specific question in books or web sites, just do as he suggested -
 something like this will work (may not be the best way, but how I would
 do it - you can alternatively use getter/setter methods as well):

 //MyClassB.as
 class MyClassB{
 public var ClassBArray:Array;
 public function MyClassB(){
 ClassBArray  = new Array(1,2,3,4);
 }
 }

 //MyClassA.as
 import MyClassB;
 class MyClassA{
 private var theArray:Array;
 public function MyClassA(classb:MyClassB){
 theArray = classb.ClassBArray
 trace(theArray)
 }
 }

 //.fla
 import MyClassB;
 import MyClassA;
 myClassBInstance:MyClassB = new MyClassB()
 myClassAInstance:MyClassA = new MyClassA(myClassBInstance);

 Hope that helps,

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions



 ___
 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




--

: : ) Scott
___
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




--
Cheers,
Ray Chuan
___
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] Setter Problem

2006-10-02 Thread Ray Chuan
 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




--
Cheers,
Ray Chuan
___
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] Projector Wrapper

2006-10-02 Thread Ray Chuan

Hi,

Curiously, John Greden, who is from the same agency as you, happens to
be an active promoter of Xray on this and other list(s). If John can
do it, there's no reason why Nicholas can't.

On 10/3/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:

 Would be interesting to compare with recently released Screenweaver HX
 (http://haxe.org/swhx).

...says one of the authors of Screenweaver HX.  Being a shill doesn't
work unless you use a different name.  ;)
___
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




--
Cheers,
Ray Chuan
___
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] Actionscript and version control

2006-10-01 Thread Ray Chuan

Hi,
you might want to check out this thread:

http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/173375.html

To check out specific packages, eg. com.company.pkg,

/src$ svn co http://repo/src/company/pkg/utils com/company/pkg/utils

Assuming that you already have this directory structure:

src
|-com
  |-company
 |-pkg

So, instead of checking out the packages in com.company.*, you just
check out com.company.pkg.

On 10/2/06, chris daubney [EMAIL PROTECTED] wrote:

Hi,
Anyone using Subclipse to manage a Subversion repository and who may
provide some guidance? I have Eclipse/MATSC/ASDT which I use alongside
the Flash IDE for Actionscript 2 classes/package development, and have
recently decided to introduce Subclipse/Subversion to Eclipse to
maintain version control of all my classes (which until recently I had
kept on the local hard drive within one large directory structure which
mirrored the class packages).

I've digested as much as i quickly can from various sources (including
the online book 'Version Control with Subversion', Ben Collins-Sussman,
Brian W. Fitzpatrick, C. Michael Pilato) to grasp the concepts and
methodologies of version control. While attempting to assimilate this
into my Actionscript workflow:-
- Actionscript syntax checking' in the Eclipse IDE working copy no
longer works after I check out or update from Subversion repository
- Having trouble deciding on a structure for the repository. It would be
useful if I could checkout separate packages rather than the whole
repository and maintain cross referencing to other classes within my
code, which would avoid 'class not found' errors when syntax checking.

Any advice on other add-ons, tools or 'best practice' which I could
introduce into my workflow when working with version control for
Actionscript?

Chris
___
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




--
Cheers,
Ray Chuan
___
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] tracing function calls

2006-09-29 Thread Ray Chuan

Hi,

try this:

function wrapper(obj:Object, prop:String):Void {
 var f:Function = Function(obj[prop]);
 obj[prop] = function() {
   trace({function: prop args: +arguments+});
   return f.apply(obj, arguments);
 }
}

Let's say you want to wrap around the function Kite.fly:

wrapper(Kite, fly);

You could easily write something that wraps every method.

On 9/28/06, Vishal Kapur [EMAIL PROTECTED] wrote:

I am trying to debug a third-party flash movie (so I don't have direct
access to the code, but I can ask them to add small snippets).  What I
would like to be able to do is to trace the name of a function/method
and the arguments it is passed upon invocation of that function.  I
need to be able to do that in a non-intrusive and generic way.

Wondering what people's thoughts are on this.  I can see a couple of
potential ways this could be done: one, override some internal
function that is used to make function calls; two, use a function like
__resolve() that would get called when any defined function is
invoked.  Anybody know if such things exist?  Or if there is some
other, simpler way which I'm missing?

Thanks,
Vishal
___
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




--
Cheers,
Ray Chuan
___
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] PDF2SWF - or other means to convert bytestream PDF to SWF??

2006-09-29 Thread Ray Chuan

Hi,

yeah. But Josh said that files are ok. For example, when you watch a
YouTube video in Firefox, the data is downloaded into your cache but
you can't open it because there's a file lock.

Similarly, if a pdf file is created (with PIs and everything), as long
as you have a file lock no one else can open it while you're using it.

Sorry if i wasn't clear about this.

On 9/28/06, Merrill, Jason [EMAIL PROTECTED] wrote:

FlashPaper 2 allows anyone to convert printable files into Macromedia
Flash documents or PDF files with one click.

Note the usage of the conjunction or.

Yes, FILES.  Not STREAMS.  Maybe you could re-read his original post (or
even the thread title) and then reply. :)

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions




___
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




--
Cheers,
Ray Chuan
___
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: Flashcoders Digest, Vol 20, Issue 80

2006-09-29 Thread Ray Chuan

Hi,
sorry about that.

On 9/29/06, Ettwein, Josh [EMAIL PROTECTED] wrote:

Ray,

While you're correct that flashpaper can create pdfs OR swfs, if you
read my original post, I'm not only solely interested in creating SWFs,
I'm more specifically in need of the ability to create an swf FROM a
bytestream pdf, as Jason was correct in saying. The workflow is like
this:

SQL Server --  .Net App -- bytestream PDF file -- PDF2SWF -- SWF --
OpenLaszlo/Flash Client consumes SWF

I can get PDFs sitting in a known directory converted to SWFs just fine
all day long - the issue is that PDF2SWF likely (at least not in my
experience) won't take bytestream PDF data as input. That's what I need
to do.

If anyone has any solutions that have worked for them - this would be
great.

And please - read posts completely before flaming people, Ray... Jason
was closer to the mark than you were, actually.

Josh



--

Message: 2
Date: Thu, 28 Sep 2006 22:09:44 +0800
From: Ray Chuan [EMAIL PROTECTED]
Subject: Re: [Flashcoders] PDF2SWF - or other means to convert
bytestream PDF  to SWF??
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

the site says:

FlashPaper 2 allows anyone to convert printable files into Macromedia
Flash documents or PDF files with one click.

Note the usage of the conjunction or.

On 9/28/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 Hi,
 you might want to look at FlashPaper:

 I don't think Flashpaper will do a bytestream PDF which is what he
was
 looking for.  Flashpaper creates physical .swf files. Correct me if I
am
 wrong.

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions

___
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




--
Cheers,
Ray Chuan
___
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] Flash-based audio editor?

2006-09-29 Thread Ray Chuan

Hi,

if i remember at an Apollo demo the Adobe people had a waveform
display for sound, by Andre Michell.

http://www.digitalbackcountry.com/images/blog/apollo/apollo_tunes_viz_big.jpg

See the time 23:08 for http://seminars.adobe.acrobat.com/p65594978/

On 9/29/06, Wolfgang Borgon [EMAIL PROTECTED] wrote:

Danny,
Right, it might not have been clear, but it needs to work through the
browser.

My functional requirements aren't too extreme -- some sort of waveform
display would be nice, but as far as export goes I suppose it could send a
list of times to an external command-line audio editor.  Not sure if that
would work.

I'll look into the Director Xtras.  Haven't seen anything yet, but I'll keep
looking.  If you have any more ideas, please let me know.  You've already
been very helpful.
Thanks


On 9/28/06, Danny Kodicek [EMAIL PROTECTED] wrote:


  Hi,
  audacity does me fine (http://audacity.sourceforge.net). Why must it
  be Flash-based? Flash doesn't have any read-write capabilities or LAME
  codecs for it in the first place.
 
  On 9/28/06, Wolfgang Borgon [EMAIL PROTECTED] wrote:
   I've been searching for a flash-based audio editor, enabling
  simple editing
   of audio, (cut/trim/split, and perhaps volume adjust) through
  the browser.

 The key phrase was 'through the browser', I suspect.

 It wouldn't be too hard to make such a thing, assuming you don't need to
 export the edited files at the end: if it's just a 'toy' at a
 session-by-session level, then you're just using standard functions of the
 Sound object. If you wanted to add more complex stuff like waveform
 display,
 or the ability to export the data at the end, you're talking something I
 think Flash wouldn't be able to do. Have you considered Director with an
 Xtra? I'm pretty sure there must be something decent out there using the
 Amplitude Xtra or something similar.

 Danny

 ___
 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




--
Cheers,
Ray Chuan
___
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] Flash-based audio editor?

2006-09-29 Thread Ray Chuan

Hi,

found the source and demo:

http://blog.benstucki.net/?id=18

It's a flex component.

On 9/29/06, Ray Chuan [EMAIL PROTECTED] wrote:

Hi,

if i remember at an Apollo demo the Adobe people had a waveform
display for sound, by Andre Michell.

http://www.digitalbackcountry.com/images/blog/apollo/apollo_tunes_viz_big.jpg

See the time 23:08 for http://seminars.adobe.acrobat.com/p65594978/

On 9/29/06, Wolfgang Borgon [EMAIL PROTECTED] wrote:
 Danny,
 Right, it might not have been clear, but it needs to work through the
 browser.

 My functional requirements aren't too extreme -- some sort of waveform
 display would be nice, but as far as export goes I suppose it could send a
 list of times to an external command-line audio editor.  Not sure if that
 would work.

 I'll look into the Director Xtras.  Haven't seen anything yet, but I'll keep
 looking.  If you have any more ideas, please let me know.  You've already
 been very helpful.
 Thanks


 On 9/28/06, Danny Kodicek [EMAIL PROTECTED] wrote:
 
 
   Hi,
   audacity does me fine (http://audacity.sourceforge.net). Why must it
   be Flash-based? Flash doesn't have any read-write capabilities or LAME
   codecs for it in the first place.
  
   On 9/28/06, Wolfgang Borgon [EMAIL PROTECTED] wrote:
I've been searching for a flash-based audio editor, enabling
   simple editing
of audio, (cut/trim/split, and perhaps volume adjust) through
   the browser.
 
  The key phrase was 'through the browser', I suspect.
 
  It wouldn't be too hard to make such a thing, assuming you don't need to
  export the edited files at the end: if it's just a 'toy' at a
  session-by-session level, then you're just using standard functions of the
  Sound object. If you wanted to add more complex stuff like waveform
  display,
  or the ability to export the data at the end, you're talking something I
  think Flash wouldn't be able to do. Have you considered Director with an
  Xtra? I'm pretty sure there must be something decent out there using the
  Amplitude Xtra or something similar.
 
  Danny
 
  ___
  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



--
Cheers,
Ray Chuan




--
Cheers,
Ray Chuan
___
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] a good profiler

2006-09-29 Thread Ray Chuan

Hi,
did a quick google search and I found AsProf:

http://www.nochump.com/asprof/

It's a Flash component.

Alternatively, look at hamtasc:

http://osflash.org/pipermail/osflash_osflash.org/2006-January/006720.html
http://www.osflash.org/hamtasc#rb_auto_trace_function
http://www.osflash.org/hamtasc#rb_auto_trace_pop_function

These two options allow you to be notified when execution 1) starts
and 2) ends in a function, so you can write your own profiler.

ActionStep has an implementation of this, look at
org.actionstep.debug.ASProfiler.

Sample output:
count   timename
1   88  org.actionstep.ASDebugger::trace
1   87  org.actionstep.ASDebugger::start
1   86  org.actionstep.ASDebugger::begin
1   0   org.actionstep.ASDebugger::ASDebugger

On 9/30/06, Seth Caldwell [EMAIL PROTECTED] wrote:

I'm looking for an automated actionscript profiler, one where I basically
just include a file, say start and stop and it traces out percent cpu in
each method of every class that is activated during that time.

Anyone know of something like this?


Thanks a ton if so.

Seth
___
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




--
Cheers,
Ray Chuan
___
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] Flash 7 to 8 samples

2006-09-29 Thread Ray Chuan

? Encoded to do ... ?

On 9/30/06, Gregory Frank [EMAIL PROTECTED] wrote:

Any swf or movie files that have been encoded to do this available out there?
___
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




--
Cheers,
Ray Chuan
___
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] Flash-based audio editor?

2006-09-28 Thread Ray Chuan

Hi,
audacity does me fine (http://audacity.sourceforge.net). Why must it
be Flash-based? Flash doesn't have any read-write capabilities or LAME
codecs for it in the first place.

On 9/28/06, Wolfgang Borgon [EMAIL PROTECTED] wrote:

I've been searching for a flash-based audio editor, enabling simple editing
of audio, (cut/trim/split, and perhaps volume adjust) through the browser.
Is anyone aware of an open source project, or a commercial product that
provides this functionality?
Thank you
___
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




--
Cheers,
Ray Chuan
___
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] remoting alternatives?

2006-09-28 Thread Ray Chuan

Hi,

thanks. Maybe you could put some info on the osflash wiki or
elsewhere, because i don't know what vegas/asagard does, or does
different from other projects.

On 9/27/06, eka [EMAIL PROTECTED] wrote:

Hello :)

You can use my framework OpenSource Vegas : http://osflash.org/vegas

NB : you can find my project too in google code :
http://code.google.com/p/vegas/

With this extension ASGard : http://osflash.org/asgard

In ASGard you can find asgard.net.remoting package  :

AS2 version :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/asgard/net/remoting/
AS3 version :
http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/asgard/net/remoting/
SSAS version (FMS) :
http://svn1.cvsdude.com/osflash/vegas/SSAS/trunk/src/src/asgard/net/remoting/

You can find example to use this implementation in AS2 example :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/asgard/net/remoting/

EKA+ :)





2006/9/27, Ray Chuan [EMAIL PROTECTED]:

 Hi,
 does any of you use a non-Macromedia remoting implementation? I know
 that ActionStep and pixlib has one.

 --
 Cheers,
 Ray Chuan
 ___
 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




--
Cheers,
Ray Chuan
___
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] PDF2SWF - or other means to convert bytestream PDF to SWF??

2006-09-28 Thread Ray Chuan

Hi,

the site says:

FlashPaper 2 allows anyone to convert printable files into Macromedia
Flash documents or PDF files with one click.

Note the usage of the conjunction or.

On 9/28/06, Merrill, Jason [EMAIL PROTECTED] wrote:

Hi,
you might want to look at FlashPaper:

I don't think Flashpaper will do a bytestream PDF which is what he was
looking for.  Flashpaper creates physical .swf files. Correct me if I am
wrong.

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions






-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Ray Chuan
Sent: Thursday, September 28, 2006 4:30 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] PDF2SWF - or other means to convert
bytestream PDF
to SWF??

Hi,
you might want to look at FlashPaper:

http://www.adobe.com/products/flashpaper/

On 9/28/06, Ettwein, Josh [EMAIL PROTECTED] wrote:
 I have a need to consume PDFs with the flash player - no problem in
the
 past - just use PDF2SWF to convert to multiframe SWF and loadMovie.
The
 problem I'm having now is that the specs I've been given require
that no
 PDF files be stored on the server, so the PDF can't physically
exist,
 even in a temp dir for PDF2SWF to hit it. I can't really see a way
to
 pass the byte stream of the PDF as it is rendered from the database
 content from .Net into PDF2SWF to render the SWF. Anyone else ever
pull
 this off?



 If it's not possible (in a reasonably straightforward manner) to do
it
 dynamically, I will just tell the powers that be that they're just
going
 to have to store the PDF in a temp dir on the server until PDF2SWF
is
 done with it and then just destroy it. I don't really see a problem
with
 that, and I've done it with great success in the past, but there's a
lot
 of PII (personally identifiable info) in these PDFs we're creating,
and
 the execs are concerned about storing anything for even a moment.



 If anyone has a solution that fits my needs, I would be forever
 grateful. :-)



 Josh

 ___
 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



--
Cheers,
Ray Chuan
___
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




--
Cheers,
Ray Chuan
___
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] remoting alternatives?

2006-09-27 Thread Ray Chuan

Hi,
does any of you use a non-Macromedia remoting implementation? I know
that ActionStep and pixlib has one.

--
Cheers,
Ray Chuan
___
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] How do you manage your classes?

2006-09-26 Thread Ray Chuan

Hi,

On 9/26/06, greg h [EMAIL PROTECTED] wrote:

Dan,

I can not answer your specifc questions, so I hope that others will jump in
and add their voices along with details about how they manage the problems
you described.

I just want to comment generally that Subversion is the successor to CVS.
You can find full documentation here:
http://svnbook.red-bean.com/

If you are going to use open source version control, I will hazard to say
that Subversion can not be beat.

For automation, I believe that Subversion integrates well with Ant.


It does not. There are no built in svn tasks.

http://ant.apache.org/manual/tasksoverview.html#scm

But you can of course write commands to do it.


hth,

g

On 9/25/06, Dan Rogers [EMAIL PROTECTED] wrote:

 I'm not very familiar with subversion-  can it handle shared modules
 (or recursive modules I guess)?
 I am curious how one would handle utility classes that get included
 in multiple projects...


 On Sep 25, 2006, at 5:03 PM, eric dolecki wrote:

  Using SVN, etc. make a repository on a shared server somewhere.
  Include
  classes from there in your projects. Just make sure you update 
  you're all
  good to go.
 
  On 9/25/06, Dan Rogers [EMAIL PROTECTED] wrote:
 
  Flashcoders,
 
  I've been wondering how other flash developers deal with AS2/AS3
  class management on both a project-based and common library level,
  while addressing the need to package up source code for a given
  project to deliver to a team member or client.
 
  I've used version control before, as well as doing the common
  classpath thing for shared classes... but when it's time to deliver
  the source code to someone, I would have to go in and hunt for all
  the classes I used on a project and copy them to the FLA directory
  (and recreate the com.package... structure as well).  Sometimes it
  seems faster to simply create the AS files along with the FLA (in a
  single package), and copy over utility files as needed.  But then you
  get into duplicate classes scattered over multiple projects.
 
  Can anyone provide any insight to a system that works well for them?
  For example, does anyone run custom shell scripts (such as rsync)
  that sync the current project with the main classpath directory?
 
  Thanks,
  -Danro

___
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




--
Cheers,
Ray Chuan
___
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] How do you manage your classes?

2006-09-26 Thread Ray Chuan

Hi,
you can have two repositories: one for your core classes that you
reuse, and another to hold the code for the project that you're
working on.

So your working directory looks like this:

ProjectFoo
|- core classes (not part of project repo)
|- core-rev.txt (contains revision of core repo you are using)
|- src (in)
|- deploy (in)
...

Just leave a textfile containing the revision of the core classes that
you are using at that time, so you don't have to add the core classes
to your project repository.

On 9/27/06, Dan Rogers [EMAIL PROTECTED] wrote:

This is generally what I have been doing for my projects as well.  I
am guessing that SVN users are doing something similar but instead of
copying files manually, they are checking out a set of files and
using that as their local snapshot.  During project A development,
they would update, check-in, etc...  Then once it's time to move on
to Project B, they would create a new module in subversion for the
Project B files.

The problem I am trying to getting my head around is how to work with
common shared classes throughout multiple projects...  BUT still keep
copies of these classes in the local snapshot for archiving.  I am
wondering if the SVN externals functionality would be the right
solution?  Has anyone successfully used it for this purpose?

-Danro


On Sep 26, 2006, at 10:18 AM, Mike Keesey wrote:

 Lately I actually copy all packages to a folder within my project's
 folder. Why? Suppose you have a package and you use it on project A.
 Later, you use it on project B, and realize there are some issues, so
 you change some of the code. Project B finishes. Then, later on, you
 find you have to go back to project A with some tweaks and
 republish it.
 Because of changes in the package, there may be problems--at best you
 will still have to spend time regression testing.

 Copying your packages to a project-local folder means that you have a
 secure snapshot of the package.
 ―
 Mike Keesey

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Dan Rogers
 Sent: Monday, September 25, 2006 4:36 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] How do you manage your classes?

 Flashcoders,

 I've been wondering how other flash developers deal with AS2/AS3
 class management on both a project-based and common library level,
 while addressing the need to package up source code for a given
 project to deliver to a team member or client.

 I've used version control before, as well as doing the common
 classpath thing for shared classes... but when it's time to deliver
 the source code to someone, I would have to go in and hunt for all
 the classes I used on a project and copy them to the FLA directory
 (and recreate the com.package... structure as well).  Sometimes it
 seems faster to simply create the AS files along with the FLA (in a
 single package), and copy over utility files as needed.  But then you
 get into duplicate classes scattered over multiple projects.

 Can anyone provide any insight to a system that works well for them?
 For example, does anyone run custom shell scripts (such as rsync)
 that sync the current project with the main classpath directory?

 Thanks,
 -Danro
 ___
 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




--
Cheers,
Ray Chuan
___
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 loaded clip from calling Stage.addListener?

2006-09-25 Thread Ray Chuan

Hi,
Stage.scaleMode = noScale

On 9/26/06, Alan Queen [EMAIL PROTECTED] wrote:

I'm loading an external swf at runtime from a different domain,
and the loaded swf is doing some resizing when the Stage is resized..

I'm trying to prevent the loaded swf from doing this... is there a way?

--
- Alan Queen
___
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




--
Cheers,
Ray Chuan
___
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] Using transform.matrix on loaded movie problem

2006-09-22 Thread Ray Chuan

Hi,
try this:

trace(System.security.sandboxType);

You should get localTrusted. If you don't use Adobe Settings Manager
to add the swf as a trusted swf.

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

On 9/21/06, Robert Sköld [EMAIL PROTECTED] wrote:

I've made a little app that loads in an image from the server and using
the new transform matrix i'm modifying the image, rotation and scale
and translate... The problem is that while testing, i get a security
sandbox error like this:

*** Security Sandbox Violation ***
SecurityDomain 'http://localhost/test/getImages.php' tried to access
incompatible context
'file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/Workspace/test/public/index.swf'

I've tried using System.security.allowDomain(http://localhost;); and
i've added a crossdomain.xml in localhost root... but i still get the
error.

I don't think i get it while running it in a browser from
http://localhost/test/index.swf, but the modifications i do using the
transform matrix doesn't apply, so i guess it's something wrong, and
the sandbox error makes it quite impossible to debug.

Anyone know a workaround for this? or more suggestions how to make it
stop whining about security when i'm in the ide, which should be quite
safe...?

___
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




--
Cheers,
Ray Chuan
___
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] Flash Develop and XPath

2006-09-19 Thread Ray Chuan

Hi,
check the code. That could mean that currAttr is defined twice, ie:

function() {
 var x = 100;
 if(true) {
   var x = 200;
   ..
 }
}

On 9/18/06, Jorge Antonio Diaz Gutierrez [EMAIL PROTECTED] wrote:

Ron, I'm working with FlashDevelop 2 RC3, this is the code I use:

import mx.xpath.*

class Main
{
static function main()
{
var xmlTexto:XML = new XML;
xmlTexto.onLoad = function (success:Boolean) {
if(success){
var hola:Array = XPathAPI.selectNodeList(xmlTexto, 
title);
trace(hola)
}
else{
trace(Error)
}
}
xmlTexto.load (Source/rss2.xml);
}
}

And I have this Error in XPathAPI class:

C:\Documents and Settings\jagutierrez\Local Settings\Application 
Data\Macromedia\Flash 8\es\Configuration\Classes/mx/xpath/XPathAPI.as:444: 
characters 8-20 : type error Local variable redefinition : currAttr


Thanks for any help

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Wheeler
Sent: Monday, September 18, 2006 8:46 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash Develop and XPath

You will have to give us a bit of information before anyone can comment.
What do you want to do? (Example XML not a bad idea)
What have you tried? (You might show a small piece of code)
What happened when you tried that? (Error messages? Debug output?)

Ron


Jorge Antonio Diaz Gutierrez wrote:
 Hi everyone,

 I´m trying to use XPathAPI from Flash Develop and I Can´t do I´t.

 Help me on it please

 

 ___
 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




--
Cheers,
Ray Chuan
___
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