[Flashcoders] Levels and Classes

2006-03-30 Thread Peter Måseide
I have a base swf (_level0) and I´m loading an swf into _level2 and  
another swf into _level3.
The swfs in _level2 and _level3 both use classes with the same name,  
but the content of the classes are different.
I found out that when I loaded the _level3-swf the classes in the  
_level2-swf was replaced with the new ones, and the result was chaos.
Is there a way to avoid this problem, except from renaming the  
classes and recompile?


Best regards
Peter Måseide

Peter Måseide - [EMAIL PROTECTED] - Mob 40858675

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: diagonal slices of a grid (was: Displaying objects)

2006-03-30 Thread Andreas Weber
To get the indeces of the tiles in diagonal 'rows' or 'slices' in a grid you
could do something like this:

function getDiagonalGridSlices(numRows:Number, numCols:Number,
startingCorner:String):Array{
var a1 = new Array(), a2 = new Array(), c = 0;
for(var i=0; inumCols; i++){
a2[i] = new Array();
for(var j=0; jnumRows; j++){
a2[i][j] = c;
c++;
}
}
if(startingCorner == 'topLeft' || startingCorner == 'bottomRight'){
for(var i=0; inumCols*2 + 1; i++){
a1[i] = new Array();
var ii = i;
for(var j=0; jnumRows; j++){
if(a2[ii][j] != undefined){
a1[i].push(a2[ii][j]);
}
ii--;
if(ii  0){
break;
}
}
}
if(startingCorner == 'bottomRight'){
a1.reverse();
}
}else if(startingCorner == 'topRight' || startingCorner == 
'bottomLeft'){
// todo - adjust accordingly
}
return a1;
}



// for testing
// In the library: a 50x50 shape, linkage name 'square'

import mx.transitions.Tween;
import mx.transitions.easing.*;


numRows = 3;
numCols = 5;
tileWidth = tileHeight = 50;

diagonalGridSlices = getDiagonalGridSlices(numRows, numCols, 'topLeft');

tiles = createTiles(numRows, numCols, tileWidth, tileHeight);
m = 0;
buildTiles = setInterval(fadeTiles, 100);

function createTiles(numRows:Number, numCols:Number, tileWidth:Number,
tileHeight:Number):Array{
var tiles = new Array();
for(var i=0; inumRows*numCols; i++){
  tiles[i] = _root.attachMovie(square, tile + i + _mc, i, {_x:i %
numRows * tileWidth,_y:Math.floor(i / numRows) * tileHeight, _alpha:0});
}
return tiles;
}

function fadeTiles():Void{
if (m == diagonalGridSlices.length){
clearInterval(buildTiles);
} else {
for(var i=0, len=diagonalGridSlices[m].length; ilen; i++){
new Tween(tiles[diagonalGridSlices[m][i]], _alpha,
Regular.easeInOut, 0, 100, 35,false);
}
m++;
}
}

hth
--
Andreas Weber
motiondraw.com




Hehe, all good.  Thanks John.  I'm sitting here trying to write something
mathematically that works.  Turns out I am the suck at math, so it's making
this complicated.  Hand coding the array would be laborsome and wouldn't
allow for extensibility.

Grrr...


fM.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Radiobutton - Dispatch event on code selected?

2006-03-30 Thread Danny Kodicek


It´s possible to make the radio button dispatch the click event if i
select it by code?

Not directly, but you could add something like this (I haven't used the rb 
component for a while, but I think this would work


radioButton.autoClick=function() {
this.selected=true
linkType_cml.setType()
}

Then to select the radio button you just call radioButton.autoClick(), and 
your event should be dispatched.


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] PrintJob causes Abort Script error message.

2006-03-30 Thread

I agree with your sentiments Ron, that future designers of RIAs authored with 
Flash need to be aware of this issue. 

To clarify my own situation, I have inherited half-way through development an 
extremely complex system, that has just gone live with several thousand users. 
The system is a joint effort by several organisations. Roll-out has been 
exceptionally smooth. The printing functionality was one of the many late spec 
changes that the client asked for. As the system is composed of many V2-style 
components, many of which use interval timers to get around initialization 
issues, and has a lot of real-time financial data transfer going on in the 
background, setintervals, etc etc, that to reengineer it at this stage is 
totally out of the question.

I believe that it is up to Macromedia to engineer the Flash player and the 
intrinsic classes that we developers can do nothing about, so that they work 
robustly and as expected. They could at least amend the documentaion for 
PrintJob to warn developers of the issues.




 --- On Wed 03/29, Ron Wheeler  [EMAIL PROTECTED]  wrote:
