RE: [Flashcoders] var (eventHandler)

2007-02-07 Thread Kalani Bright
you shouldn't var any functions even though technically that is correct.

also anything withoug a access keyword is defaulted to private which means
you can only access it from the class.

so to answer your question

public function onEnterFrame():Void
{
//code here
} 
The void means you are not using a return.
if you are doing actionscript 1.0 then technically that is okay...

so something like 

var myFunction = function ()
{
//code here
}

is what you should be using but that is 1.0 and not for classes.  


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric cash
Sent: Tuesday, February 06, 2007 7:42 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] var (eventHandler)

Okay, I'm guessing it's a stupid question, so I'll get over it asap.
I've never written a custom class before, and have recently started to code
things in Flash which are much more complex, approaching application status,
so I'm trying to wwrap my head around all of this OOP stuff.  I keep running
into something that I can't get though...  
using the VAR keyword when declaring event handlers, like this example from
Object-Oriented Actionscript for Flash 8:

var onEnterFrame:Function = doSomething;

I've Googled my [EMAIL PROTECTED] off, and I can't get it to save my life, and 
this seemed
like the best place to ask.  Will one of you take a couple minutes out of
your day to help a poor guy out?

Thanks

ec
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [ANN] AS3 Effects Framework

2007-02-07 Thread Kalani Bright
I'm not famililar with your project but here are some suggestiosn.

Well bubble in bubble out.  Imagine bubbles coming in.

The most simple and classy is a fade in fade out.
Also a brightness in/out.

You also might want to allow the coder to specify a movieclip to use as a
mask for a transition.  Say you scale that mask up inside until everything
is displayed as an in...

Theres so many possiblities.  I'd say just start with whats in
powerpoint..look around to see what others are doing, and do what you're
already doing..asking others.

Take care,

Kalani

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of William
Smith
Sent: Tuesday, February 06, 2007 7:19 PM
To: Flashcoders mailing list
Subject: [Flashcoders] [ANN] AS3 Effects Framework

Guys I am creating an effects framework, something similar to scriptaculous.
It is gonna be simple easy to use. What I am looking for is suggestions of
what effects you guys would like included in it. Here's what I got so far:
Blind In
Blind Out
Slide Left In
Slide Left Out
Slide Right In
Slide Right Out
Scale Grow
Scale Shrink

Let me know what else you guys want. Its going to be a real basic framework,
tiny and easy to use.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting Rollover w/o onRollOver

2007-02-07 Thread Kalani Bright
Another post which has the cancelRollover is the best one to use imho.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kodicek
Sent: Tuesday, February 06, 2007 5:54 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Detecting Rollover w/o onRollOver

 
 It seems like in many of the projects I'm doing I need to have 
 simultaneous onRollOver events. For example, a small movie clip with 
 additional buttons needs to enlarge when the mouse is over it so the 
 user can clearly click the buttons.
 However, when the user mouses over a button, flash no longer detects 
 that the mouse is still over the movieclip and thus executes the 
 onRollOut event making the movieclip shrink and the user can't see the 
 buttons clearly anymore.
 
 I've used some code which can tell if the mouse is over an object, and 
 attaching that to onMouseMove events can basically make two mouse 
 overs.
 While its not checking the mouse position every frame, its still not 
 as efficient as I'd like.
 
 
 Does anyone have any thoughts on a more efficient way to detect two 
 mouse over events at the same time?

Keep a list of all the instances you're testing, in z-order. Use onRollOver
to activate each one; then while it's active, send messages to all the ones
beneath it to check if they should be active too.

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] Detecting Rollover w/o onRollOver

2007-02-07 Thread Danny Kodicek
  Another post which has the cancelRollover is the best one to use imho.

That works in one direction (rollOver on the lower button being lost when
rolling onto the upper one) but fails on the other (rollOver on the upper
button disabling rollOver on the lower one). You have to have some means of
passing the event through to the hidden button.

Danny

 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Danny Kodicek
 Sent: Tuesday, February 06, 2007 5:54 AM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] Detecting Rollover w/o onRollOver
 
  
  It seems like in many of the projects I'm doing I need to have 
  simultaneous onRollOver events. For example, a small movie 
 clip with 
  additional buttons needs to enlarge when the mouse is over 
 it so the 
  user can clearly click the buttons.
  However, when the user mouses over a button, flash no 
 longer detects 
  that the mouse is still over the movieclip and thus executes the 
  onRollOut event making the movieclip shrink and the user 
 can't see the 
  buttons clearly anymore.
  
  I've used some code which can tell if the mouse is over an 
 object, and 
  attaching that to onMouseMove events can basically make two mouse 
  overs.
  While its not checking the mouse position every frame, its 
 still not 
  as efficient as I'd like.
  
  
  Does anyone have any thoughts on a more efficient way to detect two 
  mouse over events at the same time?
 
 Keep a list of all the instances you're testing, in z-order. 
 Use onRollOver to activate each one; then while it's active, 
 send messages to all the ones beneath it to check if they 
 should be active too.
 
 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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] library variable

2007-02-07 Thread Daniel Snoddas

I have a library.fla with a bunch of items i use in my project.  I display
versions of all files on a version.fla (each file in my project has a
version variable on its own root) but as the library.fla's local root
timeline is never excecuted I can't access it without making it global. Is
there any workaround for this problem? Anyone understand what I'm talking
about ? ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Pretty impressive Flash website

2007-02-07 Thread Michael Ypes
Absolutely...

This site was built by FI (http://www.fantasy-interactive.com) and they are
a very cool company who do absolutely great work. If I lived in America I
would definitely want to work for them :)

The case study (http://www.fantasy-interactive.com/#roadrunner_2) says it
was developed in 2006 but that is for version 2. The first one came out a
few years ago in 2003 and won fwa site of the day/month and year. Now thats
impressive.

Lovely bit of work

Cheers

Michael Ypes

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting Rollover w/o onRollOver

2007-02-07 Thread Kalani Bright
You could be right.  I'm not sure what the original post mean't I was
assuming that they were incorporating some sort of drop down menu not a
movieclip under movieclip type of situation. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kodicek
Sent: Wednesday, February 07, 2007 1:23 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Detecting Rollover w/o onRollOver

  Another post which has the cancelRollover is the best one to use imho.

That works in one direction (rollOver on the lower button being lost when
rolling onto the upper one) but fails on the other (rollOver on the upper
button disabling rollOver on the lower one). You have to have some means of
passing the event through to the hidden button.

Danny

 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Danny 
 Kodicek
 Sent: Tuesday, February 06, 2007 5:54 AM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] Detecting Rollover w/o onRollOver
 
  
  It seems like in many of the projects I'm doing I need to have 
  simultaneous onRollOver events. For example, a small movie
 clip with
  additional buttons needs to enlarge when the mouse is over
 it so the
  user can clearly click the buttons.
  However, when the user mouses over a button, flash no
 longer detects
  that the mouse is still over the movieclip and thus executes the 
  onRollOut event making the movieclip shrink and the user
 can't see the
  buttons clearly anymore.
  
  I've used some code which can tell if the mouse is over an
 object, and
  attaching that to onMouseMove events can basically make two mouse 
  overs.
  While its not checking the mouse position every frame, its
 still not
  as efficient as I'd like.
  
  
  Does anyone have any thoughts on a more efficient way to detect two 
  mouse over events at the same time?
 
 Keep a list of all the instances you're testing, in z-order. 
 Use onRollOver to activate each one; then while it's active, send 
 messages to all the ones beneath it to check if they should be active 
 too.
 
 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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] text length difference

2007-02-07 Thread PR Durand
nope, cause the text is formatted... but later, when the text area to 
write the text will have a wysiwyg set, then we'll change the \r and \n 
by br and delete the extra lines.

thx for answering.
PiR


Steven Sacks | BLITZ a écrit :

You might also want to strip any non-html carriage returns, which will
not get picked up by ignoreWhiteSpace, as well.

myHtmlString.split(\n).join().split(\r).join();
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] var (eventHandler)

2007-02-07 Thread Muzak

 also anything withoug a access keyword is defaulted to private which means
 you can only access it from the class.


That's not correct, it's public by default.

regards,
Muzak 


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

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


RE: [Flashcoders] finding out which fonts are embedded in a swf atruntime?

2007-02-07 Thread Mike Mountain
 No takers? I guess it just isn't doable then.

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Mike Mountain
 Sent: 06 February 2007 12:30
 To: Flashcoders mailing list
 Subject: [Flashcoders] finding out which fonts are embedded 
 in a swf atruntime?
 
 
 Say I wanted to list out all the fonts that have been 
 embedded in my swf, and which chars are embedded and other 
 associated attributes in the swf itself - is there anyway 
 dynamically to do this? (Obviously without keeping a manual 
 track of them all)
 
 Cheers
 
 M


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 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.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Tab Problem

2007-02-07 Thread Vivek Gaikwad
Hi all,

 

I was trying to figure out this:

 

I have 3 input boxes(component) and 2 buttons created by me on stage.

I have set the tabIndex for all the 5 controls using the accessibility
panel.

 

When I publish this, tab seems to stuck between the input boxes, it doesn't
come on the buttons.

 

Any solution?

 

 

 

Thanks  Regards

Vivek Gaikwad - Flash Accessibility Developer

 

 

 

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

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


Re: [Flashcoders] finding out which fonts are embedded in a swfatruntime?

2007-02-07 Thread Dennis Roche

why can't you use the size report that you can generate on publish??? it
shows all the fonts in-use in your movie.

On 07/02/07, Danny Kodicek [EMAIL PROTECTED] wrote:


  No takers? I guess it just isn't doable then.

For finding the fonts, I don't know; for finding the characters available
in
a font, here's one hack as an example:

