[Flashcoders] import statement and accessing a class in AS3

2006-07-14 Thread Fumio Nonaka
In ActionScript 3.0, a class can be accessed just by the name of the
class without the import statement in a timeline.

// timeline: _level0
// frame action (ActionScript 3.0)
// import flash.display.MovieClip;
trace(MovieClip);  // output: [class MovieClip]

On the other hand, a class cannot be accessed by its fully qualified
class name in a class definition.

// ActionScript 3.0 class definition file: Test.as
package {
// import flash.display.MovieClip
public class Test {
function Test() {
trace(flash.display.MovieClip);  // ReferenceError
}
}
}

Are the behaviors above the specification of ActionScript 3.0?

Thank you,
-- 
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My bookshttp://www.FumioNonaka.com/Books/index.html
Flash communityhttp://F-site.org/

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

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


[Flashcoders] conflicts with the name of another class

2006-07-14 Thread Michael K
Sometimes I get this message with differnet classes. Never knew what causes 
it:


The name of this class, 'ConnectDots', conflicts with the name of another 
class that was loaded, 'ConnectDots'.


Anyone else?


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

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


Re: [Flashcoders] allownetworking?

2006-07-14 Thread John Giotta

I'm not familiar with it.
Is it a object parameter?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS3 - Missing

2006-07-14 Thread Bjorn Schultheiss
I have just read over this thread and want add my 2 cents in.

There are different ways to achieve your desired results without such
changes.

With the list of countries why not use a HashMap for related data;

var vo:Country = {className:Brazil};

// factory implementation
inst = new MovieClip();
var _rendererHashMap[UIDUtil.getUID(inst)] = vo;

with the reference to data object you should be able to apply what ever you
want!

Also,
Unless you can you can turn timeline editing off in Flash 9 I don't see how
sprite can be an option to extend.



Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Saturday, 8 July 2006 1:20 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] AS3 - Missing

Very thanks to Jens and Nivesh :)

On 7/7/06, Jens Halm [EMAIL PROTECTED] wrote:

  Class names need to be unique.  We will support the concept of a
  base class for library symbols in the Flash 9 timeframe.  These base
  classes can be non-unique.

 Glad to hear that this will be supported. I am really surprised that
 so far Marcos seems to be the only one here who thinks it's essential.
 I think it would really be a step backwards without this feature.
 Maybe the example Marcos used wasn't that obvious. But if we talk
 about Component classes like CheckBoxes, Buttons etc., I would never
 want to use composition over inheritance. And in the preview release
 you wouldn't be able to assign a CheckBox class to more than one
 MovieClip. So yes, I think that feature is essential.

 It would also be great if that base class that you can specify is
 permitted to only extend Sprite and not MovieClip. Even better would
 be a new symbol type without a timeline for designing Sprites.


 Jens



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

2006-07-14 Thread Palmer, Jim
 Thanks Jim,
 
  I don't want to give you a false sense of hope here but 
 copy and paste is
  working here for me
 
 Hmm... Me too. I'm at home now on a laptop that hasn't been used in  
 yonks and has FF 1.0.7 on it. The machines at the office all have  
 whatever the stable build of FF last week was on them.

No worries, If it works in one version and not in another - it's up to
you/theclient/company to decide which browsers you support.

 
  CTRL-INST works but SHIFT-INST
 
 Stupid question... um, what does this mean?

With windows machines you can copy with CONTROL+C and CONTROL+INSERT and
paste with CONTROL+V and SHIFT+INSERT... I was just using short words for
the copy-n-paste keyboard shortcuts.

  link to your MC and lets take a look...
 
 My test swf has nothing more than the simplest TextField and 
 components in it.
 
 I'll put together something to try and get feedback from the kind  
 members of this list when I get back to work.

This is obviously very important to my company and others considering this
is an important part of many forms-based flash applications. I feel that
flash e-commerce as a whole is affected by this if you have an issue, thus
it's important for me to be aware if others have having said issue.

Let me know what you find, please!

Cheers,
--
Jim Palmer ! Mammoth Web Operations
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help: Confusion and Blue with Components

2006-07-14 Thread elibol

When you call gotoAndStop(), the player needs to first enter the frame where
mcParent is, this is why it works when you use onEnterFrame.

My technique for this has been to add a function call on the frame that the
clip resides in. I may call a function like Parent.init() on frame label
'TestFrame', or just init() and delegate the init function to a more
appropriate location:

import mx.utils.Delegate;

TestMC.init = Delegate.create(this, initTestMC);

function initTestMC(){
//this will be called when init() is called from within the movieclip
}

I hope this helps,

M

On 7/12/06, Tan [EMAIL PROTECTED] wrote:


Dear list,

