RE: [Flashcoders] Get Timezone City?

2012-05-17 Thread Karina Steffens
Hi David,

The IP address could work if your Air has access to that. I don't know much
about it, but for a web project I worked on a few years ago, the SEO people
used the IP to determine the user's country and redirect according to that
(Ireland or US site). I think they were using some kind of Geo-IP database
service for this. 

Karina



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
Sent: 17 May 2012 10:31
To: Flash Coders List
Subject: Re: [Flashcoders] Get Timezone City?

Thanks Karl,

I can grab the time using the Date class in AS3, I'm more stuck on how to
detect what city they have set in their system preferences or some other way
to detect what city they are in.

IP address?

Thanks,

David

On 17 May 2012 00:37, Karl DeSaulniers k...@designdrumm.com wrote:

 You could use PHPs date function.

 http://us.php.net/manual/en/**function.date.phphttp://us.php.net/manu
 al/en/function.date.php 
 http://www.w3schools.com/php/**func_date_date.asphttp://www.w3schools
 .com/php/func_date_date.asp

 ?php
 $timezone = date('T');
 ?

 or

 ?php
 $timezone = date('e');
 ?

 Then flashvars it into your flash clock.
 Just a thought.

 Best,
 Karl



 On May 16, 2012, at 5:20 PM, David Hunter wrote:

  Hi All,

 I'm making a screensaver / air app of a clock and one of the desired 
 features is to grab the city of the timezone that the computer is set to.
 For example my clock is set to GMT and London, but I could set it to 
 Eastern Daylight Time and the city to New York or Miami.

 Does anyone know if it is possible to grab the city selected 
 associated with the time of the computer? (I'm on a mac, not sure if 
 the setup is the same on a PC...)

 Thanks,

 David

 --
 David Hunter

 www.davidhunterdesign.com
 +44 (0) 7869 104 906
 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com 
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://ch
 attyfig.figleaf.com/mailman/listinfo/flashcoders


 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com

 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com 
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://cha
 ttyfig.figleaf.com/mailman/listinfo/flashcoders




--
David Hunter

www.davidhunterdesign.com
+44 (0) 7869 104 906
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Accessing FlashVars

2012-05-01 Thread Karina Steffens
Hi Kerry,

Digging a few years back, I unearthed some code. 

Here's the html:

object data=main.swf id=main
type=application/x-shockwave-flash
width=980
height=600 
  param name=movie value=main.swf / 
  param name=menu value=false / 
  param name=quality value=best / 
  param name=bgcolor value=#ff /
  param name=flashVersion value=9 / 
  param name=flashVars value=product=test/

/object

And this is from the Main Class constructor:

product = root.loaderInfo.parameters.product;

For the life of me I can't remember why I used root in a Main constructor
(copy-pasta from another class or maybe the movie was loaded by another?),
but it worked. 
Maybe you could try this combo with a bare-bones test  movie. 

(Note: This wasn't done in FlashBuilder, though - Flash IDE compiler with
FlashDevelop for code editing)

Karina







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
Thompson
Sent: 01 May 2012 06:22
To: Flash Coders List
Subject: Re: [Flashcoders] Accessing FlashVars

That's one way of doing it, but the embed tag has been deprecated. Well,
maybe not officially deprecated, but it's considered obsolete.

I've done some more digging, and it may not even be related to the
FlashVars. There are some other things in the HTML that aren't working, so
there may be a deeper, or prior, problem.

Thanks, Karl.

Cordially,

Kerry Thompson

On Tue, May 1, 2012 at 1:12 AM, Karl DeSaulniers
k...@designdrumm.comwrote:

 Something like this?

 object
 ...
  param name=FlashVars value=appURL= testappURL2=hello ...

  embed ... FlashVars=appURL= testappURL2=hello ...  / /object


 FLASH ---

 function init(e:Event) {
 var flashVars=this.loaderInfo.**parameters;
var appURL=flashVars.appURL;
 }
 this.loaderInfo.**addEventListener(Event.**COMPLETE, init);

 HTH,
 Karl


 On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote:

  Flash Builder 4 AS3 project, Windows 7, Firefox 12.0.

 I can't access the FlashVars in the HTML file. I've been working on this
 all day, and it's driving me crazy (crazier). Do you see anything in the
 following code?

 In the constructor of my default AS3 file, I have this:

  this.loaderInfo.**addEventListener(Event.**COMPLETE, init);

 and in the init() function:

   var flashVars:Object;

   flashVars = this.loaderInfo.parameters;

 When I look at it in the debugger, flashVars is an object, but it has no
 parameters. The relevant HTML is pretty straightforward:

   object classid=clsid:D27CDB6E-AE6D-**11cf-96B8-44455354
 width=100% height=100% id=RMK_Beta
   param name=movie value=RMK_Beta.swf /
   param name=FlashVars value=appUrl=test /
   param name=quality value=high /
   param name=bgcolor value=#ff /
   param name=allowScriptAccess value=sameDomain /
   param name=allowFullScreen value=true /
   !--[if !IE]--
   object type=application/x-shockwave-**flash
 data=RMK_Beta.swf width=100% height=100%
  param name=FlashVars value=appUrl=test
 /
   param name=quality value=high /
   param name=bgcolor value=#ff /
   param name=allowScriptAccess value=sameDomain /
   param name=allowFullScreen value=true /
   !--![endif]--
   !--[if gte IE 6]--
   p
   Either scripts and active content are not permitted
 to run or Adobe Flash Player version
   10.0.0 or greater is not installed.
   /p
   !--![endif]--
   a
href=http://www.adobe.com/go/**getflashplayerhttp://www.adobe.com/go/getfl
ashplayer
 
   img src=
 http://www.adobe.com/images/**shared/download_buttons/get_**

flash_player.gifhttp://www.adobe.com/images/shared/download_buttons/get_fla
sh_player.gif
 
 alt=Get Adobe Flash Player /
   /a
   !--[if !IE]--
   /object
   !--![endif]--
   /object
 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com

http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig
.figleaf.com/mailman/listinfo/flashcoders


 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com


 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com

http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig
.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Karina Steffens
Hey Kerry,

I think it's because you assigned the event to loaderinfo - not the Main class 
instance, and then you're asking for the loaderinfo's loaderinfo, when it's the 
Main's loaderinfo that you need. 

Also I don't think you need any event at all. You should be able to access the 
flashvars from the Main function's constructor (loaderinfo.parameters)

Cheers,

Karina

On 30 Apr 2012, at 23:46, Kerry Thompson al...@cyberiantiger.biz wrote:

 Flash Builder 4 AS3 project, Windows 7, Firefox 12.0.
 
 I can't access the FlashVars in the HTML file. I've been working on this
 all day, and it's driving me crazy (crazier). Do you see anything in the
 following code?
 
 In the constructor of my default AS3 file, I have this:
 
   this.loaderInfo.addEventListener(Event.COMPLETE, init);
 
 and in the init() function:
 
var flashVars:Object;
 
flashVars = this.loaderInfo.parameters;
 
 When I look at it in the debugger, flashVars is an object, but it has no
 parameters. The relevant HTML is pretty straightforward:
 
object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
 width=100% height=100% id=RMK_Beta
param name=movie value=RMK_Beta.swf /
param name=FlashVars value=appUrl=test /
param name=quality value=high /
param name=bgcolor value=#ff /
param name=allowScriptAccess value=sameDomain /
param name=allowFullScreen value=true /
!--[if !IE]--
object type=application/x-shockwave-flash
 data=RMK_Beta.swf width=100% height=100%
   param name=FlashVars value=appUrl=test
 /
param name=quality value=high /
param name=bgcolor value=#ff /
param name=allowScriptAccess value=sameDomain /
param name=allowFullScreen value=true /
!--![endif]--
!--[if gte IE 6]--
p
Either scripts and active content are not permitted
 to run or Adobe Flash Player version
10.0.0 or greater is not installed.
/p
!--![endif]--
a href=http://www.adobe.com/go/getflashplayer;
img src=
 http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif;
 alt=Get Adobe Flash Player /
/a
!--[if !IE]--
/object
!--![endif]--
/object
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Karina Steffens
Kerry,

See if you can find the stage from any stage-member instance and get its 
loaderinfo parameters. 

Otherwise, you could test with the barest-bone HTML code possible to see if the 
embedding code is the culprit.Google flash sate for the simplest object 
code, losing the classids and conditionals. 
I can't copy/paste code or test any of the theories right now, because I'm 
nowhere near an actual computer, but I'll do it in the morning if you're still 
stuck (maybe best to do something else for a while).
Actually, why am I still awake? It's 2 am!

Karina

On 1 May 2012, at 01:00, Kerry Thompson al...@cyberiantiger.biz wrote:

 Thanks, Karina and Jason.
 
 Jason, I've traced out the url, and it's not in that. For the time being,
 I'm running locally, and the URL just points to the swf.
 
 Karina, I've tried it the way you suggest, with no luck. I've looked at
 loaderInfo.parameters in the debugger, in the constructor, and parameters
 is an object, but it has no properties. It should have at least one
 parameter--I'm declaring 5 parameters in the HTML, but it's showing none of
 them. I'm wondering if the problem has to do with the object's parameters,
 and not specifically FlashVars.
 
 Cordially,
 
 Kerry Thompson
 
 On Mon, Apr 30, 2012 at 7:27 PM, Karina Steffens 
 kar...@neo-archaic.netwrote:
 
 Hey Kerry,
 
 I think it's because you assigned the event to loaderinfo - not the Main
 class instance, and then you're asking for the loaderinfo's loaderinfo,
 when it's the Main's loaderinfo that you need.
 
 Also I don't think you need any event at all. You should be able to access
 the flashvars from the Main function's constructor (loaderinfo.parameters)
 
 Cheers,
 
 Karina
 
 On 30 Apr 2012, at 23:46, Kerry Thompson al...@cyberiantiger.biz wrote:
 
 Flash Builder 4 AS3 project, Windows 7, Firefox 12.0.
 
 I can't access the FlashVars in the HTML file. I've been working on this
 all day, and it's driving me crazy (crazier). Do you see anything in the
 following code?
 
 In the constructor of my default AS3 file, I have this:
 
  this.loaderInfo.addEventListener(Event.COMPLETE, init);
 
 and in the init() function:
 
   var flashVars:Object;
 
   flashVars = this.loaderInfo.parameters;
 
 When I look at it in the debugger, flashVars is an object, but it has no
 parameters. The relevant HTML is pretty straightforward:
 
   object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
 width=100% height=100% id=RMK_Beta
   param name=movie value=RMK_Beta.swf /
   param name=FlashVars value=appUrl=test /
   param name=quality value=high /
   param name=bgcolor value=#ff /
   param name=allowScriptAccess value=sameDomain /
   param name=allowFullScreen value=true /
   !--[if !IE]--
   object type=application/x-shockwave-flash
 data=RMK_Beta.swf width=100% height=100%
  param name=FlashVars value=appUrl=test
 /
   param name=quality value=high /
   param name=bgcolor value=#ff /
   param name=allowScriptAccess value=sameDomain /
   param name=allowFullScreen value=true /
   !--![endif]--
   !--[if gte IE 6]--
   p
   Either scripts and active content are not
 permitted
 to run or Adobe Flash Player version
   10.0.0 or greater is not installed.
   /p
   !--![endif]--
   a href=http://www.adobe.com/go/getflashplayer;
   img src=
 http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif
 
 alt=Get Adobe Flash Player /
   /a
   !--[if !IE]--
   /object
   !--![endif]--
   /object
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Karina Steffens
That's possible... Could it be that simple?

Hmmm... should it be FlashVars or flashVars? Or does it even matter?

Might also try embedding with swfObject and see if there's any difference. 

Now bed. Really. 

Karina

On 1 May 2012, at 01:52, Peter Ginneberge p.ginnebe...@telenet.be wrote:

 Not sure it matters, but there's quotes missing in the HTML:
 
   param name=FlashVars value=appUrl=test /
 
 probably should be: 
   param name=FlashVars value=appUrl=test /
 
 - Original Message - From: Kerry Thompson al...@cyberiantiger.biz
 To: FlashCoders flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, May 01, 2012 12:46 AM
 Subject: [Flashcoders] Accessing FlashVars
 
 
 Flash Builder 4 AS3 project, Windows 7, Firefox 12.0.
 I can't access the FlashVars in the HTML file. I've been working on this
 all day, and it's driving me crazy (crazier). Do you see anything in the
 following code?
 In the constructor of my default AS3 file, I have this:
  this.loaderInfo.addEventListener(Event.COMPLETE, init);
 and in the init() function:
   var flashVars:Object;
   flashVars = this.loaderInfo.parameters;
 When I look at it in the debugger, flashVars is an object, but it has no
 parameters. The relevant HTML is pretty straightforward:
   object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
 width=100% height=100% id=RMK_Beta
   param name=movie value=RMK_Beta.swf /
   param name=FlashVars value=appUrl=test /
   param name=quality value=high /
   param name=bgcolor value=#ff /
   param name=allowScriptAccess value=sameDomain /
   param name=allowFullScreen value=true /
   !--[if !IE]--
   object type=application/x-shockwave-flash
 data=RMK_Beta.swf width=100% height=100%
  param name=FlashVars value=appUrl=test
 /
   param name=quality value=high /
   param name=bgcolor value=#ff /
   param name=allowScriptAccess value=sameDomain /
   param name=allowFullScreen value=true /
   !--![endif]--
   !--[if gte IE 6]--
   p
   Either scripts and active content are not permitted
 to run or Adobe Flash Player version
   10.0.0 or greater is not installed.
   /p
   !--![endif]--
   a href=http://www.adobe.com/go/getflashplayer;
   img src=
 http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif;
 alt=Get Adobe Flash Player /
   /a
   !--[if !IE]--
   /object
   !--![endif]--
   /object
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] SCORM development and packaging for LMS

2011-12-19 Thread Karina Steffens
Hi Matt,

That's a relief, I just re-read the technical requirements, and they state
Scorm 1.2 (although the server's help files mention both).

One last question for now - what do you use to generate the Manifest file?
Is there a freeware solution out there, or is it something done by hand?

Thanks,
Karina

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins
 Sent: 15 December 2011 5:30
 To: Flash Coders List
 Subject: Re: [Flashcoders] SCORM development and packaging for LMS
 
 Oh no, go for old! 1.2 is so much easier and is still very very widely
 supported. But also ask your client.
 
 
 
 On Dec 15, 2011, at 12:25 PM, Karina Steffens kar...@neo-archaic.net
 wrote:
 
  Found it, it looks quite detailed.
 
  I guess I better aim for 2004 - since I'm starting from scratch,
 there's no
  point in going for an older protocol, although the many more files
 sounds
  a bit daunting. Also the idea of creating a manifest file with every
 single
  asset by hand...
 
  Thanks,
  Karina
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
  boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins
  Sent: 15 December 2011 4:17
  To: Flash Coders List
  Subject: Re: [Flashcoders] SCORM development and packaging for LMS
 
  Yeah a scorm package is a zip file. You'll need to include the
  manifest file, imsmanifest.xml, that contains the course info. Scorm
  2004 has many more files for more metadata that you'll need. Check
 out
  scorm.com for info and google a PDF called in the eye of the scorm
  it's a good primer.
 
 
 
  On Dec 15, 2011, at 10:44 AM, Karina Steffens karina@neo-
 archaic.net
  wrote:
 
  Jason, Matt, Nathan - thanks for the pipewerks endorsement. I've
  already
  downloaded the AS3 classes and the JavaScript wrapper, and it's
 good
  to know
  that the code is solid.
 
  But how do I go about compiling the lot into a SCORM package for
  uploading
  to the LMS? What is a SCORM package anyway? Is it just a zip file
  with all
  the ingredients, or a special format that requires a tool? The
  TotalLMS
  files mention something about compatible packages for proper
  versioning.
 
  Thanks,
  Karina
 
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-
  boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik
  Sent: 15 December 2011 3:07
  To: Flash Coders List
  Subject: Re: [Flashcoders] SCORM development and packaging for LMS
 
  I've used pipwerks SCORM wrapper with an elearning course I did a
  couple
  years back.  Just ExternalInterface calls and letting the
 javascript
  do
  the
  dirty work for me seemed best for me at the time.
 
  http://pipwerks.com/2008/02/10/flash-demos-for-scorm-actionscript-
  classes-now-available/
 
  -hth
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] flash game source code

2010-06-05 Thread Karina Steffens
I actually wrote one from scratch a year ago for a client. My first  
AS3 project. Never got paid for it, though :-(


Karina



On 5 Jun 2010, at 04:20, Michael Stocke mikesto...@hotmail.com wrote:



Good evening everyone.



I would like to make a space invaders clone using AS3. I don't have  
alot of time, so developing from scratch isn't really an option.  
Does anyone have any suggestions for places to find source code?  
Flashkit is too old, and I haven't been able to find anything at kirupa.com 
. I've seen a number of emulators, but I want something that I can  
customize with my own assets and animations if possible. Any  
suggestions anyone can give would be appreciated. Thanks.


Foundry Designs Inc.
Professional Website Design and Online Marketing

Mike Stocke
msto...@foundrydesigns.com
248.787.1306



_
Hotmail is redefining busy with tools for the New Busy. Get more  
from your inbox.

http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Regain stage focus

2010-05-31 Thread Karina Steffens
Thanks for the replies guys.

Changing the wmode to window is not possible, because it's a drop down
menu over html elements - it has to remain transparent. Besides, I tried
that during testing, and it didn't help.

Hendrik is correct about the focus, it's in the web-browser, not Flash.  I
don't even think it's about focus anymore, the situation got weird. When the
top of the Flash is set to 0 (or even at 10 pixels), everything works. But
when I try to move it down a bit lower in the browser with CSS (in any way
possible: setting the top value, setting the top value of its parent,
setting various margins and paddings, you name it), the moment you scroll
down, the rollovers become inactive.

I did solve it in the end by keeping it at 0 and adding white space at the
top of the flash movie itself, but that's a bit of a kludge. The CSS is an
adaptation of an existing template for the CMS, so I have no idea what can
be causing the bug. Some kind of z-indexing problem? Anything else that
could be interfering? 

Mystified,
Karina



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Sumeet Kumar
 Sent: 31 May 2010 6:08
 To: Flash Coders List
 Subject: Re: [Flashcoders] Regain stage focus
 
 Hello :)
 
 
 In the object tag  try making wmode = window.
 
 Thanks
 Sumeet Kumar
 
 
 
 - Original Message -
 From: Henrik Andersson he...@henke37.cjb.net
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Sunday, May 30, 2010 1:47 PM
 Subject: Re: [Flashcoders] Regain stage focus
 
 
 Cor wrote:
  At any given moment:
 stage.focus = stage;
 
  or
 
 stage.focus = yourInputField;
 
 Wrong focus, I am certain that the issue is not about the focus
 internal
 to the player, but the focus in the full webbrowser. The full flash
 player is lacking the focus.
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Regain stage focus

2010-05-29 Thread Karina Steffens

Hi List,

I'm working on a flash dropdown menu for an html site (AS3 FP10). After a
wasted Friday and Saturday morning I finally figured out how to get the
menus appear above html items in Firefox without obscuring mouse input on
items below them (in case anyone's interested, using ExternalIntertface to
change the height of the menu bar Object with JavaScript seems to be the
only way).

(And yes, it would have been better to use a CSS menu, or even dhtml for the
animation, but my client insisted on Flash).

But now I'm having another Firefox related issue - sometimes interacting
with other page elements, or even scrolling the page, seems to lose the
focus on the Flash object, and the rollovers stop working until the swf
receives a click. It only seems to happen in Firefox, so far - IE8 behaves
as expected, and I've yet to test on other browsers (oh joy...).

So the question is, what's the best way to regain stage focus without
clicking on it? Is it even possible?

Thanks,
Karina


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


RE: [Flashcoders] Regain stage focus

2010-05-29 Thread Karina Steffens
You mean rains, right? :P 

So, there's no way to regain (or at least to rain...) focus without clicking
at all? Not even by using a mouseover event or a timer inside flash?

And more rain on my parade: After uploading the flash movie to the server,
some of the links in the dropdown menu have stopped working - clicking on
the doesn't do anything, while others seem to be ok. And it's arbitrary per
click... And this appears to be cross browser, while locally it's fine. Any
ideas what I should be looking for here?

Karina


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
 Sent: 29 May 2010 6:29
 To: Flash Coders List
 Subject: Re: [Flashcoders] Regain stage focus
 
 Karina Steffens  wrote:
 
  So the question is, what's the best way to regain stage focus without
  clicking on it? Is it even possible?
 
 AFAIK, no, it's not possible. It's a security issue--less scrupulous
 people could wreak havoc by forcing focus on a .swf. Anyway, it rais
 too much in Dublin ;-)
 
 Cordially,
 
 Kerry Thompson
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Regain stage focus

2010-05-29 Thread Karina Steffens
This is getting weirder by the moment...

It's not even a question of regaining focus anymore, but why is it losing it
in the first place?

When first going to the page, the rollovers work fine with no need to
activate. 
Then if you click somewhere on the page (or even a different window) without
scrolling, it's still ok. 
But after scrolling the page (scrollbar or scroll wheel), the rollovers stop
responding until you click somewhere in the movie. 
More than that, in Safari (Windows) I can't even click anywhere anymore -
it becomes completely unresponsive.

HOWEVER - I found plenty of examples of flash movies embedded in html that
didn't do it, including some of my own.
 
I'm using SwfObject2 to embed the flash (in a CMS Made Simple Framework).
Could that have anything to do with it? 

The generated object looks like this:

object style=visibility: visible; data=uploads/theme/menu.swf
name=menu id=flash-menu type=application/x-shockwave-flash width=900
align=left height=35param value=true name=playparam value=true
name=loopparam value=false name=menuparam value=high
name=qualityparam value=showall name=scaleparam value=t
name=salignparam value=transparent name=wmodeparam value=#FF
name=bgcolorparam value=false name=devicefontparam value=true
name=seamlesstabbingparam value=false name=swliveconnectparam
value=false name=allowfullscreenparam value=sameDomain
name=allowscriptaccessparam value=all name=allownetworking/object
script type=text/javascript


Karina

PS: The links problem is solved. Using an attribute instead of an element in
the XML to store the url did it. 




 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
 Sent: 29 May 2010 7:06
 To: Flash Coders List
 Subject: Re: [Flashcoders] Regain stage focus
 
 Karina Steffens wrote:
 
  You mean rains, right? :P
 
 Darn! My e-mail program drops keystrokes. Don't know why--I'm using
 the GMail Web interface. I just type too fast.
 
 
  So, there's no way to regain (or at least to rain...) focus without
 clicking
  at all? Not even by using a mouseover event or a timer inside flash?
 
 No, not as far as I know. You can set the focus on an input field, of
 course, but that won't take effect until the user gives your .swf
 focus. You understand the security issues, so I won't belabor them.
 
 I've run into the same problem. I'm writing a math game where the
 user's response time is important. If they have to click on the
 browser window before typing the answer, that skews the results. We
 got around it by having the user log in, so the browser window should
 have focus when the problem is presented. If the user switches to
 another program--say, during the intoduction--we have no way of
 getting focus back until the user clicks on the browser. I'm working
 with a couple of the best in the business--Mark Jonkman and Raman
 Pfaf--and they both tell me the same.
 
  And more rain on my parade: After uploading the flash movie to the
 server,
  some of the links in the dropdown menu have stopped working -
 clicking on
  the doesn't do anything, while others seem to be ok. And it's
 arbitrary per
  click... And this appears to be cross browser, while locally it's
 fine. Any
  ideas what I should be looking for here?
 
 Not much. I assume you've checked the usual culprits--the URL is
 formed correctly, your .swf isn't busy in a loop, no security issues
 involved, etc. I'd use the debug Flash player and FlashDevelop to
 trace out what happens when the button is clicked.
 
 Cordially,
 
 Kerry Thompson
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Timer object created twice in class

2010-05-05 Thread Karina Steffens
Could it be a mistyped i == 1 ?

