Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-02-18 Thread Dani Bacon

hey Steven thanks for you help. well right now the problem happened only
once more. This time it broke the inheritance connection between [Country]
and [BoundedMarker]. I went through the same bizzar process of moving the
[BoundedMarker] class out of its package .. compiling with MMC, then MTASC
and back into the package and compiling again and it fixed it again. Since
then it hasnt happened again, so i am crossing my fingers for now.

If anyone has encountered anything of the sort, i am very interested to hear
about it.
THX

On 2/16/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


I was going to recommend trying to compile with MTASC as its strictness
often exposes mistakes that the IDE won't catch.  Since you're already
doing that, I suggest you do some Debugging 101 and make a trivial
example to see if you can replicate it outside your application
environment.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Passing a Function as Parameter and call function later

2007-02-18 Thread Felipe Hefler

Hi everyone! I'm having trouble with this issue:
function rew(m:MovieClip, f:Function) {
   m.onEnterFrame = function() {
   var cf:Number = m._currentframe;
   var tf:Number = m._totalframes;
   if (cf=tf  cf1) {
   m.gotoAndStop(--cf);
   } else if (cf==1) {
   m.stop();
   if(f) f();
   delete m.onEnterFrame;
   }
   };
}

When I call this function in an action frame it's like this:
rew(targetpath_movieClipName, _root.play);

What I want is that the function I've passed as a parameter works like a
function later in the code. Messy explanation?? OK OK...
Let's see if I can explain better. If I do something like this:

function rew(m:MovieClip, f:String {
   m.onEnterFrame = function() {
   var cf:Number = m._currentframe;
   var tf:Number = m._totalframes;
   if (cf=tf  cf1) {
   m.gotoAndStop(--cf);
   } else if (cf==1) {
   m.stop();
   if(f == play) play();
   delete m.onEnterFrame;
   }
   };
}

it works perfectly, but I want to call any function and don't wanna have to
make a switch for every kind o function.
Has anyone got it?

Ciao.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Passing a Function as Parameter and call function later

2007-02-18 Thread dr.ache

Hi.

i guess you have a scope problem. for me, your code worked
fine, here my adjustments to test it (i got one MC with a 180 frame
MotionTween starting at 120 when loaded, on the stage, called fred.
i simulated the function call with an interval, so the animation starts and
after 2 seconds, your function rew is called with the parameters
_root.fred and the function which should be called after rewind the 
animation sayHello.


It works. When you use Flash 8, try to understand the Delegate Class,
which should help you handle the scope problem.

hope that helps...
dr.ache

var i:Number = setInterval(this,rew,2000,_root.fred,sayHello);

function rew(m:MovieClip, f:Function) {
   clearInterval(_root.i);
  m.onEnterFrame = function() {
  var cf:Number = m._currentframe;
  var tf:Number = m._totalframes;
  if (cf=tf  cf1) {
  m.gotoAndStop(--cf);
  } else if (cf==1) {
  m.stop();
  if(f) f();
  delete m.onEnterFrame;
  }
  };
}

function sayHello() {
   trace(hallo);
}

Felipe Hefler schrieb:

Hi everyone! I'm having trouble with this issue:
function rew(m:MovieClip, f:Function) {
   m.onEnterFrame = function() {
   var cf:Number = m._currentframe;
   var tf:Number = m._totalframes;
   if (cf=tf  cf1) {
   m.gotoAndStop(--cf);
   } else if (cf==1) {
   m.stop();
   if(f) f();
   delete m.onEnterFrame;
   }
   };
}

When I call this function in an action frame it's like this:
rew(targetpath_movieClipName, _root.play);

What I want is that the function I've passed as a parameter works like a
function later in the code. Messy explanation?? OK OK...
Let's see if I can explain better. If I do something like this:

function rew(m:MovieClip, f:String {
   m.onEnterFrame = function() {
   var cf:Number = m._currentframe;
   var tf:Number = m._totalframes;
   if (cf=tf  cf1) {
   m.gotoAndStop(--cf);
   } else if (cf==1) {
   m.stop();
   if(f == play) play();
   delete m.onEnterFrame;
   }
   };
}

it works perfectly, but I want to call any function and don't wanna 
have to

make a switch for every kind o function.
Has anyone got it?



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Passing a Function as Parameter and call function later

2007-02-18 Thread Felipe Hefler

Thank you dr.ache.

Wasn't that  the problem. Anyway your answer helped me a lot. See what
solution I came up:

function rew(m:MovieClip, f:Function) {
   m.onEnterFrame = function() {
   var cf:Number = m._currentframe;
   var tf:Number = m._totalframes;
   if (cf=tf  cf1) {
   m.gotoAndStop(--cf);
   } else if (cf==1) {
   m.stop();
   if(f) eval(f)();
   delete m.onEnterFrame;
   }
   };
}

But the change was on the way I call the function:
_root.rew(d.mask,_root.nextFrame);

So now if I pass it between  it seems to work fine. But still, there's a
small problem that bothers me. Now I have to use eval(), wich I don't like
at all. Any Ideas on how changing eval to a better solution?



On 18/02/07, dr.ache [EMAIL PROTECTED] wrote:


Hi.

i guess you have a scope problem. for me, your code worked
fine, here my adjustments to test it (i got one MC with a 180 frame
MotionTween starting at 120 when loaded, on the stage, called fred.
i simulated the function call with an interval, so the animation starts
and
after 2 seconds, your function rew is called with the parameters
_root.fred and the function which should be called after rewind the
animation sayHello.

It works. When you use Flash 8, try to understand the Delegate Class,
which should help you handle the scope problem.

hope that helps...
dr.ache

var i:Number = setInterval(this,rew,2000,_root.fred,sayHello);

function rew(m:MovieClip, f:Function) {
clearInterval(_root.i);
   m.onEnterFrame = function() {
   var cf:Number = m._currentframe;
   var tf:Number = m._totalframes;
   if (cf=tf  cf1) {
   m.gotoAndStop(--cf);
   } else if (cf==1) {
   m.stop();
   if(f) f();
   delete m.onEnterFrame;
   }
   };
}

function sayHello() {
trace(hallo);
}

Felipe Hefler schrieb:
 Hi everyone! I'm having trouble with this issue:
 function rew(m:MovieClip, f:Function) {
m.onEnterFrame = function() {
var cf:Number = m._currentframe;
var tf:Number = m._totalframes;
if (cf=tf  cf1) {
m.gotoAndStop(--cf);
} else if (cf==1) {
m.stop();
if(f) f();
delete m.onEnterFrame;
}
};
 }

 When I call this function in an action frame it's like this:
 rew(targetpath_movieClipName, _root.play);

 What I want is that the function I've passed as a parameter works like a
 function later in the code. Messy explanation?? OK OK...
 Let's see if I can explain better. If I do something like this:

 function rew(m:MovieClip, f:String {
m.onEnterFrame = function() {
var cf:Number = m._currentframe;
var tf:Number = m._totalframes;
if (cf=tf  cf1) {
m.gotoAndStop(--cf);
} else if (cf==1) {
m.stop();
if(f == play) play();
delete m.onEnterFrame;
}
};
 }

 it works perfectly, but I want to call any function and don't wanna
 have to
 make a switch for every kind o function.
 Has anyone got it?


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

2007-02-18 Thread JOR
AS3 is completely different than AS2.  You don't add code to the 
timeline.  Instead you create a document class and add code to that. 
Typically, I like to use a class named Main but you can name it 
something more to your liking.


Here is a very simple example of what you might be trying to do.  I 
tried to keep it very basic to illustrate the important differences 
between AS2 and AS3.


You can view the sample and download the source code from here:
http://www.jamesor.com/examples/RotationTest/

-- James


James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Gustavo Duenas wrote:
Hi, Ive been doing some experiments (some dumb ones) with the beta of  
flash 9 from adobe labs and I just run this code, something happens,  
maybe its me, but is some basic code. it shouldn't happened that way.
and other issue with this is that the beta doesn't have the check  code 
able, so I don't know if I writing this bad or not.



this is the code.:



stop();
this.onRollOver = function(){
this._rotation--;
}


and this is the message.


**Error** frame1 : Line 5, Column 1 : [Compiler] Error #1087: Syntax  
error: extra characters found after end of program.

}
ReferenceError: Error #1065: Variable  
Timeline1_3526e27cbdd211dbb7a6016cb38e89c is not defined.


ReferenceError: Error #1065: Variable  
Timeline0_3526c86ebdd211dbb7a6016cb38e89c is not defined.






Gustavo Duenas

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

2007-02-18 Thread John Grden

just a clarification:  You *can* add code to the timeline as with previous
versions of flash.

On 2/18/07, JOR [EMAIL PROTECTED] wrote:


AS3 is completely different than AS2.  You don't add code to the
timeline.  Instead you create a document class and add code to that.
Typically, I like to use a class named Main but you can name it
something more to your liking.

Here is a very simple example of what you might be trying to do.  I
tried to keep it very basic to illustrate the important differences
between AS2 and AS3.

You can view the sample and download the source code from here:
http://www.jamesor.com/examples/RotationTest/

-- James


James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Gustavo Duenas wrote:
 Hi, Ive been doing some experiments (some dumb ones) with the beta of
 flash 9 from adobe labs and I just run this code, something happens,
 maybe its me, but is some basic code. it shouldn't happened that way.
 and other issue with this is that the beta doesn't have the check  code
 able, so I don't know if I writing this bad or not.


 this is the code.:



 stop();
 this.onRollOver = function(){
 this._rotation--;
 }


 and this is the message.


 **Error** frame1 : Line 5, Column 1 : [Compiler] Error #1087: Syntax
 error: extra characters found after end of program.
 }
 ReferenceError: Error #1065: Variable
 Timeline1_3526e27cbdd211dbb7a6016cb38e89c is not defined.

 ReferenceError: Error #1065: Variable
 Timeline0_3526c86ebdd211dbb7a6016cb38e89c is not defined.





 Gustavo Duenas

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

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

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

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





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

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


[Flashcoders] Re: Action Script editor

2007-02-18 Thread pedr browne

Hi,

Thanks to everyone for the replies. Unfortunately Flash Develop is pc only.
Guess I'm going to have to get a copy of parallels, then I can use Sepy.

Thanks a lot
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Passing a Function as Parameter and call function later

2007-02-18 Thread Wagner Amaral

I'm not testing, but you could use:

f.call();

as long as f is a reference to a Function object



On 2/18/07, Felipe Hefler [EMAIL PROTECTED] wrote:


Thank you dr.ache.

Wasn't that  the problem. Anyway your answer helped me a lot. See what
solution I came up:

function rew(m:MovieClip, f:Function) {
m.onEnterFrame = function() {
var cf:Number = m._currentframe;
var tf:Number = m._totalframes;
if (cf=tf  cf1) {
m.gotoAndStop(--cf);
} else if (cf==1) {
m.stop();
if(f) eval(f)();
delete m.onEnterFrame;
}
};
}

But the change was on the way I call the function:
_root.rew(d.mask,_root.nextFrame);

So now if I pass it between  it seems to work fine. But still, there's a
small problem that bothers me. Now I have to use eval(), wich I don't like
at all. Any Ideas on how changing eval to a better solution?



On 18/02/07, dr.ache [EMAIL PROTECTED] wrote:

 Hi.

 i guess you have a scope problem. for me, your code worked
 fine, here my adjustments to test it (i got one MC with a 180 frame
 MotionTween starting at 120 when loaded, on the stage, called fred.
 i simulated the function call with an interval, so the animation starts
 and
 after 2 seconds, your function rew is called with the parameters
 _root.fred and the function which should be called after rewind the
 animation sayHello.

 It works. When you use Flash 8, try to understand the Delegate Class,
 which should help you handle the scope problem.

 hope that helps...
 dr.ache

 var i:Number = setInterval(this,rew,2000,_root.fred,sayHello);

 function rew(m:MovieClip, f:Function) {
 clearInterval(_root.i);
m.onEnterFrame = function() {
var cf:Number = m._currentframe;
var tf:Number = m._totalframes;
if (cf=tf  cf1) {
m.gotoAndStop(--cf);
} else if (cf==1) {
m.stop();
if(f) f();
delete m.onEnterFrame;
}
};
 }

 function sayHello() {
 trace(hallo);
 }

 Felipe Hefler schrieb:
  Hi everyone! I'm having trouble with this issue:
  function rew(m:MovieClip, f:Function) {
 m.onEnterFrame = function() {
 var cf:Number = m._currentframe;
 var tf:Number = m._totalframes;
 if (cf=tf  cf1) {
 m.gotoAndStop(--cf);
 } else if (cf==1) {
 m.stop();
 if(f) f();
 delete m.onEnterFrame;
 }
 };
  }
 
  When I call this function in an action frame it's like this:
  rew(targetpath_movieClipName, _root.play);
 
  What I want is that the function I've passed as a parameter works like
a
  function later in the code. Messy explanation?? OK OK...
  Let's see if I can explain better. If I do something like this:
 
  function rew(m:MovieClip, f:String {
 m.onEnterFrame = function() {
 var cf:Number = m._currentframe;
 var tf:Number = m._totalframes;
 if (cf=tf  cf1) {
 m.gotoAndStop(--cf);
 } else if (cf==1) {
 m.stop();
 if(f == play) play();
 delete m.onEnterFrame;
 }
 };
  }
 
  it works perfectly, but I want to call any function and don't wanna
  have to
  make a switch for every kind o function.
  Has anyone got it?
 

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

2007-02-18 Thread John Axel Eriksson
Are you on Mac? Then you should get TextMate www.macromates.com, it  
is the best editor

on ANY platform IMO. And not just for ActionScript.

It may seem like very bare bones when you first run it, but the  
amount of functionality in there

is amazing. You really should try it out.

I use it for ActionScript together with the free AS compiler mtasc  
and also xml, html, sql and php coding.



18 feb 2007 kl. 19.42 skrev pedr browne:


Hi,

Thanks to everyone for the replies. Unfortunately Flash Develop is  
pc only.
Guess I'm going to have to get a copy of parallels, then I can use  
Sepy.


Thanks a lot
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Selective display with XMLConnector, DataSet and DataGrid

2007-02-18 Thread Muzak
There's a few ways you can do this, but here is one, using Bindings through the 
Component Inspector.

First set the columns for the datagrid.
Add the following code to the first frame (where the button code is)

this.menu_dg.columnNames = [name, price, calories];

Add a TextArea component for the description of the selected datagrid item to 
the stage, name it:description_ta
With the TextArea instance selected, set editable to false in the 
Parameters tab.

Next step is to bind the .text property of the TextArea to the description 
field of the XML connector.
You could bind the TextArea to the DataSet, but then you'd have to manually 
create a schema for the DataSet's dataProvider in the 
Component Inspector. Since the XMLConnector already has a Schema defined, we'll 
use that one.

Bind the TextArea's text property to the XMLConnector's description 
property: click the plus (+) sign, select the text:String 
property, click Bound To, click the magnifying glass icon, select 
XMLConnector, then select the description:String property. 
Select in for the direction.

Last thing to do is to tell the TextArea to display the description of the 
selected item of the DataGrid.
However you do this through the XMLConnector..
Select the XMLConnector, select the Bindings tab in the Component Inspector.
There should be 2 Bindings

- results.dinner_menu.food
- results.dinner_menu.food.[n].description

The last one is the one we need. Note that it has [n] in the path, meaning 
there's multiple food properties and we now need to 
tell the XMLConnector which one to use.

Select results.dinner_menu.food.[n].description in the Bindings tab, click 
Index for 'food', click the magnifying glass icon, 
unselect Use constant value, which will make the selections at the top 
available, select Datagrid - selectedIndex:Number

Test the movie.

regards,
Muzak



- Original Message - 
From: Andrew Kirkham [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Sunday, February 18, 2007 6:31 PM
Subject: [Flashcoders] Selective display with XMLConnector,DataSet and DataGrid


I am learning about data integration and have completed the elementary Dinner 
Menu exercise at 
http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=0435.html
 .

The XML has a root node named dinner_menu, containing multiple nodes named 
food, each of which contains nodes named name, 
price, description and calories.

By means of XMLConnector, DataSet and DataGrid, this information is displayed 
in columns labelled name, price, description and 
calories.

So far it is perfectly simple, but what I now want to modify the example to 
display only _selected_ columns in my DataGrid, for 
instance to read in the same XML but display only name, price and 
calories in my DataGrid, omitting description. 
Nevertheless I don't want to discard description; I want to read it in with 
the other data, store it and make it available if the 
user requests it.

Can anybody suggest how I can do this, or direct me to any examples?

Thanks
Andy


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

2007-02-18 Thread Al Roxin
Phil:  I'd be interested.  Depending on the size of what you are looking 
for.  I am currently in the middle of a contract building an interactive 
product simulator for a company but am looking some small jobs.  You can 
email me at [EMAIL PROTECTED]

Sincerely
Al Roxin
- Original Message - 
From: Phil Dupré [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Saturday, February 17, 2007 12:52 PM
Subject: [Flashcoders] Looking for Freelancer for Flash Development



Hello,

My name is Phil Dupre' and I'm a designer looking to work with a flash
developer.  If you're interested, please send me an email and we can talk
about projects needing some good flash code.  Thanks.  Looking forward to
hearing back from you.

Kind regards,

Phil
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Passing a Function as Parameter and call function later

2007-02-18 Thread Felipe Hefler

I've tried it, and didn't work. Can you say how this reference should be?

On 18/02/07, Wagner Amaral [EMAIL PROTECTED] wrote:


I'm not testing, but you could use:

f.call();

as long as f is a reference to a Function object



On 2/18/07, Felipe Hefler [EMAIL PROTECTED] wrote:

 Thank you dr.ache.

 Wasn't that  the problem. Anyway your answer helped me a lot. See what
 solution I came up:

 function rew(m:MovieClip, f:Function) {
 m.onEnterFrame = function() {
 var cf:Number = m._currentframe;
 var tf:Number = m._totalframes;
 if (cf=tf  cf1) {
 m.gotoAndStop(--cf);
 } else if (cf==1) {
 m.stop();
 if(f) eval(f)();
 delete m.onEnterFrame;
 }
 };
 }

 But the change was on the way I call the function:
 _root.rew(d.mask,_root.nextFrame);

 So now if I pass it between  it seems to work fine. But still, there's
a
 small problem that bothers me. Now I have to use eval(), wich I don't
like
 at all. Any Ideas on how changing eval to a better solution?



 On 18/02/07, dr.ache [EMAIL PROTECTED] wrote:
 
  Hi.
 
  i guess you have a scope problem. for me, your code worked
  fine, here my adjustments to test it (i got one MC with a 180 frame
  MotionTween starting at 120 when loaded, on the stage, called fred.
  i simulated the function call with an interval, so the animation
starts
  and
  after 2 seconds, your function rew is called with the parameters
  _root.fred and the function which should be called after rewind the
  animation sayHello.
 
  It works. When you use Flash 8, try to understand the Delegate Class,
  which should help you handle the scope problem.
 
  hope that helps...
  dr.ache
 
  var i:Number = setInterval(this,rew,2000,_root.fred,sayHello);
 
  function rew(m:MovieClip, f:Function) {
  clearInterval(_root.i);
 m.onEnterFrame = function() {
 var cf:Number = m._currentframe;
 var tf:Number = m._totalframes;
 if (cf=tf  cf1) {
 m.gotoAndStop(--cf);
 } else if (cf==1) {
 m.stop();
 if(f) f();
 delete m.onEnterFrame;
 }
 };
  }
 
  function sayHello() {
  trace(hallo);
  }
 
  Felipe Hefler schrieb:
   Hi everyone! I'm having trouble with this issue:
   function rew(m:MovieClip, f:Function) {
  m.onEnterFrame = function() {
  var cf:Number = m._currentframe;
  var tf:Number = m._totalframes;
  if (cf=tf  cf1) {
  m.gotoAndStop(--cf);
  } else if (cf==1) {
  m.stop();
  if(f) f();
  delete m.onEnterFrame;
  }
  };
   }
  
   When I call this function in an action frame it's like this:
   rew(targetpath_movieClipName, _root.play);
  
   What I want is that the function I've passed as a parameter works
like
 a
   function later in the code. Messy explanation?? OK OK...
   Let's see if I can explain better. If I do something like this:
  
   function rew(m:MovieClip, f:String {
  m.onEnterFrame = function() {
  var cf:Number = m._currentframe;
  var tf:Number = m._totalframes;
  if (cf=tf  cf1) {
  m.gotoAndStop(--cf);
  } else if (cf==1) {
  m.stop();
  if(f == play) play();
  delete m.onEnterFrame;
  }
  };
   }
  
   it works perfectly, but I want to call any function and don't wanna
   have to
   make a switch for every kind o function.
   Has anyone got it?
  
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] Re: Action Script editor

2007-02-18 Thread Chris Mitchell
Sorry, I thought FD was mac also. Sepy is also great. I used it for quite 
sometime. FD is just so easy to set up. I run multiple instances one for AS2 
and another for AS3 that uses the Flex SDK and mxmlc to compile man its 
great.TextMate  sounds good also!
   
-chris

John Axel Eriksson [EMAIL PROTECTED] wrote:
  Are you on Mac? Then you should get TextMate www.macromates.com, it 
is the best editor
on ANY platform IMO. And not just for ActionScript.

It may seem like very bare bones when you first run it, but the 
amount of functionality in there
is amazing. You really should try it out.

I use it for ActionScript together with the free AS compiler mtasc 
and also xml, html, sql and php coding.


18 feb 2007 kl. 19.42 skrev pedr browne:

 Hi,

 Thanks to everyone for the replies. Unfortunately Flash Develop is 
 pc only.
 Guess I'm going to have to get a copy of parallels, then I can use 
 Sepy.

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


 
-
Access over 1 million songs - Yahoo! Music Unlimited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] TabNavigator customized; weird button(tab) refresh glitch

2007-02-18 Thread Guillaume Malartre

Well it seems I'm in a alone in this thread but I'll post the solution I've
found so far...
The real problem was that when you extend the class Tab in order to a custom
TabNavigator you have to add a TAB_CREATED event to work around the glitch.
Once the TAB.TAB_CREATED(refer to the button in the tabbar) is triggered in
my application I have to make sure its the first tab added to the
tabNavigator and then set the tab.selected to true manually.

In my application
   public function tabIsCreated(evt:FlexEvent):void {
   //WorkAround of a glitch when there's no child in the
TabNavigator the button don't get selected
   if (evt.target is Button  chatTabs.numChildren == 1) {
   Button(evt.target).selected = true
   }
   }

In tab class
   public static const TAB_CREATED:String = btnTabCreated2;
   public function ViewTab(){
   super();
   addEventListener(FlexEvent.CREATION_COMPLETE,
myCreationComplete);
   }
   private function myCreationComplete(event:Event):void {
dispatchEvent(new FlexEvent(TAB_CREATED,true,false))
 }

Well I hope this migth help someone else.

On 2/17/07, Guillaume Malartre [EMAIL PROTECTED] wrote:


Sorry just updated the .swf online :P
the glitch is now online

On 2/17/07, Guillaume Malartre [EMAIL PROTECTED]  wrote:

 I'll start this message with the problem:
 My chat application:
 http://ded692cale.maximumasp.com/NetMaths111/SWF/ExplorationsBeta/NMChat.swf


 When I open a client by double-clicking in the list(in order to work you
 need to login 2 user) and then I close it with a removeChildren() I'll get a
 glitch with the tab button in the TabBar.
 The button doesn't appear white like he should be (selected), I tried
 selectedIndex etc.. And everything seems to be well coded. Anyone got a
 suggestion?

 private function createTab(name:String):void {
 var bool:Boolean = true
 for (var x:Object in allChatConversation) {
 if (x == name  allChatConversation[x] != null) {
 bool = false
 }
 }
 if (bool) {
 chatTabs.visible = true
 var chatRoom:NMChatRoom = new NMChatRoom()
 chatRoom.id = chatRoom
 chatTabs.addChild(chatRoom)
 chatRoom.label = name
 allChatConversation[name] = chatRoom //this is an
 object to keep a track on all the chatRoom opened
 chatList.setFocus()
 if (chatTabs.numChildren == 1) {
  chatTabs.visible = true
 }
 chatTabs.selectedChild = allChatConversation[name]
 }
 }
 selectedChild work well when there's already at least one child created
 but when there is zero child the glitch happen.

 --
 Merci,
 Guillaume

 Guillaume Malartre
 Programmeur-Analyste, Scolab
 514-528-8066, 1-888-528-8066

 Besoin d'aide en maths?
 www.NetMaths.net




--
Merci,
Guillaume

Guillaume Malartre
Programmeur-Analyste, Scolab
514-528-8066, 1-888-528-8066

Besoin d'aide en maths?
www.NetMaths.net





--
Merci,
Guillaume

Guillaume Malartre
Programmeur-Analyste, Scolab
514-528-8066, 1-888-528-8066

Besoin d'aide en maths?
www.NetMaths.net
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] FLVPlayback Controls Not Visible When Played Off Server

2007-02-18 Thread Chris RM
Watch this be something really silly. I have a single frame FLA that  
has a FLVPlayback component on stage. The contentPath is hardcoded to  
an FLV on a web server with its full address. Running the SWF locally  
and on the server plays the video fine. The only exception is that  
the playback controls are only visible when I run the SWF locally.  
When run on the server you don't see them. Am I overlooking something  
really, really simple here?


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

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


Re: [Flashcoders] FLVPlayback Controls Not Visible When Played Off Server

2007-02-18 Thread Ricky Bacon

Chris RM wrote:
Watch this be something really silly. I have a single frame FLA that has 
a FLVPlayback component on stage. The contentPath is hardcoded to an FLV 
on a web server with its full address. Running the SWF locally and on 
the server plays the video fine. The only exception is that the playback 
controls are only visible when I run the SWF locally. When run on the 
server you don't see them. Am I overlooking something really, really 
simple here?


Make sure the player skin has been uploaded too.  It should have been 
exported in the same directory as your local swf.


-Ricky
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Passing a Function as Parameter and call functionlater

2007-02-18 Thread Jesse Graupmann
Felipe - 





call (Function.call method) uses comma separated values; 

  currentScope.func.call ( alternateScope, arg1, arg2, arg3 ) 

apply (Function.apply method) uses an array of elements; 

  var args = [arg1, arg2, arg3];
  currentScope.func.apply (alternateScope, args );





apply works well with the 'arguments' of a function because 'arguments' is
already in array form. 

  function myFunc(){ trace( 'you passed: ' + arguments ) };
  myFunc ( 1, 2, 3, 4, 5, 6 ) // you passed: 1, 2, 3, 4, 5, 6  





To simplify the process of using  and eval(), you could use the create
method in the Delegate class found at mx.utils.Delegate.

  var callback:Function = mx.utils.Delegate.create ( _root, nextFrame );
  anyOtherObject.func = function(){ callback () };
  anyOtherObject.func ();

Now whenever/wherever callback is called, nextFrame runs from the scope of
_root;





Beyond this current issue, if you're interested in more information on the
Delegate and a list of several spin-offs, I've put together a list at
http://www.justgooddesign.com/blog/jgdelegate.htm





So how about a few different approaches? 23 have a Delegate style built-in.





/
/  1. simple
/




function rew ( mc:MovieClip, func:Function ) 
{
  mc.onEnterFrame = function(){
if ( mc._currentframe != 1 ) mc.gotoAndStop ( mc._currentframe - 1 );
if ( mc._currentframe == 1 ) {
  mc.stop();
  delete mc.onEnterFrame
  if ( func!=undefined ) func();
}
  }
}
_root.rew( d.mask, mx.utils.Delegate.create ( _root, nextFrame ) );




/
/  2. built in proxy
/




function rew ( mc:MovieClip, scope, func:Function ) 
{
  var args:Array = arguments.slice( 3, arguments.length); 
  mc.onEnterFrame = function(){
if ( mc._currentframe != 1 ) mc.gotoAndStop ( mc._currentframe - 1 );
if ( mc._currentframe == 1 ) {
  mc.stop();
  delete mc.onEnterFrame
  if ( func!=undefined ) func.apply( scope, args);
}
  }
  mc.onEnterFrame(); // fire immediately - or remove to wait for next frame
}

//examples
_root.rew( d.mask, _root, _root.nextFrame );
_root.rew( d.mask, _root, trace, 'animationDone: ' + this );




/
/  3. complex - with proxy and scope/func check
/




function rew ( mc:MovieClip, scope, func:Function ) 
{
  var inx = 3;
  if ( typeof ( scope ) == function ) { 
func = scope; scope = this; inx = 2;
  }
  var args:Array = arguments.slice( inx, arguments.length); 
  mc.onEnterFrame = function(){
if ( mc._currentframe != 1 ) mc.gotoAndStop ( mc._currentframe - 1 );
if ( mc._currentframe == 1 ) {
  delete mc.onEnterFrame
  if ( func!=undefined ) func.apply( scope, args);
}
  }
  mc.onEnterFrame(); // fire immediately - remove to wait for next frame
}

//examples
_root.rew( d.mask, nextFrame );
_root.rew( d.mask, _root, _root.nextFrame );
_root.rew( d.mask, _root, trace, 'animationDone: ' + this );




_

Jesse Graupmann
www.jessegraupmann.com
www.justgooddesign.com/blog/
_



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Felipe
Hefler
Sent: Sunday, February 18, 2007 11:39 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Passing a Function as Parameter and call
functionlater

I've tried it, and didn't work. Can you say how this reference should be?

On 18/02/07, Wagner Amaral [EMAIL PROTECTED] wrote:

 I'm not testing, but you could use:

 f.call();

 as long as f is a reference to a Function object



 On 2/18/07, Felipe Hefler [EMAIL PROTECTED] wrote:
 
  Thank you dr.ache.
 
  Wasn't that  the problem. Anyway your answer helped me a lot. See what
  solution I came up:
 
  function rew(m:MovieClip, f:Function) {
  m.onEnterFrame = function() {
  var cf:Number = m._currentframe;
  var tf:Number = m._totalframes;
  if (cf=tf  cf1) {
  m.gotoAndStop(--cf);
  } else if (cf==1) {
  m.stop();
  if(f) eval(f)();
  delete m.onEnterFrame;
  }
  };
  }
 
  But the change was on the way I call the function:
  _root.rew(d.mask,_root.nextFrame);
 
  So now if I pass it between  it seems to work fine. But still, there's
 a
  small problem that bothers me. Now I have to use eval(), wich I don't
 like
  at all. Any Ideas on how changing eval to a better solution?
 
 
 
  On 18/02/07, dr.ache [EMAIL PROTECTED] wrote:
  
   Hi.
  
   i guess you have a scope problem. for me, your code worked
   fine, here my adjustments to test it (i got one MC with a 180 frame
   MotionTween starting at 120 when loaded, on the stage, called fred.
   i simulated the function call with an interval, so the animation
 starts
   and
   after 2 seconds, your function rew is called with the parameters
   _root.fred and the function which should be called after rewind the
   

Re: [Flashcoders] Action Script editor (OT)

2007-02-18 Thread Alain Rousseau
We would need the source code of FlashDevelop to compile with DarWINE on 
a Mac, it's not an emulator !



Toby wrote:

Im not sure how good darwine  http://darwine.opendarwin.org/ is getting but
that's something I would look at on the mac most definitely.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki
Sent: 18 February 2007 05:06
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Action Script editor

Intel Mac = XP possibilities. I run the PC version of SEPY on my Mac from
time to time using Parallels and XP.

Eric

On 2/17/07, Muzak [EMAIL PROTECTED] wrote:
  

check the archives
http://muzakdeezign.com/flashcoders/?q=actionscript%20editor

Muzak

- Original Message -
From: pedr browne [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Saturday, February 17, 2007 3:14 PM
Subject: [Flashcoders] Action Script editor




Hi,

Just wondering what AS editors people were using? I love sepy but can't
  

get


it to run without errors on my intel mac. Does anyone have a good
alternative?

Thanks
  

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

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






  

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

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


Re: [Flashcoders] problem with fl9 beta

2007-02-18 Thread Omar Fouad

I downloaded the source code but the Main.as file keeps giving me errors,
even with flash 9.
Why??


On 2/18/07, John Grden [EMAIL PROTECTED] wrote:


just a clarification:  You *can* add code to the timeline as with previous
versions of flash.

On 2/18/07, JOR [EMAIL PROTECTED] wrote:

 AS3 is completely different than AS2.  You don't add code to the
 timeline.  Instead you create a document class and add code to that.
 Typically, I like to use a class named Main but you can name it
 something more to your liking.

 Here is a very simple example of what you might be trying to do.  I
 tried to keep it very basic to illustrate the important differences
 between AS2 and AS3.

 You can view the sample and download the source code from here:
 http://www.jamesor.com/examples/RotationTest/

 -- James


 James O'Reilly  —  Consultant
 Adobe Certified Flash Expert
 http://www.jamesor.com
 Design • Code • Train



 Gustavo Duenas wrote:
  Hi, Ive been doing some experiments (some dumb ones) with the beta of
  flash 9 from adobe labs and I just run this code, something happens,
  maybe its me, but is some basic code. it shouldn't happened that way.
  and other issue with this is that the beta doesn't have the
check  code
  able, so I don't know if I writing this bad or not.
 
 
  this is the code.:
 
 
 
  stop();
  this.onRollOver = function(){
  this._rotation--;
  }
 
 
  and this is the message.
 
 
  **Error** frame1 : Line 5, Column 1 : [Compiler] Error #1087: Syntax
  error: extra characters found after end of program.
  }
  ReferenceError: Error #1065: Variable
  Timeline1_3526e27cbdd211dbb7a6016cb38e89c is not defined.
 
  ReferenceError: Error #1065: Variable
  Timeline0_3526c86ebdd211dbb7a6016cb38e89c is not defined.
 
 
 
 
 
  Gustavo Duenas
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




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

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] add-in for Flash

2007-02-18 Thread marsellus

Hi all,
i want to create an add-in for flash. But i don't know if it is possible.
There are many add-in tools for software as, for example, PowerPoint.
Have you any ideas about how to add menu or options to Flash IDE? where
should i work?

Cheers,
Daniele
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] calling argument function

2007-02-18 Thread Pete Thomas
 

I didn’t see this answered in digest so see below

 

 

function callFunction(f:Function):Void

{

f();

}

 

function sayHello():Void

{

trace(hello)

}

 

callFunction(sayHello)

 

 

 

Pete

 


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.1/691 - Release Date: 17/02/2007
17:06



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.1/691 - Release Date: 17/02/2007
17:06
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] problem with fl9 beta

2007-02-18 Thread JOR

It would help if you posted what the error message was.


James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Omar Fouad wrote:

I downloaded the source code but the Main.as file keeps giving me errors,
even with flash 9.
Why??


On 2/18/07, John Grden [EMAIL PROTECTED] wrote:



just a clarification:  You *can* add code to the timeline as with 
previous

versions of flash.

On 2/18/07, JOR [EMAIL PROTECTED] wrote:

 AS3 is completely different than AS2.  You don't add code to the
 timeline.  Instead you create a document class and add code to that.
 Typically, I like to use a class named Main but you can name it
 something more to your liking.

 Here is a very simple example of what you might be trying to do.  I
 tried to keep it very basic to illustrate the important differences
 between AS2 and AS3.

 You can view the sample and download the source code from here:
 http://www.jamesor.com/examples/RotationTest/

 -- James


 James O'Reilly  —  Consultant
 Adobe Certified Flash Expert
 http://www.jamesor.com
 Design • Code • Train



 Gustavo Duenas wrote:
  Hi, Ive been doing some experiments (some dumb ones) with the beta of
  flash 9 from adobe labs and I just run this code, something happens,
  maybe its me, but is some basic code. it shouldn't happened that way.
  and other issue with this is that the beta doesn't have the
check  code
  able, so I don't know if I writing this bad or not.
 
 
  this is the code.:
 
 
 
  stop();
  this.onRollOver = function(){
  this._rotation--;
  }
 
 
  and this is the message.
 
 
  **Error** frame1 : Line 5, Column 1 : [Compiler] Error #1087: Syntax
  error: extra characters found after end of program.
  }
  ReferenceError: Error #1065: Variable
  Timeline1_3526e27cbdd211dbb7a6016cb38e89c is not defined.
 
  ReferenceError: Error #1065: Variable
  Timeline0_3526c86ebdd211dbb7a6016cb38e89c is not defined.
 
 
 
 
 
  Gustavo Duenas
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




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

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








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

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

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

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


Re: [Flashcoders] add-in for Flash

2007-02-18 Thread Zeh Fernando

i want to create an add-in for flash. But i don't know if it is possible.
There are many add-in tools for software as, for example, PowerPoint.
Have you any ideas about how to add menu or options to Flash IDE? where
should i work?


Yes, there are, through javascript 'macros', and menu and dialog 
customization. Search for JSFL, it's pretty powerful.



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

2007-02-18 Thread Cay Garrido H.
The error is weird, 'cause it says line 5 and you showed only 4 lines 
of code check that...

About the code, it's not AS3... you need to use something like this:

miButton.addEventListener ( rollOver, miFunction);
function miFunction (event) {
  miButton.rotation--;
}

See that the event declaration changed, and that _rotation is now 
rotation.
And you can write all the code you want in any timeline... don't bother 
using classes unless you want to learn OOP...


Gustavo Duenas escribió:
Hi, Ive been doing some experiments (some dumb ones) with the beta of 
flash 9 from adobe labs and I just run this code, something happens, 
maybe its me, but is some basic code. it shouldn't happened that way.
and other issue with this is that the beta doesn't have the check code 
able, so I don't know if I writing this bad or not.



this is the code.:



stop();
this.onRollOver = function(){
this._rotation--;
}


and this is the message.


**Error** frame1 : Line 5, Column 1 : [Compiler] Error #1087: Syntax 
error: extra characters found after end of program.

}
ReferenceError: Error #1065: Variable 
Timeline1_3526e27cbdd211dbb7a6016cb38e89c is not defined.


ReferenceError: Error #1065: Variable 
Timeline0_3526c86ebdd211dbb7a6016cb38e89c is not defined.






Gustavo Duenas

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

2007-02-18 Thread Ravi Marella


RaviKiran Marella 


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

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