I have been trying to solve this problem for a good while, but I wonder if
anyone has a good way to get around it. Here is the problem (you can
download the related Flash at: http://www.acts.net/Flash/ComponentBlue.zip

I have created a component called Parent, inside Parent timeline I have my
designer to layout components Child1 and Child2, so I only have to do the
wiring.

So now I have put Parent in the movie timeline at a frame labeled
TestFrame,
so we have a structure liked followed,

TestFrame
+ Parent
  - Child1
  - Child2


For the ease of description, I have classes with the same name as Parent,
Child1 and Child2. In the timeline, the Parent instance is named as
mcParent.


So somewhere in a function I will write like:

function myFunction():Void
{
  gotoAndStop(TestFrame);

  trace( this[mcParent] ); // it returns _level0.mcParent
  trace( Parent( this[mcParent] ); // the movieclip is there, but it
returns null }


Somehow I cannot get Parent as the Parent class. If I revise logic like:

function myFunction():Void
{
  gotoAndStop(TestFrame);

  trace( this[mcParent] ); // it returns _level0.mcParent
  trace( Parent( this[mcParent] ); // the movieclip is there, but it
returns null

  this.onEnterFrame = laterFunction;
}

function laterFunction():Void
{
  this.onEnterFrame = null;
  trace( this[mcParent] ); // it returns _level0.mcParent
  trace( Parent( this[mcParent] ); // now it returns _level0.mcParent
correctly }



The similar problem exists in Child1 and Child2 inside Parent timeline. It
seems to me that the MovieClip is not converted to its associated class
until later time, so I have to split my logic into two different
functions,
whic makes the code look cumbersome and hard to manage.

A more detailed example of the problem above can be downloaded at,
http://www.acts.net/Flash/ComponentBlue.zip

Although putting components on the stage using attachMovie might solve the
problem, but I would like the designer to have the freedom to arrange the
components on the stage the way he likes, and attachMovie would take away
this freedom. I wonder if anyone has a cleaner way around this problem.

TIA!

- Tangent

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

2006-07-14 Thread Jose Maria Barros

Hello,

Anyone know a good tutorial where i can learn how to animate xml nodes with
actionscript? Example: One photo slides from top to the target destination..

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] OT: Need math help

2006-07-14 Thread Danny Kodicek
 I wonder if someone would be willing to help me off-list with a math
 problem or can refer me to a more appropriate person/list to ask this
 question:

 I have a photograph of a rectangle where the camera was slightly
 off-center and not parallel to the plane of the rectangle, so in the
 resulting photo, the rectangle is slightly distorted. I want to distort
 the image by repositioning the corner points of the photograph so that
 the interior rectangle is precisely positioned and sized.

 1) I know the size of the photo,
 2) I know the coordinates of the rectangle's corners in the photo
 3) I know the coordinates where I want the rectangle's corners to be
 after the transformation.

 I need to know the new coordinates of the photo's corners to achieve #3.

Just an addendum to my previous email: I didn't think it through properly.
My note about the affine transformations said it all: I forgot perspective.

I don't have time right now to think about the full answer, which may
involve a 4x4 matrix (in order to take into account the third dimension).
But there's probably an easier solution.

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] import statement and accessing a class in AS3

2006-07-14 Thread simon

Hej, jag är på semester (tillbaka igen 14/8), jag nås på 070-9949770

Hälsningar
/Simon
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] call JS-Method from SWF in hidden div on IE

2006-07-14 Thread Kevin Newman
In my experience with trying to work out a magic fix for the eolas 
patent (http://www.unfocus.com/projects/patentMagic/), I have found that 
in IE, with swfs at least (but possibly all objects) objects that are 
set with display: none, do not even load in the background, never mind 
execute javascript.


Kevin N.


David Fischer wrote:

Hi,

turns out that a swf in a  hidden div won't execute any 
Javascript-Methods in Internet Explorer.

it kinda seems logical in terms of if anything is hidden, i don't care.

this works with firefox (mac/win), opera(mac/win), safari though.
Can anyone confirm this behaviour ?

Thanks,

David



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

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


Re: [Flashcoders] setInterval and loadMovie

2006-07-14 Thread Flash Mel

Thanks guys, got it working!

Cheers,

fM.



On 7/10/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


You orphaned a running interval.  You need to make sure you
clearInterval first.  You could put it in the onUnload of your loaded
movie, or you could clear the interval in that swf just before you
loadMovie.

BLITZ | Steven Sacks - 310-551-0200 x209


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Flash Mel
 Sent: Sunday, July 09, 2006 8:04 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] setInterval and loadMovie

 Evening,

 I'm having a brainfart here.  I have a movie that loads separate .swfs
 into a clip called holdGallery_mc.  All of the .swfs are simply
 different slideshows (reads from xml, images files on server,
 preloader for each image, pan image vert or horz depending on size,
 etc.).  Anyway, the core for all the slideshows to work is a
 setInterval script reStartSlides = setInterval(startSlides, 4000);

 Here is my problem, when loading the the .swfs into the main movie,
 the first one naturally, is ok.  But when I try loading another .swf
 to  replace the current on, the old .swf is gone but its interval is
 still alive and kicking.

 What, what?!

 What is happening?
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] conflicts with the name of another class

2006-07-14 Thread Mike
I find this happens when two classes import each other. Just compile
again and the error goes away. Weird little bug that will hopefully go
away in Flash 9.

(I'm assuming you don't actually have two classes both named
'ConnectDots'.)
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Kønig
Sent: Thursday, July 13, 2006 2:44 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] conflicts with the name of another class