And for that matter:
function checkPlaying(e:TimerEvent) : void  if (1 == 1) {

should be
function checkPlaying(e:TimerEvent) : void {
  if (1 == 1) {


Karina


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki
 Sent: 04 May 2010 8:25
 To: Flash Coders List
 Subject: Re: [Flashcoders] Timer object created twice in class
 
 Before I can go any further, I saw this in your code:
 
  if (1 == 1) {
 
 ... ?!?!
 
 
 
 
 On Tue, May 4, 2010 at 2:58 PM, Mattheis, Erik (MIN - WSW) 
 ematth...@webershandwick.com wrote:
 
  Here's a snippit and a timeline version of it - when I run it on the
  timeline, it works as expected, but when I run it within my class it
 acts as
  though there are two instances of the _timer object.
 
  On the timeline, it works as expected, tracing,
 
  1 1
  True
 
  But when I have it inside my class, it traces,
 
  1 0
  false
  1 1
  True
 
  What am I not seeing or understanding here? Thanks..
 
  //  Version on timeline:
 
  var _timer:Timer;
 
  function init() {
   _timer = new Timer(250, 0);
   _timer.addEventListener(TimerEvent.TIMER, checkPlaying);
   _timer.start();
  }
 
  function checkPlaying(e:TimerEvent) : void {
   if (1 == 1) {
   e.target.stop();
   trace(e.target.currentCount, _timer.currentCount);
   trace(e.target == _timer);
   }
  }
 
  init();
 
  // Version in class:
 
  public function Tracker(video) {
   _video = video;
  }
 
  public function init() {
   _timer = new Timer(250, 0);
   _timer.addEventListener(TimerEvent.TIMER, checkPlaying);
   _timer.start();
  }
 
  function checkPlaying(e:TimerEvent) : void
   if (1 == 1) {
   e.target.stop();
   trace(e.target.currentCount, _timer.currentCount);
   trace(e.target == _timer);
   }
  }
 
  I'm instantiating it from another class like this:
 
  if (_tracker == null) {
   _tracker = new Tracker(_videoScreen);
  }
  _tracker.init();
  _ _ _
  Erik Mattheis
  Senior Web Developer
  Minneapolis
  T  952 346 6610
  C 612 377 2272
 
  Weber Shandwick
  Advocacy starts here.
 
  PRWeek Global Agency Report Card 2009 - Gold Medal Winner
  The Holmes Report Global Agency of the Year
  PR News Agency of the Year
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 --
 http://ericd.net
 Interactive design and development
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flash Google

2010-04-20 Thread Karina Steffens
Hi Paul,

Your best bet is to use something like SwfObject to write the flash in 
JavaScript, while serving indexable content to Google. That can be just some 
static text, or dynamically read content from the xml files. A fringe benefit 
of that is the ability to serve alternate content to browsers with no Flash 
(eg, iPhone and iPad).

Karina


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
 Sent: 20 April 2010 10:52
 To: Flash Coders List
 Subject: [Flashcoders] Flash  Google
 
 I have a client whose website I developed (something like a year ago)
 in
 Flash and the site is totally driven by xml configuration  files. It
 works well.
 
 My client has told me that google has indexed the site, but the google
 indexing contains an warning message -  basically the flash site app
 saying it was unable to read an xml file.
 
 I have never encountered the message myself and the site works as
 expected, so I guess it's something to do with the google spider or
 there was some sort of problem when the spider ran.
 
 Unfortunately the google search result currently makes the site look
 broken:
 
   Oops! I think something went wrong! Unable to load website XML from
 'website_config.xml' - loading timed out.
 
 I'm no google expert, so what's the best remedy to get google to index
 this site properly?
 
 I might be encouraged to write less flippant messages in the future.
 
 Paul
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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


RE: [Flashcoders] Full screen with AIR 1.5

2010-04-14 Thread Karina Steffens
Great :) 

I'm still mystified as to why a simple FullScreen command wouldn't work for
you, but I'm glad you got a workaround for it. 

Karina

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of John R. Sweeney Jr
 Sent: 14 April 2010 2:42
 To: Flash Coders List
 Subject: Re: [Flashcoders] Full screen with AIR 1.5
 
 Thank you very much, but after looking inside of every possible button
 and
 option I found a advance settings button that had the options of
 turning off
 minimize, maximize and close button, then I turn the Window style to
 Custom
 Chrome (opaque) and that removed the standard background color, so I
 put a
 bottom most layer a full screen vector box of the desired color and I
 have
 full screen. ;)
 
 Thank you VERY much for your help and suggetions (which I tried that
 code
 and it still didn't work argh). But I all better now.
 
 You have a great day,
 John
 
 
 on 4/13/10 4:39 PM, Karina Steffens at kar...@neo-archaic.net wrote:
 
  Hi John,
 
  I don't really have any links that could help you, but here's a
 simplified
  example from my code that might illustrate my point:
 
  public function onFullScreen() {
  var s:Stage = Main.instance.stage;
  if (s.displayState != StageDisplayState.FULL_SCREEN){
  s.displayState = StageDisplayState.FULL_SCREEN;
  }
  }
 
 
 John R. Sweeney Jr.
 Interactive Multimedia Developer
 
 
 OnDemand Interactive Inc
 945 Washington Blvd.
 Hoffman Estates, IL 60169
 Office/Fax: 847.310.5959
 Cellular: 847.651.4469
 www.ondemandinteractive.com
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Full screen with AIR 1.5

2010-04-13 Thread Karina Steffens
Hi John,

I don't really have any links that could help you, but here's a simplified
example from my code that might illustrate my point:

public function onFullScreen() {
var s:Stage = Main.instance.stage;
if (s.displayState != StageDisplayState.FULL_SCREEN){
s.displayState = StageDisplayState.FULL_SCREEN;
}
}


This method is in a Model class that has no connection to the stage, and
doesn't extend MovieClip or Sprite.  This means that I simply used
stage.displayState it would fail because stage would return null. So I'm
using a roundabout way of retrieving the stage instance from my Main class,
which is the Stage Owner (assigned to the stage in the Document properties
of the Flash IDE).

package {
public class Main extends MovieClip{
static public var instance:Main;

public function Main() {
instance = this;
}


All this is provided that the stage returning null is your problem in the
first place... Have you tried running a trace on the stage variable? A
simple trace(stage, stage) should tell you if this is your problem. If it
doesn't return a null, then your problem might be elsewhere. I'm not
familiar with AIR, so I couldn't help you there.

Karina 



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of John R. Sweeney Jr
 Sent: 13 April 2010 8:44
 To: Flash Coders List
 Subject: Re: [Flashcoders] Full screen with AIR 1.5
 
 Hi Karina,
 
 I really sorry to bother you, but nothing I'm trying is working. Would
 you
 by any chance have an example or a link I could look at to figure this
 one
 out? I've been all over the Adobe site and nothing is working. I keep
 getting the window around the app, not full screen.
 
 I really would appreciate any help you could offer, because the
 deadline is
 getting very close and the whole kiosk is ready except for the full
 screen
 display.
 
 Thank you for anything you can do,
 John
 
 
 
 on 4/7/10 5:43 AM, Karina Steffens at kar...@neo-archaic.net wrote:
 
  I don't know about AIR, but this AS3 code works for exes, standalone
 swfs,
  and html-embedded:
 
  stage.displayState = StageDisplayState.FULL_SCREEN
 
  Btw, have you checked if stage is not a null? As3 requires that the
 object
  that calls the stage is a child of the stage. If you're calling it
 from
  anything that's not a movieclip/sprite that's already part of the
 stage's
  display list, it will fail.
  Workarounds: place your code in the Main class or movie clips placed
 on the
  stage in the IDE. Alternatively, use ADDDED_TO_STAGE listener on
 movie clips
  or get the reference from a stage child.
 
  Cheers,
  Karina
 
 
 John R. Sweeney Jr.
 Interactive Multimedia Developer
 
 
 OnDemand Interactive Inc
 945 Washington Blvd.
 Hoffman Estates, IL 60169
 Office/Fax: 847.310.5959
 Cellular: 847.651.4469
 www.ondemandinteractive.com
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] MC properties not changing on a keyframe

2010-04-09 Thread Karina Steffens
Hi list,
 
On a custom  IDE button component (AS3 CS4) I have a number of keyframes for
up/over/down etc. Each of these keyframes has a textfield and an icon
(labelText and iconContainer). Mouse event listeners control the movement
between the keyframes.
 iconContainer has linkage to a class that loads internal or external assets
into a target mc inside it.  
 
Everything works fine, except that if I change the movieclip properties such
as position or tint of the iconContainer on the various keyframes, after
publishing I can't see the changes. By contrast, similar changes are visible
on the labelText and other movieclips placed on the button's stage.  I tried
this with normal keyframe on the icon's layer and the new CS4 motion tween,
with the same results.  All the loaded assets are children of iconContainer,
they don't replace it.  Of course, I could make all the changes with code.
But I'm trying to make it flexible enough to work either way. Any ideas?
 
Thanks,
Karina
 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] MC properties not changing on a keyframe

2010-04-09 Thread Karina Steffens
After some trial and error, it seems that it's caused because of rescaling
and repositioning code:
When the button is scaled down, I'm scaling the icon down so that it's new
dimensions match the old dimensions, and repositioning it to match its last
location. 
Moving the iconContainer into a parent movieClip and changing the parent's
properties on the stage solves this problem, but that leaves another - the
repositioning code no longer works.

public function resizeListener(e:Event):void {
switch (resizeMode) {
case noscale:
scaleX =  1 / e.target.scaleX;
scaleY = 1 / e.target.scaleY;
   

This rescales the iconContainer to the right dimensions but what would be
the formula for repositioning it? Bearing in mind that e.target is
parent.parent? It should be moved back proportionally to the scale, but I
can't figure out the maths.



Karina


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Karina Steffens
 Sent: 09 April 2010 2:36
 To: 'Flash Coders List'
 Subject: [Flashcoders] MC properties not changing on a keyframe
 
 Hi list,
 
 On a custom  IDE button component (AS3 CS4) I have a number of
 keyframes for
 up/over/down etc. Each of these keyframes has a textfield and an icon
 (labelText and iconContainer). Mouse event listeners control the
 movement
 between the keyframes.
  iconContainer has linkage to a class that loads internal or external
 assets
 into a target mc inside it.
 
 Everything works fine, except that if I change the movieclip properties
 such
 as position or tint of the iconContainer on the various keyframes,
 after
 publishing I can't see the changes. By contrast, similar changes are
 visible
 on the labelText and other movieclips placed on the button's stage.  I
 tried
 this with normal keyframe on the icon's layer and the new CS4 motion
 tween,
 with the same results.  All the loaded assets are children of
 iconContainer,
 they don't replace it.  Of course, I could make all the changes with
 code.
 But I'm trying to make it flexible enough to work either way. Any
 ideas?
 
 Thanks,
 Karina
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Full screen with AIR 1.5

2010-04-07 Thread Karina Steffens
I don't know about AIR, but this AS3 code works for exes, standalone swfs,
and html-embedded:

stage.displayState = StageDisplayState.FULL_SCREEN

Btw, have you checked if stage is not a null? As3 requires that the object
that calls the stage is a child of the stage. If you're calling it from
anything that's not a movieclip/sprite that's already part of the stage's
display list, it will fail. 
Workarounds: place your code in the Main class or movie clips placed on the
stage in the IDE. Alternatively, use ADDDED_TO_STAGE listener on movie clips
or get the reference from a stage child.

Cheers,
Karina



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of John R. Sweeney Jr
 Sent: 07 April 2010 1:50
 To: Flash Coders List
 Subject: Re: [Flashcoders] Full screen with AIR 1.5
 
 But when I publish to a AIR app it creates a swf not a exe and the
 fscommands only work in exe's, if I remember right.  I'm using AIR
 because
 I'm using the HTMLLoader to load a clients website, inside of our
 kiosk.
 
 Thanks,
 John
 
 
 on 4/6/10 11:51 AM, Glen Pike at postmas...@glenpike.co.uk wrote:
 
  Hi,
 
  Not sure about this, but we have been publishing for AIR from CS3
 -
  My app has the old fscommand(fullscreen) element in it too - which
  seems to work fine ;)
 
  Glen
 
 
 John R. Sweeney Jr.
 Interactive Multimedia Developer
 
 
 OnDemand Interactive Inc
 945 Washington Blvd.
 Hoffman Estates, IL 60169
 Office/Fax: 847.310.5959
 Cellular: 847.651.4469
 www.ondemandinteractive.com
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] What good is a Controller?

2010-03-31 Thread Karina Steffens
Hi Jim,

Thanks for another extensive reply, and getting the discussion back on the
MVC track ;)

 Assuming that all the UI events created by one clock face (view) are
 included in the events on the other clock face (another view) and the
 events are defined by the business rules to have identical effects on
 the state of the application, then the same controller could be used
 for both.
 
 If two (or more) views generate identical UI events that have the
 identical effect upon the state of the application (change to the
 model), then I would use one controller. If one controller generates
 extra events, then I would use two controllers, with the more complex
 controller derived from the other controller. It would be possible to
 use conditional logic within one controller to handle multiple views,
 but this typically indicates the need for polymorphism (same message,
 different results), which is generally best implemented by having
 different classes.

This makes sense. I've been experimenting with my MVC framework (trying very
hard not to break existing functionality...), and the way it seems to work
best for me is to have:

One manager Controller for the entire application, which does all the
linking of the general structure. This can also be extended to listen to
Broadcaster messages from all the loaded views in the application. 

A Model layer (a manager Model with child models that handle separate tasks
all linked to the main Controller)

A main View that can also load other views (pages, components, etc.) - which
are most likely to be self-contained movies, but could also be linked
symbols.

Each View will contain either the manager Controller directly (for backward
functionality) or its own personal assistant - the ChildController. The
ChildController implements the same interface as the manager Controller, but
instead of doing all the linking itself, it will register the View and
itself with the manager Controller, and then proceed to implement its own
functionality. It taps into the Model layer via the manager (but could also
have its own personal Model for localised tasks).

 
 In my implementations, I have an class that represents the application
 that is the chicken or Main. The Main class has class variables for
 the model and each of the views. The model is created first, then I
 create a controller and a view, the controller is passed as a parameter
 to the view's constructor. The view is then registered as a listener
 with the model. I repeat the controller and view process as many times
 as needed.
 In the constructor method of the view class, the view class registers
 itself with the given model.

This clarifies matters for pages or components that are created as
standalone movies - the Main should create all the views models and
controllers.  

But what about library symbols? If I have a component like a CustomButton,
at the moment it just does everything in the MovieClip class. Since the
buttons are not necessarily created with ActionScript but are more likely to
already be on the stage, can the button's movie clip be both the View and
the Main? Or should the button's View be a child of the linked symbol?
Personally, I'm more comfortable coding by inheritance, even though I can
see the advantages of composition. 

 
 
 Moock provides a good example of the MVC pattern in Essential AS 2.0.
 The example has the view classes create a default controller if one has
 not been provided, but I felt it easier to just require a controller to
 be provided in the constructor.

You can only do that if your View isn't already on the stage, but it's easy
to get around by passing the controller to an existing View. 

 
 As Moock indicates, there is no single right way to implement MVC.
 I think he provides an excellent discussion of the pattern and choices
 that a developer can make in implementing the pattern.
 Jim

Thanks a mil for taking the time to clarify your approach. I hope mine, or
what I'm trying to achieve, isn't miles away from it, or at least that it
makes some sense.

Karina 


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


RE: [Flashcoders] What good is a Controller?

2010-03-30 Thread Karina Steffens
Very cheesy and very funny :) I suppose in my case it's the View that's
gotten too fat, and the Controller is over starved...

I'll have a look at RobotLegs, to see what best practices can be learned
from it.
 
Karina


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks
 Sent: 29 March 2010 11:55
 To: Flash Coders List
 Subject: Re: [Flashcoders] What good is a Controller?
 
 MVC Public Service Announcement
 http://www.youtube.com/watch?v=91C7ax0UAAc
 
 If you want to learn about MVC, pick up the Ruby on Rails book.
 
 I suggest you use RobotLegs, which uses Mediators and Commands instead
 of
 Controllers.  RobotLegs is better suited for the world of Flash than
 MVC, which
 Flash blurs the lines between with MovieClip.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] What good is a Controller?

2010-03-30 Thread Karina Steffens
While html and css would certainly be part of the View, and the database
(MySQL, XML or any other way of holding data) would be part of the Model
layer, I agree with Dave that php is not, strictly speaking, a Controller. I
think that PHP (or ASP, or any server-side language) would more likely to be
all three put together - it gets the data from the database, it handles
application logic, and it can be used to write html directly into the page.
It would in fact be possible to split all your php code into Model, View,
and Controller classes, if you wanted to, use another class-based design
pattern, or skip all of that altogether. 

On the other hand, you might also simply split PHP into the View and Model
components, and skip the Controller altogether. Or if you take a simple
script that works in conjunction with a Flash application, PHP is more
likely to be part of the Model and nothing else, since Flash would be
handling presentation and logic.


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts
 Sent: 29 March 2010 6:04
 To: Flash Coders List
 Subject: Re: [Flashcoders] What good is a Controller?
 
  there is plenty of commentary out there to suggest that the
 controller is
  largely unnecessary and that the views can do it all as encapsulated
 objects
  (i've even read something by someone much smarter than me [
  http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested
 that the c
  in mvc was anti-oop) but for me the benefit for the controller is
 that i can
  create functionality separate from design.
 
 I don't think it's really anti-OOP as much as irrelevant to OOP. The
 controller has nothing to do with your object domain model, it's just
 a mechanism to get messages from views to models or other views, and
 vice-versa.
 
  if you look at the html / php / mysql model, mvc has a very natural
 flow -
  the mysql database and the php interact much like the controller
 (php) and
  the model (mysql) and the result is then fed to the views (the served
 html
  page).
 
 Strictly speaking, that's not how most web application developers
 categorize the components of an MVC design (despite what the Wikipedia
 page says). PHP (or whatever application server you're using) would
 serve both as the controller and the views, and perhaps even the model
 as well. PHP itself doesn't really encourage this sort of separation
 (although it doesn't prevent it either), but for example, in a Java
 web app you might use JSP for your views, and a single servlet as a
 controller, and beans as your model. And of course, JSPs, servlets and
 beans are all just Java code. But, generally speaking, views are
 responsible for their own rendering, which typically requires
 server-side logic. If the view isn't responsible for its own rendering
 (which would be the case in a static HTML view, then the design
 pattern in question might better be described as Model-View-Presenter
 (MVP):
 
 http://en.wikipedia.org/wiki/Model_View_Presenter
 
 Now, this doesn't take into consideration the use of client-side
 functionality and where that fits, but that presumably would just be
 additional view logic.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] What good is a Controller?

2010-03-30 Thread Karina Steffens
Hi Jim,

Thanks for the comprehensive examples, especially the clock face. I guess
another advantage then would be the ability to swap the view instead of the
controller, and (for example) have text-only console like view for testing 
debugging? You might also say that Xray is another View.

In your framework, would the one controller for each view also mean that can
be only one view per controller? I tend to use a single model for multiple
views (the model could consist of a number of classes, but it's still one
model layer), it might make sense to do the same with the controller. To
clarify, I don't mean only one controller for all the views, more like
clusters of views with a single controller in their middle. Or does that
break the pattern?

Another question about your implementation - who's the chicken and who's the
egg? Does the view instantiate its controller, the controller the view, or a
Main class that creates all? 

In my current implementation, I have a Main application class (linked to the
stage) that creates the Model, the (limited) Controller, and passes the View
(which is a symbol on the stage with Class Linkage) to the controller. The
Controller's only function is to link them all together as Broadcaster
listeners (all Views listen/broadcast to all Models. The Controller is the
third part of the equation, because it can listen/broadcast to both Views
and Models, but it sort of stops there. 

I also have some parts of the View interacting with each other via
Broadcaster, but I'm beginning to think that this should really be the
Controller's function - to intercept messages from one View to another: for
example, from a PageView to the MainView, or from a ComponentView (eg the
menu or breadcrumbs) to a PageView if necessity arises. 

Then on the smaller scale of Page or Component, I suppose each could have
their own Controller class that's still linked to the main MVC structure, so
that it can talk to the Model, but doesn't handle communications with other
Views. 

Does that make sense to you guys, or am I overcomplicating here? 

Karina



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Jim Lafser
 Sent: 29 March 2010 6:37
 To: Flash Coders List
 Subject: Re: [Flashcoders] What good is a Controller?
 
 When I've implemented MVC:
   * I have one controller for each view
   * Each view knows about it's controller, but only as a generic
 controller (either as an interface or a base class)
   * Each View registers it's controller as the event listener for
 each of it's buttons.
   * Each controller translates a generic call in itself into a
 specific call to the model that may or may not cause a state change.
   * In response to state changes, the model notifies all views.
   * The notification can include the state change information, OR
   * The view can request the state change information from the
 model.
   * The view changes updates what is presented to the user as
 needed based on the change in state.
 The reason to implement the listener in the controller is to separate
 the implementation of the business logic  from the display logic. This
 makes the implementation of the specific function on the model
 independent of the generic function on the view.
 
 Example: an application has several views that each have a next and
 previous button. Each view registers the next button with its
 controllers next function. Each controller provides next and previous
 functions that invoke one or more methods on the model that may cause a
 state change.
 
 This provides a decoupling of the business logic from the display
 logic. If I want to change what is displayed, or how it is displayed, I
 change the view. If I want to change the response to user input, I
 change the controller.
 
 An example of why this is nice: I've got a clock face that I want to
 use as a stop watch (elapsed time) and as a timer (count-down timer).
 View could be identical, and just change the controller to change the
 functionality. Start, Stop and Reset would all have different meanings
 that are handled by the controller. I know that a bug in the timer code
 is independent of the stop watch code.
 
 In certain situations, it may be beneficial to implement a view as
 another instance of the MVC pattern. An example of this would be where
 a user is making choices in a configuration, and those choices don't
 get saved into the application state until the OK or Apply
 button is clicked. While the choices are being made, the views internal
 state is stored in the views model, and when OK is clicked the choices
 get stored into the application's model.
 
 Whether or not it's worthwhile to implement a view as another
 internal MVC pattern depends upon the complexity of the view vs. the
 added complexity of the overall system. IMHO, the choice should be to
 go with what makes the overall system the easiest 

RE: [Flashcoders] flash builder 4 released

2010-03-29 Thread Karina Steffens
Thanks Colin, I put that link in my bookmarks. So far, I found the AS3
online documentation less than ideal - if you search for anything from the
Flash IDE, you might as well be using Google.

Karina 

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of co...@moock.org
 Sent: 29 March 2010 2:35
 To: Flash Coders List
 Subject: Re: [Flashcoders] flash builder 4 released
 
  I've just started working with FB4 in the past couple of weeks, and I
  love it. I think Adobe got it right. Well, except for the help
 system.
  I keep the CS4 Flash help open for my AS3 reference.
 --
 have you seen the new ActionScript 3.0 unified reference?
 
 http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/cla
 ss-summary.html
 
 it's faster, and has a bunch of improvements over the old online
 reference.
 
 colin
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] What good is a Controller?

2010-03-29 Thread Karina Steffens
Hi List,

Ok, this may sound a bit odd coming from someone who's been coding with MVC
for the last 7 years, but I seem to be missing the point of a Controller...
I'm hoping to start a discussion to help me (and maybe others like me)
improve my architecture by better understanding the Controller, and what
good that does...

First of all, here's a quick summary of my current architecture: All my
projects are based on an MVC structure in their core, but my Controller
class has only one function - linking the Model/s with the Views/s. The
communication between Model/s and View/s happens via Broadcaster - my own
AS3  reworking of the old AsBroadcaster (remember broadcastMessage? I even
found a way to get and set public properties in the model using
broadcastMessage(get, prop)). Typically, the model notifies the View
that data was loaded, and then the View does all the donkey work, and calls
a number of generic methods on the model, mostly for data retrieval. 

Within the View, I use EventDispatcher for the usual stuff, like button
functionality.  The View classes are the ones that listen to the events. For
example, a View class may have a submit button, and that button's
MouseEvent.CLICK goes to a clickListener method in the same class.   If I
understand recent list discussions correctly, it would be better to move
EventDispatcher listeners to the Controller. Is that the correct approach?
If so, why...? 

When I coded my Controller class, I built into it the ability to link
Controller Classes with Broadcaster, as well as Views and Models, but so far
I haven't seen a good way of implementing it, or even extending the base
Controller class,  because everything in my code seems to be happening
either in the View or the Model layers. So where am I going wrong?

Please understand that I don't mean to say that the Controller is no good
other than as a way to link the View with the Model,  I'm just trying to
understand it better - there's always plenty of room for improvement!

Thanks,
Karina


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


RE: [Flashcoders] Apparently Doesn't Check Cache

2010-03-10 Thread Karina Steffens
Hi Nathan,

The urls are the best way IMHO. Check out my blog entry on the subject: 
http://neo-archaic.ie/blog/2006/08/nocache-for-javascript-and-flash/

Cheers,
Karina

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik
 Sent: 10 March 2010 2:03
 To: Flash Coders List
 Subject: Re: [Flashcoders] Apparently Doesn't Check Cache
 
 I actually have experienced the reverse of this issue. Flash caches the
 dynamic content so hard that I have reverted to using no_cache meta
 tags in my HTML.
 Not to OT the topic, but are meta tags the best way to prevent this? I
 have even though of adding a variable at the end of my dynamic urls
 with a date element so flash would constantly think its a new XML doc
 to load everytime.
 
 
 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com
 
 -Original Message-
 From: mark.jonk...@comcast.net
 Date: Wed, 10 Mar 2010 13:46:08
 To: Flash Coders Listflashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Apparently Doesn't Check Cache
 
 Every request for a file will go back to the server at some level. For
 example, despite the fact that have a file preloaded' into cache when
 another request is made for the file it will look at the cache then
 send a request to the server to see if the file has changed or whether
 the file in cache is valid to use. If the server returns use file from
 cache then it will use the cached file otherwise it will load the
 revised version from the server.
 
 First questions would then be what is the header returned as part of
 the original file request. Is it no-cache or does it set a very short
 expiry? Are the url's exactly identical or is there any kind of query
 string associated with the url of one request but not the other? This
 might be walking on thin ice here, but can you see the file in the
 browser's cache? Back in the day, when I was doing Director
 development, there was a period of time that elapsed from when
 Shockwave loaded the file and the time that it went into the
 browser's cache. The file was always available within the Shockwave
 environment but it was immediately visible in the browser's cache.
 Don't know if a similar situation arises with Flash where the content
 is loaded but hasn't yet been written into the browser's cache.
 
 I'd honestly start out by using something like Internet Explorer where
 you can easily browse the cached files - blow away the cache and then
 load your swf preloader app. See if the files are in cache. If they are
 cool, note the URL associated with them. Then I'd go back and clear the
 cache again and re-run the app with the new window code in place. I'd
 run it through to completion and see if there are two copies of said
 image in cache one from the swf preloader and the other from the new
 window. If so it would imply that they must be seeing slightly
 different urls. If not then I'd be looking for no cache headers.
 Concurrent to this I'd be using something like Fiddler (IE), Charles or
 Tamper Data or similar app that will allow you to see the requests and
 the responses and be able to examine the headers and check for no-cache
 or very short expiry on the headers.
 
 Theoretically what you are doing should work, I can't see how placing
 the image on stage would make any difference. Everything is always a
 possibility but using a test strategy that stepwise verifies what is
 getting written into cache and what the request are for the files is a
 good first step in eliminating many issues.
 
 Sincerely
 Mark R. Jonkman
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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


RE: [Flashcoders] OOP Tutorial

2010-03-05 Thread Karina Steffens
Hi Susan,

I wouldn't recommend relying just on online tutorials, or discussion posts
for a something as huge as learning AS3 OOP. The best thing would be to get
a book that covers the subject, such as Colin Moock's Essential ActionScript
3.0 from O'Reilly, or any one of the other excellent books on the subject
(Rich Shupe's comes to mind, although I haven't read it myself I heard good
things about it).

To answer your question, you don't need to implement an interface to use
another class as an object, you'd just instantiate it and call its methods.
You would implement an interface if you wanted the class that contains the
object to pretend to be that object, in which case it would implement the
public methods and pass them along to its instance of the object. But again,
a book would explain it much better than that...

Karina


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Susan Day
 Sent: 05 March 2010 3:48
 To: Flash Coders List
 Subject: [Flashcoders] OOP Tutorial
 
 Hi;
 Now I would like to call my class Star from another class, but pass
 different values to its variables. Do I need to implement the
 inheriting
 class as Star? I'm kinda lost here. I've been googling as3 oop but the
 tutorials don't seem to address my needs. Can you help me understand
 what it
 is I'm looking to do so I can google up the appropriate tutorials?
 TIA,
 Susan
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] OOP Tutorial

2010-03-05 Thread Karina Steffens
I guess so. I'm not happy to delve into a new programming language before
I've read an entire book from cover to cover. Yes, even bricks :) I've got
all the Moock-books and some cook-books and a whole lot of other books...

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Meinte van't Kruis
 Sent: 05 March 2010 4:39
 To: Flash Coders List
 Subject: Re: [Flashcoders] OOP Tutorial
 
 Guess it depends on the person, I have been a Flash developer for over
 5
 years
 and have yet to open a book about it.
 
 On Fri, Mar 5, 2010 at 5:22 PM, Karina Steffens kar...@neo-
 archaic.netwrote:
 
  Hi Susan,
 
  I wouldn't recommend relying just on online tutorials, or discussion
 posts
  for a something as huge as learning AS3 OOP. The best thing would be
 to get
  a book that covers the subject, such as Colin Moock's Essential
  ActionScript
  3.0 from O'Reilly, or any one of the other excellent books on the
 subject
  (Rich Shupe's comes to mind, although I haven't read it myself I
 heard good
  things about it).
 
  To answer your question, you don't need to implement an interface to
 use
  another class as an object, you'd just instantiate it and call its
 methods.
  You would implement an interface if you wanted the class that
 contains the
  object to pretend to be that object, in which case it would
 implement the
  public methods and pass them along to its instance of the object. But
  again,
  a book would explain it much better than that...
 
  Karina
 
 
   -Original Message-
   From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-
   boun...@chattyfig.figleaf.com] On Behalf Of Susan Day
   Sent: 05 March 2010 3:48
   To: Flash Coders List
   Subject: [Flashcoders] OOP Tutorial
  
   Hi;
   Now I would like to call my class Star from another class, but pass
   different values to its variables. Do I need to implement the
   inheriting
   class as Star? I'm kinda lost here. I've been googling as3 oop but
 the
   tutorials don't seem to address my needs. Can you help me
 understand
   what it
   is I'm looking to do so I can google up the appropriate tutorials?
   TIA,
   Susan
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 --
 Meinte van't Kruis
 
 Freelance Flash Platform Dev (mxml,actionscript,flex,air)
 
 malatze
 http://www.malatze.com/
 http://www.linkedin.com/in/meinte
 mei...@malatze.com
 0617459744
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] My Star

