RE: [Flashcoders] flv stop loading / close netconnection

2010-03-23 Thread Cor
Hi David,

I didn't see it was you. :-)
In fact it was you who gave me this solution a few days ago

The FLVplayback has a reconnected() function.
Called by the VideoPlayer object to ask for reconnection after the
connection is lost. Once the connection is either successful or failed, call
the VideoPlayer.ncReconnected() method. If the connection failed, set nc =
null before calling.

HTH
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
Sent: maandag 22 maart 2010 22:13
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] flv stop loading / close netconnection


Thanks Cor,
I've used that sort of call when stopping an flv from playing when closing a
loaded swf. But in this case I need to be able to reconnect the flv again,
I'm not disposing of the FLVPlayback. All I want to do is stop the
progressive download but this seems difficult to do from an instance of
FLVPlayback!
Cheers

 From: c...@chello.nl
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] flv stop loading / close netconnection
 Date: Mon, 22 Mar 2010 21:35:29 +0100
 
 I had a kind of problem like that and the solution was;
 
 myFLV.getVideoPlayer(myFLV.activeVideoPlayerIndex).close();
 
 HTH
 Cor
 
 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis,
 Erik (MIN - WSW)
 Sent: maandag 22 maart 2010 21:32
 To: Flash Coders List
 Subject: RE: [Flashcoders] flv stop loading / close netconnection
 
 I need to use myFLV.getVideoPlayer(0).close() to stop the download 
 
 Try myFLV.closeVideoPlayer()  
 
 _ _ _
 Erik Mattheis
 Senior Web Developer
 Minneapolis
 T  952 346 6610
 C 612 377 2272
 
 Weber Shandwick
 Advocacy starts here.
 
 PRWeek Global Agency Report Card 2009 - Gold Medal Winner
 The Holmes Report Global Agency of the Year
 PR News Agency of the Year
 
 
 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David
Hunter
 Sent: Monday, March 22, 2010 12:34 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] flv stop loading / close netconnection
 
 
 Hi list, . Reallly hoping for some help on this.. Making a portfolio
 site that handles both images and video. I have an flv instance and a
sprite
 that contains loaded images. Images and videos work fine. The problem is
if
 I try to go to an image half way through a video downloading. in that
 situation i jump to the image and once the video has finished downloading
it
 suddenly appears. Going from video to video (halfway through a download)
is
 fine as the source is being overwritten each time but when it comes to an
 image I need to use myFLV.getVideoPlayer(0).close() to stop the download.
 That works ok except if I try to go back to the same video which download
I
 terminated then it says  Error: Cannot call reconnect on an http
 connection . I cannot set the source to be  or null either or it pulls
an
 error. . Can anyone give me any help on stopping an FLV from loading once
 you have set the source and then being able to restart that download? .
 Thanks in advance, 
 David   
 _
 We want to hear all your funny, exciting and crazy Hotmail stories. Tell
us
 now

http://clk.atdmt.com/UKM/go/195013117/direct/01/
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 Geen virus gevonden in het binnenkomende-bericht.
 Gecontroleerd door AVG - www.avg.com 
 Versie: 9.0.791 / Virusdatabase: 271.1.1/2763 - datum van uitgifte:
03/22/10
 08:33:00
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Do you have a story that started on Hotmail? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.791 / Virusdatabase: 271.1.1/2763 - datum van uitgifte: 03/22/10
08:33:00

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


Re: [Flashcoders] flv stop loading / close netconnection

2010-03-23 Thread Andrew Kenward
Hi David

when you .close() the connection to the netstream object/video it stops the 
download and you lose the connection. I would also remove it from the 
displaylist. If you then want to go back to that same video after using 
.close() then you have to make a new connection to the video. So reload the 
videoplayer basically. Depending on the users browser it may continue to 
download the progressive video from the browser cache. If you have safari 
browser try looking at the activity window in the windows drop down menu. It 
should show you whats being downloaded on the page.

Andy

Andrew Kenward
a...@milkybrain.co.uk
www.milkybrain.co.uk
07590 609 554

On 22 Mar 2010, at 19:59, flashcoders-requ...@chattyfig.figleaf.com wrote:

 [Flashcoders] flv stop loading / close netconnection


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


RE: [Flashcoders] Recursive:Part II