function findAvailableCharacters(tFont:String):String {
var tField:TextField = _root.createTextField(tmpField,
_root.getNextHighestDepth(), -1, -1000, 1000, 1000)
var tFormat:TextFormat = new TextFormat()
tFormat.font = tFont
tField.setTextFormat(tFormat)
var tRange:Array = [25,500] // or whatever range you want to use
var tWidth:Number = 0
var tChars:String = 
for (var i = tRange[0]; itRange[1]; i++) {
var tChar:String = String.fromCharCode(i)
tField.text += tChar
if (tField.textWidthtWidth) {
tChars += tChar
tWidth = tField.textWidth
}
}
tField.removeTextField()
return tChars
}



  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On
 Behalf Of Mike
  Mountain
  Sent: 06 February 2007 12:30
  To: Flashcoders mailing list
  Subject: [Flashcoders] finding out which fonts are embedded
 in a swf
  atruntime?
 
 
  Say I wanted to list out all the fonts that have been
 embedded in my
  swf, and which chars are embedded and other associated
 attributes in
  the swf itself - is there anyway dynamically to do this? (Obviously
  without keeping a manual track of them all)
 
  Cheers
 
  M


 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
 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.



 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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





--
Go Dennis!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:

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] finding out which fonts are embedded in aswfatruntime?

2007-02-07 Thread Mike Mountain

 why can't you use the size report that you can generate on 
 publish??? it shows all the fonts in-use in your movie.

The key words are at runtime - imagine some of these are third party
swfs.


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 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.



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

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


Re: [Flashcoders] finding out which fonts are embedded in aswfatruntime?

2007-02-07 Thread Ian Thomas

Mike,
  You might be able to do it using a server-side script. Swftools
(http://www.swftools.org/) might have something, or swfmill might give
you back something useful.

  Can't think of anything runtime/clientside, tho', other than
Danny's hack for the characters.

Ian

On 2/7/07, Mike Mountain [EMAIL PROTECTED] wrote:


 why can't you use the size report that you can generate on
 publish??? it shows all the fonts in-use in your movie.

The key words are at runtime - imagine some of these are third party
swfs.



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

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


Re: [Flashcoders] finding out which fonts are embedded in aswfatruntime?

2007-02-07 Thread Zárate

Hi,

I actually don't know how to do it, but i just wanted to say that i
think is time for Adobe to improve A LOT everything related to shared
fonts.

My feature list would be:

- Clean, easy, official way to create a swf with one/various fonts.
- Being able to load at run-time that swf and easily apply those fonts
to any TextField.
- Being able to query the swf to get information about the font,
embedded glyphs, etc.

I actually asked for it in the player 10 whislist, but maybe we could
expend some time defining what we need (as Colin Moock did when he was
asking for MovieClipLoader) and spreading through blogs and forums so
Adobe folks can actually hear it.

I'll try to do it myself and post it here. I guess a lot of people
might be interested.

Cheers,

Juan

On 2/7/07, Ian Thomas [EMAIL PROTECTED] wrote:

Mike,
   You might be able to do it using a server-side script. Swftools
(http://www.swftools.org/) might have something, or swfmill might give
you back something useful.

   Can't think of anything runtime/clientside, tho', other than
Danny's hack for the characters.

Ian

On 2/7/07, Mike Mountain [EMAIL PROTECTED] wrote:

  why can't you use the size report that you can generate on
  publish??? it shows all the fonts in-use in your movie.

 The key words are at runtime - imagine some of these are third party
 swfs.


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

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




--
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.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[2]: [Flashcoders] finding out which fonts are embedded in aswfatruntime?

2007-02-07 Thread Iv
Hello Zarate,

AS1-AS2 http://www.sharedfonts.com
in AS3 it's built in future.

Z My feature list would be:

Z - Clean, easy, official way to create a swf with one/various fonts.
Z - Being able to load at run-time that swf and easily apply those fonts
Z to any TextField.
Z - Being able to query the swf to get information about the font,
Z embedded glyphs, etc.

-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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: Pretty impressive Flash website

2007-02-07 Thread Ron Wheeler

Neat stuff.
They are also in Europe so you do not have to move to New York

Michael Ypes wrote:

Absolutely...

This site was built by FI (http://www.fantasy-interactive.com) and they are
a very cool company who do absolutely great work. If I lived in America I
would definitely want to work for them :)

The case study (http://www.fantasy-interactive.com/#roadrunner_2) says it
was developed in 2006 but that is for version 2. The first one came out a
few years ago in 2003 and won fwa site of the day/month and year. Now thats
impressive.

Lovely bit of work

Cheers

Michael Ypes

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

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


  

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

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


RE: [Flashcoders] finding out which fonts are embedded inaswfatruntime?

2007-02-07 Thread Danny Kodicek
  Hi,
 
 I actually don't know how to do it, but i just wanted to say 
 that i think is time for Adobe to improve A LOT everything 
 related to shared fonts.

Very much agreed. We've reached the situation where we tried every single
variation on the shared font, and none of them did what we needed, so we've
had to embed the font information in every one of our movies. The key
feature that we lacked was the ability to create a new textfield using the
shared font in a clean and easy way. (The closest we got to it was to embed
a shared movieclip that included a textfield with the font embedded;
unfortunately even this didn't work because of the lag in loading these
movies). Also, the ability to use a font from a movie loaded with
attachMovie in the parent movie.

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


RE: [Flashcoders] finding out which fonts are embeddedinaswfatruntime?

2007-02-07 Thread Mike Mountain
I'll add my name to that list - but does AS3 improve things any? Not
really played with embedding fonts in AS3 - surely we may be able to do
some bytecode trickery like those talented chaps are doing with sound?

M

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Danny Kodicek
 Sent: 07 February 2007 14:41
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] finding out which fonts are 
 embeddedinaswfatruntime?
 
   Hi,
  
  I actually don't know how to do it, but i just wanted to say that i 
  think is time for Adobe to improve A LOT everything related 
 to shared 
  fonts.
 
 Very much agreed. We've reached the situation where we tried 
 every single variation on the shared font, and none of them 
 did what we needed, so we've had to embed the font 
 information in every one of our movies. The key feature that 
 we lacked was the ability to create a new textfield using the 
 shared font in a clean and easy way. (The closest we got to 
 it was to embed a shared movieclip that included a textfield 
 with the font embedded; unfortunately even this didn't work 
 because of the lag in loading these movies). Also, the 
 ability to use a font from a movie loaded with attachMovie in 
 the parent movie.
 
 Danny


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 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.



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

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


Re: [Flashcoders] finding out which fonts are embedded inaswfatruntime?

2007-02-07 Thread Ian Thomas

Has anything changed in AS3? Does anyone know?

Cheers,
 Ian

On 2/7/07, Danny Kodicek [EMAIL PROTECTED] wrote:


Very much agreed. We've reached the situation where we tried every single
variation on the shared font, and none of them did what we needed, so we've
had to embed the font information in every one of our movies. The key
feature that we lacked was the ability to create a new textfield using the
shared font in a clean and easy way. (The closest we got to it was to embed
a shared movieclip that included a textfield with the font embedded;
unfortunately even this didn't work because of the lag in loading these
movies). Also, the ability to use a font from a movie loaded with
attachMovie in the parent movie.

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


Re[2]: [Flashcoders] finding out which fonts are embedded in aswfatruntime?

2007-02-07 Thread Iv
Hello Zarate,

2005 Apr 22
http://chattyfig.figleaf.com/pipermail/flashcoders/2005-April/137682.html


-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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] dropdown box implementation

2007-02-07 Thread Hans Wichman

Hi list,

could anyone give me some pointers on how you would normally implement the
dropdown part in a dropdown box?
Would you reshuffle all components to make sure it's on top, or use a custom
depth manager to attach the dropdown on the fly to the highest level, or?
In addition how would this work in nested loaded movieclips?

Thanks in advance,
JC

ps note that I'm not actually going to, but I'm reviewing a very
unsuccesfull implementation which got me thinking...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Jeff Harrington
With Flash 8 am I correct in believing that if I add cue points to a FLV
that I'll be able to seek within it even though it's being delivered via
a regular web server?  How does that work?  Does the web server actually
get a new request? 

Thanks,

Jeff Harrington
[EMAIL PROTECTED]
http://jeffharrington.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


[Flashcoders] any How-To instructions to make a Datechooser-like calendar in FlashMX?

2007-02-07 Thread BOYD SPEER
I would like to create a drop-down calendar in Flash MX that would let a user 
choose a date range. 

Any suggestions as to how to start? General sort of date-finder algorythms?

Thanks,
-Boyd
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] any How-To instructions to make a Datechooser-like calendar in FlashMX?

2007-02-07 Thread Michael Stuhr

BOYD SPEER schrieb:
I would like to create a drop-down calendar in Flash MX that would let a user choose a date range. 


Any suggestions as to how to start? General sort of date-finder algorythms?



MX ? those were the days :-)

don't you have a DRK (3 or 4) with this kind of cal ?


micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Francis Chary

You'll be able to seek to the cue points, yes, but the client will have to
actually download that point of the file first. They won't be able to start
watching from one of the cue points immediately.

The way progressive download works, it starts downloading at the start of
the file, and continues linearly until the whole file is downloaded. You can
only seek to cue points that have been downloaded.

Francis

On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:


With Flash 8 am I correct in believing that if I add cue points to a FLV
that I'll be able to seek within it even though it's being delivered via
a regular web server?  How does that work?  Does the web server actually
get a new request?

Thanks,

Jeff Harrington
[EMAIL PROTECTED]
http://jeffharrington.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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Johannes Nel

not in the way you are thinking. you can seek only to a point in a movie
that has already been downloaded.

have you looked at red5?

On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:


With Flash 8 am I correct in believing that if I add cue points to a FLV
that I'll be able to seek within it even though it's being delivered via
a regular web server?  How does that work?  Does the web server actually
get a new request?

Thanks,

Jeff Harrington
[EMAIL PROTECTED]
http://jeffharrington.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





--
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] Tab Problem

2007-02-07 Thread Omar Fouad