2010-03-03 Thread Karina Steffens
Hi Susan,

You need to recheck your coordinates - if you remove the line:
star.graphics.moveTo(startPosX + factor*144, startPosY + factor*277);

- you'll see a weird shape on the stage. So your error lies somewhere in the
numbers, not the class structure. 

Cheers,
Karina 

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Susan Day
 Sent: 03 March 2010 2:10
 To: Flash Coders List
 Subject: [Flashcoders] My Star
 
 Hi;
 
 I have the following code:
 
 package
 {
 import flash.display.MovieClip;
  public class Star extends MovieClip
 {
 public function Star()
 {
 var startPosX:int = new int();
 var startPosY:int = new int();
 var factor:Number = new Number();
 startPosX = 100;
 startPosY = 500;
 factor = 0.07;
 var star:MovieClip = new MovieClip();
 addChild(star);
 star.graphics.lineStyle(1, 0xFF);
 star.graphics.beginFill(0xFF);
 star.graphics.moveTo(startPosX + factor*144, startPosY + factor*277);
 star.graphics.lineTo(startPosX + factor*188, startPosY + factor*184);
 star.graphics.lineTo(startPosX + factor*288, startPosY + factor*170);
 star.graphics.lineTo(startPosX + factor*216, startPosY + factor*98);
 star.graphics.lineTo(startPosX + factor*232, startPosY + factor*0);
 star.graphics.lineTo(startPosX + factor*144, startPosY + factor*47);
 star.graphics.lineTo(startPosX + factor*55, startPosY + factor*1);
 star.graphics.lineTo(startPosX + factor*72, startPosY + factor*100);
 star.graphics.lineTo(startPosX + factor*0, startPosY + factor*170);
 star.graphics.lineTo(startPosX + factor*99, startPosY + factor*184);
 star.graphics.endFill();
 }
 }
 }
 
 I created an empty *.fla to test and entered class Star (the name of
 this
 *.as) in the Properties. The stage is 1000*500. It doesn't draw my
 star!
 Now, I tested this in another *.as file before I pulled it out to
 create its
 own class and it worked. I added a trace at the end of the class when
 it
 failed in my test fla and it traced. What gives?
 TIA,
 Susan
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Arabic and other character sets text entry

2008-03-14 Thread Karina Steffens
Hey there, I just saw this thread :)

I do tend to hang on Flash Tiger more these days (Hi Kerry!), but I was
skimming through some threads here and this has caught my eye.

The Hebrew project has been a total headache, but in the end I found one
solution out there that was very helpful as a starting point. It's
programmed for Hebrew, but you can add your own characters, so it should
work with Arabic. You can find it here: http://www.electroinn.com/blog/

Basically what it does, it breaks down the text field into a bunch of text
fields, and populates them word by word. So it handles a combination of RTL
and LTR quite well. 
Don't forget that the text field should be using device fonts (non-embedded)
and you must have RTL fonts (Arabic in your case) support enabled in the
Control Panel for the text to flow in the right direction in the first
place.

The Class is not 100% and you may need to customise it a bit, but it's the
best solution I've seen so far.

Hope this helps,
Karina



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Piers Cowburn
 Sent: 13 March 2008 13:42
 To: Flash Coders List
 Subject: Re: [Flashcoders] Arabic and other character sets text entry
 
 Good point, yes the email will probably be ltr. I'll try posting on
 Flash_Tiger in the hope that she's around, thanks very much :)
 
 Piers
 [EMAIL PROTECTED]
 
 On 13 Mar 2008, at 13:20, Piers Cowburn wrote:
 
 
 
  Begin forwarded message:
 
  From: Kerry Thompson [EMAIL PROTECTED]
  Date: 12 March 2008 17:51:41 GMT
  To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
  Subject: RE: [Flashcoders] Arabic and other character sets text
 entry
  Reply-To: Flash Coders List flashcoders@chattyfig.figleaf.com
 
  Piers Cowburn wrote:
 
 
  I found one idea online which I thought
  might be a shot, see it here:
 http://broadcast.artificialcolors.com/
  index.php?title=flash_rtl_via_a_simple_hack_non_rhetoric
 
  The only free-text fields I would need are name and email address,
  the rest of the options are combo boxes which I could do in arabic
  simply by having the letters in there as a graphic.
 
  Do you think I might be able to use something like the idea above
  for
  a simple name and email address? As I don't think there should be
  and
  bi-di in there, just rtl.
 
  I'm not sure, but you might be able to get the combo box to
  display an
  Arabic font. It's worth a try, and make for a lighter download
  than using
  graphics.
 
  But--won't the e-mail address be ltr? I'm not sure, but I think
  most e-mail
  servers only handle ltr.
 
  I have an Israeli friend in Dublin who is a Flash genius, and is
  currently
  working on a Hebrew-language project. She's quite helpful, and
  knows a lot
  more about bi-di issues than I do
 
  I don't think she's on this list, though--she's on Flash_Tiger.
  You might
  try posting over there. She might even still be working--I think
  it's only
  about 7:00 in Dublin. Do it now, though, because St. Patrick's day
  is this
  weekend ^_^
 
  Cordially,
 
  Kerry Thompson
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 No virus found in this incoming message.
 Checked by AVG.
 Version: 7.5.519 / Virus Database: 269.21.7/1327 - Release Date:
 12/03/2008 13:27
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.21.7/1328 - Release Date: 13/03/2008
11:31
 

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


RE: [Flashcoders] How to call class method from a movieclip?

2008-01-31 Thread Karina Steffens
Hi Irene,

var contentMCs:MovieClip; = new contentMC(this);

should be

var contentMCs:MovieClip = new contentMC(this);


Karina


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Irene Johansson
 Sent: 30 January 2008 15:54
 To: Flash Coders List
 Subject: Re: [Flashcoders] How to call class method from a movieclip?
 
 Thank you for your reply.
 by doing this:
 public class myClass extends Sprite{
 
 public function myClass() {
 var contentMCs:MovieClip; = new contentMC(this);
 }
 
 public function myMethod(){
 }
 }
 
 I get this error msg: 1137: Incorrect number of arguments. Expected no
 more
 than 0.
 
 since contentMC is a
 MovieClip that is attached from library i dont know where to define
 the parameters.
 
 Thanks for helping me
 Irene
 
 
 
 On 1/30/08, Andy Herrman [EMAIL PROTECTED] wrote:
 
  If you want your contentMC class to be able to call methods on your
  myClass then you should probably pass the myClass instance to the
  contentMC.  Basically, add a parameter to contentMC's constructor of
  type myClass, and pass a reference to 'this' when you create it.
  Something like this:
 
  public class myClass extends Sprite{
 
public function myClass() {
  var contentMCs:MovieClip; = new contentMC(this);
}
 
public function myMethod(){
}
  }
 
  On an unrelated note: standard practice has class names start with a
  capital letter, not lowercase like you have.  It helps to
  differentiate between variable names and class names.
 
-Andy
 
  On Jan 30, 2008 8:42 AM, Irene Johansson [EMAIL PROTECTED] wrote:
   Hello!
   I am having a big problem, hope someone can help me.
  
   I have made a class which i import in my flash file. The first and
 only
   frame of the file looks like this:
  
   import myClassFolder.*;
   var myClassInstance:myClass = new myClass(this.stage);
   stop();
  
   Inside the class i am attaching a movieClip from a library and
 declaring
  a
   methof:
  
   public class myClass extends Sprite{
   var contentMCs:MovieClip = new contentMC();
   ...
   }
   public function myMethod(){
   }
  
   The contentMC contains 8 frames, each of the frame has a movieClip.
  
   In the frame 2 of the contentMC MovieClip i want to call myMethod
 of the
   myClass.
   Anyone who know how to do this?
   Thanks in advance
   Irene
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.516 / Virus Database: 269.19.17/1253 - Release Date:
 31/01/2008 09:09
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.17/1253 - Release Date: 31/01/2008
09:09
 

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


RE: [Flashcoders] save swf

2007-08-23 Thread Karina Steffens
Bassam,

You could use an approach similar to the one Alan first suggested, and
record all the user's choices into a properties object, save it with a
server side script, and then use a generic movie clip that re-loads all
these properties and recreates the original design in that way. This gives
you the flexibility to make any changes later on.

Karina


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of bassam mohaisen
 Sent: 22 August 2007 12:42
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] save swf
 
 Thank you All
 I did some research and I find out how to take snapshot using 
 BitmapData = new BitmapData() ; 
 http://www.flash-db.com/Tutorials/snapshot/
 but this will not help  since I need to save the movie clip 
 and load it latter for any changes 
 
 anyway thank you all for your help
 
 bassam
 
 
 - Original Message 
 From: Muzak [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, August 21, 2007 7:02:13 PM
 Subject: Re: [Flashcoders] save swf
 
 
 There are JPEG en PNG encoder classes for AS3 
 http://code.google.com/p/as3corelib/
 http://as3corelib.googlecode.com/svn/trunk/src/com/adobe/images/
 
 regards,
 Muzak
 
 - Original Message -
 From: Jer Brand [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, August 21, 2007 10:49 PM
 Subject: Re: [Flashcoders] save swf
 
 
  Uncompressed, yeah, that'd be ugly. But how does something like the
  following (guesswork code) perform?
 
  foo:BitmapData = new BitmapData() ;
  /* put your image data in there, with whatever method */
 
  bar:ByteArray = foo.getPixels(myImageRect) ;
  var.compress() ;
 
  Again, mostly asking because I don't know enough about AS3/FP9. It's
  supposed to be using zlib compression on the ByteArray but 
 for all I know
  it's still doesn't compress enough or quickly enough to be 
 useful. I'm
  totally leaving out the question of conversion after post 
 or Socket or
  whatever used server side to get the job done, but I have 
 to assume it
  wouldn't be difficult using GD or ImageMagic.
 
  Anyone used this?
 
 
 
 ___
 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
 
 

 __
 __
 Pinpoint customers who are looking for what you sell. 
 http://searchmarketing.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
 

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

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


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

2007-08-08 Thread Karina Steffens
It's really easy to fix - have a look at this article on my blog:
http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flash.htm

Karina 

 -Original Message-
 From: Niels Endlich [mailto:[EMAIL PROTECTED] 
 Sent: 06 August 2007 15:18
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Prevent flash from caching the loaded assets
 
 We are making a game in which people have to quess what's on 
 a photo while viewing it through a little moveable hole. The 
 images will be loaded from the server. The problem is 
 caching. To cheat is easy...
 watch the cached files. Is there a way to prevent flash from 
 caching the loaded assets or does anyone has an other solution?
 
  
 
 Thanks,
 
  
 
 Niels
 
  
 
  
 
  
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] Re: Special font issue

2007-06-05 Thread Karina Steffens
Did you try a straight test with simply placing the dynamic text field on
the stage with the euro symbol typed-in and font embedded? That should tell
you if it's possible, but I can't believe that a euro symbol doesn't come
with a Helvetica-family font. 

 -Original Message-
 From: Tom Huynen [mailto:[EMAIL PROTECTED] 
 Sent: 05 June 2007 09:24
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Re: Special font issue
 
 Hey Joe,
 
 Thanks for your reaction. I've been trying to get it to work 
 for a long time now. But still, no results.
 Can it be that it just isn't possible with the font I'm working with?
 
 Regards,
 
 Tom
 
 On 6/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Tom,
 
  
  Yes it is correct. But it doesn't work...The whole text is 
 displayed 
  correctly in the right font but euro signs are just leftout.
  while plain static text displays the euro sign perfectly..
  
  I spent some time on this problem and eventually solved it. I can't 
  remember the details but the solution is based on two key bits of 
  information
 
  There are actually two character codes for the Euro symbol 
 - a unicode 
  one and an ASCII one. Different typefaces have them in different 
  places:
 
  So I use character code \u20AC to put a Euro in the menu (AS2 menu
  component)
  And character code \u00A4 to insert a euro character in Futura.
 
  I found the only reliable way to embed the Euro character 
 is to create 
  a dummy dynamic textfield with the Euro in it and set to your 
  specified font and typestyle (bold etc). Make sure the font is 
  embedded and explicitly specify the euro in the emded box.
 
  Hope this is helpful
 
  Joe
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] Special font issue

2007-06-04 Thread Karina Steffens
Hi Ton,
What character sets are you embedding? Have you tried including the euro sign 
in the field next to the autofill button?

Karina

 -Original Message-
 From: Tom Huynen [mailto:[EMAIL PROTECTED] 
 Sent: 04 June 2007 14:54
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Special font issue
 
 Hi list,
 
 I'm developing a narrowcase project.
 The euro sign (€) in the external xml data is encoded in this 
 way: #8364;
 
 I use Helvetica Light to display the content. It can display 
 the eurosign perfectly when I create a static text field inb the fla.
 However soon as I embed the font and try to create a 
 textfield dynamicly the eurosign disapears.
 
 The strange thing is that it works with some other fonts but 
 not with the one I need.
 
 I tried google all day but my problem isn't solved yet.
 
 Anybody some advice for me?
 
 Regards,
 
 Tom
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] flash and xpath

2007-05-17 Thread Karina Steffens
Jason,

I came across this problem recently... Unless you use the nodeValue
property, the returned node will be escaped when converted to string (and
no,unescape doesn't  help a bit...). It's not a full url-encoding that you
get with the escape() function, but ampersands and html tags will be
converted to entities such as amp;.
Now I haven't used xpath, so I don't know if it implements nodeValue, but
even if it doesn't, there's got to be a way of extracting it.

Karina


 -Original Message-
 From: Jason Law [mailto:[EMAIL PROTECTED] 
 Sent: 17 May 2007 15:48
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] flash and xpath
 
 I'm still getting the value returned as amp;. I'm starting 
 to pull my hair out cause of this. Could there be any other 
 reason why this is occurring? When I look at the file being 
 loaded in from the output as a var I see that even in there 
 the ampersand is being shown as amp;.
 
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Kerem Iseri
 Sent: Wednesday, May 16, 2007 5:55 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] flash and xpath
 
 Use CDATA for that node inside the XML to make flash 
 recognise everything you write inside CDATA as html text.
 You can even use  font size=12 color='#171717'/font or 
 br for new line etc. 
 
 For example .. 
 
 item![CDATA[Field  Stream]]/item
 
 Kerem İŞERİ
 Trafo Intractive
 www.trafo.com.tr
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Jason Law
 Sent: Wednesday, May 16, 2007 11:38 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] flash and xpath
 
 Ok, so I was able to get it to work, but now I'm coming 
 across another issue.
 
 I'm loading in xml using the old new XML() object and using 
 xpath to parse. One of the fields I have looks like this. 
 itemField  Stream/item. The issue is that the value I'm 
 getting back from xpath is Field amp; Stream and not 
 Field  Stream. 
 
 The textfield that is being used to display is not showing 
 the text as html and fontEmbed is false. Is there anything 
 that I could do to fix this?
 
 Thanks!
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Johannes Nel
 Sent: Wednesday, May 16, 2007 12:45 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] flash and xpath
 
 it seems you want to get the text value of a node. try this
 
 
 var item:String = XPathAPI.selectSingleNode(doc.firstChild,
 /html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign']/text()
 )toString();
 
 
 notice the text()
 
 On 5/16/07, Jason Law [EMAIL PROTECTED] wrote:
 
  I'm wondering if this is possible within flash 8 using the xpath api
 to
  do something like this.
 
 
 
  var item:String = XPathAPI.selectSingleNode(doc.firstChild,
  /html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign'][2]
  ).firstChild.toString();
 
 
 
  now I know this works
 
 
 
  var item:String = XPathAPI.selectSingleNode(doc.firstChild,
  /html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign']
  ).firstChild.toString();
 
 
 
  but it seems that when you add any kind of nodeItem to the 
 end of an 
  item flash returns undefined.
 
 
 
 
 
  jason law, detroit
 
  organic, inc. | www.organic.com http://www.organic.com/ 
 retail tech 
  lead | interface engineer
  e: [EMAIL PROTECTED] | p: 248.454.3387 | aim: jaylaw81
 
 
 
 
 
 
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  This email is intended only for the person or entity to which it is 
  addressed and may contain information that is privileged, 
 confidential 
  or
 otherwise
  protected from disclosure. Dissemination, distribution or copying of
 this
  email or the information herein by anyone other than the intended 
  recipient, or an employee or agent responsible for delivering the 
  message to the intended recipient, is prohibited. If you 
 have received 
  this email in error,
 please
  immediately notify us by calling our Help Desk at (415) 
 581-5552 or by 
  e-mailing us at [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
 
 
 
 
 -- 
 j:pn
 http://www.lennel.org
 ___
 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] Quick syntax q: how to write a function that canreceive an undefined number of parameters

2007-05-11 Thread Karina Steffens
The parameters received by a function are automatically stored in a built-in
array called arguments. So you can do something like this:

public static function center(obj1:Object) {
var targetX:Number = ob1._x;
var targetY:Number = ob1._y;
for (var i = 1; iob_ar.length; i++) {
arguments[i]._x = targetX+(ob1._width/2);
arguments[i]._y = targetY+(ob1._width/2);
}
}   
}

Btw, obj1 doesn't have to be passed seperately either - you can use
var targetX:Number = arguments[0]._x; - but there's no reason to do so in
your code, and this way the method is a bit more clear.

The only caveat is that, depending on the rest of your code, if you have to
pass an unknown number of movie clips, there's a chance your original
function might actually make more sense...

Cheers,
Karina





 -Original Message-
 From: Alistair Colling [mailto:[EMAIL PROTECTED] 
 Sent: 11 May 2007 12:41
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Quick syntax q: how to write a 
 function that canreceive an undefined number of parameters
 
 Hi there, just a quick syntax question, I want to receive a 
 function that will centre the position of all objects passed 
 to that of the first object passed but the number of objects 
 passed may vary. This is the syntax I am currently using, is 
 this the best way to do it?
 Thanks for any comments in advance :)
 Ali
 
 //ob1 is the object that the objects in the array centre 
 themselves to public static function center(ob1:Object, ob_ar:Array) {
   var targetX:Number = ob1._x;
   var targetY:Number = ob1._y;
   for (var i = 0; iob_ar.length; i++) {
   ob_ar[i]._x = targetX+(ob1._width/2);
   ob_ar[i]._y = targetY+(ob1._width/2);
   }
   }
 
 center(myMC, [myMC2, myMC3, myMC4]);
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] Quick syntax q: how to write a function thatcanreceive an undefined number of parameters