2010-03-23 Thread Lehr, Theodore
So does it make sense to think that it would be easier to create an org 
chart/flow chart like look if I first put the xml into a multi-dimensional 
array? Or would I be dealing with the same issues?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Recursive:Part II

2010-03-23 Thread kennethkawam...@gmail.com
I won't - the beauty of E4X is to me is that you no longer need to
translate XML into Array or Object like in AS2 days!
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 23 March 2010 11:13, Lehr, Theodore ted_l...@federal.dell.com wrote:
 So does it make sense to think that it would be easier to create an org 
 chart/flow chart like look if I first put the xml into a multi-dimensional 
 array? Or would I be dealing with the same issues?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Counting xml attributes

2010-03-23 Thread Lehr, Theodore
Is there a way to loop through xml and count how many times an attribute has a 
given value?

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


Re: [Flashcoders] Counting xml attributes

2010-03-23 Thread kennethkawam...@gmail.com
xml..*.(@attribute == value).length()
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 23 March 2010 13:20, Lehr, Theodore ted_l...@federal.dell.com wrote:
 Is there a way to loop through xml and count how many times an attribute has 
 a given value?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] xml: counting parents

2010-03-23 Thread Kerry Thompson
Dave Watts wrote:

 So if there's an organizational shuffle of roles, I'd have to rewrite
 my XML schema? Because that sort of thing happens all the time, and a
 rigid hierarchy simply won't be able to match that without frequent
 changes.

I thought of that, which is why I suggested using something like
level1, level2, and putting the actual title as a parameter. There are
drawbacks to that approach, of course, as you and Steven pointed out.

The thing that's missing, so far, is the structure--who reports to
whom, whether it's a direct report or dotted-line, what the hierarchy
is. You have to have that information to have a usable org chart.

Steven is right--you shouldn't have to change your classes when your
organization changes. The only way I see to do that is to include
hierarchical information in the XML, and let your code handle the
display.

Cordially,

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


Re: [Flashcoders] xml: counting parents

2010-03-23 Thread Dave Watts
 The thing that's missing, so far, is the structure--who reports to
 whom, whether it's a direct report or dotted-line, what the hierarchy
 is. You have to have that information to have a usable org chart.

The hierarchy of the XML document itself can provide that information.
The only issue I can think of offhand is how you'd handle matrix
management, but even that could be modeled strictly by hierarchy,
using either duplicate elements or an attribute that lets one element
point to another.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] xml: counting parents

2010-03-23 Thread Gregory Boudreaux
In our organization, I can find any employee ID and their Manager's ID.
Do you have that information available?  I once built an AJAX app that
functioned as a tree view of an organization by knowing who an
employee's manager is.

gregb



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Dave
Watts
Sent: Tuesday, March 23, 2010 9:05 AM
To: Flash Coders List
Subject: Re: [Flashcoders] xml: counting parents

 The thing that's missing, so far, is the structure--who reports to
 whom, whether it's a direct report or dotted-line, what the hierarchy
 is. You have to have that information to have a usable org chart.

The hierarchy of the XML document itself can provide that information.
The only issue I can think of offhand is how you'd handle matrix
management, but even that could be modeled strictly by hierarchy,
using either duplicate elements or an attribute that lets one element
point to another.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] xml: counting parents

2010-03-23 Thread kennethkawam...@gmail.com
I am not a database person but I think in this case you would have 2
tables in the database: one for roles/report lines and one for
employees - they are two completely different data sets. (And the 3rd
table for the relationships between the two.)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Recursive:Part II

2010-03-23 Thread mark . jonkman
Hi 

As Kenneth pointed out, E4X is very powerful by itself avoiding the need to 
break things down into arrays and multidimensional arrays etc. 

As yesterday's threads proved, there are many ways to approach and solve 
building an org chart from XML. Probably one of the simplest routes one could 
take would be to structure the data much like you would do in a database. 
Linking people together through some form of id. Think of how you would build a 
database table that describes an org chart. First off it would probably wind up 
being something like this: 


employeeID (int, allow null false) 
managerID (int, allow null true) 
firstname (nvarchar(50), allow null false) 
lastname (nvarchar(50), allow null false) 
jobTitleID (int, allow null false) 