From: Ron Wheeler [mailto: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Date: Wed, 29 Mar 2006 09:04:19 -0500
Subject: Re: [Flashcoders] PrintJob causes Abort Script error message.
  I would suggest setting the timeout to 7200 seconds and then test it to see 
 what happens if you leave it sitting over lunch.Please warn us when you are 
 going to do this, since from the tone of the conversation, there is some 
 sense that this will cause the end of civilization as we know it.I suspect 
 that the impact will be considerably less and the users of the application 
 may be able to deal with any repercussions by changing their reaction to a 
 dialogue box - it should not be taken as an invitation to go for a coffee.If 
 Macromedia feels OK about the single threading issue, we have to cut 
 ourselves some slack about dealing with it.It certainly is a cautionary note 
 to designers of new applications that you should consider designing in some 
 way to easily shutdown all of the animation and communication functions 
 while setting up a print job. The effect on a communication link of an 
 extended timeout might be one of the problems that you encounter since the 
 other end might 
decide that you have died over lunch and cut its end. If you are 
re-establishing the link (authorization???) on each data transfer, this may not 
be a problem.RonRon/training.figleaf.com

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


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

2006-03-30 Thread A.Cicak
depends, if you ask customers to pay for that change, it may not be too bad.

Andy Johnston [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
I couldnt give a stuff about the lost lawsuit, 0.001% revenue loss for 
MS compared to all legacy flash sites that I will have to dig up log in 
details for and fix, much bigger impact for me personally than bill will 
fell personally

I'll wager microsoft is a wee bit more upset about the eolas patent than 
you
are...

Here is a workaround for it...
http://www.flashinto.com/phpBB2/viewtopic.php?t=3215sid=a69d2b96fbe275f8ae573b0ad09600c0

On 3/29/06, Andy Johnston [EMAIL PROTECTED] wrote:

anyone care to comment on this little gem?

http://www.eweek.com/article2/0,1895,1943847,00.asp

looks bad to me, thats a lot of reauthoring
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Radiobutton - Dispatch event on code selected?

2006-03-30 Thread Aaron Smith

Sure its possible!!!

Marcelo,

here is a solution:

put two radio buttons on the stage and call it rb1 / rb2. then in the 
actions layer put:


import mx.controls.RadioButton;
import mx.utils.Delegate;
import mx.events.EventDispatcher;

var dispatchEvent:Function;
EventDispatcher.initialize(this);

//create prototype reference for RadioButton
var osv = _global.mx.controls.RadioButton.prototype;

//hold onto the old setSelected method ( The intrinsic set Selected 
method is in SimpleButton, RadioButton inherits from that. the set 
method simply calls setSelected.  )

osv.oldSetSelected = osv.setSelected;
osv.oldOnRelease = osv.onRelease;

//overwrite onrelease to deal with multiple events being dispatched.
osv.onRelease = function():Void
{
   this['wasReleased'] = true;
   this.oldOnRelease.apply(this,[]);
}

//overwrite the old method with new method.
osv.setSelected = function(val:Boolean):Void
{
   if( !this['wasReleased'] )
   {
   if( val == true )
   {
   this.dispatchEvent( { type:'codeSelected' } );
   this.oldSetSelected.apply( this,[ true ] );
   }
   }
   else
   {
   this.oldSetSelected.apply( this,[ true ] );
   }
   this['wasReleased'] = false;
}

//add listener to radio button.
rb1.addEventListener('codeSelected', Delegate.create(this, 
handleCodeSelect));

rb1.addEventListener('click', Delegate.create(this, handleClick));

//handle code selected event
function handleCodeSelect():Void
{
   trace(codeSelected);
}

//handle click event
function handleClick():Void
{
   trace(CLICK);
}

//set an interval to do some testing on the codeSelected event
tmpInt = setInterval(setSel,1000,true);

//set the selected property
function setSel():Void
{
   //trigger the event
   rb1.selected = true;
}



test that out.. you'll see that for testing i just set an interval to 
change the selected property to true.. the event gets dispatched every 
time the selected property is set to true.  Also worth mentioning you 
have to update the onRelease method to deal with multiple events being 
dispatched. Also don't name the codeSelected event as click, as that is 
not whats happening and would cause confusion.


rb2 is never used in this example.. just use that to click back and 
forth between... also try commenting out the interval just for more 
testing.. you'll see that just the click event fires..


smith




Danny Kodicek wrote:



It´s possible to make the radio button dispatch the click event if i
select it by code?

Not directly, but you could add something like this (I haven't used 
the rb component for a while, but I think this would work


radioButton.autoClick=function() {
this.selected=true
linkType_cml.setType()
}

Then to select the radio button you just call radioButton.autoClick(), 
and your event should be dispatched.


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] Radiobutton - Dispatch event on code selected?

2006-03-30 Thread Danny Kodicek
Crap, I keep forgetting about Dispatchers. Apologies - been coding in MX too 
long.


Danny

- Original Message - 
From: Aaron Smith [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 30, 2006 9:40 AM
Subject: Re: [Flashcoders] Radiobutton - Dispatch event on code selected?


Sure its possible!!!

Marcelo,

here is a solution:

put two radio buttons on the stage and call it rb1 / rb2. then in the
actions layer put:

import mx.controls.RadioButton;
import mx.utils.Delegate;
import mx.events.EventDispatcher;

var dispatchEvent:Function;
EventDispatcher.initialize(this);

//create prototype reference for RadioButton
var osv = _global.mx.controls.RadioButton.prototype;

//hold onto the old setSelected method ( The intrinsic set Selected
method is in SimpleButton, RadioButton inherits from that. the set
method simply calls setSelected.  )
osv.oldSetSelected = osv.setSelected;
osv.oldOnRelease = osv.onRelease;

//overwrite onrelease to deal with multiple events being dispatched.
osv.onRelease = function():Void
{
   this['wasReleased'] = true;
   this.oldOnRelease.apply(this,[]);
}

//overwrite the old method with new method.
osv.setSelected = function(val:Boolean):Void
{
   if( !this['wasReleased'] )
   {
   if( val == true )
   {
   this.dispatchEvent( { type:'codeSelected' } );
   this.oldSetSelected.apply( this,[ true ] );
   }
   }
   else
   {
   this.oldSetSelected.apply( this,[ true ] );
   }
   this['wasReleased'] = false;
}

//add listener to radio button.
rb1.addEventListener('codeSelected', Delegate.create(this,
handleCodeSelect));
rb1.addEventListener('click', Delegate.create(this, handleClick));

//handle code selected event
function handleCodeSelect():Void
{
   trace(codeSelected);
}

//handle click event
function handleClick():Void
{
   trace(CLICK);
}

//set an interval to do some testing on the codeSelected event
tmpInt = setInterval(setSel,1000,true);

//set the selected property
function setSel():Void
{
   //trigger the event
   rb1.selected = true;
}



test that out.. you'll see that for testing i just set an interval to
change the selected property to true.. the event gets dispatched every
time the selected property is set to true.  Also worth mentioning you
have to update the onRelease method to deal with multiple events being
dispatched. Also don't name the codeSelected event as click, as that is
not whats happening and would cause confusion.

rb2 is never used in this example.. just use that to click back and
forth between... also try commenting out the interval just for more
testing.. you'll see that just the click event fires..

smith




Danny Kodicek wrote:



It´s possible to make the radio button dispatch the click event if i
select it by code?

Not directly, but you could add something like this (I haven't used the rb 
component for a while, but I think this would work


radioButton.autoClick=function() {
this.selected=true
linkType_cml.setType()
}

Then to select the radio button you just call radioButton.autoClick(), and 
your event should be dispatched.


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


RE: [Flashcoders] Radiobutton - Dispatch event on code selected?

2006-03-30 Thread Lee McColl-Sylvester
Get with the times... Cor, first you're talking bout Director, then I hear 
you're still using MX... Tsk...  You're obviously not on the forefront of 
technology, huh? ;-)

Lee

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek
Sent: 30 March 2006 09:46
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Radiobutton - Dispatch event on code selected?

Crap, I keep forgetting about Dispatchers. Apologies - been coding in MX too 
long.

Danny

- Original Message - 
From: Aaron Smith [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 30, 2006 9:40 AM
Subject: Re: [Flashcoders] Radiobutton - Dispatch event on code selected?


Sure its possible!!!

Marcelo,

here is a solution:

put two radio buttons on the stage and call it rb1 / rb2. then in the
actions layer put:

import mx.controls.RadioButton;
import mx.utils.Delegate;
import mx.events.EventDispatcher;

var dispatchEvent:Function;
EventDispatcher.initialize(this);

//create prototype reference for RadioButton
var osv = _global.mx.controls.RadioButton.prototype;

//hold onto the old setSelected method ( The intrinsic set Selected
method is in SimpleButton, RadioButton inherits from that. the set
method simply calls setSelected.  )
osv.oldSetSelected = osv.setSelected;
osv.oldOnRelease = osv.onRelease;

//overwrite onrelease to deal with multiple events being dispatched.
osv.onRelease = function():Void
{
this['wasReleased'] = true;
this.oldOnRelease.apply(this,[]);
}

//overwrite the old method with new method.
osv.setSelected = function(val:Boolean):Void
{
if( !this['wasReleased'] )
{
if( val == true )
{
this.dispatchEvent( { type:'codeSelected' } );
this.oldSetSelected.apply( this,[ true ] );
}
}
else
{
this.oldSetSelected.apply( this,[ true ] );
}
this['wasReleased'] = false;
}

//add listener to radio button.
rb1.addEventListener('codeSelected', Delegate.create(this,
handleCodeSelect));
rb1.addEventListener('click', Delegate.create(this, handleClick));

//handle code selected event
function handleCodeSelect():Void
{
trace(codeSelected);
}

//handle click event
function handleClick():Void
{
trace(CLICK);
}

//set an interval to do some testing on the codeSelected event
tmpInt = setInterval(setSel,1000,true);

//set the selected property
function setSel():Void
{
//trigger the event
rb1.selected = true;
}



test that out.. you'll see that for testing i just set an interval to
change the selected property to true.. the event gets dispatched every
time the selected property is set to true.  Also worth mentioning you
have to update the onRelease method to deal with multiple events being
dispatched. Also don't name the codeSelected event as click, as that is
not whats happening and would cause confusion.

rb2 is never used in this example.. just use that to click back and
forth between... also try commenting out the interval just for more
testing.. you'll see that just the click event fires..

smith




Danny Kodicek wrote:


 It´s possible to make the radio button dispatch the click event if i
 select it by code?

 Not directly, but you could add something like this (I haven't used the rb 
 component for a while, but I think this would work

 radioButton.autoClick=function() {
 this.selected=true
 linkType_cml.setType()
 }

 Then to select the radio button you just call radioButton.autoClick(), and 
 your event should be dispatched.

 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] PrintJob causes Abort Script error message.

2006-03-30 Thread Steven Sacks
 As the 
 system is composed of many V2-style components, many of which 
 use interval timers to get around initialization issues, and 
 has a lot of real-time financial data transfer going on in 
 the background, setintervals, etc etc, that to reengineer it 
 at this stage is totally out of the question.

Well, it always sucks to inherit somebody else's bad work.  I've done it
many times, and almost always it would have been better to rewrite it myself
(and sometimes I did).

PrintJob has a ton of problems.  It's a terribly written and poorly
documented class.

-Steven

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

2006-03-30 Thread Ramon Miguel M. Tayag
The classes in level2 and 3 have the same name but do different
things?  You must find a way to make them different.  Can you change
the name of the class?

On 3/30/06, Peter Måseide [EMAIL PROTECTED] wrote:
 I have a base swf (_level0) and I´m loading an swf into _level2 and
 another swf into _level3.
 The swfs in _level2 and _level3 both use classes with the same name,
 but the content of the classes are different.
 I found out that when I loaded the _level3-swf the classes in the
 _level2-swf was replaced with the new ones, and the result was chaos.
 Is there a way to avoid this problem, except from renaming the
 classes and recompile?

 Best regards
 Peter Måseide
 
 Peter Måseide - [EMAIL PROTECTED] - Mob 40858675

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

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



--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Radiobutton - Dispatch event on code selected?

2006-03-30 Thread Danny Kodicek
Get with the times... Cor, first you're talking bout Director, then I hear 
you're still using MX... Tsk...  You're obviously not on the forefront of 
technology, huh? ;-)