u mean:
tf1.tabIndex=1;
tf2.tabIndex=2;
tf3.tabIndex=3;
btn4.tabIndex=4;
btn5.tabIndex=5;



On 2/7/07, Cay Garrido H. [EMAIL PROTECTED] wrote:


I haven't used the accesibility panel, I've always done it by code, and
it works just fine:

tf1.indexTab=1;
tf2.indexTab=2;
tf3.indexTab=3;
btn4.indexTab=4;
btn5.indexTab=5;

Vivek Gaikwad escribió:
 Hi all,



 I was trying to figure out this:



 I have 3 input boxes(component) and 2 buttons created by me on stage.

 I have set the tabIndex for all the 5 controls using the accessibility
 panel.



 When I publish this, tab seems to stuck between the input boxes, it
doesn't
 come on the buttons.



 Any solution?







 Thanks  Regards

 Vivek Gaikwad - Flash Accessibility Developer







 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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





--
Omar Fouad - Digital Emotions...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Jeff Harrington
Thanks Johannes and Francis...  Yeah Johannes I'm tracking Red5 but
we're already deploying through Influxis a FMS solution. 

I was just shocked to find in some readings I was doing yesterday about
cue points that seek worked - glad that my understanding that seeking to
downloaded material worked but nothing new.  (Our app requires the user
to be able to seek to authored cue points within a stream). 

Interesting that  MP3's can seek to arbitrary points without being
downloaded. 

Jeff

Johannes Nel wrote:
 not in the way you are thinking. you can seek only to a point in a movie
 that has already been downloaded.

 have you looked at red5?

 On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:

 With Flash 8 am I correct in believing that if I add cue points to a FLV
 that I'll be able to seek within it even though it's being delivered via
 a regular web server?  How does that work?  Does the web server actually
 get a new request?

 Thanks,

 Jeff Harrington
 [EMAIL PROTECTED]
 http://jeffharrington.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





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Francis Chary

I have heard of a solution that someone implemented, using server-side code
to serve the .flv file with different injected metadata, that did the same
basic job of allowing seek to any point... but I can't remember how it was
done or where I saw it. Does anyone else remember that?

Francis

On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:


Thanks Johannes and Francis...  Yeah Johannes I'm tracking Red5 but
we're already deploying through Influxis a FMS solution.

I was just shocked to find in some readings I was doing yesterday about
cue points that seek worked - glad that my understanding that seeking to
downloaded material worked but nothing new.  (Our app requires the user
to be able to seek to authored cue points within a stream).

Interesting that  MP3's can seek to arbitrary points without being
downloaded.

Jeff

Johannes Nel wrote:
 not in the way you are thinking. you can seek only to a point in a movie
 that has already been downloaded.

 have you looked at red5?

 On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:

 With Flash 8 am I correct in believing that if I add cue points to a
FLV
 that I'll be able to seek within it even though it's being delivered
via
 a regular web server?  How does that work?  Does the web server
actually
 get a new request?

 Thanks,

 Jeff Harrington
 [EMAIL PROTECTED]
 http://jeffharrington.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





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Michael Stuhr

Francis Chary schrieb:

I have heard of a solution that someone implemented, using server-side code
to serve the .flv file with different injected metadata, that did the same
basic job of allowing seek to any point... but I can't remember how it was
done or where I saw it. Does anyone else remember that?


doesn't google do this ?

micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Asteroids sluggishness, optimization?

2007-02-07 Thread Paul V.
Hey Martin-Scott.
  Here is what I found.  (I played the game, and it seems like sometimes it
doesn't allow user control after the space ship comes on screen).  I am
programming a game aswell.  Safe EArth - more like a supped up version of
SpaceInvaders.  http://www.nextstepwebpages.com/games/saveEarth.swf
So I have been dealing with this stuff fresh.  It looks like maybe, and this
would my guess, it looks like there is either a problem with the reloading
on the either of the ships (player or saucer).  But more likely, and I
didn't spend too much time checking it out, but it seemed like maybe the hit
test on the saucer, triggered the lockup.  That might explain why it happens
sometimes and not other times.  Maybe you have some code being called after
that hit test and it wipes or somehow superseeds the controls code.  Like I
said on my machine it was fine until the suacer appeared, than everything
else worked fine, just the ship controls were dead.  So check those hit
tests, that's what I would do.  Hope this helps, check out my SpaceInvaders
if you have the time, it is still being worked on.

Best of luck,

Paul V.


- Original Message - 
From: Martin Scott Goldberg [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, February 05, 2007 8:13 PM
Subject: [Flashcoders] Asteroids sluggishness, optimization?


 Heya guys, writing a repro of Asteroids and was getting an issue with
 frame rates.  The frustrating thing is that on my pc it works flawlessly,
 as well as a few other people I had play test it.  On others though
 they're saying its chugging or starts chugging when the saucer appears.
 Its been about 50/50 and is frustrating the hell out of me.  Especially
 when it doesn't seem to matter if its faster cpu systems or not.

 I've optimized as much as I can, cutting down on loops, having graphics
 done as runtime bitmap caching when possible, etc.  I'm hoping the people
 here have more suggestions.

 Here is the version so far:
 http://www.classicgaming.com/gamingmuseum/atariflash/asteroids-saucer.html

 1 to start, up arrow to thrust, cntrl to fire, space for hyperspace.


 Marty

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

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



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Johannes Nel

well. let me put it to you like this. flv is a continues format. red5
contains the libraries you need to analyze it. calling a servlet which then
returns the data from that point.

On 2/7/07, Francis Chary [EMAIL PROTECTED] wrote:


I have heard of a solution that someone implemented, using server-side
code
to serve the .flv file with different injected metadata, that did the same
basic job of allowing seek to any point... but I can't remember how it was
done or where I saw it. Does anyone else remember that?

Francis

On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:

 Thanks Johannes and Francis...  Yeah Johannes I'm tracking Red5 but
 we're already deploying through Influxis a FMS solution.

 I was just shocked to find in some readings I was doing yesterday about
 cue points that seek worked - glad that my understanding that seeking to
 downloaded material worked but nothing new.  (Our app requires the user
 to be able to seek to authored cue points within a stream).

 Interesting that  MP3's can seek to arbitrary points without being
 downloaded.

 Jeff

 Johannes Nel wrote:
  not in the way you are thinking. you can seek only to a point in a
movie
  that has already been downloaded.
 
  have you looked at red5?
 
  On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:
 
  With Flash 8 am I correct in believing that if I add cue points to a
 FLV
  that I'll be able to seek within it even though it's being delivered
 via
  a regular web server?  How does that work?  Does the web server
 actually
  get a new request?
 
  Thanks,
 
  Jeff Harrington
  [EMAIL PROTECTED]
  http://jeffharrington.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
 
 
 
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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





--
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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Francis Chary

hey, so they do!

On 2/7/07, Michael Stuhr [EMAIL PROTECTED] wrote:


Francis Chary schrieb:
 I have heard of a solution that someone implemented, using server-side
code
 to serve the .flv file with different injected metadata, that did the
same
 basic job of allowing seek to any point... but I can't remember how it
was
 done or where I saw it. Does anyone else remember that?

doesn't google do this ?

micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 contractor - AS2 Developer

2007-02-07 Thread Chris Hill
We're looking for a contractor to handle some work on an existing site. 
We are looking for someone to do the AS2 programming, and has a good eye 
for design. You would be working with our internal team 
prototyping/implementing new functionality, and making revisions to the 
existing site.


The timeline is a bit rushed, but it is quality work for a quality client.
Telecommute is ok.
Please send your resume and rate to [EMAIL PROTECTED]

Thanks a lot
Chris Hill
Terralever.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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Jeff Harrington
Yeah that was done with PHP rewriting flv's dynamically based on a user
request.  Was a bit unstable if I remember right.  At least I couldn't
get it to work.

Jeff

Francis Chary wrote:
 I have heard of a solution that someone implemented, using server-side
 code
 to serve the .flv file with different injected metadata, that did the
 same
 basic job of allowing seek to any point... but I can't remember how it
 was
 done or where I saw it. Does anyone else remember that?

 Francis

 On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:

 Thanks Johannes and Francis...  Yeah Johannes I'm tracking Red5 but
 we're already deploying through Influxis a FMS solution.

 I was just shocked to find in some readings I was doing yesterday about
 cue points that seek worked - glad that my understanding that seeking to
 downloaded material worked but nothing new.  (Our app requires the user
 to be able to seek to authored cue points within a stream).

 Interesting that  MP3's can seek to arbitrary points without being
 downloaded.

 Jeff

 Johannes Nel wrote:
  not in the way you are thinking. you can seek only to a point in a
 movie
  that has already been downloaded.
 
  have you looked at red5?
 
  On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:
 
  With Flash 8 am I correct in believing that if I add cue points to a
 FLV
  that I'll be able to seek within it even though it's being delivered
 via
  a regular web server?  How does that work?  Does the web server
 actually
  get a new request?
 
  Thanks,
 
  Jeff Harrington
  [EMAIL PROTECTED]
  http://jeffharrington.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
 
 
 
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Francis Chary

Yeah, for sure. Does it basically work the same way as Flash Comm Server?

On 2/7/07, Johannes Nel [EMAIL PROTECTED] wrote:


well. let me put it to you like this. flv is a continues format. red5
contains the libraries you need to analyze it. calling a servlet which
then
returns the data from that point.

On 2/7/07, Francis Chary [EMAIL PROTECTED] wrote:

 I have heard of a solution that someone implemented, using server-side
 code
 to serve the .flv file with different injected metadata, that did the
same
 basic job of allowing seek to any point... but I can't remember how it
was
 done or where I saw it. Does anyone else remember that?

 Francis

 On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:
 
  Thanks Johannes and Francis...  Yeah Johannes I'm tracking Red5 but
  we're already deploying through Influxis a FMS solution.
 
  I was just shocked to find in some readings I was doing yesterday
about
  cue points that seek worked - glad that my understanding that seeking
to
  downloaded material worked but nothing new.  (Our app requires the
user
  to be able to seek to authored cue points within a stream).
 
  Interesting that  MP3's can seek to arbitrary points without being
  downloaded.
 
  Jeff
 
  Johannes Nel wrote:
   not in the way you are thinking. you can seek only to a point in a
 movie
   that has already been downloaded.
  
   have you looked at red5?
  
   On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:
  
   With Flash 8 am I correct in believing that if I add cue points to
a
  FLV
   that I'll be able to seek within it even though it's being
delivered
  via
   a regular web server?  How does that work?  Does the web server
  actually
   get a new request?
  
   Thanks,
  
   Jeff Harrington
   [EMAIL PROTECTED]
   http://jeffharrington.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
  
  
  
  
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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




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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS 3 and Sound

2007-02-07 Thread Jason Boyd

I didn't get any repsonses with my earlier post. Here's a shorter version.

Is anyone using embedded event sounds in ActionScript 3?

The published docs do not make clear how one is supposed to replace
attachSound(), as they only give a Flex example, which in itself is
screwy in that it requires a Sound subclass for each loaded sound.
This does not bode well for my app that loads 4 chromatic octaves of
notes with distinct Sound instances, calling attachSound() on each.
It's preventing me from even attempting to migrate to AS 3...

Any help or comments appreciated.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Seeking in a Progressively Downloaded FLV

2007-02-07 Thread Brian Weil
Jeff,

This can be done with some clever server-side code, a properly coded media
player and flv's with metadata injected. All the sources you need are here:
http://www.jeroenwijering.com/?item=Flash_Video_Player 
including a php implementation of the server-side script. Read his code for
that player and you will learn a lot.

If you don't use php you could do something similar in java, coldfusion(saw
a script smewhere) or .NET. Or use lightHTTPD as descibed here: 
http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd

For metadata injection there are a couple tools you can use:
http://www.buraks.com/flvmdi/
Or:
http://inlet-media.de/flvtool2

Also, read up on this for more background info:
http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-
take-two

This should give you a good start.

Brian

 Message: 5
 Date: Wed, 07 Feb 2007 10:20:07 -0500
 From: Jeff Harrington [EMAIL PROTECTED]
 Subject: [Flashcoders] Seeking in a Progressively Downloaded FLV -
   Return of
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1
 
 With Flash 8 am I correct in believing that if I add cue points to a FLV
 that I'll be able to seek within it even though it's being delivered via
 a regular web server?  How does that work?  Does the web server actually
 get a new request? 
 
 Thanks,
 
 Jeff Harrington
 [EMAIL PROTECTED]
 http://jeffharrington.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] AS 3 and Sound

2007-02-07 Thread James Marsden

Hey,

Try giving your library sound a Class linkage name such as 'MySound', 
and instantiating with:


var mySound:Sound = new MySound();


// the Sound object will bind to the audio clip in the library, so you 
should be able to do:


mySound.play();


We had the same issue today...

J


P.S. this is the same situation as with attachMovie - MovieClips are now 
bound to the resulting Object returned by the Class...




Jason Boyd wrote:
I didn't get any repsonses with my earlier post. Here's a shorter 
version.


Is anyone using embedded event sounds in ActionScript 3?

The published docs do not make clear how one is supposed to replace
attachSound(), as they only give a Flex example, which in itself is
screwy in that it requires a Sound subclass for each loaded sound.
This does not bode well for my app that loads 4 chromatic octaves of
notes with distinct Sound instances, calling attachSound() on each.
It's preventing me from even attempting to migrate to AS 3...

Any help or comments appreciated.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS 3 and Sound

2007-02-07 Thread Jason Boyd

WHew! Thanks, this relieves some worry. Now I have to figure out how
to dynamically name classes...

I could do:

var a1 = new a1();
var aSharp1 = new aSharp1();
var b1 = new b1();

...

But would be nice to keep same looping logic I've been using with an
array of note names and looking up the sound in the library as
noteName + octave. Any idea how to specify the name of a class
dynamically like this? Reading up on the new introspection API...

On 2/7/07, James Marsden [EMAIL PROTECTED] wrote:

Hey,

Try giving your library sound a Class linkage name such as 'MySound',
and instantiating with:

var mySound:Sound = new MySound();


// the Sound object will bind to the audio clip in the library, so you
should be able to do:

mySound.play();


We had the same issue today...

J


P.S. this is the same situation as with attachMovie - MovieClips are now
bound to the resulting Object returned by the Class...



Jason Boyd wrote:
 I didn't get any repsonses with my earlier post. Here's a shorter
 version.

 Is anyone using embedded event sounds in ActionScript 3?

 The published docs do not make clear how one is supposed to replace
 attachSound(), as they only give a Flex example, which in itself is
 screwy in that it requires a Sound subclass for each loaded sound.
 This does not bode well for my app that loads 4 chromatic octaves of
 notes with distinct Sound instances, calling attachSound() on each.
 It's preventing me from even attempting to migrate to AS 3...

 Any help or comments appreciated.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] syntax highlighting