Sometimes I get this message with differnet classes. Never knew what
causes 
it:

The name of this class, 'ConnectDots', conflicts with the name of
another 
class that was loaded, 'ConnectDots'.

Anyone else?


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

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

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

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


Re: [Flashcoders] Debug Player issue

2006-07-14 Thread David Rorex

Worst case scenario, just use one of the many flash logging/tracing apps (or
write your own simple one real quick), and simply do a global search 
replace of trace( to DebugLogger.out( (or whatever the name of their
trace command is)

-David

On 7/12/06, Andy Makely [EMAIL PROTECTED] wrote:


My Flash 8 debug player has stopped working.  It no longer outputs to a
logfile.

I have checked and double-checked the mm.cfg file, %homepath% 
%homedrive%
user env. variables, uninstalled and reinstalled the debug player, etc.

Anybody got an idea how to troubleshoot this sort of thing?  I *really*
need
that logfile output back.




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

2006-07-14 Thread Rajat Paharia

It's an embed parameter like allowScriptAccess.
embed allownetworking=internal...

- rajat


On 7/13/06, John Giotta [EMAIL PROTECTED] wrote:

I'm not familiar with it.
Is it a object parameter?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.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] part of text is not visible...!

2006-07-14 Thread John Giotta

The only thing I can ask is if the textfield is wide enough in width
to display all text.

Flash 6 introduced the property TextField.autoSize making it easier to
adjust dynamic textfields width at runtime to compensate for value
text-width.

However, Flash 5, TextField.autoSize did not exist. So Textfields
created via IDE were locked to their predetermined text-width at
author time.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] OT: Need math help

2006-07-14 Thread Danny Kodicek

 I wonder if someone would be willing to help me off-list with a math
 problem or can refer me to a more appropriate person/list to ask this
 question:

 I have a photograph of a rectangle where the camera was slightly
 off-center and not parallel to the plane of the rectangle, so in the
 resulting photo, the rectangle is slightly distorted. I want to distort
 the image by repositioning the corner points of the photograph so that
 the interior rectangle is precisely positioned and sized.

 1) I know the size of the photo,
 2) I know the coordinates of the rectangle's corners in the photo
 3) I know the coordinates where I want the rectangle's corners to be
 after the transformation.

 I need to know the new coordinates of the photo's corners to achieve #3.

I don't know if you got the offlist answer you asked for, but it's probably
a question worth answering on-list too.

Basically what you need to do is to invert a transformation matrix. So you
need to start by constructing the matrix M used to transform the original
rectangle R = (0,-H,W,0) to the distorted rectangle: that is (using
homogeneous coordinates (the kind used in Flash's own Matrix object)), M
maps (0,0,1) to (x1,y1,1), (0,-H,1) to (x2,y2,1), (W,-H,1) to (x3,y3,1) and
(W,0,1) to (x4,y4,1).  This matrix *ought* to be given by:

( (x1-x2)/H  (x4-x1)/W  x1)
( (y1-y2)/H  (y4-y1)/W  y1)
( 0  0  1 )

I say 'ought' because if your camera has a non-parallel distortion, this
matrix may fail to correctly transform the fourth point to (x3,y3,1). If
that's true, there's no matrix that will work (all matrix transformations
are affine, meaning they transform parallel lines into parallel lines).

Once you have this matrix M, you can invert it to get M'(If you can't do
that, I can explain how) and apply M' to the corners of your image to get
your un-transformed rectangle.

Best
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] AS3 Reference Library PDF?

2006-07-14 Thread Charles Parcell

Any word on the PDF John?  While I have found the HTML version, it is not
very printer friendly at all (and neither is the one on livedocs).  A PDF
version would be greatly appreciated. After all you guys are Adobe now and
PDF is part of your thing. I am really surprised that it wasn't released
with Flex.

Charles P.


On 7/3/06, John Dowdell [EMAIL PROTECTED] wrote:


Charles Parcell wrote:
 Now that Flash Player 9 is officially released, does anyone know if
 there is
 a PDF of the AS3 Reference Library?  While I know it is on LiveDocs, I
like
 to thumb through actual paper.

I'm not sure yet, Charles. First I checked with search term
'actionscript 3' filetype:pdf site:adobe.com, without results. I then
checked cubicles over in the Flash section of the building, but with the
holiday and the big ship it's pretty quiet there today.

If such a resource existed today, then I'd expect to see it linked here:
http://www.adobe.com/devnet/actionscript/

I'd suspect a PDF version is on the schedule, but let me try nailing
down detail later on in this week, when people who took the short
holiday are back on duty. Deal?

jd








--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, 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] setInterval and loadMovie

2006-07-14 Thread Tony Trapp
Hey Steven just wanted to tell ya I miss the old site you guys had back
about 4 years ago and also the update you guys did.

Very good stuff!!!

Tony Trapp