2007-05-11 Thread Karina Steffens
You're welcome Ali :)

By making more sense I didn't particularly meant clarity, but ease of use.
For example, if you're calling this function from method(s)that hardcode the
passed clips like in your example, then using arguments makes sense. 
But what if you're dynamically retrieving those clips with some code,
possibly including some and excluding others? In that case, sticking them
into an array while you're retrieving them makes more sense. And then all
you need to do is pass that array. 

Just as a very rough example -

var myMC = containingClip.firstOne;
var clips:Array
for (var i in containingClip){
   if (containingClip[i]._name.indexOf(center)  -1){
clips.push(containingClip[i]
  }
}

center(myMC, clips)

Similarly (and I'm straying a bit off topic here, so I hope you don't mind)
when you're passing a variable number of arguments as options, it's easier
to create an options object first and pass that instead of loads of
arguments:
 var options:Object = {}
 options.delay = 500;
 options.html = true;
 options.follow = true;

 Tooltip.show(Tooltip Text, options)


Does that make any sense? 

Karina


 -Original Message-
 From: Alistair Colling [mailto:[EMAIL PROTECTED] 
 Sent: 11 May 2007 16:37
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Quick syntax q: how to write a 
 function thatcanreceive an undefined number of parameters
 
 Thanks Karina this is the sort of thing I was looking for, as 
 you say it may be clearer to code this fn the way I initially 
 said but I was interested in how to code this another way so 
 thanks for helping me.  
 One tiny typo, before someone else does-
  for (var i = 1; iarguments.length; i++)
 Thanks again :)
 Ben, thanks for your help too, I hadn't thought of only using 
 the square brackets to make the code more efficient.
 
 Ali
 
 
 
 
 On 11 May 2007, at 15:32, Karina Steffens wrote:
 
  The parameters received by a function are automatically stored in a 
  built-in array called arguments. So you can do something 
 like this:
 
  public static function center(obj1:Object) {
  var targetX:Number = ob1._x;
  var targetY:Number = ob1._y;
  for (var i = 1; iob_ar.length; i++) {
  arguments[i]._x = targetX+(ob1._width/2);
  arguments[i]._y = targetY+(ob1._width/2);
  }
  }   
  }
 
  Btw, obj1 doesn't have to be passed seperately either - you can use 
  var targetX:Number = arguments[0]._x; - but there's no 
 reason to do so 
  in your code, and this way the method is a bit more clear.
 
  The only caveat is that, depending on the rest of your code, if you 
  have to pass an unknown number of movie clips, there's a 
 chance your 
  original function might actually make more sense...
 
  Cheers,
  Karina
 
 
 
 
 
  -Original Message-
  From: Alistair Colling [mailto:[EMAIL PROTECTED]
  Sent: 11 May 2007 12:41
  To: flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] Quick syntax q: how to write a 
 function that 
  canreceive an undefined number of parameters
 
  Hi there, just a quick syntax question, I want to receive 
 a function 
  that will centre the position of all objects passed to that of the 
  first object passed but the number of objects passed may 
 vary. This 
  is the syntax I am currently using, is this the best way to do it?
  Thanks for any comments in advance :) Ali
 
  //ob1 is the object that the objects in the array centre 
 themselves 
  to public static function center(ob1:Object,
  ob_ar:Array) {
 var targetX:Number = ob1._x;
 var targetY:Number = ob1._y;
 for (var i = 0; iob_ar.length; i++) {
 ob_ar[i]._x = targetX+(ob1._width/2);
 ob_ar[i]._y = targetY+(ob1._width/2);
 }
 }
 
  center(myMC, [myMC2, myMC3, myMC4]);
 
 
 
  ___
  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

RE: [Flashcoders] Clear Set Interval Q:

2007-04-24 Thread Karina Steffens
Dunno if there's a good reason behind it, but if you need it to return null
you can always use delete intervalID just afar clearing the interval.

Karina

 -Original Message-
 From: Helmut Granda [mailto:[EMAIL PROTECTED] 
 Sent: 24 April 2007 22:19
 To: Flashcoders mailing list
 Subject: [Flashcoders] Clear Set Interval Q:
 
 Is there any specific reason why after calling clearInterval 
 the variable with the interval returns 1 instead of undefined/null?
 
 Following the docs and creating a simple item we get 
 different results (no different but no what our logic might expect)
 
 function callback() {
  trace(interval called: +getTimer()+ ms.); }
 
 var intervalID:Number = setInterval(callback, 1000); 
 trace(intervalID);
 
 clear_btn.onRelease = function(){
  clearInterval( intervalID );
  trace(intervalID);//shouldnt this return undefined/null?
  trace(cleared interval);
 };
 
 start_btn.onRelease = function() {
 intervalID = setInterval(callback, 1000);// this adds 1 
 to the current interval
 trace(intervalID);
 }
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] seek() in VideoPlayer class

2007-04-23 Thread Karina Steffens
Hi Jamie,

Assuming you're rolling out your own seek slider, I suggest you call the
seek() method after the user released the slider, instead during the
dragging process. This will eliminate the multiple calls and make it much
smoother.
If you really need the sliding to happen in real-time, you could set an
interval that gets called every second or so and calls the seek() method. It
may also be a good idea to pause the movie when you press the slider and
resume playback when you release it. 

Cheers,
Karina

 
Karina Steffens  |  Neo-Archaic
new concepts, timeless design
www.neo-archaic.net


 -Original Message-
 From: Flash Coder [mailto:[EMAIL PROTECTED] 
 Sent: 23 April 2007 13:36
 To: Flashcoders mailing list
 Subject: [Flashcoders] seek() in VideoPlayer class
 
 Hi,
 
 I am building my own flv videoplayer with the 
 mx.video.VideoPlayer class.
 
 I have run into a problem with my draggable slider for 
 seeking back and forth my movie.
 
 The problem is:
 
 I'm calling the seek() method every time the mouse's x 
 position change.
 
 It works fine if I just click around the slider. But if I 
 start dragging it, the class registers every single little 
 seek call, and of course act upon every single one of them. 
 This slows the seeking down a lot. If I just drag it back and 
 forth a couple of times, I can sit back and wait up to 30 
 seconds to watch it go through every seek jump.
 
 What am I doing wrong? I tested the FLV playback component. 
 It works a little better, but far from as good as the YouTube 
 flv player.
 
 Please help me out.
 Jamie
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] eolas fix for IE7

2007-04-04 Thread Karina Steffens
You might want to try ObjectSwap -
http://blog.neo-archaic.net/2006/04/25/objectswap.htm

Karina 

 -Original Message-
 From: Matthew Ganz [mailto:[EMAIL PROTECTED] 
 Sent: 03 April 2007 17:20
 To: Flashcoders mailing list
 Subject: [Flashcoders] eolas fix for IE7
 
 hi.
 
 i've tried implementing the eolas fix using the 
 flashobject.js method and swfobject.js method and they both 
 work for IE6 but not for IE7. is there a different fix needed for IE7?
 
 thanks. -- matt. 
 ___
 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] ASP and Character encoding in flash

2007-03-29 Thread Karina Steffens
I hope somebody can help with this one...
 
I'm working on a flash application, where the settings can be dynamically
imported from xml files or an asp query that sends out xml. It works fine if
it's an xml file saved as UTF-8, both english and with special characters
(in this case, swedish), or an asp generated xml with no special characters
(==english).
 
But when the client is trying to send out asp xml in swedish, the special
characters turn into boxes and some xml fields display as undefined, similar
to what you get if you save the local xml file as simple text, rather than
UTF-8.
 
Also, strangely enough, when the query is tested in the browser, IE and FF
seem to be having trouble with the asp xml if the encoding at the top of the
page is utf-8, but display it fine with ?xml version='1.0'
encoding='ISO-8859-1'?
 
My guess is that regardless of the encoding at the top of the page, when the
asp xml reaches Flash, it's not UTF-8 but simple text. My question is - can
anything be done about it?
 
Thanks,
Karina
 
 
Karina Steffens  |  Neo-Archaic
new concepts, timeless design
 http://www.neo-archaic.net/ www.neo-archaic.net
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] ASP and Character encoding in flash

2007-03-29 Thread Karina Steffens
That did the trick!

Thanks a mil :) 

 -Original Message-
 From: Johan Karlsson [mailto:[EMAIL PROTECTED] 
 Sent: 29 March 2007 14:38
 To: flashcoders@chattyfig.figleaf.com
 Subject: SV: [Flashcoders] ASP and Character encoding in flash
 
 You must set the ASP-charset to utf-8 as well. 
 Add this at the beginning of the ASP file:
 
 Response.CodePage = 65001 
 
 
 /Johan
 
 --
 -
 I hope somebody can help with this one...
  
 I'm working on a flash application, where the settings can be 
 dynamically imported from xml files or an asp query that 
 sends out xml. It works fine if it's an xml file saved as 
 UTF-8, both english and with special characters (in this 
 case, swedish), or an asp generated xml with no special 
 characters (==english).
  
 But when the client is trying to send out asp xml in swedish, 
 the special characters turn into boxes and some xml fields 
 display as undefined, similar to what you get if you save the 
 local xml file as simple text, rather than UTF-8.
  
 Also, strangely enough, when the query is tested in the 
 browser, IE and FF seem to be having trouble with the asp xml 
 if the encoding at the top of the page is utf-8, but display 
 it fine with ?xml version='1.0'
 encoding='ISO-8859-1'?
  
 My guess is that regardless of the encoding at the top of the 
 page, when the asp xml reaches Flash, it's not UTF-8 but 
 simple text. My question is - can anything be done about it?
  
 Thanks,
 Karina
  
  
 Karina Steffens  |  Neo-Archaic
 new concepts, timeless design
  http://www.neo-archaic.net/ www.neo-archaic.net
  
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
 -- 
 
 Meddelandet har kontrollerats av CRW MailScanner och
 
 inget skadligt innehåll har upptäckts.
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] ASP and Character encoding in flash

2007-03-29 Thread Karina Steffens
This certainly explains why the browser rendered the code properly in ISO,
when it should have rendered it properly in UTF-8. But the Response.CodePage
= 65001 was the bit that was missing from the asp, which is why it wasn't
sending the strings properly. All seems to be working fine now - thanks
everyone :)

Karina

 -Original Message-
 From: Rákos Attila [mailto:[EMAIL PROTECTED] 
 Sent: 29 March 2007 14:42
 To: Karina Steffens
 Subject: Re: [Flashcoders] ASP and Character encoding in flash
 
 
 Flash doesn't care about the encoding given in XML's header, 
 it always treats the content as UTF-8 (even if it doesn't 
 match the real code page). Browsers however take the header 
 into consideration, so if
 UTF-8 is given there, then they treat the content as UTF-8, and if
 ISO-8859-1 is given, then as ISO-8859-1. So, if ISO-8859-1 
 works well in browsers, it means that your text is in 
 ISO-8859-1, which is not suitable for Flash.
 
 The encoding of the text doesn't depend on the header, it is 
 just for informational purposes for parsers. If you change 
 the header, the text's encoding remains and doesn't change - 
 just parsers will interpret the same byte stream differently.
 
 So, you have to make sure to output UTF-8 encoded text with 
 your ASP application.
 
   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


RE: [Flashcoders] Super and this

2007-03-20 Thread Karina Steffens
 
 
 Think of 'Super' as opening a Russian Doll. When you call a 
 given method, 
 it's at the current outermost level. When you use Super you 
 remove a layer 
 and work with what is nested inside.
 I don't know if that helps or not.
 
 I don't know lingo, but Flash behaves more or less as most OO 
 languages do.

I wouldn't say a Russian Doll - that's what Lingo does, by making it's
ancestor an object of its own. In Lingo, you can even create an object by
classA and assign it as an ancestor of classB. 
Flash is probably more like an onion - a single entity with each layer is an
integral part of the object. 

Or a genetics metaphor - having your mother's eyes (in Flash) doesn't mean
that you actually have her actual eyes... But Lingo reminds me of a quote
from Robots: Ahhh, he's got mother's eyes - I knew they would come in
handy! 

Karina

___
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] Super and this

2007-03-19 Thread Karina Steffens
Danny, I think what Ron means is, you don't instantiate the class _and_ the
super class, as you would with Director.

As you know (and for anyone that isn't familiar with it), in Director the
ancestor property is an instance of the superclass, residing within an
instance of the subclass (a bit like a Russian Doll!) - but in Flash you
don't get two instances within each other, but just a single hybrid of all
the classes in the inheritance chain.

To be honest, I'm not really sure what is better. Certainly the Director way
is a lot more flexible - you can generate and swap ancestors on the fly,
which I think is pretty cool, a bit like inheritance via composition. 

Actually if you go back to the metaphor, the Chrysler PT Cruiser in Director
would come with a little Chrysler Neon sitting inside it ;)

Karina

   

 -Original Message-
 From: Danny Kodicek [mailto:[EMAIL PROTECTED] 
 Sent: 19 March 2007 09:39
 To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Super and this
 
   Just to make your life simpler.
  You do not instantiate a class; you instantiate an
  instance(object)  of a class. 
 
 Isn't that what 'instantiate' means? By 'instantiate' I mean 
 'make an instance of'.
 
 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


RE: [Flashcoders] shared local object, or XML export? or other?

2007-03-19 Thread Karina Steffens
I would definitely go with shared object. You can access it from whatever
app you like if you pass a local path parameter, like this:
so = SharedObject.getLocal (mySharedObject, /)
so = SharedObject.getLocal (mySharedObject, /myProject)
Etc...
If you don't pass the path, it generates a local path for you, which is
indeed different for each application, to avoid naming conflicts. But by
specifying the path you bypass that and can call it from anywhere you like.

Karina

 -Original Message-
 From: kent humphrey [mailto:[EMAIL PROTECTED] 
 Sent: 19 March 2007 10:50
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] shared local object, or XML export? or other?
 
 For an upcoming project, I have to investigate whether to use 
 a shared localobject for storing user data, or exporting XML.
 
 This is for a cd based app, not a website. A shared 
 localobject would be my first choice, except that we want to 
 be able to access the saved data from a second release of the 
 cd. My understanding of the security of local objects is that 
 they are only accessible from the app that created them. Is 
 that correct? Or is it possible to work around that?
 
 If the second release would not be able to retrieve the data, 
 I thought maybe exporting XML would be an option. But from my 
 searches, all the ways of doing that involve sending to a 
 server, and we wont be able rely on net access being 
 available. Are there any other ways of exporting xml?
 
 Or is there a method I haven't thought of? The basic 
 requirement is that user data can be saved to the local 
 machine, and then read in again by the same app, and any 
 other subsequent apps. Ideally we don't want to have to do a 
 local install, but would consider it if there is no other way.
 
 Thanks for your time.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] Create an object by name

2007-03-19 Thread Karina Steffens
Hi Danny,

The idea of the import statement is to specify which class namespaces you
want to use. For example, there could be multiple packages that contain a
class named Danny:
 com.kodicek.Danny
 com.day.lewis.Danny

If you wanted to use the first class, you'd need to write all of it every
time you wanted to instantiate it, like this:

myClass = new com.kodicek.Danny ()
myClone = new com.kodicek.Danny ()

But to make it easier, you can import it at the top of the containing class:

 import com.kodicek.Danny;

Having imported it, you let the containing class know which Danny you want
to be using, so then you can instantiate it without appending the full
package name each time:

myClass = new Danny()
myClone = new Danny()

You can also use:
  import com.kodicek.*;

And that would import all the classes in the specified package, saving you
the hassle of importing them one by one - but Flash will only compile the
class or classes you end up using in the script, keeping the swf size just
as small as if you'd used import com.kodicek.Danny.

I hope that wasn't over-explaining: I know you're not exactly a newbie to
programming ;)

Karina



 -Original Message-
 From: Danny Kodicek [mailto:[EMAIL PROTECTED] 
 Sent: 19 March 2007 11:45
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Create an object by name
 
   Hello Danny,
This short snippet should return you the constructor:
  
  /** Returns the class constructor from a dotted path.
  * e.g. [EMAIL PROTECTED] var
  cons:Function=getConstructorFromPath(com.pkg.fred.Bucket); }
  */
  public static function
  getConstructorFromPath(classPath:String):Function
  {
  var arr:Array=classPath.split(.);
  var obj:Object=_global;
  for(var i:Number=0;iarr.length;i++)
  {
  obj=obj[arr[i]];
  }
  return Function(obj);
  }
  
  Then just do var obj:Object=new cons();
 
 Thanks, Ian. So constructor functions are actually located in 
 _global space?
 That makes sense - is it always true, or do I need to ensure 
 it in some way?
 After all, if I do an import somewhere, that class is only 
 available in the scope of the import statement, not 
 everywhere in the movie (I think?).
 
 Again, sorry to be pushing these questions so much - I just 
 find that once I understand what's going on 'behind the 
 scenes', I get much clearer about what my side of things is. 
 I'm still not entirely sure what import actually
 *does* :)
 
 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


[Flashcoders] Switching the current NetStream publish client

2007-03-16 Thread Karina Steffens
Hi List,
 
I'm currently wrangling with a problem, that seemed fairly straightforward
originally...
I have a chat application, to which I need to introduce a new feature that
allows the Chat Admin to switch the user that has the floor. This is done by
setting a flag in the chat so, which tells all the currently connected users
which of them has the floor. So far, so good.
But the user who has the floor, also needs to appear in the camera view for
all users, whereas in the original application you only had the Admin's
camera active. 
 
My first idea was to simply switch the publisher - so if the Admin was
originally published as adcam stream, now the current floor user is
published there instead, and so forth. But that didn't seem to work - it
generated a BadName error. So then I tried to close the stream before
republishing, but that doesn't seem to work either, and I'm not entirely
sure why. I was tried to sending NetStream.close() and then I tried
NetStream.publish(false), but without success. I suspect that maybe the
client that started the process should also close it, but I'm not sure.
 
My second idea was to have them all published under their own usernames, and
switching to the floor user by playing the appropriate netstream. But for
some reason, I can only get adcam to publish, even though the other
streams are attempting to be played. The relevant code is this:
 
function setStream(newStream:String){
  stream = newStream
 }
 
 function publishCam(newStream){
  _global.tt(publish cam)
  setStream(newStream)
  if (Camera.names.length  parent.enableCam){
   cam = Camera.get()
   startCam()
   _global.tt (publishing, stream)
   ns.publish(stream, live)
  }
 }
 
function startCam(){
  _global.tt(start cam)
  broadcastMessage (toggleCamMenu, start)
  broadcastMessage(attachVideo, cam)
  ns.attachVideo(cam);
 }
 
The Xray trace (_global.tt) is showing the right stream name, but it doesn't
get published. 
 
So my questions are - can you see what's wrong with this code, and which of
the two approaches do you think would be a better design?
 
I should mention that this particular project is Flash7 / FlashComm Server
(not FMS).
 
Thanks,
Karina
 
 
 
 
 
Karina Steffens  |  Neo-Archaic
new concepts, timeless design
 http://www.neo-archaic.net/ www.neo-archaic.net
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] is flash still alive?

2007-03-14 Thread Karina Steffens
And yet you manage to find time to perform more miracles - Papervision3D
looks amazing...! ;)



 -Original Message-
 From: John Grden [mailto:[EMAIL PROTECTED] 
 Sent: 13 March 2007 15:28
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] is flash still alive?
 
 LOL no doubt - I can barely keep up with the work I've taken 
 on and Flash Developers are very hard to find.  I must get 1 
 call a week at least from Recruiters looking for Flash Devs.
 
 Business is good.
 
 On 1/21/07, Patrick Lemiuex [EMAIL PROTECTED] wrote:
 
  You're joking right?
 
 
  On Mar 12, 2007, at 3:51 PM, ottocid wrote:
 
   This may sound a stupid question.
  
   But I've been away from flash developing for one year. 
 And I need to 
   know if there is still the same request of flash actionscript 
   programmers of last year of flash is becoming obsolete, 
 in favour 
   of Flex or simply in favour of classical html/serverside 
   applications, that are google friendly / accessible etc...
  
   In next months I will leave italy to go in London searching for a 
   job, and I need to know if being a STRONG actionscript 
 developer is 
   still a good reference.
  
   Thanks in advance
  
   ___
   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
 
 
 
 
 -- 
 [  JPG  ]
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 

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

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


RE: [Flashcoders] Cache Killer... is it bulletproof ???

2007-03-05 Thread Karina Steffens
Also check out my blog entry on the subject -
http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flash.htm
The Flash IDE doesn't like the cache-busters so you need to test
System.capabilities.playerType before appending the query.

Karina

 

 -Original Message-
 From: David Bellerive [mailto:[EMAIL PROTECTED] 
 Sent: 03 March 2007 03:54
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Cache Killer... is it bulletproof ???
 
 I've read that appending a random query string ( example : 
 new Date.getTime() ) to the URL of assets (images, sounds, 
 XML files, etc.) loaded at runtime in the Flash Player 
 ensures that these assets are always loaded from the server 
 instead of being loaded from the cache.
 
 I've tested this on Windows XP in IE5, IE5.5, IE6, FF1, 
 FF1.5, FF2, Opera 8, Opera 8.5, Opera 9, Netscape 7 and 
 Netscape 8 and it seems to work very well.
 
 However, I haven't been able to test this on a Mac or on Linux.
 
 Is this method bulletproof (it works in all browsers on all 
 operating systems)?
 
 Is this something that you would really rely on for big projects?
 
 Has anyone ever used this method and had big problems with it 
 or even minor glitches?
 
 
 
  
 __
 __
 TV dinner still cooling? 
 Check out Tonight's Picks on Yahoo! TV.
 http://tv.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
 

___
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] simple math question...

2007-03-02 Thread Karina Steffens
If your mc's reg point is top left:
 mc._x =  _root.xmouse - mc._width/2
 mc._y =  _root.ymouse - mc._height/2

if it's centered you need not bother about the width/2 etc, but if it's
somewhere else, you'll need to change it or do other calcualtions.

Karina

 -Original Message-
 From: [p e r c e p t i c o n] [mailto:[EMAIL PROTECTED] 
 Sent: 01 March 2007 23:57
 To: flashcoders
 Subject: [Flashcoders] simple math question...
 
 good people,
 
 how do i move a moviClip to center itself at (_xmouse, 
 _ymouse)...i have the onPress part down...i just need to 
 center it on those coordinates
 
 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
 

___
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] [Solution] MovieClipLoader woes (Irritating BugAlert!)

2007-02-28 Thread Karina Steffens
H Ian,

_level0.nav1.nav.mod0.inst0.clip1.inst1.inst2.inst1.res17

You still have inst1 duplicated here - or is this a typo?

Thanks for sharing your findings, btw :)