2007-02-07 Thread Iv
Hello,

Almost every programmer sets his own code highlighting style and gets
used to it to the point, that any other highlighting style makes it
more difficult for him to read the code.

Users of programming-related sites would be pleased to have a
possibility to set their own personal code styles.

Evidently, setting the right style for every site you read through is
annoying. What if you could set the style once and make it somehow
propagated to the code listings on every site you visit?

Here comes the solution:
(for now PC only)
- First visit http://www.bezier.ru/ei/.
  Make and save your highlighting settings there.
- Go to http://www.sharedfont.com/ei/
  and press the apply button.
  You should see your setting in effect.

The service use no server scripting and can be easily adjusted for any
programming language.

For this service to launch and spread, it must be appropriately hosted
by some well-known project or company domain.

I think, this should be interesting for Eclipse, DoxyGen etc.

Should you have anything to suggest concerning this project, please
drop me a private message.

Any thoughts and ideas are highly appreciated.

Thank you.

-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.com


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

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


[Flashcoders] Flash 9, XMLSocket.onClose

2007-02-07 Thread Daniel Grace
I am currently building a large-scale Flash application. I had been
testing with the v8.something plugin. During beta customers were
complaining about crashes and I've finally tracked it down.

I'm connecting to a custom message bus using an XMLSocket. When the
remote end closes the connection (when we have to restart the message
bus, as it's also beta quality) the Flash 8 plugin calls my onClose
handler. The flash 9 plugin however brings down the entire browser.
Backtraces have a call to EnforceLocalSecurity in common.

Has anyone seen this? Does anyone have a workaround or further question
to help me track this down? I haven't seen anything in the results of a
google query and I have confirmed this behavior in the latest Flash
plugin (at least for the Mac).

Thanks in advance, I'm a new subscriber but these archives have come in
handy several times when they came up in google queries. You guys seem
to be the  most intelligent group of flash developers in a single spot.

Daniel
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS 3 and Sound

2007-02-07 Thread Jason Boyd

Well it appears this is the shortest way:

var chromaticNames = ['a','aS','b','c','cS','d','dS','e','f','fS','g','gS'];
var loadedSounds:Array = new Array();
for (var oct=1; oct6; oct++) {
 for (var n=0; nchromaticNames.length; n++) {

 var sndClass:Class = flash.utils.getDefinitionByName(chromaticNames[n] +
oct);
 var snd:Sound = Sound(new sndClass());
 loadedSounds.push(snd);
 }
}

It works, but is a bit clunky. And have to rename all sharp notes from a# to
aS and such. Ah well. Thanks for the solution!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS 3 and Sound

2007-02-07 Thread James Marsden

You need to use:

import flash.utils.*;


var myClass:* = getDefinitionByName(com.blah.blash. + noteName + _ + 
octave); // or something very similar if that's not right...




Jason Boyd wrote:

WHew! Thanks, this relieves some worry. Now I have to figure out how
to dynamically name classes...

I could do:

var a1 = new a1();
var aSharp1 = new aSharp1();
var b1 = new b1();

...

But would be nice to keep same looping logic I've been using with an
array of note names and looking up the sound in the library as
noteName + octave. Any idea how to specify the name of a class
dynamically like this? Reading up on the new introspection API...

On 2/7/07, James Marsden [EMAIL PROTECTED] wrote:

Hey,

Try giving your library sound a Class linkage name such as 'MySound',
and instantiating with:

var mySound:Sound = new MySound();


// the Sound object will bind to the audio clip in the library, so you
should be able to do:

mySound.play();


We had the same issue today...

J


P.S. this is the same situation as with attachMovie - MovieClips are now
bound to the resulting Object returned by the Class...



Jason Boyd wrote:
 I didn't get any repsonses with my earlier post. Here's a shorter
 version.

 Is anyone using embedded event sounds in ActionScript 3?

 The published docs do not make clear how one is supposed to replace
 attachSound(), as they only give a Flex example, which in itself is
 screwy in that it requires a Sound subclass for each loaded sound.
 This does not bode well for my app that loads 4 chromatic octaves of
 notes with distinct Sound instances, calling attachSound() on each.
 It's preventing me from even attempting to migrate to AS 3...

 Any help or comments appreciated.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] AS 3 and Sound

2007-02-07 Thread James Marsden

Yeah, cool.

btw if you want one of these let me know... :p

http://www.futurlab.co.uk/tshirt.jpg

J



Jason Boyd wrote:

Well it appears this is the shortest way:

var chromaticNames = 
['a','aS','b','c','cS','d','dS','e','f','fS','g','gS'];

var loadedSounds:Array = new Array();
for (var oct=1; oct6; oct++) {
 for (var n=0; nchromaticNames.length; n++) {

 var sndClass:Class = flash.utils.getDefinitionByName(chromaticNames[n] +
oct);
 var snd:Sound = Sound(new sndClass());
 loadedSounds.push(snd);
 }
}

It works, but is a bit clunky. And have to rename all sharp notes from 
a# to

aS and such. Ah well. Thanks for the solution!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS 3 and Sound