It's true. The problem is, I can't quite see the point of getting completely 
up to speed with AS2 when AS3 is just round the corner, so I'm treading 
water to some extent. Also, Director's only just become able to deal with 
Flash 8 content, so when working with Flash in Director, you're always a bit 
limited.


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] Radiobutton - Dispatch event on code selected?

2006-03-30 Thread Marcelo Volmaro

Thank you both...
I found another way (not an elegant one, but it works):

radioButton.onRelease();

Regards,

On Thu, 30 Mar 2006 05:40:34 -0300, Aaron Smith [EMAIL PROTECTED]  
wrote:



Sure its possible!!!

Marcelo,

here is a solution:

put two radio buttons on the stage and call it rb1 / rb2. then in the  
actions layer put:


import mx.controls.RadioButton;
import mx.utils.Delegate;
import mx.events.EventDispatcher;

var dispatchEvent:Function;
EventDispatcher.initialize(this);

//create prototype reference for RadioButton
var osv = _global.mx.controls.RadioButton.prototype;

//hold onto the old setSelected method ( The intrinsic set Selected  
method is in SimpleButton, RadioButton inherits from that. the set  
method simply calls setSelected.  )

osv.oldSetSelected = osv.setSelected;
osv.oldOnRelease = osv.onRelease;

//overwrite onrelease to deal with multiple events being dispatched.
osv.onRelease = function():Void
{
this['wasReleased'] = true;
this.oldOnRelease.apply(this,[]);
}