- Original Message - 
From: Flash Mel [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, July 13, 2006 10:58 AM
Subject: Re: [Flashcoders] setInterval and loadMovie


 Thanks guys, got it working!

 Cheers,

 fM.



 On 7/10/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
 
  You orphaned a running interval.  You need to make sure you
  clearInterval first.  You could put it in the onUnload of your loaded
  movie, or you could clear the interval in that swf just before you
  loadMovie.
 
  BLITZ | Steven Sacks - 310-551-0200 x209
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:flashcoders-
   [EMAIL PROTECTED] On Behalf Of Flash Mel
   Sent: Sunday, July 09, 2006 8:04 PM
   To: Flashcoders mailing list
   Subject: [Flashcoders] setInterval and loadMovie
  
   Evening,
  
   I'm having a brainfart here.  I have a movie that loads separate .swfs
   into a clip called holdGallery_mc.  All of the .swfs are simply
   different slideshows (reads from xml, images files on server,
   preloader for each image, pan image vert or horz depending on size,
   etc.).  Anyway, the core for all the slideshows to work is a
   setInterval script reStartSlides = setInterval(startSlides, 4000);
  
   Here is my problem, when loading the the .swfs into the main movie,
   the first one naturally, is ok.  But when I try loading another .swf
   to  replace the current on, the old .swf is gone but its interval is
   still alive and kicking.
  
   What, what?!
  
   What is happening?
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/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] allownetworking?

2006-07-14 Thread Josh Santangelo

It seems to be new for AS3.

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ 
wwhelp.htm?context=LiveDocs_Partsfile=1590.html


-josh

On Jul 12, 2006, at 6:30p, Rajat Paharia wrote:


MySpace has recently started writing this into all Flash embeds:
allownetworking=internal
Google searching doesn't turn up much, is there documentation on this
somewhere?

thanks, - rajat
--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.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] jigsaw puzzle piece algorithm

2006-07-14 Thread Guntur N. Sarwohadi

Hello Hans,

I would like to thank you in advanced for helping me this far.. I currently
have the jigsaw drawing algorithm in hand, yay! It's looks nicer now :D..
and it does 'blend' when it sticks to other pieces tightly. One good thing
is that I use the bevel filter and I thought it wont looked blended since
you have that filter around, but somehow it did otherwise and looked pretty
nice.. some 'fake' blending effect hehehe..

I've modified the group movement code and now it's moving corresponding to
the relation to the 'master' piece (piece the user move).. moving with
distance (not piece relation) was pretty buggy coz it (pieces in the group)
displaces as the mouse slightly moves away from the master piece. But
currently, with the new implementation, it still displaces.. the
displacements occur only to the master piece and it seems like because it
moves a little faster than the others which make it slightly not sticking
with the rest of the group. Very minor bug but still annoying.

Broadcast / dispatching isn't the right term for what I did in code, btw..
coz in pseudo all i did was:

piece.onMouseMove = function() {
 for(i = 0; i  piece.group.length; i++) {
   piece.group[i].updatePosition(this);
 }
}

group is an array located in each piece mc.. and since it's an array of
pieces, then this piece has the 'updatePosition' methode as well.. sumthin
like

piece.updatePosition = function(ref) {
 //get the relation to ref, whether it's in the north, south, west or east
of it
 //match the _x and _y property by ref by relation
 //search for other pieces connected to ref if this piece isn't related
directly to ref
}

Now, this is where my latest problem spawns in.. searching for pieces
connected to ref is pretty damn hard.. it reminds me with A* algorithm,
which i'm not familiar of.. currently i iterate the methode if a piece can't
find a hierarchy connection to ref / master piece, and it comes that only 2
layer 'descendants' follow the master movement..
For example, in a 3 x 3 puzzle, if i move the center (piece_2_2), i would
get all pieces move together. But for, say, the top left piece (piece_1_1),
would only bring piece_1_2, piece_1_3, piece_2_1, piece_3_1 and piece_2_2.
the rest would be left behind..

any idea for this problem?

thx
Guntur N. Sarwohadi

On 7/11/06, Hans Wichman [EMAIL PROTECTED] wrote:


Hi,
does it displace until you stop moving, or displace and screws it up
completely?
It sounds like either one of the updates you broadcast are not coming
through, or the updates are based on the wrong offsets. I assume that if
you
move a group of 3, the 2 that should be moved automatically ARE displaced
by
the same amount?
Just a shot in the dark here, but when you broadcast to the group, do you
skip the source of the event?
For example, normally in a group of 2, when you move one, you could
either:
1) move the one you moved and dispatch an event to the other
2) create an event and dispatch to the group
3) move the one you moved and dispatch an event to the whole group

the 3rd option clearly is invalid, since one piece would be moved twice.

And with respect to the somefrogs.com, i had the same impression you had
now
how do they do that a few weeks ago, and now i know: one step at a
time:).
Once you have the mask, and the movement correct, you are 80% there;)

good luck!
JC


On 7/11/06, Guntur N. Sarwohadi [EMAIL PROTECTED] wrote:

 Hi Hans,

 Hmm.. I'm not sure what was I thinking when I was writing about
 onEnterFrame, coz like you describe earlier, I didn't use any
onEnterFrame
 either.. gosh, this what happens when you don't have enough coffee with
 you
 after 2 days of no sleep :p.. well, anyway, in onMouseMove, I broadcast