2007-02-07 Thread Jason Boyd


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] syntax highlighting

2007-02-07 Thread Michael Stuhr

Iv schrieb:

Hello,

Almost every programmer sets his own code highlighting style and gets
used to it to the point, that any other highlighting style makes it
more difficult for him to read the code.

Users of programming-related sites would be pleased to have a
possibility to set their own personal code styles.

Evidently, setting the right style for every site you read through is
annoying. What if you could set the style once and make it somehow
propagated to the code listings on every site you visit?



wow, that's brialliant.

i wonder how much code can be highlighted without getting slow. that is not meant to 
criticize your work, don't get me wrong.



micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Tab Problem

2007-02-07 Thread Steven Sacks | BLITZ
Increments are your friend.  :)

a = 0;
tf1.tabIndex = ++a;
tf2.tabIndex = ++a;
tf3.tabIndex = ++a;
btn4.tabIndex = ++a;
btn5.tabIndex = ++a;

If you had to reorder any of those tab orders all you have to do is cut
and paste them into their new position.  If you number your tabIndexes
specifically and you needed to move one, you would have to renumber any
that came after the one you moved.  Not fun, especially if you have a
lot of tabbable elements.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] syntax highlighting

2007-02-07 Thread Jason Boyd

I get a blank page. I have scripting turned off by default (using NoScript
extension with Firefox).

When turning scripting on, my first question is: how are the classes
generated for actual code text on any old webpage? Does this apply to any
code block, or what? I guess in general, how is it implemented?
Programmers would generally want to know this; the page should explain.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] finding out which fonts are embedded inaswfatruntime?

2007-02-07 Thread Steven Sacks | BLITZ
Mike, your signature needs an editor.  :)



 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 
 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.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re[2]: [Flashcoders] syntax highlighting

2007-02-07 Thread Iv
Hello Michael,

MS i wonder how much code can be highlighted without getting slow.
MS that is not meant to criticize your work, don't get me wrong.
- tons.
  only css changed on the fly. no more.

everybudy can get full project from his browser cache if needed.
no any server side scripts.


-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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] AS 3 and Sound

2007-02-07 Thread Jason Boyd

By which I mean of course, hehe.

Gmail sent an empty message for some reason.

On 2/7/07, Jason Boyd [EMAIL PROTECTED] wrote:




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] syntax highlighting

2007-02-07 Thread Michael Stuhr

Iv schrieb:

Hello Michael,

MS i wonder how much code can be highlighted without getting slow.
MS that is not meant to criticize your work, don't get me wrong.
- tons.
  only css changed on the fly. no more.


uhh, you got me wrong i think.


everybudy can get full project from his browser cache if needed.
no any server side scripts.


don't understand that part. can you explain a little bit ?

micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Tab Problem

2007-02-07 Thread Andrew Kirkpatrick
Vivek,
This is a limitation of the component focus Manager.   If you used
button components or non-component textfields the behavior you describe
wouldn't exist.
AWK

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Vivek Gaikwad
 Sent: Wednesday, February 07, 2007 7:48 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Tab Problem
 
 Hi all,
 
  
 
 I was trying to figure out this:
 
  
 
 I have 3 input boxes(component) and 2 buttons created by me on stage.
 
 I have set the tabIndex for all the 5 controls using the 
 accessibility panel.
 
  
 
 When I publish this, tab seems to stuck between the input 
 boxes, it doesn't come on the buttons.
 
  
 
 Any solution?
 
  
 
  
 
  
 
 Thanks  Regards
 
 Vivek Gaikwad - Flash Accessibility Developer
 
  
 
  
 
  
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] syntax highlighting

2007-02-07 Thread Michael Stuhr

Jason Boyd schrieb:

I get a blank page. I have scripting turned off by default (using NoScript
extension with Firefox).

When turning scripting on, my first question is: how are the classes
generated for actual code text on any old webpage? Does this apply to any
code block, or what? I guess in general, how is it implemented?
Programmers would generally want to know this; the page should explain.
___
no code block. look at the source. it's not really html if you ask me. at least it's not 
semantic :-)


@ iv:
would be nice - since we can use REAL css - if we could do such things as line-space and 
different fonts for the parts.


oh and put a font-size anywhere in there, would be good enough on the target 
page.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] syntax highlighting

2007-02-07 Thread Jason Boyd

Hmm ok.

I think what I'm getting at is that to really be useful, it ought to scan
the document for code elements, then parse the text of these nodes,
applying styles (or adding classed span tags or whatever) to the words
based on a look-up of keywords, and syntax checking etc. This way, it truly
could be used on any page that uses code to show code, and could be easily
extended to allow users to specify which language to use (AS, Java, etc).
Would make a nifty extension for Mozilla-based browsers, for instance. If
you don't have all the skills to put together these pieces, would be a good
project for SourceForge or something.

I think if you are relying on programmers to pretty-up their code listings
in HTML, you arent gonna see much use, and also if programmers wanted to go
to the trouble of doing this, would not be any real extra effort to write
the CSS.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Tab Problem

2007-02-07 Thread Hairy Dog Digital
Nice Steve! I'll keep this one in mind. My clients often rip up forms
(either that, or my designer does)!

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
| BLITZ
Sent: Wednesday, February 07, 2007 1:33 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Tab Problem

Increments are your friend.  :)

a = 0;
tf1.tabIndex = ++a;
tf2.tabIndex = ++a;
tf3.tabIndex = ++a;
btn4.tabIndex = ++a;
btn5.tabIndex = ++a;

If you had to reorder any of those tab orders all you have to do is cut and
paste them into their new position.  If you number your tabIndexes
specifically and you needed to move one, you would have to renumber any that
came after the one you moved.  Not fun, especially if you have a lot of
tabbable elements.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] adding nbsp; in html enabled text field

2007-02-07 Thread Matthew Ganz
hi.

i didn't find a concrete solution in the archives so am asking here. i have an 
html-enabled text field with a var reference. the var is a string that i want 
to add nbsp;'s to. has anyone figured out a solution to this?

any helpful tips are greatly appreciated. 

thank you. -- 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


RE: [Flashcoders] adding nbsp; in html enabled text field

2007-02-07 Thread Keith Reinfeld
Doesn't it work to just: 
 
htmlString += nbsp;; 

???

-Keith 
http://keithreinfeld.home.comcast.net
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew Ganz
Sent: Wednesday, February 07, 2007 1:41 PM
To: Flashcoders mailing list
Subject: [Flashcoders] adding nbsp; in html enabled text field

hi.

i didn't find a concrete solution in the archives so am asking here. i have
an html-enabled text field with a var reference. the var is a string that i
want to add nbsp;'s to. has anyone figured out a solution to this?

any helpful tips are greatly appreciated. 

thank you. -- 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[2]: [Flashcoders] syntax highlighting

2007-02-07 Thread Iv
Hello Jason,

I think a fiels standard of code html-formatting is needed.
In this case is it possible to do many tools used one standard.
In another case no one parser can't work properly.

For create standard and make it popular big members must use and
support it. I think it's possible and very simple.

For example in our field Adobe declaration of AS code html-formatting
standard is enougth for start support this standard by big number
of developers.


JB I think what I'm getting at is that to really be useful, it ought to scan
JB the document for code elements, then parse the text of these nodes,
JB applying styles (or adding classed span tags or whatever) to the words
JB based on a look-up of keywords, and syntax checking etc. This way, it truly
JB could be used on any page that uses code to show code, and could be easily
JB extended to allow users to specify which language to use (AS, Java, etc).
JB Would make a nifty extension for Mozilla-based browsers, for instance. If
JB you don't have all the skills to put together these pieces, would be a good
JB project for SourceForge or something.

JB I think if you are relying on programmers to pretty-up their code listings
JB in HTML, you arent gonna see much use, and also if programmers wanted to go
JB to the trouble of doing this, would not be any real extra effort to write
JB the CSS.


-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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] syntax highlighting

2007-02-07 Thread Jon Bradley


On Feb 7, 2007, at 2:17 PM, Jason Boyd wrote:

I think what I'm getting at is that to really be useful, it ought  
to scan

the document for code elements, then parse the text of these nodes,
applying styles (or adding classed span tags or whatever) to the  
words
based on a look-up of keywords, and syntax checking etc. This way,  
it truly
could be used on any page that uses code to show code, and could  
be easily
extended to allow users to specify which language to use (AS, Java,  
etc).
Would make a nifty extension for Mozilla-based browsers, for  
instance. If
you don't have all the skills to put together these pieces, would  
be a good

project for SourceForge or something.


Well, if you want to send the whole HTML page to Flash to have it  
syntax highlighted then sent back to html ... then maybe you could do  
that.


IV's tool works by re-write of a DIV layer that is properly named. It  
just snags the HTML source, parses it and outputs it back.  Simple  
string parsing actually.


It's a neat idea, as an experiment, but not for broad acceptance imho.

At that point, might as well just use Flash to display the syntax  
highlighting itself without using any overflow CSS tags for scrolling  
and stuff. But that already exists...


cheers,

jon


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

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


Re: Re[2]: [Flashcoders] syntax highlighting

2007-02-07 Thread Jon Bradley


On Feb 7, 2007, at 2:50 PM, Iv wrote:


For example in our field Adobe declaration of AS code html-formatting
standard is enougth for start support this standard by big number
of developers.


Problem 1 is that the tool is re-writing the HTML content of the  
page, which I don't particularly like. It's a great thought, but  
Flash projects that take text input and parse and display it with a  
user-customizable color space are already out there.


Problem 2) there are no standards. I don't like the Adobe  
highlighting standard. Friends of mine that are colorblind have their  
own issues to deal with when it comes to syntax highlighting.


- jon



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] to get last browsed web page before current

2007-02-07 Thread mac
Hello,
Do you know how to get last browsed web page before current ? Is it 
possible to request it from web browser or it should be used any trick. Do 
you have any idea ?