//overwrite the old method with new method.
osv.setSelected = function(val:Boolean):Void
{
if( !this['wasReleased'] )
{
if( val == true )
{
this.dispatchEvent( { type:'codeSelected' } );
this.oldSetSelected.apply( this,[ true ] );
}
}
else
{
this.oldSetSelected.apply( this,[ true ] );
}
this['wasReleased'] = false;
}

//add listener to radio button.
rb1.addEventListener('codeSelected', Delegate.create(this,  
handleCodeSelect));

rb1.addEventListener('click', Delegate.create(this, handleClick));

//handle code selected event
function handleCodeSelect():Void
{
trace(codeSelected);
}

//handle click event
function handleClick():Void
{
trace(CLICK);
}

//set an interval to do some testing on the codeSelected event
tmpInt = setInterval(setSel,1000,true);

//set the selected property
function setSel():Void
{
//trigger the event
rb1.selected = true;
}



test that out.. you'll see that for testing i just set an interval to  
change the selected property to true.. the event gets dispatched every  
time the selected property is set to true.  Also worth mentioning you  
have to update the onRelease method to deal with multiple events being  
dispatched. Also don't name the codeSelected event as click, as that is  
not whats happening and would cause confusion.


rb2 is never used in this example.. just use that to click back and  
forth between... also try commenting out the interval just for more  
testing.. you'll see that just the click event fires..


smith




Danny Kodicek wrote:



It´s possible to make the radio button dispatch the click event if i
select it by code?

Not directly, but you could add something like this (I haven't used the  
rb component for a while, but I think this would work


radioButton.autoClick=function() {
this.selected=true
linkType_cml.setType()
}

Then to select the radio button you just call radioButton.autoClick(),  
and your event should be dispatched.


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




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

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


[Flashcoders] shared library preloading problem

2006-03-30 Thread Nitin
Hi List,

Am facing a strange issue using shared libraries. I'll describe the detail :

1. 2 shared libraries. 141kb and 40kb approx.

2. The main movie preloads the 2 shared libraries in the first frame using
MovieClipLoader. When both the shared libraries get loaded, onLoadComplete
the control goes and stops at frame label called module.

3. the frame label module, has content from the shared library.

The preloader is working fine.

PROBLEM : after preloading the movie stops just one frame before the frame
labeled module. It doesn't goto frame module. 

However if I remove the shared library content from the frame and use any
other content it works fine.


Any ideas... 
thanks in advance...

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

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


Re: [Flashcoders] mp3 with FLVPlayback component?

2006-03-30 Thread mika
I was about to ask the exact same question. only workaround I found is to
encode the mp3s as flv (of course) but it will require a lot more encoding
time.
Anyone?

mika


On 3/28/06, ojorus [EMAIL PROTECTED] wrote:

 Hello,

 Is there an easy (or any) way of playing mp3 with the FLVPlayback
 component?
 (Flash 8), or do I have to use the old Media Playback component?

 Thanks!

 ojorus



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

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

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

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


[Flashcoders] Flash and various date formats ...

2006-03-30 Thread Stephen Ford
I have a little flash app. that pulls in various dates that are formatted in 
numerous ways.
 
Before I look at creating a class that will return me a standard way to display 
the date, has anyone done anything like this before or know where I can 
download something similar to use or build on ?.
 
To clarify, the following list shows the date formats (there's a few) I am 
dealing with:
 
Thu, 30 Mar 2006 10:25:40 GMT
Wed, 29 Mar 2006 21:00:00 PST
Wed, 29 Mar 2006 09:00:00 EST
Mar 24, 2006
Mon, 13 Mar 2006 09:00:03 +
2006-03-30T03:33:00+00:00
Thu, 30 Mar 2006 05:24:46 -0500
Tue, 28 Mar 2006 18:19:40 EDT
Thu, 30 Mar 2006 17:32:00 +1000
Thu, 30 Mar 2006 00:00:00 -0800
 
Actually, now that I think of it, maybe I should compare these dates and the 
exact time on the users PC so that I can display the time difference between 
the two, like how digg shows how long ago a story was submitted (e.g: 15 hours, 
43 minutes ago).
 
Anyone advise, maybe I'm being lazy and should just dive in.
 
Thanks,
Stevros.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Levels and Classes

2006-03-30 Thread Peter Måseide
Thats my only solution so far. It works OK (except for an ugly rename  
job) as long as I´m in controll of all the classes. But if I get  
anothers authors swf with same-name classes and want to load it I can 
´t see an easy solution.



Den 30. mar. 2006 kl. 11.23 skrev Ramon Miguel M. Tayag:


The classes in level2 and 3 have the same name but do different
things?  You must find a way to make them different.  Can you change
the name of the class?

On 3/30/06, Peter Måseide [EMAIL PROTECTED] wrote:

I have a base swf (_level0) and I´m loading an swf into _level2 and
another swf into _level3.
The swfs in _level2 and _level3 both use classes with the same name,
but the content of the classes are different.
I found out that when I loaded the _level3-swf the classes in the
_level2-swf was replaced with the new ones, and the result was chaos.
Is there a way to avoid this problem, except from renaming the
classes and recompile?

Best regards
Peter Måseide

Peter Måseide - [EMAIL PROTECTED] - Mob 40858675

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

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




--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




Peter Måseide - [EMAIL PROTECTED] - Mob 40858675

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

2006-03-30 Thread Peter Måseide

try {
loadMovieNum(filename, 3);
} catch (error:Error) {
trace(An error!);
}

If filename is a path to a non-existing file i want the code in the  
catch to be executed.

I only get an
Error opening URL file:///Macintosh%20HD/... swf
in my Output window, either if I use try-catch or  not.

Any suggestions?
Thanks in adwane!

Peter


Peter Måseide - [EMAIL PROTECTED] - Mob 40858675

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

2006-03-30 Thread Peter Måseide
No, they´re not. Thank you for the advice! I´ll stick to it in the  
future.


Peter

Den 30. mar. 2006 kl. 14.09 skrev  [EMAIL PROTECTED]:



Just a thought but are your classes in a package hierarchy with  
class names qualified to a package? That should stop any class name  
conflicts and will help to organise your code in directories on  
your hard drive.





 --- On Thu 03/30, =?ISO-8859-1?Q?Peter_M=E5seide?=   
[EMAIL PROTECTED]  wrote:

From: =?ISO-8859-1?Q?Peter_M=E5seide?= [mailto: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Date: Thu, 30 Mar 2006 13:58:23 +0200
Subject: Re: [Flashcoders] Levels and Classes

Thats my only solution so far. It works OK (except for an ugly  
rename  job) as long as I´m in controll of all the classes. But if  
I get  anothers authors swf with same-name classes and want to load  
it I can ´t see an easy solution.Den 30. mar. 2006 kl. 11.23 skrev  
Ramon Miguel M. Tayag: The classes in level2 and 3 have the same  
name but do different things?  You must find a way to make them  
different.  Can you change the name of the class? On 3/30/06,  
Peter Måseide [EMAIL PROTECTED] wrote: I have a base swf (_level0)  
and I´m loading an swf into _level2 and another swf into  
_level3. The swfs in _level2 and _level3 both use classes with  
the same name, but the content of the classes are different. I  
found out that when I loaded the _level3-swf the classes in the  
_level2-swf was replaced with the new ones, and the result was  
chaos. Is there a way to avoid this problem, except from renaming  
the classes and recompile? Best regards Peter Måseide
 Peter  
Måseide - [EMAIL PROTECTED] - Mob 40858675  
___  
Flashcoders@chattyfig.figleaf.com To change your subscription  
options or search the archive: http://chattyfig.figleaf.com/ 
mailman/listinfo/flashcoders Brought to you by Fig Leaf  
Software Premier Authorized Adobe Consulting and Training  
http://www.figleaf.com http://training.figleaf.com -- Ramon  
Miguel M. Tayag Managing Director Quirkworks  
___  
Flashcoders@chattyfig.figleaf.com To change your subscription  
options or search the archive: http://chattyfig.figleaf.com/ 
mailman/listinfo/flashcoders Brought to you by Fig Leaf Software  
Premier Authorized Adobe Consulting and Training http:// 
www.figleaf.com http:// 
training.figleaf.com_ 
___Peter Måseide - [EMAIL PROTECTED] - Mob
[EMAIL PROTECTED] 
ttyfig.figleaf.comTo change your subscription options or search the  
archive:http://chattyfig.figleaf.com/mailman/listinfo/ 
flashcodersBrought to you by Fig Leaf SoftwarePremier Authorized  
Adobe Consulting and Traininghttp://www.figleaf.comhttp:// 
training.figleaf.com


___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


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

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




Peter Måseide - [EMAIL PROTECTED] - Mob 40858675

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

2006-03-30 Thread Sönke Rohde
You should use the MovieClipLoader-Class which fires an onLoadError-event.
There are many examples in the helpfiles.

Cheers,
Sönke 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Peter Måseide
 Sent: Thursday, March 30, 2006 2:10 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] what´s the catch?
 
 try {
   loadMovieNum(filename, 3);
 } catch (error:Error) {
   trace(An error!);
 }
 
 If filename is a path to a non-existing file i want the code in the  
 catch to be executed.
 I only get an
 Error opening URL file:///Macintosh%20HD/... swf
 in my Output window, either if I use try-catch or  not.
 
 Any suggestions?
 Thanks in adwane!
 
 Peter
 
 
 Peter Måseide - [EMAIL PROTECTED] - Mob 40858675
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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: what´s the catch?

2006-03-30 Thread




Someone please correct me if I'm wrong, but the Macromedia library functions 
don't throw errors that are catchable in Actionscript using try/catch (unlike 
for example, Java libraries, which are all designed to throw errors which are 
catchable by the developer).

The try/catch clause in Actionscript is only really useful in detecting your 
own predefined errors. 

However there is some debate in the Software Engineering world at large as to 
the usefulness of try/catch clauses, as using it makes source code much harder 
to read and understand, and causes more lines of code to be written.

 --- On Thu 03/30, =?ISO-8859-1?Q?Peter_M=E5seide?=  [EMAIL PROTECTED]  wrote:
From: =?ISO-8859-1?Q?Peter_M=E5seide?= [mailto: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Date: Thu, 30 Mar 2006 14:10:08 +0200
Subject: what´s the catch?

try {   loadMovieNum(filename, 3);} catch (error:Error) {   
trace(An error!);}If filename is a path to a non-existing file i want the 
code in the  catch to be executed.I only get anError opening URL 
file:///Macintosh%20HD/... swfin my Output window, either if I use 
try-catch or  not.Any suggestions?Thanks in 
adwane!PeterPeter Måseide - 
[EMAIL PROTECTED] - Mob [EMAIL PROTECTED] change your subscription options or 
search the 
archive:http://chattyfig.figleaf.com/mailman/listinfo/flashcodersBrought to you 
by Fig Leaf SoftwarePremier Authorized Adobe Consulting and 
Traininghttp://www.figleaf.comhttp://training.figleaf.com

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


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

2006-03-30 Thread Derek Vadneau
loadMovieNum (loadMovie, loadVariables, etc.) is an asynchronous function, 
meaning it doesn't return immediately. If it did, it would mean Flash 
would have to halt all execution until it received a response from a 
server in order to get the SWF either completely loaded or at least get 
the header info to know if the file was found. In either case this would 
cause the player to hang while it waited for a response.

Flash's load commands are not executed at the point you write them. The 
calls are queued and executed at the end of the frame actions. The values 
you pass are actually evaluated at that point, but the call to the outside 
world doesn't occur then.

You'll need to use another mechanism to see if the call was successful or 
not. The MovieClipLoader class, for example, has multiple events, 
including onLoadError.

One word of caution though, MovieClipLoader works for the majority of 
cases, but I have seen cases where the network connection fails yet 
MovieClipLoader calls onLoadComplete - very annoying.


Derek Vadneau


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Peter 
Måseide
Sent: Thursday, March 30, 2006 7:10 AM
To: Flashcoders mailing list
Subject: [Flashcoders] what´s the catch?


try {
loadMovieNum(filename, 3);
} catch (error:Error) {
trace(An error!);
}

If filename is a path to a non-existing file i want the code in the
catch to be executed.
I only get an
Error opening URL file:///Macintosh%20HD/... swf
in my Output window, either if I use try-catch or  not.

Any suggestions?
Thanks in adwane!

Peter


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] PrintJob causes Abort Script error message.

2006-03-30 Thread Ron Wheeler

Let us know how it all works out.
Good luck.

Ron

[EMAIL PROTECTED] wrote:
I agree with your sentiments Ron, that future designers of RIAs authored with Flash need to be aware of this issue. 


To clarify my own situation, I have inherited half-way through development an 
extremely complex system, that has just gone live with several thousand users. 
The system is a joint effort by several organisations. Roll-out has been 
exceptionally smooth. The printing functionality was one of the many late spec 
changes that the client asked for. As the system is composed of many V2-style 
components, many of which use interval timers to get around initialization 
issues, and has a lot of real-time financial data transfer going on in the 
background, setintervals, etc etc, that to reengineer it at this stage is 
totally out of the question.

I believe that it is up to Macromedia to engineer the Flash player and the 
intrinsic classes that we developers can do nothing about, so that they work 
robustly and as expected. They could at least amend the documentaion for 
PrintJob to warn developers of the issues.




 --- On Wed 03/29, Ron Wheeler  [EMAIL PROTECTED]  wrote:
From: Ron Wheeler [mailto: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Date: Wed, 29 Mar 2006 09:04:19 -0500
Subject: Re: [Flashcoders] PrintJob causes Abort Script error message.
  
 I would suggest setting the timeout to 7200 seconds and then test it to see what happens if you leave it sitting over lunch.Please warn us when you are going to do this, since from the tone of the conversation, there is some sense that this will cause the end of civilization as we know it.I suspect that the impact will be considerably less and the users of the application may be able to deal with any repercussions by changing their reaction to a dialogue box - it should not be taken as an invitation to go for a coffee.If Macromedia feels OK about the single threading issue, we have to cut ourselves some slack about dealing with it.It certainly is a cautionary note to designers of new applications that you should consider designing in some way to easily shutdown all of the animation and communication functions while setting up a print job. The effect on a communication link of an extended timeout might be one of the problems that you encounter since the other end might 
  

decide that you have died over lunch and cut its end. If you are 
re-establishing the link (authorization???) on each data transfer, this may not 
be a problem.RonRon/training.figleaf.com

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


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

2006-03-30 Thread Yotam Laufer
Hello List,

What are the options if any to DRM FLVs? Now that I've discovered the VLC
player plays FLVs very well they don't seem so hard to handle anymore. I
require a real method of DRMing.
Do streaming FLVs get cached? Is there a way to disable the caching?

Thanks, Yotam.

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

2006-03-30 Thread Sönke Rohde
There is no real DRM using FLV. With the use of the Flash Media Server you
can avoid caching the FLVs.

Cheers,
Sönke 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Yotam Laufer
 Sent: Thursday, March 30, 2006 3:39 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] FLV and DRM
 
 Hello List,
 
 What are the options if any to DRM FLVs? Now that I've 
 discovered the VLC
 player plays FLVs very well they don't seem so hard to handle 
 anymore. I
 require a real method of DRMing.
 Do streaming FLVs get cached? Is there a way to disable the caching?
 
 Thanks, Yotam.
 
 --
 

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

2006-03-30 Thread Keith Takayesu
(Sorry for the cross-post, I accidentally sent it to FlashObject first.)

Hey all, need to see if anyone has had this problem:

- create a V2 Component (say C1) that uses a ComboBox, Text and
MovieClip
- create a 2nd V2 Component (C2) that instantiates a given number of
C1s

- Create a test FLA that creates 2 instances of C1 and 1 instance of C2.
It also creates two ComboBoxes used to feed test parameters to the C1
and C2 instances.
- As part of this, I perform a DestroyObject on C2 and create another
instance (with a different parameters and linkage name C3).

The Problem:
1) DestroyObject does not seem to have a direct effect. The objects are
still there.
2) For some reason, it clobbers ALL the ComboBox components on stage -
the two normal ComboBoxes AND the 2 instances of C1 on the stage (but
NOT in the C2 or C3 component instances)! When I say clobber, I mean
that the ComboBoxes no longer function normally. One reacts to click,
but is impossibly narrow. The other one only shows an arrow when pulled
down!