Karina

 

 -Original Message-
 From: Ian Thomas [mailto:[EMAIL PROTECTED] 
 Sent: 26 February 2007 18:42
 To: Flashcoders mailing list
 Subject: [Flashcoders] [Solution] MovieClipLoader woes 
 (Irritating BugAlert!)
 
 Hi folks,
I just thought I'd share the solution to this - a very irritating
 AS2 bug/feature that took me an age to track down.
 
If you have a bunch of nested movieclips and any of them (down the
 chain) share a name, such as:
 
 _level0.nav1.nav.mod0.inst0.clip1.inst0.inst0.inst1.res17
 
 (I know, not terribly readable, but autogenerated by our 
 clip-creation code. Note all the 'inst0's)
 
 then loadMovie() (and by extension, MovieClipLoader) will 
 silently fail. MovieClipLoader will trigger no listener 
 events at all, not even an error. And whereas loadMovie() 
 will trace a semi-useful error (that it can't find the clip), 
 MovieClipLoader won't trace anything at all.
 
 Changing it to:
 _level0.nav1.nav.mod0.inst0.clip1.inst1.inst2.inst1.res17
 
 (i.e. getting rid of all the 'inst0' duplicates)
 
 solves the problem.
 
 Flash itself can cope quite happily with clips named the same 
 thing in a clip chain. It only falls over when loading into 
 one of the children.
 
 If anyone wants to share my pain, the full rundown is here:

 http://wildwinter.blogspot.com/2007/02/irritating-bugs-no-1679
 a-loadmovie-and.html
 
 Cheers,
   Ian
 
 On 2/26/07, Ian Thomas [EMAIL PROTECTED] wrote:
  Hi all,
Has anyone ever come across a situation where 
 MovieClipLoader just 
  refuses to fire any events whatsoever?
 
The situation:
 
  - Flash 8, running in IDE or as local projector (on Win XP)
  - A whole pile of successful MovieClipLoader calls have been made 
  (probably 50 or so by this stage), _including_ the very same bit of 
  code which later fails.
  - Nothing else is loading/streaming at the same time.
  - Three calls (in rapid succession) are made to a function 
 which does 
  the following:
 
- creates a new MovieClipLoader
- creates a new MovieClip (at a new depth)
- assigns a new listener for the MovieClipLoader
- starts loading a .swf into the clip.
 
  The first two times, it works perfectly. The third time, no 
 events are 
  fired and the clip apparently doesn't load.
 
  On each occasion, we wait for the previous load to successfully 
  complete first (onLoadInit) before we call the function again.
 
  Completely repeatable each time.
 
  The loaded .swf isn't doing anything odd (it contains no 
 code whatsoever).
 
  *sigh*
 
  Any ideas? Or robust alternatives to MovieClipLoader? (Bokel's 
  LoaderClass is a little heavyweight for what I want to do, 
 but I might 
  take a look at it).
 
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
 

___
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] Events for custom classes?

2007-02-16 Thread Karina Steffens
Hi Jason,

I have my own implementation of AsBroadcaster/EventDispatcher (bundling both
in one class), which is very flexible and can be used with inheritance or
composition (But unlike the standard implementations, it's not a mix-in
class). If you'd like me to send you the class, just let me know.