best regards
Maciek

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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-07 Thread Vishal Kapur

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 I
don't have a priori knowledge of, determine which object is currently
underneath the mouse.  It needs to work for any movieclip or TextField
object.  It's proprietary so I can't really disclose why I need it.
You mention that implementing this would be process intensive: this is
ok to start.  The way I would like to tackle this problem is to get it
working functionally, and worry about performance later.

Karina, Jason, the approaches you are suggesting of looping through
all the movieclips and calling hitTest() on each one is exactly what
my first approach was (see my first email in this thread).  The
problem is that very often multiple movieclips will return
hitTest()==true for a given mouse position (clips at different depths,
clips obscuring others, etc).  That's what I meant by 2 conflicting
objects in my first mail.  I'm trying to find an algorithm to resolve
conflicts.

There is another approach which Erik mentioned, which is to
define/override the onRollOver callback for every object that I care
about, and set some variable that keeps track of the last object that
invoked onRollOver.  I have tried this before, and I ditched it
because I couldn't find a way to get TextField objects to invoke an
onRollOver callback (or to otherwise respond to a 'roll over' event).
Any ideas on this?

Thanks,
Vishal



On 2/7/07, Jason Boyd [EMAIL PROTECTED] wrote:

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
  

[Flashcoders] [Flex2] Out of the border UIComponent requested

2007-02-07 Thread Sebastian Mohr

Hallo everyone,

I would like to know how Christian Cantrell has done a great
looking out of the border UIComponent, see:

http://video.google.com/videoplay?docid=2840522561992638726hl=en

(at timecode 2m7s ... and 6m12s)

I know that the movement has to be done via the MoveEffect
in Flex ... but can I place this component on top of the flex
application, and how can I prevent this component from being
seen if the application resides centred in the browser?

The UIComponent should look something like THIS:

---
|___   |
||||   |
||   T   ||   |
||   H   ||   |
||   I||   |
||   S   ||   |
|| |_|   |
| |
---

Hope you could help me out,
masu
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] adding nbsp; in html enabled text field

2007-02-07 Thread Matthew Ganz
unfortunately, that isn't working either.  i've tried not embedding the 
fonts (as i read from the archives), adding a space plus a period, i.e.  . 
in the include these characters field (also from the archives) and still 
not getting the result i want.



- Original Message - 
From: Keith Reinfeld [EMAIL PROTECTED]

To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 07, 2007 2:46 PM
Subject: RE: [Flashcoders] adding nbsp; in html enabled text field



Doesn't it work to just:

htmlString += nbsp;;

???

-Keith
http://keithreinfeld.home.comcast.net



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew 
Ganz

Sent: Wednesday, February 07, 2007 1:41 PM
To: Flashcoders mailing list
Subject: [Flashcoders] adding nbsp; in html enabled text field

hi.

i didn't find a concrete solution in the archives so am asking here. i 
have
an html-enabled text field with a var reference. the var is a string that 
i

want to add nbsp;'s to. has anyone figured out a solution to this?

any helpful tips are greatly appreciated.

thank you. -- 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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] adding nbsp; in html enabled text field

2007-02-07 Thread John VanHorn

try #160; which is the unicode value i believe(?)

On 2/7/07, Matthew Ganz [EMAIL PROTECTED] wrote:


hi.

i didn't find a concrete solution in the archives so am asking here. i
have an html-enabled text field with a var reference. the var is a string
that i want to add nbsp;'s to. has anyone figured out a solution to this?

any helpful tips are greatly appreciated.

thank you. -- 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





--
John Van Horn
[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


Re[4]: [Flashcoders] syntax highlighting

2007-02-07 Thread Iv
Hello Jon,

Hello Jon,

JB Problem 1 is that the tool is re-writing the HTML content of the
JB page, which I don't particularly like.
- one CSS only. I don't see any problem here.

JB It's a great thought, but Flash projects that take text input and
JB parse and display it with a user-customizable color space are
JB already out there.
- yes. I know.
  But flash solution have much bigest minuses:
  1) forget about search engines
  2) my idea about cross-domain user settings not implemented yet :)

JB Problem 2) there are no standards. I don't like the Adobe
JB highlighting standard. Friends of mine that are colorblind have
JB their own issues to deal with when it comes to syntax
JB highlighting.
- I talk not about colors standard. I talk about list of types and
  corresponding css class names.
  something like:

CSS class name:
void

Description:
Base types 'Void'

Members:
Void

CSS class example:
.void {
  color:#FF;
  font-weight:normal;
  font-style:normal;
}

Usage:
function MyFunction ():span class=voidVoid/span {}




-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.com


-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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[4]: [Flashcoders] syntax highlighting

2007-02-07 Thread Iv
Hello Jon,

In any case presence of field standard is much better than lack.
Developers can use and support it in his projects if standard defined.



-- 
Ivan Dembicki

[EMAIL PROTECTED] || 
http://www.design.ru

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

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


Re[4]: [Flashcoders] syntax highlighting

2007-02-07 Thread Iv
Hello Jon,

JB Problem 1 is that the tool is re-writing the HTML content of the
JB page, which I don't particularly like.
- one CSS only. I don't see any problem here.

JB It's a great thought, but Flash projects that take text input and
JB parse and display it with a user-customizable color space are
JB already out there.
- yes. I know.
  But flash solution have much bigest minuses:
  1) forget about search engines
  2) my idea about cross-domain user settings not implemented yet :)

JB Problem 2) there are no standards. I don't like the Adobe
JB highlighting standard. Friends of mine that are colorblind have
JB their own issues to deal with when it comes to syntax
JB highlighting.
- I talk not about colors standard. I talk about list of types and
  corresponding css class names.
  something like:

CSS class name:
void

Description:
Base types 'Void'

Members:
Void

CSS class example:
.void {
  color:#FF;
  font-weight:normal;
  font-style:normal;
}

Usage:
function MyFunction ():span class=voidVoid/span {}




-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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] adding nbsp; in html enabled text field

2007-02-07 Thread Matthew Ganz

yes it is the unicode value. tried that a little while ago, but didn't work.

but thank you.
- Original Message - 
From: John VanHorn [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 07, 2007 3:41 PM
Subject: Re: [Flashcoders] adding nbsp; in html enabled text field



try #160; which is the unicode value i believe(?)

On 2/7/07, Matthew Ganz [EMAIL PROTECTED] wrote:


hi.

i didn't find a concrete solution in the archives so am asking here. i
have an html-enabled text field with a var reference. the var is a string
that i want to add nbsp;'s to. has anyone figured out a solution to 
this?


any helpful tips are greatly appreciated.

thank you. -- 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





--
John Van Horn
[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 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] adding nbsp; in html enabled text field

2007-02-07 Thread John VanHorn

try without the var reference. set the htmlText property of the text field
instead.

On 2/7/07, Matthew Ganz [EMAIL PROTECTED] wrote:


unfortunately, that isn't working either.  i've tried not embedding the
fonts (as i read from the archives), adding a space plus a period, i.e. 
.
in the include these characters field (also from the archives) and still
not getting the result i want.


- Original Message -
From: Keith Reinfeld [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 07, 2007 2:46 PM
Subject: RE: [Flashcoders] adding nbsp; in html enabled text field


 Doesn't it work to just:

 htmlString += nbsp;;

 ???

 -Keith
 http://keithreinfeld.home.comcast.net



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Matthew
 Ganz
 Sent: Wednesday, February 07, 2007 1:41 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] adding nbsp; in html enabled text field

 hi.

 i didn't find a concrete solution in the archives so am asking here. i
 have
 an html-enabled text field with a var reference. the var is a string
that
 i
 want to add nbsp;'s to. has anyone figured out a solution to this?

 any helpful tips are greatly appreciated.

 thank you. -- 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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
John Van Horn
[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


Re: [Flashcoders] [Flex2] Out of the border UIComponent requested

2007-02-07 Thread Thomas Fowler

That's Apollo and not Flex.

- Original Message -
From: Sebastian Mohr [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 07, 2007 2:36 PM
Subject: [Flashcoders] [Flex2] Out of the border UIComponent requested


Hallo everyone,

I would like to know how Christian Cantrell has done a great
looking out of the border UIComponent, see:

http://video.google.com/videoplay?docid=2840522561992638726hl=en

(at timecode 2m7s ... and 6m12s)

I know that the movement has to be done via the MoveEffect
in Flex ... but can I place this component on top of the flex
application, and how can I prevent this component from being
seen if the application resides centred in the browser?

The UIComponent should look something like THIS:

---
|___   |
||||   |
||   T   ||   |
||   H   ||   |
||   I||   |
||   S   ||   |
|| |_|   |
| |
---

Hope you could help me out,
masu
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [Flex2] Out of the border UIComponent requested

2007-02-07 Thread Sebastian Mohr

This is Flex:
http://weblogs.macromedia.com/sho/archives/2006/04/flex_sliding_dr.cfm

I just found it :)

Apollo will be able to run and display Flex, Flash, HTML and Ajax stuff.

masu


On 2/7/07, Thomas Fowler [EMAIL PROTECTED] wrote:


That's Apollo and not Flex.

- Original Message -
From: Sebastian Mohr [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 07, 2007 2:36 PM
Subject: [Flashcoders] [Flex2] Out of the border UIComponent requested

 Hallo everyone,

 I would like to know how Christian Cantrell has done a great
 looking out of the border UIComponent, see:

 http://video.google.com/videoplay?docid=2840522561992638726hl=en

 (at timecode 2m7s ... and 6m12s)

 I know that the movement has to be done via the MoveEffect
 in Flex ... but can I place this component on top of the flex
 application, and how can I prevent this component from being
 seen if the application resides centred in the browser?

 The UIComponent should look something like THIS:

 ---
 |___   |
 ||||   |
 ||   T   ||   |
 ||   H   ||   |
 ||   I||   |
 ||   S   ||   |
 || |_|   |
 | |
 ---

 Hope you could help me out,
 masu
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] to get last browsed web page before current

2007-02-07 Thread Rost, Andrew
I'm not a huge JavaScript person, but we use:

getURL(javascript:history.back(););

Andrew

-Original Message-
From: Jim Berkey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 07, 2007 2:43 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] to get last browsed web page before current

I've used this on a flash button embedded in an html page with success:

on (release) {
getURL(javascript:window.history.go(-1));
}

jimbo

*** REPLY SEPARATOR  ***

On 2/7/2007 at 9:11 PM mac wrote:

Hello,
Do you know how to get last browsed web page before current ? Is it 
possible to request it from web browser or it should be used any trick. Do 
you have any idea ?

best regards
Maciek

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

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

7

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] to get last browsed web page before current