Has anyone else seen this problem and dealt with it??

Thanks,
Keith

La version française suit le texte anglais.



This email may contain privileged and/or confidential information, and the Bank 
of
Canada does not waive any related rights. Any distribution, use, or copying of 
this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately 
from
your system and notify the sender promptly by email that you have done so. 



Le présent courriel peut contenir de l'information privilégiée ou 
confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute 
diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires désignés est interdite Si vous 
recevez
ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans 
délai à
l'expéditeur un message électronique pour l'aviser que vous avez éliminé de 
votre
ordinateur toute copie du courriel reçu.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] MTASC and spaces in classpath

2006-03-30 Thread Sam Thorne

Hi all,

I'm getting the error Class not found Support.Macromedia.Flash when  
my classpath is
/Users/sam/Library/Application Support/Macromedia/Flash 8/en/ 
Configuration/Classes


Seems Mtasc doesn't like classpaths which have spaces in them on OS  
X, it tries to interpret the a directory name (such as Application  
Support, where the core classes are) as separate classes.


I can't symlink because Eclipse sees a symlink as a file, and I can't  
use an alias because it isn't recognised as a folder even though I  
can browse into it.


Any ideas?

Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Counter in function assigned inside a for loop

2006-03-30 Thread Alejandro Diaz
Heya guys,