to
 piece group members to move as well, with the current piece as
reference.
 Currently I calculated the distance prior broadcast and as the current
 piece
 moves, the piece group members would move in the same way without
getting
 off location... but it does.. when you move the mouse fast enough, it
 displaces..

 somefrogs.com... wow! that's so cool.. How you do such a thing?.. it
 blends
 in and mostly, the pieces dont fall off when you move the mouse fast
 enough!... how the...?..

 anyone got an idea with my problem?

 thx!
 [g]

 On 7/11/06, Hans Wichman [EMAIL PROTECTED] wrote:
 
  Hi,
  with respect to the combining pieces, why would you use onEnterFrame
to
  update the other pieces?
  Of course I dont know the details of your implementation, but it would
  seem
  that if you had puzzle clumps (in want of a better term), meaning
groups
  of
  already combined pieces you could either temporarily parent (meaning
  recreating) the whole clump in a parent clip, and move the parent clip
 or
  do
  something like:
 
  puzzlePiece.onMouseMove = {
get self.deltaxy
if Puzzle.getGroup(self) == null then self.move(deltaxy)
  else Puzzle.getGroup(self).move(deltaxy);
  }
 
  With respect to the masking and filling through the drawing api, my
  routine
  looks like (in 

[Flashcoders] Flash Remoting on Flash 8

2006-07-14 Thread Rui Duarte Silva
Hi,

I'm having a problem regarding Flash Remoting on Flash8. I've already posted
a question before on this group, but received no answer that solved the
problem (I'm hoping there is one that does :) ).

Is there a way to isolate connection level errors and determine its type
(HTTP10, HTTP500, etc) in Flash Remoting for Flash 8?

I did this in Flash MX 2004 Pro by defining an onStatus callback function in
a Connection object that was shared in all Service objects. When a
connection error occurred, this callback function was called with an object
that had several properties indicating the kind of error it was (much like
the one returned on PendingCall). Apparently in Flash Player 8, though the
function is still called, no object is sent to it, so I have no way of
knowing what kind of error happened. I scanned through the Connection class
definition and discovered it extends NetConnection. I tried to use that
instead, but the same thing happens so I'm assuming it's a player 8 thing as
NetConnection is an intrinsic class.

I scavenged the Net for answers and tried all the suggestions to no avail.
Used _global.System.onStatus, _root.onStatus and none of them worked. I'm
starting to get a bit desperate as I absolutely need to know this info to
indicate to the user what happened.

Anyone can help me? Please?

Rui Duarte Silva
Senior Flash Developer / Senior Product Manager
 
MNI - Médicos Na Internet, Saúde na Internet, SA
Alert Life Sciences Computing
 
www.alert-online.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] Animate Xml Nodes

2006-07-14 Thread Merrill, Jason
Xml is just string data, you cannot animate it.  Worry about getting
the data in Flash and THEN creating objects on the stage based on that
data, THEN animating those objects.  Three separate issues.

To animate the object instance, read up on the tween and transition
classes, or get a third party class to animate for you
  

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Jose Maria Barros
Sent: Thursday, July 13, 2006 6:29 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Animate Xml Nodes

Hello,

Anyone know a good tutorial where i can learn how to animate xml nodes
with
actionscript? Example: One photo slides from top to the target
destination..

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

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

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


RE: [Flashcoders] Abstract classes in AS3?

2006-07-14 Thread Nivesh Rajbhandari
Hi,

Regarding:
-
  2) Have methods which are not attached to specific class instances.
 
 That's a bit like static methods no ?

I was incomplete. I should have said, Have *bundled* methods which are
not attached to specific class instances. That is, I want to be able to
have groups of static methods. Static classes are how this is currently
accomplished, but if we can't have private constructors, there's no way
to prevent someone from (pointlessly) instantiating a static class.

Can methods be attached to packages in AS3.0? If so, that might help.
-


Yes, this can be done in AS 3.0.  Note that the Flash IDE requires you
to name your .as file with the same name as the function so that the IDE
can find the definition.

// foo/bar/MyFunction.as
package foo.bar
{
public function MyFunction()
{
trace(MyFunction);
}
}

// test.fla
import foo.bar.*;

MyFunction();


You can also define functions in the unnamed package. That way, you can
use the function without the import statement as long as that function
is in your classpath:

// HelloWorld.as
package
{
public function HelloWorld()
{
trace(Hello, World!);
}
}

// test.fla
HelloWorld();

-Nivesh
QE Lead, Flash | Adobe Systems

--

Message: 5
Date: Wed, 12 Jul 2006 09:16:41 -0700
From: Mike [EMAIL PROTECTED]
Subject: RE: [Flashcoders] Abstract classes in AS3?
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain;   charset=US-ASCII

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nicolas
Cannasse
Sent: Wednesday, July 12, 2006 1:16 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Abstract classes in AS3?

 Mike Keesey wrote:
  I don't really care whether they allow private constructors or not,
as
  long as they provide some way of accomplishing the same thing.
  Specifically, I want to be able to:
  1) Limit the number of instances of certain classes (singletons,
  enumerations).

 Did you have a look at haXe enums ?
 http://haxe.org/ref#the_power_of_enum

Sure, something like that would be nice. But it's not in AS3.0.

  2) Have methods which are not attached to specific class instances.
 
 That's a bit like static methods no ?

I was incomplete. I should have said, Have *bundled* methods which are
not attached to specific class instances. That is, I want to be able to
have groups of static methods. Static classes are how this is currently
accomplished, but if we can't have private constructors, there's no way
to prevent someone from (pointlessly) instantiating a static class.

Can methods be attached to packages in AS3.0? If so, that might help.

  3) Be able to create classes that cannot be instantiated themselves
but
  can be superclasses of concrete classes.

 Yes, I agree there. Removing the ability to create private
constructors
 seems completely pointless. The rational behind it seems a bit like
you
 don't need that, which is not a very strong point IMHO.

Exactly!

Replace the removed functionality with some other strategy, but don't
just get rid of it and pretend nothing's wrong.
--
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Flash lite 2 questions

2006-07-14 Thread Eskil Janson

Thanks!

I will check out the lists.

Most phones are not connected to the net, thats why I want to use mms. I 
like AS2 but I think the Interactive Object and
Event model in AS3 is more suitable for cross platform development, and 
would prefer it for mobile apps if possible.


Best Regards

/Eskil

Hi Eskil,

First of all you might want to consider to join one of the mailign 
lists dedicated to Flash on mobile devices. For example FlashMobile 
and suhc.

- How do you get a custom icon for your Flash Lite 2 application ?
You would need to make your own Symbian application which will add a 
menu icon, and basically has a call which will open your Flash movie 
in the default application for the file format/mimetype. You can use 
the wizard application such as swf2sis to make such symbian 
application for Symbian 2nd edition mobile phones. As far as I know it 
doesn't yet support Symbian Series 60 3rd mobile phones.
- Is there a way to attach files (textfiles preferably ) with sms 
(mms) from Flash lite 2 ?
You can send SMS files from Flash Lite application, or you can use the 
LoadVars-class to send data to a online webserver.

-Will Flash lite have support for AS 3, and if so, when ?

Not yet, it will support AS2 which is already great!


Anyone?

/Eskil





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

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






--
http://www.eskilstina.com
---eskilStina 
--

Eskil Janson  Mobil: +46 0735 31 68 52
Slupskjulsvägen 38   	  E-post: [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

111 49 Stockholm  Webb: www.eskilstina.com http://www.eskilstina.com





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

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


Re: [Flashcoders] Flash SQL

2006-07-14 Thread mike cann

this doesnt sound like a good idea as anyone can download your .swf and
decompile it then change that SELECT * statement to a DROP statement with
ease.

On 12/07/06, Jose Maria Barros [EMAIL PROTECTED] wrote:


Now im working on a project that involves SQL Server, ASP , XML and
flash..and i think its so difficult to work with this for me..
Maybe tthis component whill help..but not much..

Im not a good coder..so maybe this help

On 7/12/06, jcarlos [EMAIL PROTECTED] wrote:

 it seems to be interesting

 But I didn´t see any Stored Procedure based example

 Isn´t  this SQL open way of dB query not very recommended since it
exposes
 your persistence logic, tables and so on ???

 I´m not an n-layers app expert but I found this arguments very often


 João Carlos

 - Original Message -
 From: Tunç Atakan [EMAIL PROTECTED]
 To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, July 12, 2006 9:39 AM
 Subject: RE: [Flashcoders] Flash SQL


  http://www.netdrims.com/flashsql/
 
 
  Anybody use this component?
 
  I need comment?
 
  Thanx...
 
  Tunc
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] import statement and accessing a class in AS3

2006-07-14 Thread Geoffrey Williams
You must always import your classes in external AS files.

In Flash, the flash.* sub packages are automatically imported.

This is working as intended.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Fumio Nonaka
Sent: Thursday, July 13, 2006 1:50 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] import statement and accessing a class in AS3

In ActionScript 3.0, a class can be accessed just by the name of the
class without the import statement in a timeline.

// timeline: _level0
// frame action (ActionScript 3.0)
// import flash.display.MovieClip;
trace(MovieClip);  // output: [class MovieClip]

On the other hand, a class cannot be accessed by its fully qualified
class name in a class definition.

// ActionScript 3.0 class definition file: Test.as
package {
// import flash.display.MovieClip
public class Test {
function Test() {
trace(flash.display.MovieClip);  // ReferenceError
}
}
}

Are the behaviors above the specification of ActionScript 3.0?

Thank you




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

2006-07-14 Thread Alan Queen

Restricts browser communication. This property affects more APIs than
the allowScriptAccess property.

The allowNetworking property supports the following values:

all: No networking restrictions. Flash Player behaves normally. This
is the default.
internal: SWF files cannot call browser navigation or browser
interaction APIs (such as the ExternalInterface.call(), fscommand(),
and navigateToURL() methods), but can call other networking APIs.
none: SWF files cannot call networking or SWF-to-SWF file
communication APIs. In addition to the APIs restricted by the internal
value, these include other methods such as URLLoader.load(),
Security.loadPolicyFile(), and SharedObject.getLocal().
For more information, see Programming ActionScript 3.0.

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1002.html

On 7/12/06, Rajat Paharia [EMAIL PROTECTED] wrote:

MySpace has recently started writing this into all Flash embeds:
allownetworking=internal
Google searching doesn't turn up much, is there documentation on this
somewhere?

thanks, - rajat
--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.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




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

2006-07-14 Thread David Rorex

must have just been indexed by google then, a quick search points me to
livedocs, and then a search on livedocs finds this page:

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1590.html


allowNetworking

String

Restricts browser communication. This property affects more APIs than the
allowScriptAccess property.

The allowNetworking property supports the following values:

  - all: No networking restrictions. Flash Player behaves normally. This
  is the default.
  - internal: SWF files cannot call browser navigation or browser
  interaction APIs (such as the ExternalInterface.call(), fscommand(),
  and navigateToURL() methods), but can call other networking APIs.
  - none: SWF files cannot call networking or SWF-to-SWF file
  communication APIs. In addition to the APIs restricted by the internal
  value, these include other methods such as URLLoader.load(),
  Security.loadPolicyFile(), and SharedObject.getLocal().

For more information, see *P**rogramming ActionScript 3.0*.

-David R

On 7/12/06, Rajat Paharia [EMAIL PROTECTED] wrote:


MySpace has recently started writing this into all Flash embeds:
allownetworking=internal
Google searching doesn't turn up much, is there documentation on this
somewhere?

thanks, - rajat
--

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

2006-07-14 Thread Flash Mel

Ok, so I just got Eclipse installed yesterday.  I've been using SciTEFlash
forever and it has served me well.  But I needed a better way of managing my
projects and the projects of the other flash developer here.

ANYWAY...now that I have Eclipse installed I am a bit confused as to to
setting up and testing movies.  Not just for class files either, but for
regular .as files, I am at a loss as to how to test the movie.  =\

Hopefully working in this environment and pushing myself more, I can begin
writing more AS2 classes and even *gasp* AS3!!  =]   One day soon.

Any help or tutorials and even some guidance would be appreciated.  If this
might be a lengthy description, feel free to contact me on google talk.

Cheers and my bad for the newbie-ish post.

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


[Flashcoders] timeline effects, overide final alpha?

2006-07-14 Thread lists
Hi all,

I have a problem and I cannot imagine nobody else has had it before, yet I can
find no mention of it anywhere. I have searched the archives, adobe forums and
google.

When you apply certain timeline effects (for me, a transform) you get a dialogue
with various options in it. One of these is final alpha. The problem is, you
cannot say don't change the alpha, you just set it at 0% - 100%. But I wish
to apply an effect to an object which contains various degrees of alpha
transparency. So if I leave final alpha at 100%, all of my transparency
gradually becomes opaque.

This seems to me completely insane. There must be a way to override this!
Perhaps using actionscript to alter it at run time? Am I just missing something
really obvious?

I am using Flash 8 Pro btw, in case it matters. Also, if there is a better place
for me to ask the question please advise.

Cheers

Kev


P.S. just so it's clear, here is a quick note to replicate the problem:

1) create a new flash movie
2) draw a black square on the screen
3) draw a white square over it, set the white alpha to 10%
4) your square should be slightly lighter than black
5) select both squares and click select-timeline effects-transform-transform
6) change 'scale' to 150% and click OK.

You would expect to see the square grow but it will also turn white! GRR : )

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

2006-07-14 Thread Andy Stone
There's a ton of resources out there. You can find tutorials at a few of
sites below...

http://www.gotoandlearn.com/
http://www.ultrashock.com/
http://www.flashkit.com
http://actionscript.org
http://www.kirupa.com
http://www.moock.org/asdg/codedepot/
http://www.sephiroth.it/tutorials.php

I Hope this helps. -Andy

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Flash Mel
Sent: Thursday, July 13, 2006 2:08 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Eclipse Assistance (beginner)

Ok, so I just got Eclipse installed yesterday.  I've been using SciTEFlash
forever and it has served me well.  But I needed a better way of managing my
projects and the projects of the other flash developer here.

ANYWAY...now that I have Eclipse installed I am a bit confused as to to
setting up and testing movies.  Not just for class files either, but for
regular .as files, I am at a loss as to how to test the movie.  =\

Hopefully working in this environment and pushing myself more, I can begin
writing more AS2 classes and even *gasp* AS3!!  =]   One day soon.

Any help or tutorials and even some guidance would be appreciated.  If this
might be a lengthy description, feel free to contact me on google talk.

Cheers and my bad for the newbie-ish post.

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


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

2006-07-14 Thread Nicolas Cannasse
2) Have methods which are not attached to specific class instances.

That's a bit like static methods no ?
 
 
 I was incomplete. I should have said, Have *bundled* methods which are
 not attached to specific class instances. That is, I want to be able to
 have groups of static methods. Static classes are how this is currently
 accomplished, but if we can't have private constructors, there's no way
 to prevent someone from (pointlessly) instantiating a static class.

Got it.
It's not in AS3, but haXe have both private contructors and the simple
possibility to NOT provide a constructor (in that case the class can't
be instanciated).

Nicolas
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Abstract classes in AS3?

2006-07-14 Thread Nicolas Cannasse
 Where can I find the source code of HaXe written in HaXe itself. I think 
 is one of the important milestones for a compiler, the possibility to 
 compile the compiler with itselves :)

Not always.
The AS3 compiler is not written in AS3.
Haxe is using OCaml which is IMHO the best language to write compilers.
Since haXe is opensource, you can download them from http://haxe.org

Nicolas
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Eclipse Assistance (beginner)

2006-07-14 Thread Steven Sacks | BLITZ
If you liked SciTE, you should check out Flash Develop.

http://www.flashdevelop.org/community/

It launches in like 2 seconds and has tons of great features.  It's
still in development, but it's coming along nicely.  It supports all the
file types you edit when working in Flash.

Sorry for hijacking your thread.



BLITZ | Steven Sacks - 310-551-0200 x209

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Andy Stone
 Sent: Friday, July 14, 2006 12:41 PM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] Eclipse Assistance (beginner)
 
 There's a ton of resources out there. You can find tutorials at a few
of
 sites below...
 
 http://www.gotoandlearn.com/
 http://www.ultrashock.com/
 http://www.flashkit.com
 http://actionscript.org
 http://www.kirupa.com
 http://www.moock.org/asdg/codedepot/
 http://www.sephiroth.it/tutorials.php
 
 I Hope this helps. -Andy
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Flash
Mel
 Sent: Thursday, July 13, 2006 2:08 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Eclipse Assistance (beginner)
 
 Ok, so I just got Eclipse installed yesterday.  I've been using
SciTEFlash
 forever and it has served me well.  But I needed a better way of
managing
 my
 projects and the projects of the other flash developer here.
 
 ANYWAY...now that I have Eclipse installed I am a bit confused as to
to
 setting up and testing movies.  Not just for class files either, but
for
 regular .as files, I am at a loss as to how to test the movie.  =\
 
 Hopefully working in this environment and pushing myself more, I can
begin
 writing more AS2 classes and even *gasp* AS3!!  =]   One day soon.
 
 Any help or tutorials and even some guidance would be appreciated.  If
 this
 might be a lengthy description, feel free to contact me on google
talk.
 
 Cheers and my bad for the newbie-ish post.
 
 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
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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: Re: [Flashcoders] Php Host

2006-07-14 Thread Jamie D

I'm using http://hosting.media72.co.uk can't really fault them, their
support has often responded and had the issue resolved within 15
minutes and I've never had a ticket open more than 5-6 hours. A much
better experience than my previous two hosts.

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

2006-07-14 Thread Duncan Reid

I'm not going to pretend to know what you guys are talking about, but you
may be able to garner some useful info from this Distort Image class...

http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html

dunc


On 7/13/06, Danny Kodicek [EMAIL PROTECTED] wrote:



 I wonder if someone would be willing to help me off-list with a math
 problem or can refer me to a more appropriate person/list to ask this
 question:

 I have a photograph of a rectangle where the camera was slightly
 off-center and not parallel to the plane of the rectangle, so in the
 resulting photo, the rectangle is slightly distorted. I want to distort
 the image by repositioning the corner points of the photograph so that
 the interior rectangle is precisely positioned and sized.

 1) I know the size of the photo,
 2) I know the coordinates of the rectangle's corners in the photo
 3) I know the coordinates where I want the rectangle's corners to be
 after the transformation.

 I need to know the new coordinates of the photo's corners to achieve #3.

I don't know if you got the offlist answer you asked for, but it's
probably
a question worth answering on-list too.

Basically what you need to do is to invert a transformation matrix. So you
need to start by constructing the matrix M used to transform the original
rectangle R = (0,-H,W,0) to the distorted rectangle: that is (using
homogeneous coordinates (the kind used in Flash's own Matrix object)), M
maps (0,0,1) to (x1,y1,1), (0,-H,1) to (x2,y2,1), (W,-H,1) to (x3,y3,1)
and
(W,0,1) to (x4,y4,1).  This matrix *ought* to be given by:

( (x1-x2)/H  (x4-x1)/W  x1)
( (y1-y2)/H  (y4-y1)/W  y1)
( 0  0  1 )

I say 'ought' because if your camera has a non-parallel distortion, this
matrix may fail to correctly transform the fourth point to (x3,y3,1). If
that's true, there's no matrix that will work (all matrix transformations
are affine, meaning they transform parallel lines into parallel lines).

Once you have this matrix M, you can invert it to get M'(If you can't do
that, I can explain how) and apply M' to the corners of your image to get
your un-transformed rectangle.

Best
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] In the List Component how to add more than one icon in one item (eg. Yahoo Messenger's Address Book)

2006-07-14 Thread Santhakumar K

flashcoders,
 I am developing a appliction which should have more than one icon in one
item (eg. Yahoo Messenger's Address Book). Anyone can help me in this
regard.

Thanks,
santhakumar
--
Santhakumar K Chennai India
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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