Karina
 

 -Original Message-
 From: Merrill, Jason [mailto:[EMAIL PROTECTED] 
 Sent: 16 February 2007 20:16
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Events for custom classes?
 
 Thanks Alain, will revist it that way instead.
 
 Jason Merrill
 Bank of America
 Learning  Organizational Effectiveness
  
  
  
  
  
  
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Alain 
 Rousseau
 Sent: Friday, February 16, 2007 3:01 PM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] Events for custom classes?
 
 Jason,
 
 So if I understand clearly what you want to do is :
 
 From Class A : (pseudo code following)
 
 class ClassA {
 private var instClassB:ClassB;
 make comboBox
 make datagrid
 function ClassA() {
 instClassB = new ClassB();
 comboBox.onChange = Delegate.create(this, 
 cbChangeHandler);
 instClassB.addEventListener(webServiceResult, this);
 }
 
 function cbChangeHandler(e){
 instClassB.getWSdata(e.value);
 }
 
 function webServiceResult(evtObj:Object) {
 update datagrid with evtObj.newData
 }
 
 }
 
 class ClassB {
 Decorate with EventDispatcher methods
 dispatchEvent, addEventListener, removeEventListener
 
 function ClassB() {
 EventDispatcher.initialize(this);
 }
 
 function getWSdata(val) {
 get data from web service
 wsInstance.onResult = Delegate.create(this, 
 wsResulthandler);
 }
 
 function wsResulthandler(data) {
 this.dispatchEvent({type:webServiceResult,
 newData:data}) // add anything you want to pass in the object
 }
 }
 
 Now you have them both communication the way you want
 
 Have fun !
 
 Alain
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Merrill, Jason
 Sent: 16 février 2007 14:36
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Events for custom classes?
 
 Daniel, try as I may, I can't get your code to work.  I have one 
 class, which has a combobox.  I can get the event to fire when the 
 combobox changes just fine, but I can't get it to hear 
 the firing of 
 the data capture from the webservice in the other class.
 
 So basically, in pseudocode, I need to do this:
 
 class A{
 make comboBox
 make datagrid
 when comboBox changes, use Class B
 to get data from webservice
 when webservice result received, 
 update datagrid with new data
 
 }
 
 class B{
 connect to webservice   
 when requested, return data to requesting class }
 
 Reason I want these two classes to be separate is because I 
 want other 
 classes to call Class B to get data as well.  So, I can do all of 
 those things just fine, they are all working, except for the last 
 part, when requested, return data to requesting class - I figure 
 since the webservice is asynchronous, I need to capture the 
 received 
 event, which is fine, I can do, that works.  But I need to 
 tell Class 
 A to update the datagrid with the new data when it gets it 
 from Class 
 B - so an event model is required.
 
 in your code, you have a var r in both the Class A and 
 Class B - 
 I'm confused about that.  Thanks for any help.
 
 
 Jason Merrill
 Bank of America
 Learning  Organizational Effectiveness
  
  
  
  
  
  
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Holth,
 Daniel C.
 Sent: Friday, February 16, 2007 10:36 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Events for custom classes?
 
 
 Here is your code modified to use the EventDispatcher:
 
 import mx.events.EventDispatcher; // import the event dispatcher
 
 class com.boa.projects.iqrcgenerator.components.AdminData{
   public var addEventListener:Function; // Set the functions
   public var removeEventListener:Function; // Set the functions
   private var dispatchEvent:Function; // Set the functions
 
   private var userData:Object;
 
   // I'm sure you have a different constructor, but you need
   // to add that line to it if you want to use the eventdispatcher
   public function AdminData(){
   mx.events.EventDispatcher.initialize(this); //
 add this to
 constructor
   }
 
   public function wsUserDataByLOB(lobDbId:Number):Void{
   var getUserListResult:Object = new Object();
   getUserListResult =
 generatorWebService.GetUserList(lobDbId);
 
   var r = this;  // To get this in onResult
   getUserListResult.onResult = function(oUser){
 
   r.dispatchEvent({type:eventOnResult,
 

RE: [Flashcoders] Events for custom classes?

2007-02-16 Thread Karina Steffens
I sent the custom class off list to both of you. 

If anyone else is interested, I'll put it on my blog as soon as I get a
moment to spare, and will let the list know when it's there.

Karina 

 -Original Message-
 From: Rost, Andrew [mailto:[EMAIL PROTECTED] 
 Sent: 16 February 2007 20:55
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] Events for custom classes?
 
 Can you please email your class to me as well [offlist]. I'm 
 working on almost the same thing as Jason.
 
 Thanks much,
 Andrew Rost
 IDEXX Computer Systems
 
 -Original Message-
 From: Merrill, Jason [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 16, 2007 2:41 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Events for custom classes?
 
 Sure, yes - please send offlist . Thanks!
 
 Jason Merrill
 Bank of America
 Learning  Organizational Effectiveness
  
  
  
  
  
  
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Karina 
 Steffens
 Sent: Friday, February 16, 2007 3:30 PM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] Events for custom classes?
 
 Hi Jason,
 
 I have my own implementation of AsBroadcaster/EventDispatcher 
 (bundling both in one class), which is very flexible and 
 can be used 
 with inheritance or composition (But unlike the standard 
 implementations, it's not a mix-in class). If you'd like me to send 
 you the class, just let me know.
 
 Karina
  
 
  -Original Message-
  From: Merrill, Jason [mailto:[EMAIL PROTECTED]
  Sent: 16 February 2007 20:16
  To: Flashcoders mailing list
  Subject: RE: [Flashcoders] Events for custom classes?
  
  Thanks Alain, will revist it that way instead.
  
  Jason Merrill
  Bank of America
  Learning  Organizational Effectiveness
   
   
   
   
   
   
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On
  Behalf Of Alain
  Rousseau
  Sent: Friday, February 16, 2007 3:01 PM
  To: 'Flashcoders mailing list'
  Subject: RE: [Flashcoders] Events for custom classes?
  
  Jason,
  
  So if I understand clearly what you want to do is :
  
  From Class A : (pseudo code following)
  
  class ClassA {
  private var instClassB:ClassB;
  make comboBox
  make datagrid
  function ClassA() {
  instClassB = new ClassB();
  comboBox.onChange = Delegate.create(this,
  cbChangeHandler);
  
 instClassB.addEventListener(webServiceResult, this);
  }
  
  function cbChangeHandler(e){
  instClassB.getWSdata(e.value);
  }
  
  function webServiceResult(evtObj:Object) {
  update datagrid with evtObj.newData
  }
  
  }
  
  class ClassB {
  Decorate with EventDispatcher methods
  dispatchEvent, addEventListener, removeEventListener
  
  function ClassB() {
  EventDispatcher.initialize(this);
  }
  
  function getWSdata(val) {
  get data from web service
  wsInstance.onResult = Delegate.create(this,
  wsResulthandler);
  }
  
  function wsResulthandler(data) {
  this.dispatchEvent({type:webServiceResult,
  newData:data}) // add anything you want to pass in the object
  }
  }
  
  Now you have them both communication the way you want
  
  Have fun !
  
  Alain
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Merrill, Jason
  Sent: 16 février 2007 14:36
  To: Flashcoders mailing list
  Subject: RE: [Flashcoders] Events for custom classes?
  
  Daniel, try as I may, I can't get your code to work.  I 
 have one 
  class, which has a combobox.  I can get the event to fire
 when the
  combobox changes just fine, but I can't get it to hear
  the firing of
  the data capture from the webservice in the other class.
  
  So basically, in pseudocode, I need to do this:
  
  class A{
  make comboBox
  make datagrid
  when comboBox changes, use Class B
  to get data from webservice
  when webservice result received, 
  update datagrid with new data
  
  }
  
  class B{
  connect to webservice   
  when requested, return data to requesting class }
  
  Reason I want these two classes to be separate is because I
  want other
  classes to call Class B to get data as well.  So, I can 
 do all of 
  those things just fine, they are all working, except 
 for the last 
  part, when requested, return data to requesting class -
 I figure
  since the webservice is asynchronous, I need to capture the
  received
  event, which is fine, I can do, that works.  But I need to
  tell Class
  A to update the datagrid with the new data when it gets it
  from Class
  B - so an event model is required.
  
  in your code, you have a var r in both the Class A and
  Class B

RE: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-15 Thread Karina Steffens
Hi Michael,

I address the problem of testing cache-busting code in the IDE in my blog:
http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flash.htm 

Basically, what you need to do is check for System.capabilites.playerType
before adding the cache-buster to the url.

var loader:MovieClipLoader;
var viewLoader:MovieClip;
var url:String = images/catalogue/collection/cat1.jpg;
if (System.capabilities.playerType == PlugIn
|| System.capabilities.playerType == ActiveX){
  url+=?nocache=+new Date().getTime();
}
loader.loadClip (url, viewLoader);


This, of course, won't prevent the other problem you mentioned, large files
downloading multiple times, but it can be quite handy for often-updated
content.

Karina 


 -Original Message-
 From: T. Michael Keesey [mailto:[EMAIL PROTECTED] 
 Sent: 15 February 2007 03:56
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] onLoadComplete, but no onLoadInit
 
 On 2/14/07, John VanHorn [EMAIL PROTECTED] wrote:
  this problem has been discussed before. is this what youre 
 referring to?
 
  
 http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.
  html
 
  seems that MovieClipLoader events do not fire correctly 
 when content 
  is loaded from cache. if this is your problem, would appended a 
  cache-killing query string to the url work? something like:
 
  mcl.loadclip(someswf.swf?d= + new Date().valueOf(),
targetMc
);
 
 Apparently this is a problem, as well as onLoadInit not 
 working correctly all the time when publishing using the 
 Flash 9 alpha. (And in that case, it fails sporadically in 
 Firefox and the IDE as well.)
 
 Cache-busting is not a great solution, since 1) it makes it 
 impossible to test anything anywhere except from a server, 
 and 2) it could cause some large-ish files to download 
 multiple times. I think I'll just have to come up with a 
 customized solution and, in general, learn not to rely on onLoadInit.
 
 Suck.
 --
 Mike Keesey
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-15 Thread Karina Steffens
You're welcome :)  

 -Original Message-
 From: T. Michael Keesey [mailto:[EMAIL PROTECTED] 
 Sent: 15 February 2007 15:28
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] onLoadComplete, but no onLoadInit
 
 On 2/15/07, Karina Steffens [EMAIL PROTECTED] wrote:
  Hi Michael,
 
  I address the problem of testing cache-busting code in the 
 IDE in my blog:
  
 http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flas
  h.htm
 
  Basically, what you need to do is check for 
  System.capabilites.playerType before adding the 
 cache-buster to the url.
 
  var loader:MovieClipLoader;
  var viewLoader:MovieClip;
  var url:String = images/catalogue/collection/cat1.jpg;
  if (System.capabilities.playerType == PlugIn
  || System.capabilities.playerType == ActiveX){
url+=?nocache=+new Date().getTime(); } 
 loader.loadClip (url, 
  viewLoader);
 
 
  This, of course, won't prevent the other problem you 
 mentioned, large 
  files downloading multiple times, but it can be quite handy for 
  often-updated content.
 
 Ah, thanks! That looks like something that could be an option 
 for my loading package.
 --
 Mike Keesey
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] determining which object is displayed at agivenpoint

2007-02-08 Thread Karina Steffens
I concur. You just can't have two mcs on the same depth in Flash. 

When you use a repeat loop similar to my code, don't forget to switch the
shape flag on (see code). This way you'll avoid hitting on empty bits in the
rect (that's why I was using circles to test my theory - the bounding rect
wasn't hit, just the circles themselves). Then, the _very first time_ you
get a hit, you know that you're at the highest depth. Stop the loop and
recurse into the clip to check for children. The _fist time_ you get a hit
there, stop and check for children again, etc.
The first clip to score a hit, which doesn't have any more children that
also score a hit, is your dear uncle bob.

Karina



 -Original Message-
 From: Joshua Sera [mailto:[EMAIL PROTECTED] 
 Sent: 08 February 2007 07:49
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] determining which object is 
 displayed at agivenpoint
 
 The only case in which depth would be identical for two 
 movieclips is if they both were contained in different parent 
 movieclips.
 
 In that case, check the parent's depth, and use that to 
 resolve the conflict. If both of those are the same, continue 
 going up until the conflict is resolved.
 
 --- Vishal Kapur [EMAIL PROTECTED] wrote:
 
  It looks like you spent some time on this response, I really 
  appreciate that.  As I mentioned in my first mail, depth, 
 _visible and 
  _alpha are the properties I'm checking right now to resolve 
 conflicts.
   So my code looks very similar to your code below. 
  This works
  sometimes, but I've run into cases where there are 2 movieclips for 
  which hitTest() is true, _visible is true, _alpha is 100, and the 
  depths are identical.  One of the movieclips is obscured behind the 
  other; there must be some way to distinguish them.
  Are there any
  other properties on movieclips (maybe hidden ones) that might be of 
  use?  The Flash runtime must be doing this internally for 
 onRollOver 
  event firing; anyone know how this works?
  
  Thanks,
  Vishal
  
  
  
  On 2/7/07, Karina Steffens [EMAIL PROTECTED]
  wrote:
   Ok, I see your problem, so lets think what else
  you can do with the hitTest
   approach...
   First of all, you can set the shape flag to true,
  so that the hit test will
   only return true if there's something there (as
  opposed to the entire
   bounding rect).
   Then you can test for _alpha (you might want to
  test for _visible also),
   thus eliminating invisible buttons, such as your
  big rectangle that obscures
   the rest.
  
   Finally, checking for different depths - I
  recently discovered that if you
   loop through a clip, it starts at the highest
  depth, even on the same layer:
   for (var i in _root) {
   trace(i +   +_root[i].getDepth());
   }
  
   $version
   clip3 -16379
   clip2 -16381
   clip1 -16383
  
   So now you know which one has the highest depth:
  clip3, which also comes
   first in the loop.
   At this point, you can break the loop. If you need
  to go deeper, you can
   then recurse within that clip, and see if it has
  any child mcs, which one of
   those scores the highest hitTest and if that one
  has any children - etc.
  
   Here's some quickdirty code:
  
   for (var i in _root) {
   trace(i +   +_root[i].getDepth());
   }
  
   _root.onEnterFrame = function() {
   for (var i in this) {
   var clip = this[i];
   if (!(clip instanceof MovieClip))
  {
   continue;
   }
   if (clip._alpha == 0 ||
  clip._visible == 0) {
   continue;
   }
   if (clip.hitTest(_root._xmouse,
  _root._ymouse, true)) {
   trace(clip);
   break;
   }
   }
   };
  
   On the timeline, I placed three circular clips
  overlapping eachother, so
   that clip1 is at the lowest depth and clip3 at the
  highest. I made clip3
   invisible by setting it's alpha to 0.
  
   After moving my mouse over the clips, starting
  from the third, the trace
   result was:
  
   $version
   clip3 -16379
   clip2 -16381
   clip1 -16383
   _level0.clip2
   _level0.clip2
   _level0.clip2
   _level0.clip2
   _level0.clip2
   _level0.clip2
   _level0.clip2
   _level0.clip1
   _level0.clip1
   _level0.clip1
  
   Each time the trace picked out the highest visible
  part of a clip, thus
   resolving any conflicts.
  
   Hope this helps to point you in the right
  direction.
   Karina
  
  
-Original Message-
From: Vishal Kapur [mailto:[EMAIL PROTECTED]
Sent: 07 February 2007 20:29
To: Flashcoders mailing list
Subject: Re: [Flashcoders] determining which
  object is
displayed at agivenpoint
   
To respond to the recent activity on this
  thread:
Erik, the core functionality that I need really
  does need to
be comprehensive and fairly generic: so, given
  any 3rd party
swf which

RE: [Flashcoders] determining which object is displayed at agivenpoint

2007-02-07 Thread Karina Steffens
Hi Vishal,

I apologise ahead if I'm being dense here, but nobody seems to have
mentioned the obvious solution:
Looping through the mcs in your third party flash movie and checking for
hit-test with the mouse position.

var hit_array:Array = []; 
for (var i:String in target_mc){
  var mc:MovieClip = target_mc[i];
  if (!mc instanceof MovieClip){
  //not a movie clip - ignore
continue;
  }  
  //Check for hit test
  if (target_mc[i].hitTest(_root._xmouse, _root._ymouse, true)
hit_array.push(target_mc);
  }
}

 At the end of it you have an array of all the movie clips that scored a
hit test.

This code is just off the top of my head, an thoroughly untested. Also
Depending on the structure of your flash movie, you will probably want to
delve deeper and test for a hit within each movie clip that you encounter.
It's also not very efficient, especially if you have to do recursion, so I
wouldn't recommend doing it too often. (don't use onMouseMove but rather an
enterFrame event, an interval or some kind of once-off event - depending on
your application).

Alternatively, if you already know which objects should be tested, you can
do this more efficiently by hard-coding them manually into an array and
looping within the array to check for a hit test. Not pretty, but should
work.

And finally, something that occurred to me while writing this post, you
could try temporarily switching off the _visible property of the overlapping
clip just before checking for _droptarget - and then switching it on again.
This might be the least processor-intensive way of doing this.

Cheers,
Karina





 -Original Message-
 From: Vishal Kapur [mailto:[EMAIL PROTECTED] 
 Sent: 07 February 2007 01:26
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] determining which object is 
 displayed at agivenpoint
 
 Ok, got it.  Thanks for the suggestion.  I tried this but it 
 doesn't work with the third-party flash movie I am looking 
 at.  They have an movie clip with _alpha set to 0 that covers 
 the stage at a depth higher than all other visible elements.  
 As a result _droptarget is always set to that object.  What I 
 need is something that takes into account visibility.
 
 Any other thoughts on this?
 
 -- Vishal
 
 
 On 2/6/07, Mike Mountain [EMAIL PROTECTED] wrote:
   What he's saying is that _droptarget will tell you exactly 
 what is at 
  the top under the users mouse - but in order to use it you 
 have to use 
  startDrag to fool it in to working. Maybe you could drag an 
 invisible 
  clip around or something.
 
  M
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of 
   Vishal Kapur
   Sent: 06 February 2007 16:03
   To: Flashcoders mailing list
   Subject: Re: [Flashcoders] determining which object is 
 displayed at 
   a givenpoint
  
   I don't understand what you're suggesting.  The user is 
 not dragging 
   the movieclip.
  
   The idea is to write a function with a signature like:
   function getObjectAtPoint(xmouse:Number, ymouse:Number):Object
 
 
  ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ
  Tel: 01964 672000
  Fax: 01964 671102
  Registered in England no. 01646471
  The information contained within this email expresses the 
 views of the sender and not necessarily those of the company. 
 It is private and confidential and may be legally privileged. 
 It is intended solely for those authorised to receive it. If 
 you are not the intended recipient you are hereby notified 
 that any disclosure, copying, distribution or action taken in 
 reliance on its contents is strictly prohibited and may be 
 unlawful. If you have received this email in error, please 
 telephone us immediately on 01964 672000 or email a reply to 
 highlight the error and then delete it from your system. This 
 email may contain links to web-sites, the contents of which 
 ECM Systems Ltd have no control over and can accept no 
 responsibility for. Any attachments have been virus-checked 
 before transmission; however, recipients are strongly advised 
 to carry out their own virus checking as ECM Systems Ltd do 
 not warrant that such attachments are virus-free. Please note 
 that this email has been created in the knowledge that 
 Internet email is not a secure communications medium. We 
 advise that you understand and observe this lack of security 
 when emailing us.
 
  ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ
 
  Tel: 01964 672000
  Fax: 01964 671102
 
  Registered in England no. 01646471
 
  The information contained within this email expresses the 
 views of the sender and not necessarily those of the company.
  It is private and confidential and may be legally privileged. It is 
  intended solely for those authorised to receive it. If you 
 are not the 
  intended recipient you are hereby notified that any disclosure, 
  copying, distribution or action taken in reliance on its 
 contents is 
  strictly prohibited and may be 

RE: [Flashcoders] determining which object is displayed at agivenpoint

2007-02-07 Thread Karina Steffens
Jason -

This is a valid point, but even if flash is doing it with every mouse move,
it's probably not a good idea to make it do it all over again each time...
But I'm not sure what's more efficient - mouseMove, enterFrame or mouseOver?


 -Original Message-
 From: Jason Boyd [mailto:[EMAIL PROTECTED] 
 Sent: 07 February 2007 19:43
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] determining which object is 
 displayed at agivenpoint
 
 I've been following this thread and am just curious -- 
 everyone seems to be assuming that looping through all clips 
 and doing hitTest() is inefficient, but presumably this is 
 exactly what the Flash player is doing with every mouse move. 
 Is there some good reason to assume the Flash player is doing 
 this internally much more efficiently than the function 
 exposed through AS as hitTest()? Without a priori knowledge, 
 I'd recommend trying this, and if it doesnt turn out to 
 noticeably slow anything, you're done.
 
 
 
 On 2/7/07, Karina Steffens [EMAIL PROTECTED] wrote:
 
  Hi Vishal,
 
  I apologise ahead if I'm being dense here, but nobody seems to have 
  mentioned the obvious solution:
  Looping through the mcs in your third party flash movie and 
 checking 
  for hit-test with the mouse position.
 
  var hit_array:Array = [];
  for (var i:String in target_mc){
var mc:MovieClip = target_mc[i];
if (!mc instanceof MovieClip){
//not a movie clip - ignore
  continue;
}
//Check for hit test
if (target_mc[i].hitTest(_root._xmouse, _root._ymouse, true)
  hit_array.push(target_mc);
}
  }
 
  At the end of it you have an array of all the movie clips that 
  scored a hit test.
 
  This code is just off the top of my head, an thoroughly 
 untested. Also 
  Depending on the structure of your flash movie, you will 
 probably want 
  to delve deeper and test for a hit within each movie clip 
 that you encounter.
  It's also not very efficient, especially if you have to do 
 recursion, 
  so I wouldn't recommend doing it too often. (don't use 
 onMouseMove but 
  rather an enterFrame event, an interval or some kind of 
 once-off event 
  - depending on your application).
 
  Alternatively, if you already know which objects should be 
 tested, you 
  can do this more efficiently by hard-coding them manually into an 
  array and looping within the array to check for a hit test. Not 
  pretty, but should work.
 
  And finally, something that occurred to me while writing this post, 
  you could try temporarily switching off the _visible 
 property of the 
  overlapping clip just before checking for _droptarget - and then 
  switching it on again.
  This might be the least processor-intensive way of doing this.
 
  Cheers,
  Karina
 
 
 
 
 
   -Original Message-
   From: Vishal Kapur [mailto:[EMAIL PROTECTED]
   Sent: 07 February 2007 01:26
   To: Flashcoders mailing list
   Subject: Re: [Flashcoders] determining which object is 
 displayed at 
   agivenpoint
  
   Ok, got it.  Thanks for the suggestion.  I tried this but 
 it doesn't 
   work with the third-party flash movie I am looking at.  
 They have an 
   movie clip with _alpha set to 0 that covers the stage at a depth 
   higher than all other visible elements.
   As a result _droptarget is always set to that object.  
 What I need 
   is something that takes into account visibility.
  
   Any other thoughts on this?
  
   -- Vishal
  
  
   On 2/6/07, Mike Mountain [EMAIL PROTECTED] wrote:
 What he's saying is that _droptarget will tell you exactly
   what is at
the top under the users mouse - but in order to use it you
   have to use
startDrag to fool it in to working. Maybe you could drag an
   invisible
clip around or something.
   
M
   
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of 
 Vishal Kapur
 Sent: 06 February 2007 16:03
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] determining which object is
   displayed at
 a givenpoint

 I don't understand what you're suggesting.  The user is
   not dragging
 the movieclip.

 The idea is to write a function with a signature like:
 function getObjectAtPoint(xmouse:Number, ymouse:Number):Object
   
   
ECM Systems Ltd, Ellifoot Park, Burstwick, East 
 Yorkshire HU12 9DZ
Tel: 01964 672000
Fax: 01964 671102
Registered in England no. 01646471 The information contained 
within this email expresses the
   views of the sender and not necessarily those of the company.
   It is private and confidential and may be legally privileged.
   It is intended solely for those authorised to receive it. 
 If you are 
   not the intended recipient you are hereby notified that any 
   disclosure, copying, distribution or action taken in 
 reliance on its 
   contents is strictly prohibited and may be unlawful. If you have 
   received this email in error, please telephone us

RE: [Flashcoders] XRay freezes controls?

2007-02-05 Thread Karina Steffens
Hi Pete,

Nope, by the stage I mean clicking on a control within the Flash movie. So
that clicking on a control in the Xray treeview generates a similar response
as clicking on it in real. 

K.

 -Original Message-
 From: Pete Miller [mailto:[EMAIL PROTECTED] 
 Sent: 05 February 2007 16:38
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] XRay freezes controls?
 
 I'm publishing to AS2.0, running the most recent connector 
 version (I just downloaded it), and I'm not using the Flex UI.
 
 As far as clicking on the stage, all the components are 
 instantiated at runtime, so there is nothing on the stage (I 
 assume by 'stage' you refer to the IDE stage).
 
 P.
 
  -Original Message-
  From: [EMAIL PROTECTED] 
 [mailto:flashcoders- 
  [EMAIL PROTECTED] On Behalf Of Karina Steffens
  Sent: Friday, February 02, 2007 8:06 PM
  To: 'Flashcoders mailing list'
  Subject: RE: [Flashcoders] XRay freezes controls?
  
  Perhaps a little less obvious, clicking on a control in 
 the Xray UI,
 or
  rolling over it, gives you the same effect as clicking/rolling over
 the
  control on the stage. So the question is, what happens 
 when you click
 the
  control on the stage?
  
  Karina
  
   -Original Message-
   From: Pete Miller [mailto:[EMAIL PROTECTED]
   Sent: 02 February 2007 20:26
   To: Flashcoders mailing list
   Subject: [Flashcoders] XRay freezes controls?
  
   I'm trying out XRay for the first time, and it seems that after 
   taking a snapshot, when I click on an item in the UI to 
 examine its 
   properties, that control becomes disabled (no longer responds to 
   mouse events) anymore.  If I examine the properties of an mc 
   containing controls, the entire mc is disabled.  Is this the 
   expected behavior?  Doesn't seem very useful.  What am I doing 
   wrong?
  
   Pete 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
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] XRay freezes controls?

2007-02-05 Thread Karina Steffens
For example, if you have a tooltip that activates on rolling over a button,
the tooltip gets activated when you roll over that button in the treeview.
(But not the other way around - rolling over the button won't suddenly show
you a tooltip in Xray).
I'm not sure if this happens all the time or only in certain situations, but
what I'm saying is that there is a direct feedback between Xray and your
flash movie. I remember at some point I was X-raying an dragdrop
application, and elements in the treeview kept changing their depths when
clicked. So a clicking an element in the treeview will generate some kind of
response in your application - which is all I'm trying to say... And what
you need to figure out now is why this response happens to be locking up
your movie in your case. 

K.


 -Original Message-
 From: Pete Miller [mailto:[EMAIL PROTECTED] 
 Sent: 05 February 2007 17:39
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] XRay freezes controls?
 
 Therein is my problem.  Once I click on an item in the 
 treeview, the corresponding item in the movie becomes locked 
 up; it no longer responds to the mouse.  If I click on a 
 movie clip name in the treeview, the entire window (all 
 components in that clip) are frozen.
 
 Furthermore, I don't understand what you mean that clicking 
 on the control in either place generates a similar response.  
 Clicking on an item name in Xray displays its properties.  
 Clicking on an item in the movie does not cause anything to 
 happen in Xray.
 
 P.
 
  -Original Message-
  From: [EMAIL PROTECTED] 
 [mailto:flashcoders- 
  [EMAIL PROTECTED] On Behalf Of Karina Steffens
  Sent: Monday, February 05, 2007 12:26 PM
  To: 'Flashcoders mailing list'
  Subject: RE: [Flashcoders] XRay freezes controls?
  
  Hi Pete,
  
  Nope, by the stage I mean clicking on a control within the Flash
 movie.
  So
  that clicking on a control in the Xray treeview generates 
 a similar 
  response as clicking on it in real.
  
  K.
  
   -Original Message-
   From: Pete Miller [mailto:[EMAIL PROTECTED]
   Sent: 05 February 2007 16:38
   To: Flashcoders mailing list
   Subject: RE: [Flashcoders] XRay freezes controls?
  
   I'm publishing to AS2.0, running the most recent 
 connector version 
   (I just downloaded it), and I'm not using the Flex UI.
  
   As far as clicking on the stage, all the components are 
   instantiated at runtime, so there is nothing on the 
 stage (I assume 
   by 'stage' you refer to the IDE stage).
  
   P.
  
-Original Message-
From: [EMAIL PROTECTED]
   [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Karina Steffens
Sent: Friday, February 02, 2007 8:06 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] XRay freezes controls?
   
Perhaps a little less obvious, clicking on a control in
   the Xray UI,
   or
rolling over it, gives you the same effect as clicking/rolling
 over
   the
control on the stage. So the question is, what happens
   when you click
   the
control on the stage?
   
Karina
   
 -Original Message-
 From: Pete Miller [mailto:[EMAIL PROTECTED]
 Sent: 02 February 2007 20:26
 To: Flashcoders mailing list
 Subject: [Flashcoders] XRay freezes controls?

 I'm trying out XRay for the first time, and it seems that
 after
 taking a snapshot, when I click on an item in the UI to
   examine its
 properties, that control becomes disabled (no 
 longer responds
 to
 mouse events) anymore.  If I examine the properties 
 of an mc 
 containing controls, the entire mc is disabled.  Is 
 this the 
 expected behavior?  Doesn't seem very useful.  What 
 am I doing 
 wrong?

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

RE: [Flashcoders] XRay freezes controls?

2007-02-05 Thread Karina Steffens
Well that explains it! You were using the newest version of the connector
with the old version of the interface...
Fond as I am of the old Xray UI interface, the two are not compatible :) 

 -Original Message-
 From: Pete Miller [mailto:[EMAIL PROTECTED] 
 Sent: 05 February 2007 18:20
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] XRay freezes controls?
 
 I don't see any obvious feedback as you are describing, 
 although in my case there aren't any rollover effects.  In 
 trying to figure out what you were describing I figured 
 perhaps you were describing the Flex2 UI, whereas I was using 
 the older UI, so I tried the Flex2 interface.  That 
 eliminated the original problem, so I guess everything else 
 it moot at this point.
 
 Thanks for helping.
 
 P.
 
  -Original Message-
  From: [EMAIL PROTECTED] 
 [mailto:flashcoders- 
  [EMAIL PROTECTED] On Behalf Of Karina Steffens
  Sent: Monday, February 05, 2007 12:55 PM
  To: 'Flashcoders mailing list'
  Subject: RE: [Flashcoders] XRay freezes controls?
  
  For example, if you have a tooltip that activates on 
 rolling over a 
  button, the tooltip gets activated when you roll over that 
 button in 
  the treeview.
  (But not the other way around - rolling over the button won't
 suddenly
  show
  you a tooltip in Xray).
  I'm not sure if this happens all the time or only in certain
 situations,
  but
  what I'm saying is that there is a direct feedback between Xray and
 your
  flash movie. I remember at some point I was X-raying an dragdrop 
  application, and elements in the treeview kept changing 
 their depths
 when
  clicked. So a clicking an element in the treeview will 
 generate some
 kind
  of
  response in your application - which is all I'm trying to 
 say... And
 what
  you need to figure out now is why this response happens to 
 be locking
 up
  your movie in your case.
  
  K.
  
  
   -Original Message-
   From: Pete Miller [mailto:[EMAIL PROTECTED]
   Sent: 05 February 2007 17:39
   To: Flashcoders mailing list
   Subject: RE: [Flashcoders] XRay freezes controls?
  
   Therein is my problem.  Once I click on an item in the treeview, 
   the corresponding item in the movie becomes locked up; 
 it no longer 
   responds to the mouse.  If I click on a movie clip name in the 
   treeview, the entire window (all components in that clip) are 
   frozen.
  
   Furthermore, I don't understand what you mean that 
 clicking on the 
   control in either place generates a similar response.
   Clicking on an item name in Xray displays its properties.
   Clicking on an item in the movie does not cause anything 
 to happen 
   in Xray.
  
   P.
  
-Original Message-
From: [EMAIL PROTECTED]
   [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Karina Steffens
Sent: Monday, February 05, 2007 12:26 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] XRay freezes controls?
   
Hi Pete,
   
Nope, by the stage I mean clicking on a control 
 within the Flash
   movie.
So
that clicking on a control in the Xray treeview generates
   a similar
response as clicking on it in real.
   
K.
   
 -Original Message-
 From: Pete Miller [mailto:[EMAIL PROTECTED]
 Sent: 05 February 2007 16:38
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] XRay freezes controls?

 I'm publishing to AS2.0, running the most recent
   connector version
 (I just downloaded it), and I'm not using the Flex UI.

 As far as clicking on the stage, all the components are 
 instantiated at runtime, so there is nothing on the
   stage (I assume
 by 'stage' you refer to the IDE stage).

 P.

  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of 
 Karina Steffens
  Sent: Friday, February 02, 2007 8:06 PM
  To: 'Flashcoders mailing list'
  Subject: RE: [Flashcoders] XRay freezes controls?
 
  Perhaps a little less obvious, clicking on a control in
 the Xray UI,
 or
  rolling over it, gives you the same effect as
 clicking/rolling
   over
 the
  control on the stage. So the question is, what happens
 when you click
 the
  control on the stage?
 
  Karina
 
   -Original Message-
   From: Pete Miller
 [mailto:[EMAIL PROTECTED]
   Sent: 02 February 2007 20:26
   To: Flashcoders mailing list
   Subject: [Flashcoders] XRay freezes controls?
  
   I'm trying out XRay for the first time, and it 
 seems that
   after
   taking a snapshot, when I click on an item in the UI to
 examine its
   properties, that control becomes disabled (no
   longer responds
   to
   mouse events) anymore.  If I examine the properties
   of an mc
   containing controls, the entire mc is disabled.  Is
   this the
   expected behavior?  Doesn't seem very useful.  What

RE: [Flashcoders] Flash diagnostic tools

2007-02-02 Thread Karina Steffens
I would highly recommend Xray (http://osflash.org/xray) - Don't know what
I'd do without it...

Aside from Xraying your app, you can also set up customised traces, that
are much better than our beloved trace() command. And it also works in your
runtime environment. 

Karina



 

 -Original Message-
 From: David Ham [mailto:[EMAIL PROTECTED] 
 Sent: 01 February 2007 20:40
 To: FlashCoders
 Subject: [Flashcoders] Flash diagnostic tools
 
 I am working on a Flash app and it is starting to exhibit 
 some performance problems. Is there any tool or technique 
 people use to analyze Flash apps as they are running? Aside 
 from the beloved trace
 () of course?
 
 Thanks for any advice you can offer,
 
 OK
 DAH
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] XRay freezes controls?

2007-02-02 Thread Karina Steffens
Perhaps a little less obvious, clicking on a control in the Xray UI, or
rolling over it, gives you the same effect as clicking/rolling over the
control on the stage. So the question is, what happens when you click the
control on the stage?

Karina 

 -Original Message-
 From: Pete Miller [mailto:[EMAIL PROTECTED] 
 Sent: 02 February 2007 20:26
 To: Flashcoders mailing list
 Subject: [Flashcoders] XRay freezes controls?
 
 I'm trying out XRay for the first time, and it seems that 
 after taking a snapshot, when I click on an item in the UI to 
 examine its properties, that control becomes disabled (no 
 longer responds to mouse events) anymore.  If I examine the 
 properties of an mc containing controls, the entire mc is 
 disabled.  Is this the expected behavior?  Doesn't seem very 
 useful.  What am I doing wrong?
 
 Pete 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


RE: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Karina Steffens
 
Privyet Natasha,

Here's how I solved it:

Private var movie_flv:mx.controls.MediaDisplay;
private var t:Number;
private var lastCheck:Number;
Private var play_btn   //ToggleButton


Private function checkStatus(){
if (play_btn.selected  movie_flv.playheadTime 
movie_flv.playheadTime == lastCheck){
stopMovie() 
}else{
lastCheck = movie_flv.playheadTime;
}   
}

public function stopMovie(){
//This is where you execute you stop movie code, sent from
checkStatus or remotely
clearInterval(t)
play_btn.selected = false;
movie_flv.stop()
lastCheck = 0;
  //Etc...
}

//And when you start playing:
t = setInterval(this, checkStatus, 2000)


--


And  of course, this code can modified to suit your needs. You can also
replace the setInterval with onEnterFrame=checkStatus;  and delete
enterFrame; in the stopMovie() handler or equivalent.  The play_btn in my
code refers to a custom ToggleButton that switches between
playing(selected) and paused(deselected) states. You might still be able to
use that check with a different toggle button control, or alternatively, set
a flag variable to check if the movie is currently paused. 

Hope this helps,

Karina





 -Original Message-
 From: natalia Vikhtinskaya [mailto:[EMAIL PROTECTED] 
 Sent: 18 January 2007 10:00
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] how to know that thae video is finished?
 
 Thank you very much for help. I used this for two different 
 flv videos.Ichecked status for both:
 For one I have this trace
 
 NetStream.Play.Start
 
 NetStream.Buffer.Full
 
 NetStream.Buffer.Flush
 NetStream.Buffer.Empty
 
 and for another
 
 NetStream.Play.Start
 
 NetStream.Buffer.Full
 
 NetStream.Buffer.Flush
 
 NetStream.Play.Stop
 
 
 
 I am not big expert in video. Can anybody explain why one 
 video has status NetStream.Play.Stop and another not? And how 
 to write script that find that video is finished for any video.
 
 
 
 2007/1/18, Matthias Dittgen [EMAIL PROTECTED]:
 
  use this:
 
  myNetStream.onStatus = function(infoObject:Object):Void {
 if (debug==true)
 {
 status_txt.text += status ( + this.time +  seconds)\n;
 status_txt.text += \t Level:  + infoObject.level + \n;
 status_txt.text += \t Code:  + infoObject.code + \n\n;
 }
 if (infoObject.code==NetStream.Play.Stop)
 {
 // VIDEO FINISHED..
 // use some Delegate.create(...) here
 }
  }
 
  HTH,
  Matthias
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Karina Steffens
Isn't it amazing that Adobe/MM never bothered setting up a simple
onStopMovie event?...

 -Original Message-
 From: Hans Wichman [mailto:[EMAIL PROTECTED] 
 Sent: 18 January 2007 12:12
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] how to know that thae video is finished?
 
 Hi,
 the video might not be correctly encoded, ie from meta data 
 etc. And I think that in some player version (might still be 
 the case), the stop is triggered before the buffer empty. In 
 other words if you have a buffer set to 5 seconds, the video 
 will play on for 5 seconds after receiving a stop signal.
 
 In the end we preprocessed all our vids with a 
 metadatainjector such as burak's and check the time against 
 the duration.
 
 greetz
 JC
 
 
 
 On 1/18/07, Karina Steffens [EMAIL PROTECTED] wrote:
 
 
  Privyet Natasha,
 
  Here's how I solved it:
 
  Private var movie_flv:mx.controls.MediaDisplay;
  private var t:Number;
  private var lastCheck:Number;
  Private var play_btn   //ToggleButton
  
 
  Private function checkStatus(){
 if (play_btn.selected  movie_flv.playheadTime  
  movie_flv.playheadTime == lastCheck){
 stopMovie()
 }else{
 lastCheck = movie_flv.playheadTime;
 }
  }
 
  public function stopMovie(){
 //This is where you execute you stop movie code, sent from 
  checkStatus or remotely
 clearInterval(t)
 play_btn.selected = false;
 movie_flv.stop()
 lastCheck = 0;
   //Etc...
  }
 
  //And when you start playing:
  t = setInterval(this, checkStatus, 2000)
 
 
  --
 
 
  And  of course, this code can modified to suit your needs. You can 
  also replace the setInterval with onEnterFrame=checkStatus;  and 
  delete enterFrame; in the stopMovie() handler or equivalent.  The 
  play_btn in my code refers to a custom ToggleButton that switches 
  between
  playing(selected) and paused(deselected) states. You might still be 
  able to use that check with a different toggle button control, or 
  alternatively, set a flag variable to check if the movie is 
 currently 
  paused.
 
  Hope this helps,
 
  Karina
 
 
 
 
 
   -Original Message-
   From: natalia Vikhtinskaya [mailto:[EMAIL PROTECTED]
   Sent: 18 January 2007 10:00
   To: Flashcoders mailing list
   Subject: Re: [Flashcoders] how to know that thae video is 
 finished?
  
   Thank you very much for help. I used this for two different flv 
   videos.Ichecked status for both:
   For one I have this trace
  
   NetStream.Play.Start
  
   NetStream.Buffer.Full
  
   NetStream.Buffer.Flush
   NetStream.Buffer.Empty
  
   and for another
  
   NetStream.Play.Start
  
   NetStream.Buffer.Full
  
   NetStream.Buffer.Flush
  
   NetStream.Play.Stop
  
  
  
   I am not big expert in video. Can anybody explain why one 
 video has 
   status NetStream.Play.Stop and another not? And how to 
 write script 
   that find that video is finished for any video.
  
  
  
   2007/1/18, Matthias Dittgen [EMAIL PROTECTED]:
   
use this:
   
myNetStream.onStatus = function(infoObject:Object):Void {
   if (debug==true)
   {
   status_txt.text += status ( + this.time +  
 seconds)\n;
   status_txt.text += \t Level:  + 
 infoObject.level + \n;
   status_txt.text += \t Code:  + infoObject.code 
 + \n\n;
   }
   if (infoObject.code==NetStream.Play.Stop)
   {
   // VIDEO FINISHED..
   // use some Delegate.create(...) here
   }
}
   
HTH,
Matthias
___
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

RE: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Karina Steffens
Hi Muzak,

Sounds like this new component might be a better option for Natalia's
problem.

Karina

 -Original Message-
 From: Muzak [mailto:[EMAIL PROTECTED] 
 Sent: 18 January 2007 12:43
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] how to know that thae video is finished?
 
 Flash 8 has a new (and improved) Video component 
 mx.controls.MediaDisplay no longer exists in Flash 8 and is 
 replaced with mx.video.FLVPlayback 
 http://livedocs.macromedia.com/flash/8/main/3477.html
 
 FLVPlayback component has a complete event:
 http://livedocs.macromedia.com/flash/8/main/3537.html
 
 regards,
 Muzak
 
 - Original Message -
 From: Karina Steffens [EMAIL PROTECTED]
 To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
 Sent: Thursday, January 18, 2007 1:23 PM
 Subject: RE: [Flashcoders] how to know that thae video is finished?
 
 
  Isn't it amazing that Adobe/MM never bothered setting up a simple
  onStopMovie event?...
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 

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

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


RE: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Karina Steffens
Sorry, it's bee a while since I wrote that script, so I forgot to mention
that movie_flv in my code is an AS2 Video Playback component that has the
movie attached to it instead of a simple movie clip. It's located in the
components panel.  You might want to try theVideo.playheadTime instead, but
if that doesn't work, you could try using this component instead. Or better
yet, if you're using Flash 8, try the new video component that Muzak
mentioned (Flv Playback) which has a complete event.

PS: I just saw Helen's post - that's definitely worth a try.

Karina
 

 -Original Message-
 From: natalia Vikhtinskaya [mailto:[EMAIL PROTECTED] 
 Sent: 18 January 2007 13:35
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] how to know that thae video is finished?
 
 Sorry,  maybe I do something wrong but I can not get PlayHead Time
 
 
 
 var movie_flv:mx.controls.MediaDisplay;
 
 
 
 var nc:NetConnection=new NetConnection();
 
 nc.connect(null);
 
 var ns:NetStream=new NetStream(nc);
 
 ns.setBufferTime(3);
 
 ns.onStatus=function(info){
 
 if (info.code==NetStream.Buffer.Full ){
 
 bufferClip._visible=false;
 
 }
 
 if (info.code==NetStream.BufferEmpty){
 
 bufferClip._visible=true;
 
 }
 
 if 
 (info.code==NetStream.Play.Stop){  //this place not always 
 works. So for some video
 
 
 //it just stops at the end. I want it goes to the
 
 
 //start position and paused.
 
 ns.seek(0);
 
 }
 
 
 
 }
 
 theVideo.attachVideo(ns);
 
 ns.play(video/shoeshdmaster_vp6520.flv);
 
 
 
  var videoInterval=setInterval(videoStatus,10);
 
 
 
 ns[onMetaData]=function(obj){
 
 duration=obj.duration;
 
 }
 
 function videoStatus(){
 
 trace(movie_flv.playheadTime)  //show 
 undefined
 
 }
 
 
 
 2007/1/18, Muzak [EMAIL PROTECTED]:
 
  Flash 8 has a new (and improved) Video component 
  mx.controls.MediaDisplay no longer exists in Flash 8 and is 
 replaced 
  with mx.video.FLVPlayback 
  http://livedocs.macromedia.com/flash/8/main/3477.html
 
  FLVPlayback component has a complete event:
  http://livedocs.macromedia.com/flash/8/main/3537.html
 
  regards,
  Muzak
 
  - Original Message -
  From: Karina Steffens [EMAIL PROTECTED] 
  To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
  Sent: Thursday, January 18, 2007 1:23 PM
  Subject: RE: [Flashcoders] how to know that thae video is finished?
 
 
   Isn't it amazing that Adobe/MM never bothered setting up a simple 
   onStopMovie event?...
  
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] Specifying contentPath for FLVPlayer

2007-01-18 Thread Karina Steffens
Helen, have you set the FlvPlayback to autoPlay, or told it to play
manually? 
I'm looking at the docs and there seem to be a few ways to load the videos:

my_FLVPlybk.contentPath = rtmp://my_servername/my_application/stream.flv;

my_FLVplybk.load(contentPath:String[, totalTime:Number, isLive:Boolean])

my_FLVplybk.play ([contentPath:String, totalTime:Number, isLive:Boolean]) 

Mind you, I haven't tried any yet...

Karina




 

 -Original Message-
 From: Helen Triolo [mailto:[EMAIL PROTECTED] 
 Sent: 18 January 2007 15:46
 To: Flashcoders Mailing List
 Subject: [Flashcoders] Specifying contentPath for FLVPlayer
 
 Realized this should have its own thread instead of hijacking 
 natalia's:
 
 I can't get the FLVPlayback component to display the streamed 
 videos that are working fine with the MediaPlayback 
 component.  For the latter, I use
 
 setMedia(rtmp:/LT/myfile.flv)
 
 but there is no setMedia command for FLVPlayback, only 
 contentPath, and setting it to the above doesn't work, nor 
 did setting contentPath = rtmp://server 
 address/LT/myfile.flv  or rtmp://server 
 address/LT/stream/_definst_/myfile.flv  -- the video never 
 shows up.  
 Any suggestions?
 
 Helen
 
 
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] Re: XML and line breaks

2007-01-15 Thread Karina Steffens
You first need to assign txtField.html = true _not_ txtField.htmlText = true
And then you assign txtField.htmlText = xmlNode 
 

 -Original Message-
 From: Stephen Ford [mailto:[EMAIL PROTECTED] 
 Sent: 11 January 2007 10:12
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Re: XML and line breaks
 
 Still having issues with creating line breaks in my text 
 field. Here is the new XML: \n\nintro title=How to 
 ?![CDATA[Rollover an item in the menu onbr / the left to 
 see a bsnapshot of a project/b.]]/intro \n\nIn my 
 flash code, I set the text field as txtField.htmlText = true; 
 and assign the text with txtField.htmlText = xmlNode; but 
 it's still not appearing correctly - the tags are appearing 
 in the text fields (both the b and the br /).Any 
 thoughts.___
 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] Need help with testing ObjectSwap on Safari

2007-01-15 Thread Karina Steffens
Hi List,
 
I'm having a bit of a problem with my ObjectSwap script, that I'm hoping
someone could help me with. 
It was developed on Windows and, according to comments on my blog and the
SitePoint article, it was working fine with Safari. However, I recently
tried it on a client's Mac and it didn't seem to be working properly (That
is, the Flash part of my home page was invisible). Apparently my own Mac,
which I rarely switch on, is so old it can't even install Safari (OSX 10.1).

 
So, my request is, if anyone with a Mac has a moment to spare to have a look
at my home page (www.neo-archaic.net) and tell me if the flash part of it
displays correctly - that is, if you can see the tree animation. I need to
figure this out before I start running around trying to find an available
Mac...
 
TIA,
Karina
 
 
Karina Steffens  |  Neo-Archaic
creative  technical new media design
 http://www.neo-archaic.net/ www.neo-archaic.net
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Q: Firefox on a mac

2006-10-31 Thread Karina Steffens
Could your user have Adblocker installed? If so, she needs to disable it, or
change a setting to allow Flash - otherwise it won't.

Karina 

 -Original Message-
 From: Wendy [mailto:[EMAIL PROTECTED] 
 Sent: 30 October 2006 19:29
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Q: Firefox on a mac
 
 We have a user with Firefox on her mac that is not showing 
 Flash movies properly(at all).
 The flash looks fine when she uses Sarfari, but given the 
 populatiry of Firefox these days, we want a flash movie that 
 works on all platforms.
 
 Have you been experiencing these issues?
 How did you deal?
 
 Flash 8
 
 Thanks,
 -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
 

___
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] Q: Firefox 2 on a Mac

2006-10-31 Thread Karina Steffens
Two questions:
Did you check if she has Ad blocker?
Do older versions of flash work on her browser?

If a - disable Ad blocker.
If b - ObjectSwap checks for version using JavaScript.
 

 -Original Message-
 From: Wendy [mailto:[EMAIL PROTECTED] 
 Sent: 31 October 2006 15:00
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Q: Firefox 2 on a Mac
 
 Here is the link.
 Flash movies made in Flash 8 will not show on this client's 
 Mac under Firefox.
 It shows just fine on her Mac under Safari.
 
 http://www.themagazinegroup.com/clients-case-studies-webmd.asp
 
 
 Let me know what you think.  I don't recall there being a 
 specific check for browser plug in option in Flash that 
 checks with with Firefox?!
 Can I just also say I'm not a fan of Adobe's website.  They 
 should have just left Macromedia alone.
 
 
 ___
 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] Odd behavior of Camera after reconnecting to server

2006-10-23 Thread Karina Steffens
Hi List,
 
I'm trying to figure out a bug that's driving me nuts, and since the
FlashComm list is down, I hope someone here can shed some light on it.
 
I have a customised chat application (FlashComm), where an advisor is
talking to one or more clients. The advisor has a camera attached via a net
stream connection, which can be seen by each client (it's a one-way stream,
the clients don't have cameras). The advisor can also pause and restart the
camera with a menu-button. The pause is really just a net stream stop
action, but the camera just freezes on the last frame.
 
It all works fine, until the advisor's connection gets dropped, for example
by a faulty internet connection to the server. At that point I'm
reconnecting the advisor almost instantaneously to the net connection
object. The camera's stream still seems to be working ok, until the advisor
tries to pause it. At that point, the camera appears paused on the advisor
screen, but the light doesn't go off and it doesn't pause on the client's
screen. 
 
Here is the relevant code bits:
 
In the Advisor Model:
 
function startCam(){
  broadcastMessage(attachVideo, cam)
  ns.attachVideo(cam);
 }
 function stopCam(){
  broadcastMessage(attachVideo)
  ns.attachVideo();
 }
 
In the Advisor/Client View:
 
function attachVideo (video:Object) {
  admin_vo.attachVideo (video);
 }
 
 
After running some tests, I suspect that it appears to work ok on the
advisor's side because the local attachVideo call in the Advisor's View is
working properly, but something goes wrong with the net stream. 
 
Does anyone have any ideas as to the why, the wherefore and the howto?
 
Thanks in advance,
Karina
___
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] hello, and interval management question

2006-10-18 Thread Karina Steffens
I've got a class here that manages intervals as well. It can be used to
create intervals that fire off once (after a delay), continuously or a
specified number of times. The events can then be applied to the parent
object or another target object.

Cheers,
Karina



/**
 * Delay class - executes callbacks, broadcasts messages and events the
parent (or a passed target) after a set delay.
 *
 * @author  Karina Steffens
 * @version 1.0
 * @usage
 * @class
 */
class com.neoarchaic.util.Delay {
public var parent:Object;
private var events:Object;
private var index:Number;
function Delay (aparent:Object) {
parent = aparent;
index = 0;
events = new Object ();
}
/**Broadcast the message to the parent after the delay.
 * @param   target Object
 * @param   evt String
 * @param   delay Number
 */
public function doLater ():String {
//target:Object, evt:String, delay:Number
//_global.tt (doLater, arguments)
return storeMessage (doLater, arguments);
}
/**Broadcast the message to the parent after the delay.
 * @param   target Object
 * @param   evt String
 * @param   delay Number
 */
public function doLoop ():String {
return storeMessage (doLoop, arguments);
}
/**Broadcast the message to the parent after the delay.
 * @param   target Object
 * @param   evt String
 * @param   delay Number
 * @param   times Number
 */
public function doRepeat ():String {
return storeMessage (doRepeat, arguments);
}
/**Broadcast the EventListener to listeners after the delay.
 * @param   target Object
 * @param   evt String
 * @param   delay Number
 */
public function dispatchEvent ():String {
return storeMessage (dispatchEvent, arguments);
}
/**Broadcast the EventListener to listeners after the delay.
 * @param   target Object
 * @param   evt String
 * @param   delay Number
 */
public function broadcastEvent ():String {
return storeMessage (broadcastEvent, arguments);
}
/**Broadcast the message to listeners after the delay.
 * @param   target Object
 * @param   evt String
 * @param   delay Number
 */
public function broadcastMessage ():String {
return storeMessage (broadcastMessage, arguments);
}
/**Interrupt the event before the interval.
 * @param   id String
 */
public function interrupt (id:String) {
var myEvent:Object;
if (id == all) {
for (var i in events) {
myEvent = events[i];
clearInterval (myEvent.interval);
}
events = new Object ();
return;
}
myEvent = events[id];
if (myEvent == undefined) {
for (var i in events) {
if (events[i].evt == id || events[i].evtType
== id) {
myEvent = events[i];
break;
}
}
}
clearInterval (myEvent.interval);
delete events[id];
}
private function storeMessage (evtType:String, args:Array):String {
//_global.tt (storeMessage, evtType, args, typeof
(args[0]))
var myEvent:Object = new Object ();
if (typeof (args[0]) != string) {
var target:Object = args.shift ();
myEvent.target = target;
} else {
myEvent.target = parent;
}
var id:String = evtType + index++;
var evt:String = String (args.shift ());
var delay:Number = Number (args.shift ());
switch (evtType){
case doRepeat:
myEvent.times = args.shift ();
break;
case doLoop:
myEvent.times = unlimited;
break;
default: 
myEvent.times = 1;  
}
if (evtType.indexOf (do) == -1) {
//AbstractBroadcaster or EventDispatcher methods
myEvent.evt = evtType;
args.unshift (evt);
} else {
myEvent.evt = evt

RE: [Flashcoders] Xray trace problem

2006-09-19 Thread Karina Steffens
Hey, thanks J! :)

Seriously, I downloaded the new interface, and noticed two things: 1. It's
great (!), 2. It looks like an upgrade of the original interface.

Anyway it's you who rock and Xray rocks :)  And anyone on the list who has
no idea what we're talking about is missing out on the best Flash debugging
tool ever, so go on and check it out - http://www.osflash.org/xray


Karina


 

 -Original Message-
 From: John Grden [mailto:[EMAIL PROTECTED] 
 Sent: 16 September 2006 15:51
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Xray trace problem
 
 yes, Karina - I too am sad ;(  we did alot of great work with 
 the old interface and you certainly influenced the current 
 version since it's largly based on the old one ;)
 
 You ROCK!
 
 don't be sad, be happy !
 
 jpg
 
 
 On 9/15/06, Karina Steffens [EMAIL PROTECTED] wrote:
 
  Now I'm really hurt :~(
 
  :P
 
   -Original Message-
   From: Chris Allen [mailto:[EMAIL PROTECTED]
   Sent: 13 September 2006 14:31
   To: Flashcoders mailing list
   Subject: Re: [Flashcoders] Xray trace problem
  
   John,
  
   Maybe you should phase out the older interface all together.
   This way it's less to maintain and creates less confusion.
   The Flex 2 Xray interface is so bad ass that no one will miss the 
   old one anyway.
  
   Just my opinion, take it or leave it.
  
   -Chris
  
   On 9/13/06, Cosmin Cimpoi [EMAIL PROTECTED] wrote:
Hi John!
   
I only use xRay as a standalone or projector so I 
 didn't test the 
online one from rockonflash.com Except the Flash player 9 win 
projector version (build with Flex) the other
2 didn't work for me. Those were running in the standalone
   Flash 8 player.
So the factor that caused things to work after ruled out
   would be the
Standalone Flash Player 8.5 and the Xray.exe v 1.2.5 But as
   it seems
I'm among the few that had this issue could be a system problem.
   
Thanks for xRay :)
   
cosmin
   
   
- Original Message -
From: John Grden [EMAIL PROTECTED]
To: Flashcoders mailing list 
 flashcoders@chattyfig.figleaf.com
Sent: Thursday, September 07, 2006 4:43 PM
Subject: Re: [Flashcoders] Xray trace problem
   
   
 man sorry about that Cosmin - so was the issue that you
   were running
 the SWF interface in the Flash 8 player in the browser/player?

 Thanks for letting me know,

 jpg

 On 9/7/06, Cosmin Cimpoi [EMAIL PROTECTED] wrote:

 Me again.
 It seems that it is a Player issue.
 Using the Windows Projector - Xray Interface seems to
   work fine (
 it uses the Adobe Flash Player 9 standalone) So the
   preoblem could
 lie in a number of places, especially the various players I 
 have installed in the PC. Somenone had the problem 
 before and 
 climed that a reboot did the fix. Not for me. But I'm glasd 
 that one of the Interfaces work. I just decided to 
 go with xray
   exclusively and
 the bug was a bummer.

 cosmin


 - Original Message -
 From: Cosmin Cimpoi [EMAIL PROTECTED]
 To: Flashcoders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, September 07, 2006 2:15 PM
 Subject: [Flashcoders] Xray trace problem


 Hello everyone!
 Has anyone experience this while using xRay for debugging:
 - snapshot and propery manipulation works fine
 - the trace method does not output anything in 
 the external 
 interface I have the latest xray, Flash 8, WinXP sp2 
 with up to 
 date patches and all.
 If the external interface is not open the traces go to the 
 Flash Output panel just fine.

 I suspect that it's a LocalConnection security issue but
   still the
 property inspector works fine.
 I hope John Grden sees this but I'll file a bug nevertheless.

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




 --
 [  JPG  ]
 ___
 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] search text file for keyword and add button

2006-09-19 Thread Karina Steffens
Hi Kurt,

Just a thought - instead of looking for the coordinates to highlight the
keyword, replace the keyword with the same keyword hyperlinked (this would
require the text rendering as html), and link it to the glossary. Then when
searching for another keyword, start with a clean copy of the text, and
hyperlink the new keyword. Replacing all instances of the keyword with a
hyperlink should be easy - just use split() and join() - and the hyperlink
can either point to an actionscript command, or an html file with anchors.

Karina  

 -Original Message-
 From: Kurt Dommermuth [mailto:[EMAIL PROTECTED] 
 Sent: 18 September 2006 21:23
 To: Flashcoders mailing list
 Subject: [Flashcoders] search text file for keyword and add button
 
 Hi All,
 
 First, I apologize if this was covered already.  If so, 
 please point me in the right direction.
 
 I need to search through dynamic text for a keyword, create a 
 highlight or button of some sort over it that links to a glossary.
 
 I don't see a problem finding the keyword, but I do see a 
 problem getting it's coordinates.
 
 Has anyone done this already?  it just seems like one of 
 those things that is probably already packaged up.
 
 if not, anyone have experience finding the x and y value for 
 a letter in dynamic text?
 
 thank you very much in advance,
 Kurt
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] search text file for keyword and add button

2006-09-19 Thread Karina Steffens
You're welcome :)

PS: you should be able to use CSS styles on these links quite easily (with
or without a class designation) so that they appear highlighted, with
different colours for backgrounds, text or both.



 -Original Message-
 From: Kurt Dommermuth [mailto:[EMAIL PROTECTED] 
 Sent: 19 September 2006 14:49
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] search text file for keyword and add button
 
 You Are a Genius!
 
 thank you so much.
 
 I was fixated on getting x and y.
 
 thank you again!
 
 KUrt
 
 At 09:34 AM 9/19/2006, you wrote:
 
 Hi Kurt,
 
 Just a thought - instead of looking for the coordinates to highlight 
 the keyword, replace the keyword with the same keyword hyperlinked 
 (this would require the text rendering as html), and link it to the 
 glossary. Then when searching for another keyword, start 
 with a clean 
 copy of the text, and hyperlink the new keyword. Replacing all 
 instances of the keyword with a hyperlink should be easy - just use 
 split() and join() - and the hyperlink can either point to 
 an actionscript command, or an html file with anchors.
 
 Karina
 
   -Original Message-
   From: Kurt Dommermuth [mailto:[EMAIL PROTECTED]
   Sent: 18 September 2006 21:23
   To: Flashcoders mailing list
   Subject: [Flashcoders] search text file for keyword and add button
  
   Hi All,
  
   First, I apologize if this was covered already.  If so, 
 please point 
   me in the right direction.
  
   I need to search through dynamic text for a keyword, create a 
   highlight or button of some sort over it that links to a glossary.
  
   I don't see a problem finding the keyword, but I do see a problem 
   getting it's coordinates.
  
   Has anyone done this already?  it just seems like one of those 
   things that is probably already packaged up.
  
   if not, anyone have experience finding the x and y value for a 
   letter in dynamic text?
  
   thank you very much in advance,
   Kurt
  
   ___
   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


RE: [Flashcoders] Xray trace problem

2006-09-15 Thread Karina Steffens
Now I'm really hurt :~( 

:P 

 -Original Message-
 From: Chris Allen [mailto:[EMAIL PROTECTED] 
 Sent: 13 September 2006 14:31
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Xray trace problem
 
 John,
 
 Maybe you should phase out the older interface all together. 
 This way it's less to maintain and creates less confusion. 
 The Flex 2 Xray interface is so bad ass that no one will miss 
 the old one anyway.
 
 Just my opinion, take it or leave it.
 
 -Chris
 
 On 9/13/06, Cosmin Cimpoi [EMAIL PROTECTED] wrote:
  Hi John!
 
  I only use xRay as a standalone or projector so I didn't test the 
  online one from rockonflash.com Except the Flash player 9 win 
  projector version (build with Flex) the other
  2 didn't work for me. Those were running in the standalone 
 Flash 8 player.
  So the factor that caused things to work after ruled out 
 would be the 
  Standalone Flash Player 8.5 and the Xray.exe v 1.2.5 But as 
 it seems 
  I'm among the few that had this issue could be a system problem.
 
  Thanks for xRay :)
 
  cosmin
 
 
  - Original Message -
  From: John Grden [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Thursday, September 07, 2006 4:43 PM
  Subject: Re: [Flashcoders] Xray trace problem
 
 
   man sorry about that Cosmin - so was the issue that you 
 were running 
   the SWF interface in the Flash 8 player in the browser/player?
  
   Thanks for letting me know,
  
   jpg
  
   On 9/7/06, Cosmin Cimpoi [EMAIL PROTECTED] wrote:
  
   Me again.
   It seems that it is a Player issue.
   Using the Windows Projector - Xray Interface seems to 
 work fine ( 
   it uses the Adobe Flash Player 9 standalone) So the 
 preoblem could 
   lie in a number of places, especially the various players I have 
   installed in the PC. Somenone had the problem before and climed 
   that a reboot did the fix. Not for me. But I'm glasd that one of 
   the Interfaces work. I just decided to go with xray 
 exclusively and 
   the bug was a bummer.
  
   cosmin
  
  
   - Original Message -
   From: Cosmin Cimpoi [EMAIL PROTECTED]
   To: Flashcoders List flashcoders@chattyfig.figleaf.com
   Sent: Thursday, September 07, 2006 2:15 PM
   Subject: [Flashcoders] Xray trace problem
  
  
   Hello everyone!
   Has anyone experience this while using xRay for debugging:
   - snapshot and propery manipulation works fine
   - the trace method does not output anything in the external 
   interface I have the latest xray, Flash 8, WinXP sp2 with up to 
   date patches and all.
   If the external interface is not open the traces go to the Flash 
   Output panel just fine.
  
   I suspect that it's a LocalConnection security issue but 
 still the 
   property inspector works fine.
   I hope John Grden sees this but I'll file a bug nevertheless.
  
   cosmin
   ___
   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
  
  
  
  
   --
   [  JPG  ]
   ___
   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

RE: [Flashcoders] Job postings ok?

2006-09-10 Thread Karina Steffens
Personally, I much prefer job postings, to posts like this:

PLEASE HELP ME 
i just got flash and i don't know what to do with it. i need to create a
word processing application by NEXT WEEK. pls tell me how!!!? 


:P 
Karina



 -Original Message-
 From: Mick G [mailto:[EMAIL PROTECTED] 
 Sent: 08 September 2006 03:22
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Job postings ok?
 
 It's a consipiracy man! The job postings are secretly created 
 by the egos on here that need to vent. They post a job 
 posting, then vent about how job postings have nothing to do 
 with coding. Eventually the debate dies until a few weeks 
 later when it all starts up again.
 * * *watches thread fizle away* * * (for a week or two anyway).
 
 
 On 9/7/06, Rich Rodecker [EMAIL PROTECTED] wrote:
 
  hmm...why does posting a job about flash programming on the 
  flashcoders list not seem to bother me at all?  maybe because its 
  totally relevant?
 
 
 
  On 9/7/06, bruce [EMAIL PROTECTED] wrote:
  
   if you have a job, then you might be upset by job postings!!
  
   if you don't have a job, then you're probably looking to 
 respond to 
   as many 'valid/legitimate' job opportunities as possible.
  
   the majority of people would in all honesty, respond to the 
   position, as opposed to the mailing list.
  
   for the people who have jobs, and only want to see 'code' it's a 
   pretty eay thing to delete the few messages and to move on!!!
  
   come on people!!
  
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] Reliable local FLV stop event

2006-09-06 Thread Karina Steffens
Yes it's bizarre that there isn't an out-of-box solution for this. I came
across the same problem a while ago. The solution I came across was to check
if the play head is not moving while the movie is supposed to be still
playing (that is, not paused or stopped). 

For this you need to set a lastCheck property, which needs to be set to 0
every time you start a movie (but not from paused), or manually stop it, and
while the movie is playing, you need to keep checking it using an interval
or enterFrame event.

The function you need is this:

public function checkStatus(){
//_global.tt(checkStatus, movie_flv.playing,
movie_flv.playheadTime, lastCheck)
if (play_btn.selected  movie_flv.playheadTime 
movie_flv.playheadTime == lastCheck){
stopMovie() 
}else{
lastCheck = movie_flv.playheadTime;
}   
}


To set the function into context, I pasted the entire class below.

It worked like a charm, but my class is using custom buttons and commands to
play the movie. I'm not sure how I'd integrate it with Adobe controller
components. For example, you might need to devise a different check instead
of play_btn.selected.

Karina



Here's  the full class code:
-
import com.neoarchaic.ui.*;
class com.neoarchaic.projects.macbeth.section.view.elements.VideoBox extends
AbstractComponent {
private var title_txt:TextField;
private var play_btn:ToggleButton;
private var stop_btn:AbstractButton;
private var movie_flv:mx.controls.MediaDisplay;
private var url:String;
private var link:Object;
[Inspectable( type=String, defaultValue=)]
public var id:String
private var t:Number
private var lastCheck:Number

public function initSection ()  {
//_global.tt(initSection - videobox)
play_btn.addEventListener(click, this, toggleMovie)
stop_btn.addEventListener(click, this, stopMovie)
var movieData = broadcastMessage(getVideoBox, id);
//_global.tt(video, id, movieData)
setMovie(movieData, false)
lastCheck = 0;
}
public function setMovie(movieData:Object, autoPlay:Boolean,
mc:String){
if (mc != undefined  mc != id){
return;
}
clearInterval(t)
var oldUrl:String = url
url = movieData.url.data;
if (url == undefined  movieData.title.data == undefined){
this._visible = false;
return;
}
this._visible = true;
link = movieData.link;
title_txt.text = movieData.title.data != undefined ?
movieData.title.data : ;
if (url != oldUrl){
movie_flv.setMedia(url)
}
if (autoPlay){
movie_flv.stop()
play_btn.selected = true;
toggleMovie(null, true)
}else{
play_btn.selected = false;
movie_flv.stop()
}
}
public function toggleMovie(e:Object, selected:Boolean){
//_global.tt(toggleMovie, selected)
clearInterval(t)
if (selected){
movie_flv.play()
lastCheck = 0;  
t = setInterval(this, checkStatus, 2000)
} else {
movie_flv.pause()
}
}

public function stopMovie(e:Object, noTrigger:Boolean){
//_global.tt(stopMovie)
clearInterval(t)
play_btn.selected = false;
movie_flv.stop()
lastCheck = 0;
if (!noTrigger  movie_flv.playheadTime){
broadcastMessage(selectLink, link)
}
}

public function checkStatus(){
//_global.tt(checkStatus, movie_flv.playing,
movie_flv.playheadTime, lastCheck)
if (play_btn.selected  movie_flv.playheadTime 
movie_flv.playheadTime == lastCheck){
stopMovie() 
}else{
lastCheck = movie_flv.playheadTime;
}   
}
}



 -Original Message-
 From: Andreas R [mailto:[EMAIL PROTECTED] 
 Sent: 06 September 2006 14:57
 To: Flashcoders mailing list
 Subject: [Flashcoders] Reliable local FLV stop event
 
 I know this is an old question but i can't really seem to get 
 a good grasp of it.
 
 I have a client that loads FLVs locally off the machine it 
 runs on. When movies stop, events get 

RE: [Flashcoders] Synchronizing multiple flvs

2006-09-06 Thread Karina Steffens
Could you use one big flv and mask it out for each tile?  

 -Original Message-
 From: Jeff Gomes [mailto:[EMAIL PROTECTED] 
 Sent: 06 September 2006 16:46
 To: Flashcoders mailing list; flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Synchronizing multiple flvs
 
 
 Would the tiles be contiguous and stationary with 
 instantaneous jumps from one position to another, or do their 
 positions have to animate from one location to another?
 
 At 08:38 9/6/2006, Christopher Whiteford wrote:
 I am looking to find out if anyone has experience in 
 splitting an FLV 
 into multiple parts and then playing them back whereas the 
 the timing 
 is seamless?
 
 The reason I ask is I need to create a picture tile game 
 which is easy 
 enough but the client came back with this where 15 tiles playing the 
 same flv broken into different pieces need to be unscrambled and the 
 result would be one big video.
 
 Any help would be greatly appreciated.
 
 CW
 ...
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] clone object

2006-08-25 Thread Karina Steffens
That's true - it happens to me all the time when I use _global(tt) with Xray
and have a circular reference (such as two classes that hold eachother as
listeners). 
This was why John had to change his original treeview parser to a
non-recursive method. But it still happens with the trace function. So I'd
say that some kind of check would be useful. 

Karina

 -Original Message-
 From: Scott Hyndman [mailto:[EMAIL PROTECTED] 
 Sent: 25 August 2006 02:59
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] clone object
 
 If you had one circular reference, you'd hit the recursion limit.
 
 On 24/08/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
  If you're not willing to code a solution, then why are you 
 bothering 
  to write out an explanation?  I have yet to encounter a recursion 
  limit and I've parsed some deep object models.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


RE: [Flashcoders] Protect model setters from being called by any classexcept Controller

2006-08-25 Thread Karina Steffens
Hi Steven,

You could try using arguments.caller to check if the setter was called by
the controller. Here's a little test function I whipped up on the _root:

function testCaller(){
trace (typeof arguments.caller)
trace (arguments.caller == controller.test)
trace (arguments.caller == notcontroller.test)
}

controller = new Object();
controller.test = function (){  
_root.testCaller()
}
notcontroller = new Object();
notcontroller.test = function (){   
_root.testCaller()
}

The output is:
function
true
false
function
false
true

This gives you a way to check if the function was called from the controller
or the notcontroller. 
The downside is that this checks for a specific function within a
controller, not just any controller function. I wonder if there's a way
around it?

Karina




 -Original Message-
 From: Steven Sacks | BLITZ [mailto:[EMAIL PROTECTED] 
 Sent: 25 August 2006 02:37
 To: Flashcoders mailing list
 Subject: [Flashcoders] Protect model setters from being 
 called by any classexcept Controller
 
 Hi,
 
 I have a model class that has a bunch of getters and setters.
 Example:
 
 private var _prop:Object;
 function get prop():Object {
   return _prop;
 }
 function set prop(p:Object) {
   _prop = p;
 }
 
 I have a controller class that instantiates that model. 
 
 I'm wondering if there is some way to prevent any other class 
 from using the setter methods of the model except the 
 controller class.  They still should be able to access the getters.
 
 I want to prevent future developers from being able to access 
 the model setters from anywhere except the controller in 
 order to enforce proper MVC patterns.
 
 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
 

___
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] For...in counts backwards?

2006-06-20 Thread Karina Steffens
Hi Michael,

That's how the for-in loop works, no idea why. 
If you want to count forwards, you need to use:
for (var i:Number = 0; imyArray.length, i++) {
 trace(myArray[i]);
}

Karina
 

 -Original Message-
 From: Mendelsohn, Michael [mailto:[EMAIL PROTECTED] 
 Sent: 20 June 2006 14:31
 To: Flashcoders mailing list
 Subject: [Flashcoders] For...in counts backwards?
 
 Hi list...
 
 From the help on for...in:
 
 You can also iterate through the elements of an array:
 
 var myArray:Array = [one, two, three]; for (var 
 i:String in myArray) {
 trace(myArray[i]);
 }
 
 
 This code outputs the following in the Output panel:
 
 three
 two
 One
 
 
 Why is the data output in reverse order and is there any way 
 of ordering it one,two,three?
 
 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


RE: [Flashcoders] Eolas fix and backspace key flash bug

2006-06-15 Thread Karina Steffens
A massage you say? Wow, I could really do with one of those ;)

Seriously, I think SWFObject is a great solution (especially the massage)
with loads of advantages. It's just a question of what works better for the
situation. ObjectSwap is best as a  quick fix, where Flash is already
embedded, and it's main advantage is that you don't have to have JavaScript
(the script will just be ignored, but Flash will still display). And there's
also an optional plugin detection, although not express install. 

Btw, I'm glad I didn't call it FlashSwap, when I was looking for a name...
Those Adobe legal people are completely out of line. 

Karina


 -Original Message-
 From: Geoff Stearns [mailto:[EMAIL PROTECTED] 
 Sent: 15 June 2006 16:19
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Eolas fix and backspace key flash bug
 
 also i might as well take this opportunity to point everyone to
 SWFObject:
 
 http://blog.deconcept.com/swfobject/
 
 it fixes all the eolas problems you are having, it's really 
 easy to use, supports express install, does plugin detection 
 and can provide alternate content, opens your wine bottles 
 and tin cans, and gives you a massage at the end of a long 
 day. check it out.
 
 
 
 On Jun 15, 2006, at 11:09 AM, 8ball Developer wrote:
 
  Hi Karina,
 
  (probably already answered question) Why does the 
 javascript need to 
  be external?  Is  there any solution to this problem that uses an 
  internal javascript.
 
  Thanks in Advance.
 
  On 6/14/06, Karina Steffens [EMAIL PROTECTED] wrote:
 
  Hi Alec,
 
  You could try ObjectSwap on my blog - 
  http://www.neo-archaic.net/blog/2006/04/25/objectswap.htm
 
  Karina
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
 

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

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


RE: [Flashcoders] Eolas fix and backspace key flash bug

2006-06-14 Thread Karina Steffens
Hi Alec,

You could try ObjectSwap on my blog -
http://www.neo-archaic.net/blog/2006/04/25/objectswap.htm

Karina  

 -Original Message-
 From: Alec Matusis [mailto:[EMAIL PROTECTED] 
 Sent: 13 June 2006 19:49
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Eolas fix and backspace key flash bug
 
 I have to embed flash applets into web pages directly, 
 without Javascript Eolas workaround. The users therefore 
 have to click to activate the flash movie in IE. 
  
 After that, the Flash movie properly receives the text input, 
 EXCEPT for Backspace and Tab keys. Pressing Backspace has an 
 action of Back button in the browser, it takes a user back 
 one page. Pressing Tab moves the focus into another object in 
 the browser.  
  
 So it looks like when the control is activated , the Flash 
 receives only a PARTIAL focus: it accepts all text input 
 except Backspace and Tab. When you click on Flash the second 
 time, it receives full focus, and Backspace and Tab function 
 properly. 
  
 Can anyone explain this behavior? Is this an IE bug? 
 
  
 ___
 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] Whats the best tooltip component

2006-06-09 Thread Karina Steffens
Hi Weyert,
 
I posted a fully customizable tooltip component on my blog,
http://www.neo-archaic.net/blog/2006/05/09/tooltip.htm, complete with a demo
on how to use it.
 
I hope this is what you were looking for.
 
Karina
 
 
Karina Steffens  |  Neo-Archaic
creative  technical new media design
 http://www.neo-archaic.net/ www.neo-archaic.net
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Whats the best tooltip component

2006-06-09 Thread Karina Steffens
Hi Mark,

Thanks for letting me know about the Firefox bug, it seems I've overcooked
my Satay, and forgot to check it...  Don't know why it doesn't show in IE 6,
I'm using the ie 7 beta at the moment.

It should be fixed now for Firefox. I just had someone with ie6 take a look,
and she had no problem seeing the demo, so maybe that's fixed. But I'm using
version check (with ObjectSwap) and it's Flash7. Are you sure your IE is
updated for Flash?

Karina

 

 -Original Message-
 From: Marc Hoffman [mailto:[EMAIL PROTECTED] 
 Sent: 09 June 2006 18:25
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Whats the best tooltip component
 
 Hi Karina,
 
 This has some nice features but some problems viewing the 
 demo. In FireFox it doesn't show at all. In I.E. 6 it doesn't 
 show and I get a Flash required message. I was able to view 
 it only by looking at the source and opening the swf directly.
 
 It would be nice if the tooltip width were dependent on the 
 text string. That shouldn't be too hard to add, just draw the 
 background after establishing the textfield.text.width.
 
 Marc
 
 At 10:11 AM 6/9/2006, you wrote:
 
 Hi Weyert,
 
 I posted a fully customizable tooltip component on my blog, 
 http://www.neo-archaic.net/blog/2006/05/09/tooltip.htm, 
 complete with a 
 demo on how to use it.
 
 I hope this is what you were looking for.
 
 Karina
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
 

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

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


RE: [Flashcoders] Whats the best tooltip component

2006-06-09 Thread Karina Steffens
Thanks Bernard, I was just about to reply to that. You're right about the
parameter naming, but I think it might be too late to do that without
breaking backwards compatibility with scripts that already use that. Unless
I keep both?

Karina  

 -Original Message-
 From: Bernard Poulin [mailto:[EMAIL PROTECTED] 
 Sent: 09 June 2006 19:04
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Whats the best tooltip component
 
 Note: the Firefox issue is a problem in the Demo html page. 
 Not a problem in the tooltip itself of course.
 
 About the Width:   The width parameter should be named maxwidth.  It
 really does take the size of the text in consideration when 
 computing the width.  It simply max it out to the specified 
 size (without being bigger than the whole Stage width).
 
 B.
 
 
 2006/6/9, Marc Hoffman [EMAIL PROTECTED]:
 
  Hi Karina,
 
  This has some nice features but some problems viewing the demo. In 
  FireFox it doesn't show at all. In I.E. 6 it doesn't show 
 and I get a 
  Flash required message. I was able to view it only by 
 looking at the 
  source and opening the swf directly.
 
  It would be nice if the tooltip width were dependent on the text 
  string. That shouldn't be too hard to add, just draw the background 
  after establishing the textfield.text.width.
 
  Marc
 
  At 10:11 AM 6/9/2006, you wrote:
 
  Hi Weyert,
  
  I posted a fully customizable tooltip component on my blog, 
  http://www.neo-archaic.net/blog/2006/05/09/tooltip.htm, 
 complete with 
  a
  demo
  on how to use it.
  
  I hope this is what you were looking for.
  
  Karina
  
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
 

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

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


RE: [Flashcoders] Whats the best tooltip component

2006-06-09 Thread Karina Steffens

 scripts that already use that. Unless I keep both?

... Or maybe I should increase the default width? It's currently 200, but
maybe 300 would be better? It can always be changed programmatically...

___
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] Shared object not saving off cd-rom?

2006-05-18 Thread Karina Steffens
Thanks Vivek, this is my guess too and I forwarded your suggestion on to the
client.  

 -Original Message-
 From: Vivek lakhanpal [mailto:[EMAIL PROTECTED] 
 Sent: 17 May 2006 13:11
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Shared object not saving off cd-rom?
 
 Jim,
 
 You have to ask that particular user if he has set knowingly 
 or unknowingly storage space to 0 for  flash cookies i.e. 
 shared object?
 As you might be knowing that Local Storage size can be 
 altered through the settings tab by right click on the Flash 
 app and opening settings window.
 
 Just a wild guess. This can be the issue.
 
 Thanks Vivek
 ___
 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] Shared object not saving off cd-rom?

2006-05-16 Thread Karina Steffens
Hi list,
 
Does anyone know if there are any gotchas when trying to save a shared
object from a flash application running off the cd-rom?
 
I have developed a large e-learning application that runs off the cd-rom and
uses a shared object to automatically store all the player info and state.
It's already been done and dusted, or so I thought... And I tested the SO
saving over and over, both from the hard drive and off the cd-rom. The
client has sent this cd-rom to a number of reviewers, and one of them has
reported that the player's data isn't being saved. When they leave the game
and go back to select a player, they don't have any saved players in the
select player section.
 
Nobody else has reported this problem, but these reviewers are not using
anything special. Their reported system stats are:  Windows XP SP2 w/all
current patches, 3 GHz Pentium 4, 1 GB RAM
 
The CD-Rom was developed using Flash MX2004, using a standard Flash
projector for the executable. 
 
Any ideas?
 
Karina
 
___
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 detection

2006-05-10 Thread Karina Steffens
Hi Kevin,

You can use ObjectSwap to detect the flash version and place any kind of
html content inside the object tag. 
http://www.neo-archaic.net/blog/2006/04/25/objectswap.htm

You can't use it to jump to another page (you'd need php, asp, or
meta-redirect for that), but what you could do is place the entire content
of the html page inside the object tag. 

A change that was added after the blog has been written, is that for the
standard object/embed pair, you need to place the content inside html
comments, otherwise firefox will render both flash and html. The script will
automatically strip those comments away. For example:

object classid=.
param name=flashVersion value=8/

!--
h1My HTML Site /h1
phtml content/p
petc.../p
--

embed  / 
/object


Hope this helps you. 
Karina



 -Original Message-
 From: Kevin Boyd (MMCR) [mailto:[EMAIL PROTECTED] 
 Sent: 10 May 2006 11:55
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Flash detection
 
 Client wants to detect if flash installed and then jump to a 
 HTML based site if not. What is the current state of play 
 with this approach regards IE and Firefox?
  
 Kevin Boyd
 Multimedia Creations Ltd.
 www.mmcr.co.uk http://www.mmcr.co.uk/ 
  
  
 ___
 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] Tooltip and ObjectSwap

2006-05-09 Thread Karina Steffens
Hi gang,
 
There's a new version of ObjectSwap for anyone who's interested. http://
http://www.neo-archaic.net/scripts/objectSwap.js
www.neo-archaic.net/scripts/objectSwap.js The old one had a bug that showed
up when using flash detection with multiple objects in the same html. It's
now fixed, but if you spot any other bugs, please let me know.
 
Also, I made some changes, bug fixes and enhancements to the Tooltip class
that's used by John Grden's Xray, and you can find all the source files,
examples, demo and article here:
http://www.neo-archaic.net/blog/2006/05/09/tooltip.htm
http://www.neo-archaic.net/blog/2006/05/09/tooltip.htm. 
 
Cheers,
Karina
 
 
___
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] Date Object Problem

2006-05-03 Thread Karina Steffens
Hi Nick,

Not sure about the day, but you have the wrong month here:
Months in the Date object are zero based, so 5 is really June, not May...

For the day, I'd go with the suggestions you got from other people about the
time-zones. 

Karina 

 -Original Message-
 From: Nick McNeill [mailto:[EMAIL PROTECTED] 
 Sent: 02 May 2006 21:15
 To: Flashcoders mailing list
 Subject: [Flashcoders] Date Object Problem
 
 First off, long-time member of this list and have gained a 
 wealth of knowledge from the wisdom here. Thank You All.
 
 I'm having a very confusing problem using the Date Object. I 
 have a hotel reservation system built in flash, when an 
 international reservation (outside of the US, mainly Europe ) 
 comes through, the dates are off by 1 day. I cannot recreate 
 the problem using any system setup in the US, only via a 
 friend in London doing some testing for me.
 
 Problem:
 create new Date using May 20th 2006
 
 var checkin = new Date(2006,5,20);
 
 is getting converted to May 19th if you are in Europe, fine in the US.
 
 In plain terms, someone is trying to book 5/20/06 thru 
 5/22/2006, but gets booked 5/19/06 thru 5/21/06 instead.
 This system has booked literally thousands of domestic US 
 reservations and we've never seen this until we opened it up 
 to international customers.
 
 Any insight to why this could be happening, or any known 
 workarounds for a problem like this would be wonderful. I 
 haven't tried using the timezone offset yet, any ideas if 
 that might be a cure?
 
 
 Nick McNeill
 Intellistrand
 843-839-1480
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
 

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

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


RE: [Flashcoders] flashObject expressinstall error

2006-05-01 Thread Karina Steffens
Hi Tony,

Just a shot in the dark, but it could be because the link to the flash
player has changed. It's now
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwa
veFlashpromoid=BIOW

I think Adobe has just closed down the macromedia website.
www.macromedia.com is redirected to www.adobe.com

Karina  

 -Original Message-
 From: Tony Watkins [mailto:[EMAIL PROTECTED] 
 Sent: 01 May 2006 19:19
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] flashObject expressinstall error
 
 I'm using flashObject with express install. Worked fine last 
 Friday, but this morning I'm getting the little Flash dialog 
 box with the message A download error occurred. Try to 
 download again? Same error in ie pc, safari and firefox mac. 
 I¹ve now confirmed this with someone else.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
 

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

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


RE: [Flashcoders] focus in internet explorer

2006-04-30 Thread Karina Steffens
Glad I could help :) 

 -Original Message-
 From: eugen pflüger [mailto:[EMAIL PROTECTED] 
 Sent: 28 April 2006 12:19
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] focus in internet explorer
 
 hey,
 
 it works. great script.
 
 thanks for your help.
 
 best
 eugen
 
 
 Am 28.04.2006 um 12:41 schrieb Suhas Kotkar:
 
  Hi,
 Please refer to the following link to get the more details:
 
  http://www.neo-archaic.net/blog/2006/04/25/objectswap.htm
 
  This is because of the security added in the Internet 
 explorer by MS.
 
  Regards,
 
  Suhas
 
 
  -Original Message-
  From: [EMAIL PROTECTED] 
 [mailto:flashcoders- 
  [EMAIL PROTECTED] On Behalf Of eugen pflüger
  Sent: Friday, April 28, 2006 4:07 PM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] focus in internet explorer
 
  hello hans,
 
  thank you.
  shouldnt it be: body onLoad=document.getElementById(swf).focus
  (); ?
 
  well, none of both work. internet explorer gives me the 
 hand-cursor- 
  symbol and a tooltip says: click here to activate this element.
  has this always been like this on windows? i never realized?
 
  best
  eugen
 
 
 
  Am 28.04.2006 um 11:17 schrieb j.c.wichman:
 
  Hi,
 
  body onLoad=window.focus();  will take the focus away 
 from your 
  flash object.
  body onLoad=document.myFlashObjIDHere.focus(); should do the 
  trick.
 
  Greetz
  Hans
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  eugen pflüger
  Sent: Friday, April 28, 2006 10:37 AM
  To: Flashcoders mailing list
  Subject: [Flashcoders] focus in internet explorer
 
  hello guys and girls,
 
  maybe i missed something...but when i start my flashfilm in ie on 
  windows i always have to click first one time so that the 
 flash film 
  detects rollovers and everything.
  i know all that stuff with focus and so on.
  but i never encountred it this way. i swear it did behave 
 normal all 
  those years :)
 
  did something change?
  on firefox and safari is everthing alright.
 
  i also tried this in my html:
  body onLoad=window.focus();
  but it has no effect in internet explorer.
 
  best
  eugen
 
  ___
  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
 
 
 
 
 
 
 
 
 
  plugisto
  ...
  eugen pflüger
 
  alexanderstr. 109
  70180 stuttgart
 
  fon +49.711.6739797
  mobil   +49.177.6428272
  e-mail  [EMAIL PROTECTED]
  ...
  http://www.plugisto.net
  http://itself.pmalc.de
  http://www.lifeperformance.net
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 
 
 
 
 
 
 
 plugisto
 ...
 eugen pflüger
 
 alexanderstr. 109
 70180 stuttgart
 
 fon +49.711.6739797
 mobil   +49.177.6428272
 e-mail  [EMAIL PROTECTED]
 ...
 http://www.plugisto.net
 http://itself.pmalc.de
 http://www.lifeperformance.net
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 

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

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


RE: [Flashcoders] calculating dates based on a starting date.

2006-04-27 Thread Karina Steffens
Hi Matt,

If what you're looking for is a way to subtract two dates, then it's your
lucky day...
I just wrote an Age Counter component that displays how long it's been since
a specific date (years, months, hours, minutes, and seconds). It's for a
client who wants to show how long his pediatric center has been running (a
very long time...): http://www.belilovskypediatrics.com/en/about.htm


Anyway, you don't need the whole class, just the relevant function which is:

 function getAge (year:Number, month:Number, day:Number):Date {
//Founded day or birthday
var founded:Date = new Date (year, month, day);
//Today
var today:Date = new Date ();
//Time difference in milliseconds
var mil:Number = today.getTime () - founded.getTime ();
//The age, in a date format
var age:Date = new Date ();
//Set the age (in relateion to 1970)
age.setTime (mil);
//Adjust the year
age.setYear (age.getYear () - 70);
return age;
}

The function returns a Date format, from which you can easily extrapolate
everything you need -

var age:Date = AgeCounter.getAge (1970, 6, 12); //That's my birthday, send
me a card ;)

Note: The month is 0 based, so don't send me that card in June, but in July
;)
The day is 1 based, so my birthday is indeed on the 12th

And get the various age differences between dates like this: age.getYear(),
age.getMonth(), age.getDate(), age.getHour(), age.getSecond()

If you need exact hours, just add them to the method. See docs for creating
a Date object.

Anyone - let me know if you want the AgeCounter component itself, I'll post
it on the blog.

Cheers,
Karina






  

 -Original Message-
 From: matt ganz [mailto:[EMAIL PROTECTED] 
 Sent: 27 April 2006 18:18
 To: Flashcoders mailing list
 Subject: [Flashcoders] calculating dates based on a starting date.
 
 hi. 
 
 i'm building a scheduler app for people who need infusions 
 over a 1 year period.  a user selects the following info to begin:
 
 1. a starting date for first infusion - day, month, and year 
 2. number of infusions - 1-4 3. frequency of infusions - 
 every 1, 2, 3, or 4 weeks.
 
 i have to come up with a schedule of infusion dates over the 
 next 13 months. 
 
 the breakdown of infusion frequency goes like this:
 
 CASE 1: user selects infusions per 1 week period.
 a. 1 infusion every week - increment every 7 days b. 2 
 infusions  - increment every 4 days c. 3 infusions  - 
 increment every 2 days d. 4 infusions  - alert (max 3 
 infusions/week );
 
 CASE 2: user selects infusions per 2 week period.
 a. 1 infusion every 2 weeks - increment every 14 days b. 2 
 infusions  - increment every 7 days c. 3 infusions  - 
 increment every 4 days d. 4 infusions  - increment every 4 days
  
 CASE 3: user selects infusions per 3 week period.
 a. 1 infusion every 3 weeks - increment every 21 days b. 2 
 infusions  - increment every 10 days c. 3 infusions  - 
 increment every 7 days d. 4 infusions  - increment every 5 days
 
 CASE 4: user selects infusions per 4 week period.
 a. 1 infusion every 4 weeks - increment every 28 days b. 2 
 infusions  - increment every 14 days c. 3 infusions  - 
 increment every 9 days d. 4 infusions  - increment every 7 days
 
 the way i figured to do it would be to capture the starting 
 day and month and then calculate ( based on number of 
 infusions and frequency ) every other day and month over a 13 
 month period. i'd throw all of these values into an 
 'infusionDates' array and then i can loop over them and 
 change the properties of the DateChooser that i need. 
 
 i just need help figuring out how to populate the 
 infusionDates array. can anyone help me get started, please? 
 
 thanks for any tips. -- matt. 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
 

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

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


RE: [Flashcoders] ObjectSwap: Bypassing the ActiveX Activation Issuein Internet Explorer

2006-04-26 Thread Karina Steffens
Hi Mauricio and Eskil,

Thank you for the great feedback! :)

Karina

 -Original Message-
 From: Mauricio Furtado Massaia [mailto:[EMAIL PROTECTED] 
 Sent: 26 April 2006 13:19
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] ObjectSwap: Bypassing the ActiveX 
 Activation Issuein Internet Explorer
 
 thx for help,
 
 im using one class that check if more than one .swf of the 
 same app is running using local connection, but in IE the 
 local connection didnt work well with the activeX blocker, 
 but using your ObjectSwap it works =P
 
 my class - CheckFlashInstances (
 http://www.mmassaia.com/ref/flash/as2/CheckFlashInstances.as)
 
 MauricioMassaia
 
 On 4/25/06, Karina Steffens [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  After way too much time spent on this issue, I have finally 
 perfected 
  the script (I hope!) and wrote an article about it on my blog. 
  replaceFlash.js is now called objectSwap.js - It's really meant for 
  all ActiveX objects, not just Flash, although it does use an custom 
  Flash detection technique.
 
  You can download it and read all about it on my blog:
  http://www.neo-archaic.net/blog/2006/04/25/objectswap.htm
 
  This launches my blog with it's first post, but I'm planning to add 
  more stuff soon, including tutorials and components (Such as the 
  Tooltip script that's used in John Gren's Xray).
 
  Any comments or suggestions are welcome...
 
  Karina
 
 
  Karina Steffens  |  Neo-Archaic
  creative  technical new media design
  http://www.neo-archaic.net/ www.neo-archaic.net
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
 

___
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


  1   2   >