I am assigning the button behaviors to a set of movieclips through a
for loop, however, I am coming up against something where I know what
is happening, but don't know how to fix it.

Basically, inside that for loop I assign each of the button behaviors
as a function but I don't know how to evaluate the counter in the
function, rather than having it just literally written into it.
instead of section_+ _root.i  being  section_1, section_2, etc...it
is literally written in each of the buttons as section_+_root.i  and
so each button has exactly the same code and all go to the last
section (last value of i) when clicked.

How can I have it so that each function has the proper code it in? is
this even the proper way to go about this? Is there a way to 'force'
the evaluation of that counter in that function when it is being
assigned to the MC?



code:

function buttonBehavior ():Void  {
for (_root.i=1;_root.i8;_root.i++) {
_root[mb_+_root.i].onRollOver = function() {
   this.gotoAndPlay(over);
}
_root[mb_+_root.i].onRollOut = function() {
   this.gotoAndPlay(out);
}
_root[mb_+_root.i].onRelease = function() {
   _root.gotoAndPlay(display_frame);
   loadMovie(section_+_root.i+.swf, load_target);
}


}
}

(btw, I added the _root. to each of the i's so that the function could 'see' it.

thanks in advance!
-Alex
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] looking for some .NET to Flash tools

2006-03-30 Thread Brad Kozak
I'm working on a project that involves a .NET backend database. So far,
we've successfully used XPath/XML to interface with the DB, but the database
guy wants to eliminate the XML output. He's not willing to invest in
ColdFusion, so I was wondering if anybody knows of a component that might
make it easy (read: brain-dead simple) to interface with a .NET database.