managerID points back to a employeeID or is null. Every manager is an employee, 
but not all employee's have managers - ie. the CEO (one could claim they report 
to the board but lets ignore that). jobTItleID would point to another table 
that describes all the job titles to keep data size smaller. 

Now if you were to build the XML as a flat file using the above you can use 
the power of E4X to extract your entire hiearchy very easily. Start like this: 

var ceo:XML; 
// expect topDogs to be of length 1 
try 
{ 
ceo:XML = (Employees..*.(@managerID == 0))[0]; // assumes that when extracting 
null from db, you convert null to 0 and all valid ids are  0 and you expect at 
least one item to be 0 
} catch(err:Error){ 
//problems, no matches 
trace(ERROR::[ + getQualifiedClassName(this) + ]::parseEmployees() failed to 
find a CEO.); 
return; 
} 

// now that you know the CEO, you can take a look for his/her direct reports 
(who is he/she a manager of) 

var vicePresidents:XMLList = Employees..*.(@managerID == ceo.employeeID); 

-- 
you get the hint here. You now have a structure that is very fluid, new vps 
could be added, new employees can be added at will. New job titles can be added 
and your parsing in theory would never have to change. 

I'd probably be working this a little more simple than I have above, I'd do it 
recursively if I was building out some form of org chart. I'd probably do 
something like this 

protected var _employees:XML; 

public function parseOrgChart(pRootEmployeeID:int=0):void 
{ 
var subordinates:XMLList = _employees..*.(@managerID == pRootEmployeeID); 
for each(var subordinate:XML in subordinates) 
{ 
parseOrgChart(subordinate.employeeID); 
} 
} 

obviously one would be creating some form of picture or the like so return type 
of void would be either some form of object or the like. 

The alternative of course would be to build the subordinates into child nodes 
of their managers. then you are not operating on the whole file at once with 
your searches. But it also means that if you are moving someone from one 
manager to another you are moving a node from one parent to another. 

Sincerely 
Mark R. Jonkman 




- Original Message - 
From: kennethkawam...@gmail.com 
To: Flash Coders List flashcoders@chattyfig.figleaf.com 
Sent: Tuesday, March 23, 2010 8:08:14 AM GMT -05:00 US/Canada Eastern 
Subject: Re: [Flashcoders] Recursive:Part II 

I won't - the beauty of E4X is to me is that you no longer need to 
translate XML into Array or Object like in AS2 days! 
-- 
Kenneth Kawamoto 
http://www.materiaprima.co.uk/ 

On 23 March 2010 11:13, Lehr, Theodore ted_l...@federal.dell.com wrote: 
 So does it make sense to think that it would be easier to create an org 
 chart/flow chart like look if I first put the xml into a multi-dimensional 
 array? Or would I be dealing with the same issues? 
___ 
Flashcoders mailing list 
Flashcoders@chattyfig.figleaf.com 
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Distribute evenly over half a circle

2010-03-23 Thread Jiri
Does someone know how to distribute a n number of sprite of a top half 
circumference of a cicrle. I have this, but cant figure out the offset.


function plot():void {
var totalNumbers:int = 5;
var slice:Number =   ( 180 / totalNumbers );

var p:Point;

for (var n:Number=0; n  totalNumbers; n++) {
var angle:Number =  slice* n
var rad:Number =  (Math.PI / 180 * angle);
var vx:Number = Math.sin( rad );
var vy:Number = Math.cos( rad );
var c:clip = new clip()
c.x = 300 + vx * 100
c.y = 300 + vy * 100
addChild( c )
}
}

Thnx,

Jri

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


RE: [Flashcoders] Distribute evenly over half a circle

2010-03-23 Thread Mattheis, Erik (MIN - WSW)
Half a circle is PI radians, so you'd increment by Math.PI / (totalNumbers - 1)

Try -

function plot():void {

var totalNumbers:int = 5;
var radius:Number = 30;
var startAt:Number = Math.PI/2;
var arc:Number = Math.PI / (totalNumbers - 1);

for (var angle:Number = startAt; angle  startAt + (arc * 
totalNumbers); angle += arc) {

var c:clip = new clip()
addChild( c )
c.x = Math.sin( angle ) * radius;
c.y = Math.cos( angle ) * radius;

}
}
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 – Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jiri
Sent: Tuesday, March 23, 2010 9:30 AM
To: Flash Coders List
Subject: [Flashcoders] Distribute evenly over half a circle