2007-02-07 Thread Jason Boyd

This has disadvantage that if the user has javascript disabled, might fail
silently. Though I know of no other way to do this.


On 2/7/07, Jim Berkey [EMAIL PROTECTED] wrote:


I've used this on a flash button embedded in an html page with success:

on (release) {
getURL(javascript:window.history.go(-1));
}

jimbo

*** REPLY SEPARATOR  ***

On 2/7/2007 at 9:11 PM mac wrote:

Hello,
Do you know how to get last browsed web page before current ? Is it
possible to request it from web browser or it should be used any trick.
Do
you have any idea ?

best regards
Maciek

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

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

7

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] to get last browsed web page before current

2007-02-07 Thread Mick G

If you have access to PHP you can use http referrer (which isn't 100%
effective, but one of the better solutions)
$ENV{'HTTP_REFERER'}

I'm not sure how well that will work with a Flash application but
potentially you could send that to flash via a flashvar in PHP from your
page.



On 2/7/07, Jason Boyd [EMAIL PROTECTED] wrote:


This has disadvantage that if the user has javascript disabled, might fail
silently. Though I know of no other way to do this.


On 2/7/07, Jim Berkey [EMAIL PROTECTED] wrote:

 I've used this on a flash button embedded in an html page with success:

 on (release) {
 getURL(javascript:window.history.go(-1));
 }

 jimbo

 *** REPLY SEPARATOR  ***

 On 2/7/2007 at 9:11 PM mac wrote:

 Hello,
 Do you know how to get last browsed web page before current ? Is it
 possible to request it from web browser or it should be used any trick.
 Do
 you have any idea ?
 
 best regards
 Maciek
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 7

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Kelly Smith

Metadata injection with php has become a proven way to faux-stream flv's. It
works great for me, and under substantial loads.

Here is the lowdown:

http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two

Be sure to read through the comments below as there are a bevy of great
coding suggestions and enhancements.  Good luck.

- k

On 2/7/07, Francis Chary [EMAIL PROTECTED] wrote:


Yeah, for sure. Does it basically work the same way as Flash Comm Server?

On 2/7/07, Johannes Nel [EMAIL PROTECTED] wrote:

 well. let me put it to you like this. flv is a continues format. red5
 contains the libraries you need to analyze it. calling a servlet which
 then
 returns the data from that point.

 On 2/7/07, Francis Chary [EMAIL PROTECTED] wrote:
 
  I have heard of a solution that someone implemented, using server-side
  code
  to serve the .flv file with different injected metadata, that did the
 same
  basic job of allowing seek to any point... but I can't remember how it
 was
  done or where I saw it. Does anyone else remember that?
 
  Francis
 
  On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:
  
   Thanks Johannes and Francis...  Yeah Johannes I'm tracking Red5 but
   we're already deploying through Influxis a FMS solution.
  
   I was just shocked to find in some readings I was doing yesterday
 about
   cue points that seek worked - glad that my understanding that
seeking
 to
   downloaded material worked but nothing new.  (Our app requires the
 user
   to be able to seek to authored cue points within a stream).
  
   Interesting that  MP3's can seek to arbitrary points without being
   downloaded.
  
   Jeff
  
   Johannes Nel wrote:
not in the way you are thinking. you can seek only to a point in a
  movie
that has already been downloaded.
   
have you looked at red5?
   
On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:
   
With Flash 8 am I correct in believing that if I add cue points
to
 a
   FLV
that I'll be able to seek within it even though it's being
 delivered
   via
a regular web server?  How does that work?  Does the web server
   actually
get a new request?
   
Thanks,
   
Jeff Harrington
[EMAIL PROTECTED]
http://jeffharrington.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
   
   
   
   
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/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
 



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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Little Problem with AMFPHP browser

2007-02-07 Thread Dave Mennenoh
I've started playing with AMFPHP today, and it's pretty darned cool! I have 
a little service written, that sends back an SQL query to a datagrid - all 
is good. But I can't get the online service browser to work - it's a path 
problem I think.


Within the config.inc.php file it has this:

/**
 * This is the path to your services folder.  It should be fully qualified
 * and must include a trailing /  If you leave the value blank an attempt
 * will be made to search the INCLUDE_PATH for it.
 */

$cfg['AmfphpPath'] = realpath(dirname(dirname(__FILE__))) . '/amfphp/';
$cfg['ServicesPath'] = $cfg['AmfphpPath'] . 'services/';
$cfg['CodePath'] = str_replace('\\', '/', $cfg['AmfphpPath'] . 'src/');

I've tried a few things and the browser just complains. It's in the default 
amfphp install folder - webroot/amfphp/browser: 
http://www.blurredistinction.com/amfphp/browser/


But it complains it can't find the ServiceBrowser.php file.




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


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

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


Re: [Flashcoders] Little Problem with AMFPHP browser

2007-02-07 Thread Glen Pike
In the error message, it's got amfphp repeated in the path - maybe you 
need to copy the real path from here rather than using __FILE__ because 
that may be called from sub-directories, etc.


Try this:

/hsphere/local/home/blurred/blurredistinction.com/amfphp/

if that does not work, try removing amfphp/

Dave Mennenoh wrote:
I've started playing with AMFPHP today, and it's pretty darned cool! I 
have a little service written, that sends back an SQL query to a 
datagrid - all is good. But I can't get the online service browser to 
work - it's a path problem I think.


Within the config.inc.php file it has this:

/**
 * This is the path to your services folder.  It should be fully 
qualified

 * and must include a trailing /  If you leave the value blank an attempt
 * will be made to search the INCLUDE_PATH for it.
 */

$cfg['AmfphpPath'] = realpath(dirname(dirname(__FILE__))) . '/amfphp/';
$cfg['ServicesPath'] = $cfg['AmfphpPath'] . 'services/';
$cfg['CodePath'] = str_replace('\\', '/', $cfg['AmfphpPath'] . 'src/');

I've tried a few things and the browser just complains. It's in the 
default amfphp install folder - webroot/amfphp/browser: 
http://www.blurredistinction.com/amfphp/browser/


But it complains it can't find the ServiceBrowser.php file.




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

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



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

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


RE: [Flashcoders] 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 

[Flashcoders] Detecting mouse events over non-white parts of a movieClip

2007-02-07 Thread Dave Wood

Hi

I need to detect mouse events on a movieclip's non-white content  
rather than it's bounding rectangle even where the contents are  
bitmap based.


I'm putting together an activity for kids where they create a piece  
of art by dragging and dropping visual elements onto their canvas,  
then they can subsequently select these elements to move them, resize  
them, rotate, delete them etc.


The user must be able to accurately select these elements even when  
they are overlapping – so long as a movieClip is partially visible,  
it needs to be selectable. The problem of course is that the  
movieClips are responding to mouse events as soon as the mouse enters  
their bounding rectangle.


The items they drag are sourced from photographic material and need  
to remain as bitmap–based movieClips. They are a collection of  
everyday items: fruit, plants, vehicles, people etc and currently  
they are imported as PNGs with an alpha channel.


One option would be to make a vector graphic version of every single  
graphic, have that layered behind in each clip and have that detect  
the mouse events – but what a pain! There has to be a simpler way?


I guess I need seomething like a background transparent blending mode  
– but there isn't one:(


I'm sure others have tackled this problem. Anyone?

David


 ___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting mouse events over non-white parts of a movieClip

2007-02-07 Thread Jason Boyd

Check out the BitmapData class, specifically the static loadBitmap(id)
method for creating an instance from a library symbol, and getPixel() which
allows checking individual pixel values.

I would think an algorithm that would work would be to iterate through the
display list, do hitTest() on every clip, and for those that hit, starting
with the first (which is the highest depth), copy the image data into a
BitmapData object and do a getPixel() at that spot to test for the
transparent color (which sounds like its white). This would be slow,
presumably. But might redo the objects on stage so that they are already
Bitmaps or BitmapData.

My 2 cents.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting mouse events over non-white parts of a movieClip

2007-02-07 Thread Jason Boyd

Also, just looking this up made me notice that as of Flash 8, you can do
pixel-level hit detection between not only a bitmap and a point, but 2
bitmaps, with alpha threshold support!

BitmapData.hitTest()

On 2/7/07, Jason Boyd [EMAIL PROTECTED] wrote:


Check out the BitmapData class, specifically the static loadBitmap(id)
method for creating an instance from a library symbol, and getPixel() which
allows checking individual pixel values.

I would think an algorithm that would work would be to iterate through the
display list, do hitTest() on every clip, and for those that hit, starting
with the first (which is the highest depth), copy the image data into a
BitmapData object and do a getPixel() at that spot to test for the
transparent color (which sounds like its white). This would be slow,
presumably. But might redo the objects on stage so that they are already
Bitmaps or BitmapData.

My 2 cents.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting mouse events over non-white parts of a movieClip

2007-02-07 Thread Dave Wood

Thanks for those suggestions.

I didn't think about Birmapdata.hitTest(), but I had thought about  
using getPixel()


Sure, I can use that to decide whether or not the user has clicked on  
a non-white area, but that doesn't resolve user confusion. It doesn't  
help the user to know which item they are about to select because the  
cursor will already have changed when the mouse enters the bounding  
rect.


Cheers

David


On 8/02/2007, at 4:05 PM, Jason Boyd wrote:

Also, just looking this up made me notice that as of Flash 8, you  
can do

pixel-level hit detection between not only a bitmap and a point, but 2
bitmaps, with alpha threshold support!

BitmapData.hitTest()

On 2/7/07, Jason Boyd [EMAIL PROTECTED] wrote:


Check out the BitmapData class, specifically the static loadBitmap 
(id)
method for creating an instance from a library symbol, and getPixel 
() which

allows checking individual pixel values.

I would think an algorithm that would work would be to iterate  
through the
display list, do hitTest() on every clip, and for those that hit,  
starting
with the first (which is the highest depth), copy the image data  
into a

BitmapData object and do a getPixel() at that spot to test for the
transparent color (which sounds like its white). This would be slow,
presumably. But might redo the objects on stage so that they are  
already

Bitmaps or BitmapData.

My 2 cents.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting mouse events over non-white parts of a movieClip

2007-02-07 Thread Dave Wood

Can't you override the onMouseOver of the clips to prevent the cursor
change?

Or wait, why would the cursor be changing?


There's no onRollover event being specifically handled, but each of  
the clips has onPress, onRelease and onReleaseOutside events handled.


My understanding is that it's the default behaviour of a clip with  
any mouse events handled at all, that the cursor changes when it  
enters the clip. In the case of a clip comprising a vector graphic  
the change occurs when it enters a non-white area. In the case of a  
clip containing a bitmap, it changes when the cursor enters the  
bounding rectangle of the clip.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting mouse events over non-white parts of a movieClip

2007-02-07 Thread John VanHorn

cant you just use hitArea and make a transparent vector shape hit state
for each visual element?

On 2/7/07, Dave Wood [EMAIL PROTECTED] wrote:


Hi

I need to detect mouse events on a movieclip's non-white content
rather than it's bounding rectangle even where the contents are
bitmap based.

I'm putting together an activity for kids where they create a piece
of art by dragging and dropping visual elements onto their canvas,
then they can subsequently select these elements to move them, resize
them, rotate, delete them etc.

The user must be able to accurately select these elements even when
they are overlapping – so long as a movieClip is partially visible,
it needs to be selectable. The problem of course is that the
movieClips are responding to mouse events as soon as the mouse enters
their bounding rectangle.

The items they drag are sourced from photographic material and need
to remain as bitmap–based movieClips. They are a collection of
everyday items: fruit, plants, vehicles, people etc and currently
they are imported as PNGs with an alpha channel.

One option would be to make a vector graphic version of every single
graphic, have that layered behind in each clip and have that detect
the mouse events – but what a pain! There has to be a simpler way?

I guess I need seomething like a background transparent blending mode
– but there isn't one:(

I'm sure others have tackled this problem. Anyone?

David


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

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





--
John Van Horn
[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


Re: [Flashcoders] Detecting mouse events over non-white parts of a movieClip

2007-02-07 Thread Jason Boyd


My understanding is that it's the default behaviour of a clip with
any mouse events handled at all, that the cursor changes when it
enters the clip.



Oh right, sorry. So I wonder if it is possible to override this by
definining an onMouseOver and changing the cursor to the default one?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Detecting mouse events over non-white parts of a movieClip

2007-02-07 Thread John VanHorn

oki just realized you said that would be a pain in your original
message. sorry...i am tired.

how many elements do you have? a hitArea for each one does seem like a
simpler way to goor maybe i'm just tired.

On 2/7/07, John VanHorn [EMAIL PROTECTED] wrote:


cant you just use hitArea and make a transparent vector shape hit state
for each visual element?

On 2/7/07, Dave Wood  [EMAIL PROTECTED] wrote:

 Hi

 I need to detect mouse events on a movieclip's non-white content
 rather than it's bounding rectangle even where the contents are
 bitmap based.

 I'm putting together an activity for kids where they create a piece
 of art by dragging and dropping visual elements onto their canvas,
 then they can subsequently select these elements to move them, resize
 them, rotate, delete them etc.

 The user must be able to accurately select these elements even when
 they are overlapping – so long as a movieClip is partially visible,
 it needs to be selectable. The problem of course is that the
 movieClips are responding to mouse events as soon as the mouse enters
 their bounding rectangle.

 The items they drag are sourced from photographic material and need
 to remain as bitmap–based movieClips. They are a collection of
 everyday items: fruit, plants, vehicles, people etc and currently
 they are imported as PNGs with an alpha channel.

 One option would be to make a vector graphic version of every single
 graphic, have that layered behind in each clip and have that detect
 the mouse events – but what a pain! There has to be a simpler way?

 I guess I need seomething like a background transparent blending mode
 – but there isn't one:(

 I'm sure others have tackled this problem. Anyone?

 David


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

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




--
John Van Horn
[EMAIL PROTECTED]





--
John Van Horn
[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


Re: [Flashcoders] Detecting mouse events over non-white parts of a movieClip

2007-02-07 Thread Dave Wood
cant you just use hitArea and make a transparent vector shape hit  
state

for each visual element?



As I think I indicated, that is indeed an option, but one we're  
looking for a way to avoid.


Cheers

David
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Little Problem with AMFPHP browser

2007-02-07 Thread Dave Mennenoh

In the error message, it's got amfphp repeated in the path


Argh... I never even noticed that, I was looking at the bold text only which 
didn't show it repeated twice. Removing it from the path line did the trick. 
Thanks for catching that.



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


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

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


RE: [Flashcoders] Detecting mouse events over non-white parts of amovieClip

2007-02-07 Thread Keith Reinfeld

If you don't want the cursor to change just use 
 
yourMovieClip.useHandCursor = false; 
 
for each clip with button behaviors. 
 
HTH

-Keith 
http://keithreinfeld.home.comcast.net
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Boyd
Sent: Wednesday, February 07, 2007 10:29 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Detecting mouse events over non-white parts of
amovieClip


 My understanding is that it's the default behaviour of a clip with
 any mouse events handled at all, that the cursor changes when it
 enters the clip.


Oh right, sorry. So I wonder if it is possible to override this by
definining an onMouseOver and changing the cursor to the default one?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting mouse events over non-white parts of a movieClip

2007-02-07 Thread Jason Boyd

If I were looking for the super-ideal correct algorithm and hade infinite
coding monkeys, I would at init time create bitmaps of every library item,
and use flood-fill combined with trig math to generate vector trace shapes
of the non-white areas, which I would draw as zero alpha shapes into a movie
clip attached to each raster movie clip. And then iterate throgh the display
list calling hitTest on these invisible shapes. You'd avoid any code to copy
bitmap data, would still be able to otherwise treat your clips as normal
clips, and would get pre-built hitTest() behavior for the vector shaps,
without having extra design-time work when images are added. The code to
convert a bitmap into vectors would be the tricky part, but is technically
doable.

I may be tired as well. Just thinking outside the box.


On 2/7/07, Dave Wood [EMAIL PROTECTED] wrote:


 cant you just use hitArea and make a transparent vector shape hit
 state
 for each visual element?


As I think I indicated, that is indeed an option, but one we're
looking for a way to avoid.

Cheers

David
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting mouse events over non-white parts of amovieClip

2007-02-07 Thread Keith Reinfeld
 The code to
convert a bitmap into vectors would be the tricky part, but is technically
doable.

ModifyBitmapTrace Bitmap...


-Keith 
http://keithreinfeld.home.comcast.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] Detecting mouse events over non-white parts of amovieClip

2007-02-07 Thread Jason Boyd

Good point. Yeah I'm tired.

On 2/8/07, Keith Reinfeld [EMAIL PROTECTED] wrote:


 The code to
convert a bitmap into vectors would be the tricky part, but is
technically
doable.

ModifyBitmapTrace Bitmap...


-Keith
http://keithreinfeld.home.comcast.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] RE:[ Flashcoders] Tab Problem

2007-02-07 Thread Vivek Gaikwad
Even if I set the tabIndex through scripting, it doesn't solve the issue.
Tab doesn't come on the buttons.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting mouse events over non-white parts

2007-02-07 Thread Bob Leisle





My understanding is that it's the default behaviour of a clip with
any mouse events handled at all, that the cursor changes when it
enters the clip.
 


Using useHandCursor, you could turn that feature off as the default, and then 
back on when you test positive for your viewable clip area.
Something like this:

clip.useHandCursor = false;
clip.onPress = function(){
}
clip.onEnterFrame = function(){
this.useHandCursor = (this.hitTest(_xmouse, _ymouse, true));
}

hth,
~
Bob Leisle 
Headsprout Software  Engineering

http://www.headsprout.com
Where kids learn to read! 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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-07 Thread Vishal Kapur

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 I don't have a priori knowledge of, determine which
 object is currently underneath the mouse.  It needs to work
 for any movieclip or TextField object.  It's proprietary so I
 can't really disclose why I need it.
 You mention that implementing this would be process
 intensive: this is ok to start.  The way I would like to
 tackle this problem is to get it working functionally, and
 worry about performance later.

 Karina, Jason, the approaches you are suggesting of looping
 through all the movieclips and calling hitTest() on each one
 is exactly what my first approach was (see my first email in
 this thread).  The problem is that very often multiple
 movieclips will return hitTest()==true for a given mouse
 position (clips at different depths, clips obscuring others,
 etc).  That's what I meant by 2 conflicting objects in my
 first mail.  I'm trying to find an algorithm to resolve conflicts.

 There is another approach which Erik mentioned, which is to
 define/override the onRollOver callback for every object that
 I care about, and set some variable that keeps track of the
 last object that invoked onRollOver.  I have tried this
 before, and I ditched it because I couldn't find a way to get
 TextField objects to invoke an onRollOver callback (or to
 otherwise respond to a 'roll over' event).
 Any ideas on this?

 Thanks,
 Vishal



 On 2/7/07, Jason Boyd [EMAIL PROTECTED] wrote:
  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 

  1   2   >