Thanks!

--

Brad Kozak | Novel Idea, LLP
www.Novel Idea | 806.584.5689
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] looking for some .NET to Flash tools

2006-03-30 Thread eric dolecki
remoting :)

On 3/30/06, Brad Kozak [EMAIL PROTECTED] wrote:

 I'm working on a project that involves a .NET backend database. So far,
 we've successfully used XPath/XML to interface with the DB, but the
 database
 guy wants to eliminate the XML output. He's not willing to invest in
 ColdFusion, so I was wondering if anybody knows of a component that might
 make it easy (read: brain-dead simple) to interface with a .NET
 database.

 Thanks!

 --

 Brad Kozak | Novel Idea, LLP
 www.Novel Idea | 806.584.5689
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] FLV and DRM

2006-03-30 Thread Pranav Negandhi
For a recent project that required that the FLV's not be cached, we 
created a buffer PHP script that read and served the FLV after altering 
the headers and turning on no-cache. I don't have the code off hand, but 
a quick googling on headers should take you to the right path.


Regards,
Pranav

Sönke Rohde wrote:

There is no real DRM using FLV. With the use of the Flash Media Server you
can avoid caching the FLVs.

Cheers,
Sönke 




-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Yotam Laufer

Sent: Thursday, March 30, 2006 3:39 PM
To: Flashcoders mailing list
Subject: [Flashcoders] FLV and DRM

Hello List,

What are the options if any to DRM FLVs? Now that I've 
discovered the VLC
player plays FLVs very well they don't seem so hard to handle 
anymore. I

require a real method of DRMing.
Do streaming FLVs get cached? Is there a way to disable the caching?

Thanks, Yotam.

--




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

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




--
Regards,
Pranav Negandhi

Fractal | ink
O: 91 22 5660 3682
M: 91 98211 73656
www.fractalink.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] converting/printing swf to eps

2006-03-30 Thread Gabriel

Hi everybody...

anybody knows a solution to convert/print from the server side a swf to 
eps?.



cheers,
GaB
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] looking for some .NET to Flash tools

2006-03-30 Thread Lee McColl-Sylvester
That's expensive though... Use Fluorine... It really kicks the lama's
ass (to put it the way WinAmp does).  Plus, it works for .NET web apps
and desktop apps with direct assembly access WITH sessions.  Something
Macromedia's remoting doesn't even do.

Try it

Lee


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Hall
Sent: 30 March 2006 16:38
To: Flashcoders mailing list
Subject: Re: [Flashcoders] looking for some .NET to Flash tools

http://www.themidnightcoders.com/weborb/aboutWeborb.htm


On 3/30/06, eric dolecki [EMAIL PROTECTED] wrote:

 remoting :)

 On 3/30/06, Brad Kozak [EMAIL PROTECTED] wrote:
 
  I'm working on a project that involves a .NET backend database. So
far,
  we've successfully used XPath/XML to interface with the DB, but the
  database
  guy wants to eliminate the XML output. He's not willing to invest in
  ColdFusion, so I was wondering if anybody knows of a component that
 might
  make it easy (read: brain-dead simple) to interface with a .NET
  database.
 
  Thanks!
 
  --
 
  Brad Kozak | Novel Idea, LLP
  www.Novel Idea | 806.584.5689
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] MovieClip.loadMovie(), accessing assets in another Library.

2006-03-30 Thread

Now, I always thought this couldn't be done. In the past I've designed Flash 
systems that dynamically load in hundreds of swf asset files, and the 
controlling container swf has instructed loaded-in swfs to attachMovie assets 
in their own Library.. eg, the controller has told a loaded movie to attach and 
play a Sound asset in its own Library. The attachMovie is happening within that 
loaded-in movie's clip level.

However, as most Flash developers know, and the Flash documentation explains, 
you cannot attach an asset in a dynamically loaded Flash movie's Library into a 
clip in another Flash movie (other than the clip to which the loaded-in swf is 
attached).

Sorry if that's as clear as mud.

eg, in the attachMovie doc, 
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1487.html
someone has stuck a comment :-

You CANNOT attachMovie with assets from a dynamically loaded library to any 
other timeline than where the library was loaded.

IE:

Load your swf into _level0.mc1.mc12

you CAN attach to these locations:
_level0.mc1.mc12
_level0.mc1.mc12.mc123
_level0.mc1.mc12.mc124
_level0.mc1.mc12.mc125

you CANNOT attach from this loaded library to these locations:
_level0
_level0.mc1
_level0.mc2
_level0.mc2.mc21
and so on




BUT! I've heard on the grapevine that a developer who knows a developer who 
knows a developer knows how to attach assets in a dynamically loaded swf's 
Library into clips in the containg movie. My client has caught wind of this and 
now wants me to do it... I would just dismiss it as nonsense, but there's a 
sentence in Macromedia's documentation that makes me wonder (actually talking 
about lockroot, which AFAIK only has the purpose of making _root references in 
loaded content continue referring to that timeline..

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1519.html

When calling loadMovie(), set the MovieClip._lockroot property to true in the 
loader movie, as shown in the following code. If you don't set _lockroot to 
true in the loader movie, the loader has access only to its own library, but 
not the library in the loaded movie:

Could this be a mistake in the documentation? If not, then HOW do you attach 
stuff from one movie's Library into another movie??




___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


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

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