Does someone know how to distribute a n number of sprite of a top half 
circumference of a cicrle. I have this, but cant figure out the offset.

function plot():void {
var totalNumbers:int = 5;
var slice:Number =   ( 180 / totalNumbers );

var p:Point;

for (var n:Number=0; n  totalNumbers; n++) {
var angle:Number =  slice* n
var rad:Number =  (Math.PI / 180 * angle);
var vx:Number = Math.sin( rad );
var vy:Number = Math.cos( rad );
var c:clip = new clip()
c.x = 300 + vx * 100
c.y = 300 + vy * 100
addChild( c )
}
}

Thnx,

Jri

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

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


[Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Merrill, Jason
Google failing me on an ASDoc question, every article references how to 
document an event declared with a Metadata tag in the Flex framework, but not 
how to document that a regular old Flash AS3 class dispatches a certain event.  
I'm using FlashDevelop which is tied into the Flex 3 SDK's ASDoc and I've tried 
all kinds of @eventType declarations.  How is this done?  I want to add info 
that my class dispatches events MyEvent.ON_WHATEVER1, MyEvent.ON_WHATEVER2, and 
MyEvent.ON_WHATEVER3 etc. like you see in the help docs.  Have everything else 
working that I need with ASDoc.

For example, I see a lot of examples like this:

/**
* Dispatched when the user presses the Button control.
* If the codeautoRepeat/code property is codetrue/code,
* this event is dispatched repeatedly as long as the button stays down.
*
* @eventType mx.events.FlexEvent.BUTTON_DOWN
*/
[Event(name=buttonDown, type=mx.events.FlexEvent)]

But nothing on how to document this event using ASdoc:

private function something():void
{
dispatchEvent(MyEvent.ON_WHATEVER1);
}

One of the things I tried was this:

/**
 * @eventType XMLFileLoaderEvent.LOAD_COMPLETE
 */
dispatchEvent(new 
XMLFileLoaderEvent(XMLFileLoaderEvent.LOAD_COMPLETE));

But that failed in the method - also tried it in above the class declaration.  
How do you handle this?   Thanks,

Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Solutions

Join the Bank of America Flash Platform Community  and visit our Instructional 
Technology Design Blog
(note: these are for Bank of America employees only)


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


Re: [Flashcoders] Distribute evenly over half a circle

2010-03-23 Thread Jiri

tnx Erik.

Jiri

On 23/03/2010 16:33, Mattheis, Erik (MIN - WSW) wrote:

Half a circle is PI radians, so you'd increment by Math.PI / (totalNumbers - 1)

Try -

function plot():void {

var totalNumbers:int = 5;
var radius:Number = 30;
var startAt:Number = Math.PI/2;
var arc:Number = Math.PI / (totalNumbers - 1);

for (var angle:Number = startAt; angle  startAt + (arc * 
totalNumbers); angle += arc) {

var c:clip = new clip()
addChild( c )
c.x = Math.sin( angle ) * radius;
c.y = Math.cos( angle ) * radius;

}
}
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 – Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jiri
Sent: Tuesday, March 23, 2010 9:30 AM
To: Flash Coders List
Subject: [Flashcoders] Distribute evenly over half a circle

Does someone know how to distribute a n number of sprite of a top half
circumference of a cicrle. I have this, but cant figure out the offset.

function plot():void {
var totalNumbers:int = 5;
var slice:Number =   ( 180 / totalNumbers );

var p:Point;

for (var n:Number=0; n  totalNumbers; n++) {
var angle:Number =  slice* n
var rad:Number =  (Math.PI / 180 * angle);
var vx:Number = Math.sin( rad );
var vy:Number = Math.cos( rad );
var c:clip = new clip()
c.x = 300 + vx * 100
c.y = 300 + vy * 100
addChild( c )
}
}

Thnx,

Jri

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

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


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


[Flashcoders] RE: right-click triggers MOUSE_LEAVE?

2010-03-23 Thread Mattheis, Erik (MIN - WSW)
Elsewhere in the code I'd set the textfield's selectable property to false.

When I set the selectable to true in the textfield.click handler, 
Event.MOUSE_LEAVE no longer fires on right-click. Problem solved!

_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis, Erik 
(MIN - WSW)
Sent: Monday, March 22, 2010 2:13 PM
To: Flash Coders List
Subject: [Flashcoders] RE: right-click triggers MOUSE_LEAVE?

Code that illustrates the behavior I'm trying to avoid:

stage.addEventListener(Event.MOUSE_LEAVE, stageOffHandler);

// embed code is a dynamic textfield
embedCode.text = 'Here is somer text';

embedCode.addEventListener(MouseEvent.CLICK, selectAllEmbedCode);

function selectAllEmbedCode(e:MouseEvent) {
e.target.setSelection(0, e.target.text.length);
}

function stageOffHandler(e:Event) {
// I don't want this to fire on RIGHT_CLICK
trace('mouse is off stage or right mouse button clicked');
embedCode.visible = false;

}

_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis, Erik 
(MIN - WSW)
Sent: Monday, March 22, 2010 1:08 PM
To: Flash Coders List
Subject: [Flashcoders] right-click triggers MOUSE_LEAVE?

I want to allow users to copy text from a dynamic text field. When I 
right-click on the textfield the MOUSE_LEAVE event fires (which hides the 
textfield  - I intend for MOUSE_LEAVE to hide the textfield).

Googling, I find no results of someone else experiencing the problem I'm 
assuming this isn't the expected behavior but am at a loss for looking what is 
causing this in my code, there's no RIGHT_CLICK listener and from within a 
class, I have

_stage.stage.addEventListener(Event.MOUSE_LEAVE, videoOffHandler);

where _stage is a reference to the Document class.

_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year

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

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

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


Re: [Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Mark Winterhalder
On Tue, Mar 23, 2010 at 5:18 PM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
 like you see in the help docs.

Are you looking at the same docs I'm looking at?
Because mine only have the String, not the constant name listed under Events.

Here's what I use:

/**
 * Description
 *
 * @see com.foo.CustomEventClass
 */ 
[Event( name=eventName, type=com.foo.CustomEventClass )]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Merrill, Jason
Yes, same docs - I switched mine back to the string, not the constant,
more appropriate, but that's beside the point I guess.  You use @see
instead of @eventType when documenting an event?  

Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mark
Winterhalder
Sent: Tuesday, March 23, 2010 3:24 PM
To: Flash Coders List
Subject: Re: [Flashcoders] ASDoc question re: documenting events

On Tue, Mar 23, 2010 at 5:18 PM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
 like you see in the help docs.

Are you looking at the same docs I'm looking at?
Because mine only have the String, not the constant name listed under
Events.

Here's what I use:

/**
 * Description
 *
 * @see com.foo.CustomEventClass
 */ 
[Event( name=eventName, type=com.foo.CustomEventClass )]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Mark Winterhalder
On Tue, Mar 23, 2010 at 8:36 PM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
  You use @see
 instead of @eventType when documenting an event?

Not anymore, now that I've learned about @eventType. :)

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


Re: [Flashcoders] xml: counting parents

2010-03-23 Thread Karl DeSaulniers
Actually you can have a field in the employees dataset that lists the  
manager overseeing

and when you query your employee you can pull that field
and you can also use a wild card to find all employees under that  
manager.


Best,

Karl



On Mar 23, 2010, at 9:17 AM, kennethkawam...@gmail.com wrote:

I am not a database person but I think in this case you would have 2
tables in the database: one for roles/report lines and one for
employees - they are two completely different data sets. (And the 3rd
table for the relationships between the two.)
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


[Flashcoders] Fit browser around flash content

2010-03-23 Thread Paul Andrews
Usually I just center flash content in the browser window. I have a 
flash movie that navigates to a separate location in a new browser 
window. My client has requested that the new browser window fits the 
flash content. So far the new browser window has stubbornly refused to 
wrap the flash content.. Any suggestions?



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


Re: [Flashcoders] Fit browser around flash content

2010-03-23 Thread Paul Andrews

On 24/03/2010 02:08, Paul Andrews wrote:
Usually I just center flash content in the browser window. I have a 
flash movie that navigates to a separate location in a new browser 
window. My client has requested that the new browser window fits the 
flash content. So far the new browser window has stubbornly refused to 
wrap the flash content.. Any suggestions?


window.resizeTo() seems to do the trick..
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders