[Flashcoders] How to change textformat for List rollover?

2008-04-15 Thread Derek Vadneau
I haven't had a need to use the CS3 components in an actual project until 
now.

After hunting the docs it seems I can only change something like the 
highlight colour for all components by editing the graphics for each 
component type. Ugh.

Anyhow, I'm now trying to change the colour of the text for a list 
component so there's a different colour for up/over/down/disabled. The up 
and disabled appear in the docs as textFormat and disabledTextFormat, but 
there's no mention of changing the textformat for the over or down 
conditions.

Is there a way? ... without having to create a custom cellrenderer ...


Derek Vadneau


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


Re: [Flashcoders] AS3 - loading external classes?

2007-09-05 Thread Derek Vadneau
You must store the classes as compiled SWFs. The Flash Player cannot 
compile raw code on the fly.

Once you load the SWF you will be able to access the classes it contains.

However, make sure you aren't loading a classes with the same 
package/classname as a class that is already loaded. A previously loaded 
class with the same name will not be overwritten by the newly loaded 
class.

There is also the concept of Runtime Shared Libraries (RSLs). I've only 
used these with Flex, so someone else would have to comment on CS3's 
ability (or lack thereof) to use RSLs.


Derek Vadneau
http://tracethis.com


- Original Message - 
From: Martin Scott Goldberg [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, September 05, 2007 11:10 AM
Subject: [Flashcoders] AS3 - loading external classes?


I'm wondering if anyone can help.

I have an application I'm writing where, depending on user response, I
need it to load an externally stored class and then be able to access that
class from within the calling swf.

I.e., I have a standard interface that I want to use to load various game
classes without having to store the classes (games) directly in the
interface.

Can I store that external class as an .as, or do I have to compile it in
to a .swf?  Likewise, how do I go about loading it and accessing the
defined class and methods then?

Thanks to anyone that can help!


Marty


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

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


[Flashcoders] Use Flex library SWC in Flash CS3

2007-08-22 Thread Derek Vadneau
Is it possible?

The library does NOT depend on any part of the Flex SDK. Only the 
playerglobal.swc is included.

I have tried adding the SWC to the AS3 classpath, but that only lets me 
compile, the code isn't actually included in the SWF.

Or is there a way in Flash CS3 to create an AS3 library in the same way as 
Flex does, so that it can be used in a Flash project?

tia,

Derek Vadneau


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

2007-08-22 Thread Derek Vadneau
_root.sp.vPosition = _root.sp.content._height - _root.sp.height + 4;

The height is probably bigger than the max scroll position so it's 
ignoring it.

The +4 is for the border.


Derek Vadneau
http://tracethis.com


- Original Message - 
From: Mendelsohn, Michael [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, August 22, 2007 4:23 PM
Subject: SPAM-LOW: [Flashcoders] Scroll to maximum vPosition?


Hi list...

Setting a V2 ScrollPane's vPosition is easy enough, but for sending it
all the way to the bottom.  The following isn't working for me:

_root.sp.vPosition = _root.sp.content._height;

Anyone know if a trick is involved?

Thanks,
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Using Flex Library SWC in Flash CS3

2007-08-09 Thread Derek Vadneau
Someone asked this in the Flexcoders list without response for quite a 
while, so maybe this is a better place to ask this question, since it 
involves Flash.

Is it possible to use an SWC created in Flex 2 in Flash CS3? The SWC is a 
Flex Library project that contains no Flex framework-specific code. When I 
include the SWC in the Flash classpath the compiler is happy, but running 
the SWF produces a VerifyError that says the class could not be found.

I know I could just point to the actual AS files, but I want to be able to 
distribute an SWC file.

In Flex Builder there are options for SWCs: merge into code, external, 
RSL. Is there any such option in Flash CS3? It seems like SWCs are treated 
as external.



Derek Vadneau

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

2007-07-06 Thread Derek Vadneau
Thanks for looking into this John and passing along the info.

I haven't used the WebServices classes myself for quite a while, but, 
obviously, there has been quite an outpouring of comments regarding their 
non-appearance in Flash CS3 (AS3). It's good to hear about any 
developments on this matter.


Derek Vadneau

- Original Message - 
From: John Dowdell
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, July 06, 2007 3:05 PM
Subject: SPAM-LOW: Re: [Flashcoders] WebServices support in AS3/FLCS3


Enrique Chávez wrote:
 What happened with the webservices classes in AS3/Flash CS3?  i can't
 believe they are gone.

I asked Product Manager Richard Galvan about this earlier this week, and
I'll ping him today face-to-face to confirm. Here's where I'd expect
info to appear first, if it isn't already among the technotes somewhere:
http://blogs.adobe.com/rgalvan/

I suspect that it's something like not all AS2 routines yet adapted for
the tighter ECMAScript in AS3, but even if so this info should still
already be available in a FAQ or other searchable resource.

I'm sorry for the hassle in the meantime, but I've got an action item to
pursue this and get it publicly resolved. (I'll be on vacation next
week; if it's not addressed by then please feel free to title a thread
JD Flakes Out! on Flashcoders the week of the 16th to nudge my memory,
thanks ;-)

jd


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

2007-06-19 Thread Derek Vadneau
This one works for me.

if (loaderInfo.url == loaderInfo.loaderURL)
{
// This is the main SWF.
}


Derek Vadneau

- Original Message - 
From: Patrick Matte|BLITZ
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 19, 2007 3:48 PM
Subject: SPAM-LOW: [Flashcoders] AS3 root


Hi fellas, I have a swf that's loaded inside another one. The container 
swf calls the transitionIn function in the loaded swf. In AS2, I used to 
put this in the loaded swf:

if(this == _root){
transitionIn();
}

That way I could test my swf in the flash IDE independently from the 
parent swf. If the swf was loaded in the container, this wouldn't be eqal 
to _root and the transitionIn would not be called.

I'm trying to do the same thing in AS3. Every displayObject container has 
a root property but, it stops at the swf level. So root of the loaded swf 
is equal to the actual swf, not the container. So how can I know if the 
swf is tested by itself in the IDE or it is loaded by the container?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] loading CS3 swf into flex swf container

2007-06-15 Thread Derek Vadneau
The stage object may never be accessible to the loaded content if it's 
never added to a display object.

The only way to access the stage property (directly) is to listen for the 
Event.ADDED_TO_STAGE event. Indirectly, you could have the base SWF call a 
method in the loaded SWF and pass a reference to the stage.


- Original Message - 
From: Max Kaufmann
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, June 15, 2007 12:12 PM
Subject: SPAM-LOW: [Flashcoders] RE: loading CS3 swf into flex swf 
container


Oop, turns out it had nothing to do with flex.  It was crashing because I
used the stage handle in the constructor of my Document class, which
apparently isn't available to externally downloaded content, and I got a
null reference exception.

So what are the rules for when the stage is available to externally loaded
content?

Max Kaufmann l Technical Artist


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: SPAM-LOW: [Flashcoders] Private var not accessible?

2007-06-07 Thread Derek Vadneau
You'd run into the same issue with setInterval.

When you specify a function reference like this there is no scope for that 
function, so the private var is not within the scope of the function.

Use the alternative call for setTimeout:

var delay = _global.setTimeout(this, 'delayedFunc', 1000 );

Or use Delegate:

var delay = _global.setTimeout( Delegate.create(this, delayedFunc), 
1000 );

In both cases you are providing the scope for which the function will 
have.


Derek Vadneau

- Original Message - 
From: eric e. dolecki
To: Flashcoders mailing list
Sent: Thursday, June 07, 2007 1:17 PM
Subject: SPAM-LOW: [Flashcoders] Private var not accessible?


I have a simple class and I can't access a private var after using
setTimeout... I typed this up to show whats happening:

class foo extends MovieClip
{
private var nTime:Number = 0.75;
private var delay:Number;

function foo()
{
// stuff
};

public function doSomething():Void
{
trace( nTime ); // works fine [0.75]
var delay = _global.setTimeout( delayedFunc, 1000 );
};

private function delayedFunc():Void
{
trace( nTime ); //undefined ?
};
}

?? I could use setInterval and kill it after the first fire, but 
setTimeout
is nicer. This is AS2 obviously.

- eric


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: SPAM-LOW: Re: [Flashcoders] Private var not accessible?

2007-06-07 Thread Derek Vadneau
Looks to me like you've lost scope as a result of going to _global.

Nope. _global is simply an object and has nothing to do with scope in this 
case.

but that car should be available from anywhere within the class, no?

No. When you specify a function reference in setInterval or setTimeout the 
function's scope only includes local and _global. It does NOT include 
where the function is defined. In AS3 it would because of function 
closure, but that's not the case in AS1/AS2.

That's why there's the alternative arguments for setInterval and 
setTimeout. Or you can use Delegate if you want compile-time checking of 
the function reference.


Derek Vadneau

- Original Message - 
From: eric e. dolecki
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, June 07, 2007 3:38 PM
Subject: SPAM-LOW: Re: [Flashcoders] Private var not accessible?


inside a class i have to use _global.setTimeout since its not in the
intrinsics, maybe use Delegate, but that car should be available from
anywhere within the class, no?

eric


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

2007-05-28 Thread Derek Vadneau
Not sure about TextPad but I know EditPlus will let me search entire 
directories, and subdirectories if desired, for whatever text, or even a 
regular expression, in any files found. You can specify the extensions or 
not. The files don't have to be open in the program and the results are 
returned as a list (one for each line found in each file) in a window. You 
can then double-click a line and the associated file will be displayed at 
the line in question (line will be highlighted).

Is that the kind of functionality you would be looking for?

If not, what is it you need that isn't covered in what I mentioned?


Derek Vadneau

- Original Message - 
From: Hairy Dog Digital
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, May 28, 2007 2:45 PM
Subject: RE: [Flashcoders] [OT] desktop file searching utility


I know that. What I need the capacity to do is to search a directory (or
directories) for files -- regardless of file type -- for specific strings,
not necessarily words or phrases.

The need for this became apparent when I inherited a large Flash 8 project
with hundreds of class files. I inherited it for debugging, so I'm 
searching
for needles in a haystack.



-Original Message-
From: David Ngo [mailto:[EMAIL PROTECTED]
Sent: Monday, May 28, 2007 2:16 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] [OT] desktop file searching utility

You can use a text editing program such as TextPad to search and/or 
replace
within text files specific strings and case-sensitivity.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: SPAM-LOW: Re: [Flashcoders] removeMovieClip scoped incorrectly?

2007-05-24 Thread Derek Vadneau
I'll bet if you trace the movieclip where your class resides from outside 
the class (on the next frame or after a timeout) you'll find that the 
movieclip no longer exists.

removeMovieClip is being scoped to the class itself, not the Global 
function removeMovieClip.

Just use:
_root[thisColumn_txt].removeMovieClip();


Derek Vadneau


- Original Message - 
From: Allandt Bik-Elliott (Receptacle)
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 24, 2007 11:52 AM
Subject: SPAM-LOW: Re: [Flashcoders] removeMovieClip scoped incorrectly?


yeh i correct that - still gives me the same jyp


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: SPAM-LOW: [Flashcoders] Detect Flash version in AS3

2007-05-23 Thread Derek Vadneau
If you load a Flash 9 SWF into _level0 the SWF won't be contained in the 
Flash 8 (or previous) SWF, it will be the main movie.

So, technically you could use a SWF published for a previous version and 
detect the version of Flash Player installed, then display a message or 
load the Flash 9 SWF into _level0 (loadMovieNum).

However, if the user doesn't have the Flash Player installed at all you'll 
have to use another solution anyhow. SWFObject or another would be a 
better option.


Derek Vadneau

- Original Message - 
From: Joe Cutting
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, May 23, 2007 10:48 AM
Subject: SPAM-LOW: [Flashcoders] Detect Flash version in AS3


Hello,
   I'm building a web project in AS3 using Flash CS3. Originally my idea 
was
that the swf would do a version check at the start of the program and
if the user wasn't running
Flash 9 they would be redirected to download the upgrade.
Now, I've done some thinking about this and realised that if the user
isn't running Flash 9 then they
won't be able to run the swf at all so it wouldn't be able to run the
version check.
Can anyone confirm that this is the case? If so it looks like that
the only ways to check if
users can run AS3 swfs are:
- use some kind of javascript like SWF Object
- use another version detection swf written in AS2. My understanding
is that this would have to call the
AS3 swf rather than wrapping it.

I'd be interested to know how other people have got on with this issue.

Cheers

Joe


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: SPAM-LOW: Re: [Flashcoders] flash and USB port

2007-05-18 Thread Derek Vadneau
A USB device isn't connected to a port. It is assigned a drive letter and 
is a removable drive on the computer. You access it like you would access 
any local resource.

You don't need a 3rd party tool to do this, but you do need to be running 
in the local or trusted sandbox. You can't access a local resource 
(directly) from a web page.


Derek Vadneau
Northcode Inc.
http://www.northcode.com

- Original Message - 
From: quinrou .
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, May 18, 2007 1:41 PM
Subject: SPAM-LOW: Re: [Flashcoders] flash and USB port


Joe, i thought about that I also fund a xtra for doing so too but, i would
rather avoid using Director.

Pedro, I have been checking out Zinc and it has a COMPort class which I
beleive is I/O communication. when I did a quick test to check whether it
could detect some USB device, I only got connaction with COM1, COM2 which 
i
beleive are the serial and parallel port, no?

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: SPAM-LOW: [Flashcoders] Whats new in Flash CS3

2007-05-09 Thread Derek Vadneau
Try the Flash page of the Adobe site:
http://www.adobe.com/products/flash/

There are links that say:
- Learn about new features
- Take a tour


Derek Vadneau

- Original Message - 
From: Berkay Unal
To: [FlashCoders]
Sent: Wednesday, May 09, 2007 11:17 AM
Subject: SPAM-LOW: [Flashcoders] Whats new in Flash CS3


Hi Coders,

Been searching the web for a video or a breeze meeting that will explain 
the
new features on the Flash CS3 but could not found any?

Does anyone one has some links?

Best


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

2007-04-02 Thread Derek Vadneau
The version of the FLA is in the XML Publish Settings file?

I don't think that's the case.

Afaik, there is no way to get this information from JSFL.

JSFL implementation in Flash 7/8 is mediocre, imho. While there are some 
very useful things you can do with JSFL, it all feels like a hack. The 
document support is terrible (not documentation, although that's not 
fabulous either). I really hope JSFL in Flash CS3 got a revamp. Although, 
since it didn't make the top 10 things new about Flash CS3, I'm guessing 
not much was changed. I really hope I'm wrong.

The only thing I've ever seen in regards to determining the version of the 
FLA is a tool called FLAVer by Tim Goss that launches the version of Flash 
on your system that most closely matches the FLA version. I don't know the 
specifics, but he figured out how to get the version by reading parts of 
the FLA file. I realize it doesn't answer the question directly, but it 
does demonstrate that there is a way to get this information. But, afaik, 
not from JSFL.
FLAVer: http://www.northcode.com/free/flaver/flaver.php


Derek Vadneau


- Original Message - 
From: Steven Sacks | BLITZ
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, April 02, 2007 1:37 PM
Subject: SPAM-LOW: RE: [Flashcoders] JSFL - Saving FLAs


The version is located in the XML Publish Settings file.  It's been
reported that changing this value using JSFL does not work (a bug).
However, you CAN read it.

Refer to my blog entry regarding the XML Publish settings file to see
how to get the version number out of it.

http://www.stevensacks.net/2006/08/06/using/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] JSFL - Saving FLAs

2007-04-02 Thread Derek Vadneau
Yep, that's why I mentioned: Afaik, there is no way to get this 
information from JSFL.

I pointed out FLAVer as an option. If the user with Flash 8 also has Flash 
MX 2004 FLAVer will open the FLA in the correct version of Flash, instead 
of the default, which is to open the FLA with the version of Flash that 
was last opened, which would probably be the latest version.

Also, if the thread starter (ChrisRM) knows a programmer, he/she might be 
able to help with something like a C DLL that could be used by JSFL to 
actually detect the FLA version. I've asked the FLAVer creator if he'd be 
interested in creating this for the community, so we'll see.


Derek Vadneau

- Original Message - 
From: Hershell Bryant
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 03, 2007 3:19 PM
Subject: RE: [Flashcoders] JSFL - Saving FLAs


I believe that the whole point is that the person wants to ensure that his
FLAs are saved for version MX, so that the coder using only MX can pick up
the baton from the coder with a v8 install.


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

2007-04-02 Thread Derek Vadneau
Hi Chris,

Holth, Daniel C. mentioned an option in the Flash 8 preferences: Warn on 
save for Macromedia Flash MX 2004 compatibility

Instead of yelling at the users everytime, yell at them once to enable 
this option. Then when you try to save an MX04 doc in Flash 8 it will 
prompt you. If they still save as Flash 8, then that's something to yell 
at them about.


Derek Vadneau

- Original Message - 
From: ChrisRM
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, April 02, 2007 4:06 PM
Subject: SPAM-LOW: RE: [Flashcoders] JSFL - Saving FLAs


You're correct, Hershell. I have users who some have Studio 8 installed
and a couple with just MX 2004, and we don't have enough licenses to go
around at the moment.

I did see FLAver and I can guess it reads the header of the file to get
the version info. Other than that I think we're stuck and I'll have to
keep yelling at the ones who keep going to FileSave in Studio 8.

That's another bugger that gets me too. You open a MX 2004 file in Studio
8 and when you go to save, it saves it as version 8. You'd think it would
save it to it's original version; or pop up a message saying it's in a
older format and to stick with the older or use the newer format.

Anyways :)

I appreciate everyone's thoughts.

Chris


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

2007-02-14 Thread Derek Vadneau
What version is the SWF you are loading that causes you the grief? Is it 
the same version as the SWF that is performing the load?

Was it published for version 6 (or earlier) perhaps?


Derek Vadneau

- Original Message - 
From: T. Michael Keesey [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 14, 2007 1:27 PM
Subject: SPAM-LOW: Re: [Flashcoders] onLoadComplete, but no onLoadInit


On 2/14/07, T. Michael Keesey [EMAIL PROTECTED] wrote:

 On 2/14/07, John VanHorn [EMAIL PROTECTED] wrote:
  this problem has been discussed before. is this what youre referring 
  to?
 
  http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.html
 
  seems that MovieClipLoader events do not fire correctly when content 
  is
  loaded from cache. if this is your problem, would appended a 
  cache-killing
  query string to the url work? something like:
 
  mcl.loadclip(someswf.swf?d= + new Date().valueOf(),
targetMc
);

 I'll give it a try, but this is a problem in the IDE and in Firefox.
 (I actually have not tested in IE yet.)

Just tried it. It seems to remove the problem in Firefox, although it
prevents it from even being tested in the IDE. The problem still
exists in IE, though.

Incidentally, httpStatus (in the IDE, at least) for onLoadComplete is 
always 0.

Also worth mentioning: one of the SWFs it fails on is one that is
loading for the first time, so could not be cached. It's not a
cacheing issue. All of the failures are loading into movieclips that
previously housed other content--that might be something to look
into

One thing I might try is having the loaded content force a call to
onLoadInit. Crappy solution, but
-- 
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: SPAM-LOW: [Flashcoders] Identifier expected

2007-02-09 Thread Derek Vadneau
Wow, a lot of misinformation here gents.

this._data[a] = {1:new Number(0), 2:new Number(0), 3:new
Number(0)};

When creating a new object using this syntax the property names are 
considered strings. Adding the quotes is what is causing the issue. If you 
remove the quotes the compiler will still complain because you can start a 
property value with a number, unless you use the [] syntax for creating a 
property. In that case you can use anything you want, even non-printable 
characters.


 As you have discovered you are not able to use numbers as
 keys in line objects.

That's not true.

Just wrote this and it works fine.

a = {};
a[a] = {};
a[a][1] = new Number(5);
trace(a[a][1]);


The quote was in line objects, so the statement was true. What you did 
was take the in line objects and represent it in a different manner.

The second line does not work because you are evaluating a string to try 
to resolve it to a property of the object, (which you are hoping is a 
sub-object) that does not exist yet.

No, he wasn't.

this._data = new Object(); // Fine
this._data[a] = {}; // Still fine

this._data was created, then this._data.a is created afterwards using the 
{} syntax instead of new Object().

That's why this still produces errors:

private function createData():Void {
this._data = new Object();
this._data[a] = new Object();
this._data[a] = {t1:0, t2:0};
}


If you MUST have numbers as the property values, use Chris Benjaminsen's 
version:

function createObj():Void {
this._data = new Object();
this._data[a] = new Object();
this._data[a][1] = new Number(0)
...
}


Derek Vadneau

- Original Message - 
From: Mendelsohn, Michael [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 09, 2007 1:08 PM
Subject: SPAM-LOW: [Flashcoders] Identifier expected


Hi list...

Simple question -- why doesn't the 2nd line work?  The identifier
expected error is traced at compile time.

Thanks,
- Michael M.


function createObj():Void {
this._data = new Object();
this._data[a] = {1:new Number(0), 2:new Number(0), 3:new
Number(0)};
}


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: SPAM-LOW: RE: [Flashcoders] AS3 properties woes

2007-01-24 Thread Derek Vadneau
It happens because the compiler realizes you haven't called super() in 
your constructor and does it for you.


Derek Vadneau

- Original Message - 
From: Petro Bochan [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, January 24, 2007 9:20 AM
Subject: SPAM-LOW: RE: [Flashcoders] AS3 properties woes


Brandon Barkley
 Also not an AS3 expert, but I think Danny is wrong. The super function
 is necessary to call the parent constructor.

Hi Brandon,

I'm afraid u r wrong. Just try it out, the constructor IS being called
once u extend the class.

Cheers,
Petro


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: SPAM-LOW: RE: [Flashcoders] AS3 properties woes

2007-01-24 Thread Derek Vadneau
Programming ActionScript 3.0  Overview of ActionScript Programming  
Object-Oriented Programming in ActionScript  Classes

http://livedocs.macromedia.com/flex/2/docs/1842.html

If the superclass constructor is not explicitly called, the compiler 
automatically inserts a call before the first statement in the constructor 
body.

You can call super() anywhere in your constructor (before or after other 
code), but if you leave it out, super() is called for you.


Derek Vadneau

- Original Message - 
From: Brandon Barkley [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, January 24, 2007 10:20 AM
Subject: Re: SPAM-LOW: RE: [Flashcoders] AS3 properties woes


If that's the case, that's a really stupid bit of functionality because
you can't completely override a constructor. I was not aware that AS did
it that way.



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

2007-01-24 Thread Derek Vadneau
You can put code before super(). If you intend to use any super methods 
then you definitely need to call super() beforehand. But if you want to 
call a method of your sub class before super(), it does work.

.. now I don't necessarily agree with doing that, but I guess it depends 
on what you need to accomplish.


Derek Vadneau

- Original Message - 
From: Steven Sacks | BLITZ [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, January 24, 2007 1:52 PM
Subject: RE: [Flashcoders] AS3 properties woes


I don't know about AS3 (and I can't imagine this is different from AS2)
but you cannot put any code before super() in a constructor.

super() must be the first line of code in a constructor.

You should pass the labelClass value to the super constructor (watch
your every move, super constructor).

super(date);

and in your parent

function ClassName(lc:String)
{
labelClass = lc;
}




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: SPAM-LOW: [Flashcoders] Getting variables in as3

2007-01-23 Thread Derek Vadneau
Variables are attached to the Application.application.parameters object.

trace(Application.application.parameters.frame);


Derek Vadneau

- Original Message - 
From: William Smith [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, January 23, 2007 12:38 PM
Subject: SPAM-LOW: [Flashcoders] Getting variables in as3


In earlier versions of flash if varaibles were appeneded on to the end of
the url (i.e. movie.swf?frame=6size=30) you could access the varaibles 
with
just their names or _root.[varaible name]. With the loss of _root in AS3 
how
would you accomplish this?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: SPAM-LOW: [Flashcoders] Getting variables in as3

2007-01-23 Thread Derek Vadneau
Sorry, you're right.

In an AS-only project you can use:

trace(root.loaderInfo.parameters.frame);


Derek Vadneau

- Original Message - 
From: William Smith [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, January 23, 2007 1:06 PM
Subject: Re: SPAM-LOW: [Flashcoders] Getting variables in as3


That will work for flex, but the mx.* classes aren't in flash 9, and
Application is part of mx.core


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

2007-01-22 Thread Derek Vadneau
From the docs:
If Flash Player cannot get a status code from the server, or if Flash 
Player cannot communicate with the server, the default value of 0 is 
passed to your ActionScript code. A value of 0 can be generated in any 
player (for example, if a malformed URL is requested), and a value of 0 is 
always generated by the Flash Player plug-in when run in the following 
browsers, which cannot pass HTTP status codes from the server to Flash 
Player: Netscape, Mozilla, Safari, Opera, and Internet Explorer for the 
Macintosh. A value of 0 can also be generated if the player did not try to 
make the URL request to perform the load operation. This can happen 
because the request violates security sandbox rules for the SWF file.

The 403, in case you were asking about that, is the server restricting 
access to a resource. Typically, this is because you need to provide some 
type of authorization to get access.


Derek Vadneau

- Original Message - 
From: Donald Desloge [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, January 22, 2007 9:24 AM
Subject: [Flashcoders]MovieClipLoader http error codes


I'm getting an httpStatus code of 0 back from a MovieClipLoader error. 
This only happens on a Mac with the Flash IDE. Every once and a while I 
get a 403 http error but not all of the time. I was wondering if anyone 
else has run into that error before or not?


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

2007-01-18 Thread Derek Vadneau
Just like the Flash Players before 9, you can create a standalone 
projector EXE using the Flash standalone player. Double-click your SWF 
file. When it opens in the standalone player, click File  Create 
Projector... Then select the name and location to where you want to save 
the EXE file.

The standalone player is the debug version. Afaik, Adobe has not released 
a non-debug standalone player 9 yet.

To open the SWF in the standalone player, in Flex Builder 2 open the 
Properties for your project (right-click on the project folder and click 
Properties, or choose Project  Properties from the root menu). Click on 
the ActionScript Compiler leaf and de-select the checkbox Generate HTML 
wrapper file. Click OK. You'll get a warning that all files in the 
html-template directory will be deleted, just say yes.

Any HTML (and associated) files in the bin directory will remain. To clear 
them out as well, click Project  Clean...


Derek Vadneau

- Original Message - 
From: August Gresens [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, January 18, 2007 12:04 PM
Subject: [Flashcoders] Deploying Standalone Apps with Flex2


With the Flash IDE, one can publish a standalone projector - native
executable.

This seems to me to just be the standalone player with a SWF file embedded
in it.

Does anyone know how one would accomplish the same thing with Flex? Can 
this
be done from the Flex IDE or is there a special tool?

Also, is there a way to configure Flex to run builds in the standalone
player rather than launching the default web browser?

Thanks,

August


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

2006-12-13 Thread Derek Vadneau
You get live preview for free when you set your Library item as a 
component and point it to the AS2 class for that component.

However, you won't actually see the live preview in your FLA until you 
compile the SWF (right-click option in the Library panel), or you create 
the SWC and add it to an FLA.

You also get _global.isLivePreview, which is a variable you can use in 
your layout methods to determine if you're running in LivePreview mode or 
not.

The only problem I've had with this method is when I've used arrays or 
objects for parameters that should appear in the Properties panel. The 
value would not be set as an array or object.


Derek Vadneau

- Original Message - 
From: Mike Lyda [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 13, 2006 2:10 PM
Subject: [Flashcoders] flash 8 components from scratch?


I'm relearning components and came across a somewhat recent thread
http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg21869.html
that lead me to this statement regarding xch from Eric D..
 What do I need to put in my component class to allow updates on the 
Stage
of the component instance to update? I've tried a couple things,even using 
the
old xch. stuff
see in context here:
http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg21877.html

and I've seen a couple of places that Flash 8 was supposed to streamline 
the
live preview of components but I'm not finding much that shows how this 
takes
place.

I would rather not use all the pre-built v2 component architecture and 
it
seems that all of the documentation assumes that you're going to extend
UIObject, extend Button, etc..I used to make simple components with 
live
preview using xch and it looks like I still can, but if there's a newer 
and
better alternative out there then I'd like to hear about 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] flash 8 components from scratch?

2006-12-13 Thread Derek Vadneau
In Component DefinitionLive Preview there's No live preview, Live 
Preview in external .swf file, and Live Preview with .swf file embedded 
in .fla file.  There's nothing for use this symbol for Live Preview as 
well.

You don't set that. When you add the AS2 class in the Component Definition 
dialog that's all you need to do. That and make sure your Library clip has 
something inside it so it has dimensions when placed on the stage. A 
simple box movieclip will do. Just make sure to hide it in your init code 
so that it's not visible at authortime/runtime.

Is there an example of this somewhere?

Check out this tutorial by Joey Lott:
http://www.person13.com/articles/components/creatingcomponents.html

Except for a small section that talks about dispatchEvents, there's 
nothing that requires you to include anything from the V2 framework.

He's even got a sample ZIP file.


Derek Vadneau

- Original Message - 
From: Mike Lyda [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 13, 2006 3:57 PM
Subject: Re: [Flashcoders] flash 8 components from scratch?



k.. what you said jives with other things that I've been reading, but I 
can't
get it to work and it doesn't match up to what I'm finding in the docs or 
the
IDE settings.

In Component DefinitionLive Preview there's No live preview, Live 
Preview
in external .swf file, and Live Preview with .swf file embedded in .fla
file.  There's nothing for use this symbol for Live Preview as well.

I have my FLA with symbol in it (the symbol I want to be my component), I 
point
it to my class that contains my [Inspectable] code and I set the symbol to 
No
live preview then convert it to a compiled clip (or a SWC) -- I don't get 
a
live preview when it's dropped on the stage.

If I use an external SWF for live preview and use xch then it all works.. 
I get
live preview and parameters entered into the component inspector are 
updated on
the live preview.  But it's extra code to maintain, etc.

Is there an example of this somewhere?  All I can find are old tutorials
showing how to build components for MX and MX04.. which use separate live
preview SWFs and xch to exchange data with the component inspector.


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

2006-11-27 Thread Derek Vadneau
Buy it.

I don't have a lot of large projects, but I do have a lot of them and 
gProject has been a huge time saver. It helps organize your projects. I 
think some of the (seemingly) simple pieces are worth the dough. Things 
like exploring the directory where your project is when you need to move 
and manage file assets. The folder locations feature is also a time saver. 
I use it to include common directories for all projects so you can quickly 
get to frequently-used files.

For OOP projects, they say it should have been part of flash.

Forget OOP, just about any project can use it.

Check out what others have said:

http://weblogs.macromedia.com/md/archives/2006/02/gproject_a_fant.cfm
http://www.flashguru.co.uk/gproject-panel-review/
http://www.feed-squirrel.com/index.cfm?evt=viewItemID=23853
http://labs.blitzagency.com/?p=7

Those are just some of the links I found through Google.


Derek Vadneau


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Weyert de 
Boer
Sent: Monday, November 27, 2006 10:21 PM
To: Flashcoders mailing list
Subject: SPAM-LOW: [Flashcoders] gProject


Does anyone use gProject and if so what do you think of it? I might be
planning to buy it, only I am not sure if it's any good. You can't get a
limited demo either.

Yours,
Weyert de Boer


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] connecting excel spread sheet to Flash

2006-11-22 Thread Derek Vadneau
Take a look at some of the 3rd party swf2exe tools.

For instance, with SWF Studio you can use Flash and JScript to manipulate 
an Excel spreadsheet - not just read it. With JScript you have control 
over the Excel COM object. You could also use SWF Studio's ADO plugin to 
read the spreadsheet as if it was a database.


Derek Vadneau
Northcode Inc.
http://www.northcode.com

- Original Message - 
From: nik crosina [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 22, 2006 11:17 AM
Subject: Re: [Flashcoders] connecting excel spread sheet to Flash


Thanks, Jason,

I should have explained better, this is going to be for a CD based
app, so it'll need to work without any server side scripts or use of
database.

But what you suggest is certainly something to consider for any future
on-line brochures / pricelists - especially since it seem to requrie
NO special saving of the spread shets frmo the sales peoples point of
view (to explain to them even the most basic of XML will be futile...
;)

Thanks,
Nik


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

2006-10-03 Thread Derek Vadneau
I'd be rather worried if Nicolas didn't want to promote it.
Except that the original poster was asking for opinions and getting an 
opinion from someone who develops one of the products is not as useful.

Besides, getting a little off the original request.

I don't use haxe nor mtasc so for me I would prefer something that just
works based on the swf or the projector.


Derek Vadneau



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

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


Re: [Flashcoders] Flv's playing in a projector from usb drive

2006-09-07 Thread Derek Vadneau
Have you tried specifying a full path, i.e. E:\english\flv\Classroom.flv ?

Unless you are specifying that in AS, then it's:
myflvpb.contentPath = E:\\english\\flv\\Classroom.flv;

Just a thought.


Derek Vadneau

- Original Message - 
From: Kent Haynes [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, September 07, 2006 10:01 AM
Subject: RE: [Flashcoders] Flv's playing in a projector from usb drive


I just gave that a shot and no luck.

Thanks for the idea though...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Guy
McLoughlin
Sent: Wednesday, September 06, 2006 7:08 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flv's playing in a projector from usb drive


Have you tried shortening the file name to something DOS compatable?
( 8 characters + extension )

   i.e. Classrom.flv


- Guy

At 06:20 PM 06/09/2006, Kent Haynes wrote:
It's not huge  3.9 MB.

But we've just discovered some more info.  It's definitely related to
the FAT32 file system.  We formatted two partitions on the drive one
NTFS and another FAT32 and sure enough the NTFS plays fine FAT32
doesn't play.  So I was looking for weird characters in the path.
Nothing out of the ordinary. Path + name = english/flv/Classroom.flv  I

also tried english\flv\Classroom.flv to no avail.

None of our package structures are deep at all.


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

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


Re: [Flashcoders] Flv's playing in a projector from usb drive

2006-09-07 Thread Derek Vadneau
I would say that you should use the full path if you are playing locally. 
There seems to be no problem with relative paths on the web for FLVs, but 
relative paths for local FLVs seems to be hit and miss.

Specifying the full path in all (local) cases wouldn't be a bad thing.


Derek Vadneau

- Original Message - 
From: Éric Thibault [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, September 07, 2006 11:10 AM
Subject: Re: [Flashcoders] Flv's playing in a projector from usb drive


If I understand correctly, I can use relative path if project is on a
CD, the WEB or  on a local drive but have to use absolute path if its on
a removable or remote drive? :-\

Thanks for the clarifications!

:-)



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

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


Re: [Flashcoders] Flv's playing in a projector from usb drive

2006-09-07 Thread Derek Vadneau
If your SWF is running on the same drive as the FLV, _level0._url contains 
everything you need.


Derek Vadneau

- Original Message - 
From: Helmut Granda [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, September 07, 2006 11:22 AM
Subject: Re: [Flashcoders] Flv's playing in a projector from usb drive


the tricky part is to find what drive letter it is for the person that is
using your app, as you know some people have more than 1 external drive
runing.

I wonder if a for loop would fix the case.


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

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


Re: [Flashcoders] ANN: Screenweaver HX - Version 1.0

2006-08-31 Thread Derek Vadneau
When you present a choice to a paying client, you should emphasis with 
the choice you think is superior technicaly. Hopefuly they are companies 
that are looking in the details and not only at branding and marketing.

It's not simply about marketing or branding. It's about accountability. 
With an open-source project there is no accountability. A corporation may 
use open-source software, but it will be purchased through a company that 
can offer support and more importantly accountability. So when the 
corporation's database gets turfed for whatever reason they have someone 
they can blame - someone who will fix the problem.


Derek Vadneau

- Original Message - 
From: Nicolas Cannasse [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, August 31, 2006 3:11 PM
Subject: SPAM-LOW: Re: [Flashcoders] ANN: Screenweaver HX - Version 1.0


 Several important differences between Screenweaver HX and Apollo :

 - size : SWHX takes 450 KB. Apollo is expected to be in the 5-9 MB 
 range

 Sure, but Apollo is a global runtime isn't it?

What do you exactly mean by a global runtime ? It's possible that once
installed, you might not have to install it again. But 5-9 MB is quite
big for the user the first time he want to download your application.

 - extensibility : SWHX is extensible with custom-made C libraries.
 Apollo is not

 How does that work with cross platform applications?

It's up to you. If you want to support some System features in a
crossplatform way, you can do it. Existing haXe libraries for example
are working the same on Windows / OSX PPC+Intel (universal binaries) and
Linux.

But that's for extensibility purposes. There's already a good number
of available libraries to use directly. Unless less you need some
extras, you will be able to stick to haXe for programming your System 
Layer.

 - open source : SWHX is open source. If you get a bug, simply report
 it and it should be fixed in terms of days. If it's critical for you,
 you'll not have to wait the next big release since you can recompile
 the sources.

 With respect, were I to present a paying client with a choice between a
 platform developed by a known entity and one developed by a couple of
 guys in their spare time, 9/10 they're going to pick the former.

And do you think this is a good thing ? :) When you present a choice to
a paying client, you should emphasis with the choice you think is
superior technicaly. Hopefuly they are companies that are looking in the
details and not only at branding and marketing.

 - API : Apollo 1.0 does not have databases planned. From SWHX you can
 already access a big number of haXe APIs, including SQLite an MySQL
 databases.

 The edges start to blur for me here..  I can't think of many scenarios
 where I'd write an application these days that accessed a database
 directly.  SQLite is an advantage, especially for offline support, but
 aside from that I'll stick to a service architecture.

A lot of Desktop apps are using somehow an embeded database. Having
direct access to Sqlite is nice. You don't NEED to use it if you don't
want so better to have it than not :)

 I don't know how we got into this, because I think SWHX is a great idea
 with oodles of potential, it's just not right for me in the long run ;-)

Not exactly sure why, except for the Brand ? but you admited before
that ScreenWeaver has already gained some reputation of its own... Or is
this just unfounded discrimination ? ;)

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] adding help books

2006-08-24 Thread Derek Vadneau
Are you just looking for what to put in your MXI or are you looking for 
how to setup your Help book?

Here's an example of a file node in the MXI:
file name=help_toc.xml destination=$flash/HelpPanel/Help/MyBook /

The MyBook folder will be a folder where all of your docs are kept. The 
help_toc.xml file is the definition of your help structure.

If you need more on creating the Help files, check this link:
http://www.northcode.com/forums/showpost.php?p=29823postcount=6


Hth,

Derek Vadneau


- Original Message - 
From: Ravi Marella [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, August 24, 2006 11:08 AM
Subject: SPAM-LOW: [Flashcoders] adding help books



Hi list,

Iam trying to add a new help book to the standard help through MXI but I 
am not able to find the exact way to do it, I googled a lot and found 
nothing much useful. Can some one please help me in this ...thanks in 
advance


Ravi 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


Re: [Flashcoders] Dynamic access of top-level variables in AS3

2006-07-11 Thread Derek Vadneau
Create an object in the global scope to contain your variables, let's call 
it _global. Then reference it as:
_global[myVar];

Or if you don't like the idea of a global object, create a dynamic class 
to do the same.


Derek Vadneau

- Original Message - 
From: Chris McFadyen aka Grayson Carlyle [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, July 11, 2006 11:31 AM
Subject: [Flashcoders] Dynamic access of top-level variables in AS3


flash.display.Stage is a sealed class and can't contain swf-passed
variables.

 QUOTE 
or what about

stage[myVar]

Charles P.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Dynamic access of top-level variables in AS3

2006-07-11 Thread Derek Vadneau
No, you don't need to know the name of the variable. myVar isn't the 
name of the variable, it's a variable that holds the name of the variable.

So:
function getVar(myVar)
{
return _globla[myVar];
}

getVar(variableDelta);


You need to know the variable name at some point to create it and to 
address it. That is, your class doesn't need to know, but at some point in 
code a variable name is known, whether it's generated with a string 
concatenation or passed from another SWF/app/browser/etc.

Does that address your situation? If not, maybe you could explain how you 
want to use it?


Derek Vadneau

- Original Message - 
From: Chris McFadyen aka Grayson Carlyle [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, July 11, 2006 11:50 AM
Subject: Re: [Flashcoders] Dynamic access of top-level variables in AS3


That however requires putting those variables into the global object 
(which
I don't have a problem with), but I don't know the names of these
variables... that's why I need dynamic variable references.



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

2006-07-07 Thread Derek Vadneau
Yes, a SWF8 loaded into a SWF9 does play. However, there are quite a 
number of limitations.

For instance, you can't reference _level0, or any _level. Tracing out 
trace(this) in the SWF8 displays _root. So each SWF8 assumes it is 
_root. But they are not loaded into different _levels. In fact you can't 
even use loadMovieNum to load another SWF8 into your SWF8. You can use 
loadMovie, but the ability to reference _levels has been removed. It's 
like _lockroot on steroids.

I was able to determine that each SWF8 is loaded as 
_level0.instanceN.instanceN+1, where N is a number. You can find this by 
placing code on a movieclip in the main timeline of your SWF8 and tracing 
_parent - not this._parent, just _parent. The result was 
_level0.instance1. I was then able to display the contents of 
_parent._parent, which is _level0 - not much there:

lconid:527c
historyUrl:history.htm?
$version:WIN 9,0,15,0
instance3:_level0.instance3
instance1:_level0.instance1

instance1 and instance3 are containers that hold SWF8s that are loaded. 
The SWF8s are _level0.instance1.instance2 and _level0.instance3.instance4.

But, all SWF8s that are loaded into a SWF9 share _global. You can't 
directly communicate with the SWF9 but you can communicate with other 
SWF8s.

So what? Well, it means your loaded SWF8s may be able to be used, but 
depending on how you reference things, they may not work as expected. 
However, they will run.


Derek Vadneau

- Original Message - 
From: Johannes Nel [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, July 07, 2006 8:45 AM
Subject: SPAM-LOW: Re: [Flashcoders] AS3 faster ??


the code does not execute if the parent movie is aimed at avm2.

On 7/7/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:

 wonder what happens if you load a SWF published with as2.0
 into a SWF publishes in as3.0, does it have to switch VMs?


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

2006-07-06 Thread Derek Vadneau
I realize this has the potential to get off-topic real fast, so can you 
send me a link off-list to info on MS not supporting 2000?

They will be stopping public support for 98, 98SE, ME, and XP SP1, but 
I've never seen anything about 2000.


Derek Vadneau

- Original Message - 
From: Nick Weekes [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, July 06, 2006 10:24 AM
Subject: Re: [Flashcoders] Flash 9 Public Alpha ...


Given that MS no longer support 2000 themselves, why are you still using
it?  Just curious...


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading Flash 6 .swf files into a Flash 7 .swf

2006-07-05 Thread Derek Vadneau
_global scope is different, as well as any prototypes you've created.

However, it's not a security issue, simply a difference in how things were 
implemented. So, you can get around it by simply making a reference in the 
main SWF and re-referencing _global in the child SWF.

For example (in the main SWF):

_level0.global = _global;

Then in the child SWF:

_global = _level0.global;

Now the child _global references the main _global.

If you want a reference to the old child _global, you can specify (from 
within the child SWF):

_level0._global;

Even though _level0 really is the main SWF, _level0._global when 
referenced from the child SWF references the child SWFs original _global.

Strange but true.


Derek Vadneau


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Todd 
Hivnor
Sent: Wednesday, July 05, 2006 6:41 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Loading Flash 6 .swf files into a Flash 7 .swf



I have a Flash application which loads in external .swf files for drawing 
charts. My main .swf is compiled for the Flash 7 player, while the loaded 
swf files are compiled for the Flash 6 player. The Flash 6 .swf is not 
able to access variables or functions which are defined in the _global 
context of the Flash 7 .swf file. But if I have two Flash 7 movies, or two 
Flash 6 movies, things work fine.

Is there some known interaction I should know about? Specifically, 
shouldn't two .swf files compiled for different versions player still 
share the same _global scope?


As an example, I've created flash6.fla and flash7.fla. They have the 
following action script:


---flash7.fla---

_global.callbackFunction = function() { trace(Got Callback); }

loader_mc = _root.createEmptyMovieClip(loader_mc, 3);
loader_mc.loadMovie(flash6.swf);

---flash6.fla---

trace(Loaded Flash6.swf);
trace(_global.callbackFunction:  + _global.callbackFunction);

---

The trace function shows me that _global.callbackFunction is defined if 
flash6.fla is published for Flash 7 players. But if I republish, targeting 
the Flash 6 player, the function is longer defined. It is like they have 
totally separate _global scopes. If I switch from _global to _root, 
however, things work fine. So, I can work around the issue. But it strikes 
me as real odd that the two .swf files don't share the same _global 
variable space.

Clues?


-
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Getter/Setter behaviour question

2006-06-30 Thread Derek Vadneau
I checked the archives and Googled variations of this issue but I couldn't 
find anything specific to this issue.

I created a component that contains some inspectable properties, which are 
actually getters and setters. I simplified the class to demonstrate the 
issue.

The inpectable prop is an array to let you specify paths to movieclips. 
Because the array is made up of strings, the setter function is supposed 
to run through the array and eval the strings. However, the setter is only 
called once, and it's passed an empty array, even though there is a 
default and the component properties panel contains data.

Here is the class:

class MyClass
{
private var _scrollTargets:Array;

function MyClass()
{
init();
}

public function init():Void
{
trace('init: '+_scrollTargets);
}

[Inspectable(type=Array,defaultValue=_level0)]
public function set scrollTargets(t:Array)
{
trace('set: '+t);

_scrollTargets = new Array();
}
public function get scrollTargets():Array
{
trace('get: '+_scrollTargets);

return _scrollTargets;
}
}

The array in the component properties panel is _level5, just so it's 
different from the default _level0.

In the Output panel I get:
set:
get:
get:
init: _level5

What gives?

The setter is only called once but somehow the private property is set to 
contain the value(s) I enter.

In the setter, if I don't make _scrollTargets = new Array(), then the 
trace on the init is undefined, as I would expect.

How is the property being set without going through the setter? The 
property being set isn't the same name as the getter/setter (it has an 
underscore) so how is it being set?

I realize I can do this a different way, so I'm not looking for 
alternatives, unless I'm doing something incorrectly, in which case please 
let me know.

TIA,

Derek Vadneau


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Getter/Setter behaviour question [SOLVED]

2006-06-30 Thread Derek Vadneau
For anyone interested:

I figured something out and remember reading something about this, 
although I can't find a link at the moment.

The getter is setting the property. The setter is ignored, and in fact 
there doesn't need to be a setter, and the private property is set.

Example: (the same as my previous code except with the set function 
commented out)

class MyClass
{
private var _scrollTargets:Array = new Array();

function MyClass()
{
init();
}

public function init():Void
{
trace('init: '+_scrollTargets);
}

[Inspectable(type=Array,defaultValue=_level0)]
/*
public function set scrollTargets(t:Array)
{
trace('set: '+t);
}
*/
public function get scrollTargets():Array
{
trace('get: '+_scrollTargets);

return _scrollTargets;
}
}

This traces:
get:
init: _level5

Mystery solved. Dumb, but at least it can be explained.


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

2006-06-28 Thread Derek Vadneau
You can't, directly.

A SWF8 loaded into a SWF9 ends up being an AVM1Movie Object. You can't 
cast this as a MovieClip. I tried casting it and got a failure during type 
coersion.

The two SWFs can only talk via LocalConnection, or through 
ExternalInterface. You could implement a class on each side to handle the 
conversation through ExternalInterface so that it behaves like two SWF8s.

Of course ExternalInterface requires that you implement code in the 
container/browser.


Derek Vadneau

- Original Message - 
From: Robin Burrer [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 27, 2006 11:58 PM
Subject: [Flashcoders] another AS 3 question


Hi

How do I control the timeline of a loaded swf file (created with the
Flash 8 IDE) with AS 3? My problem is that the content property of a
Loader object returns me a display object but not a movieclip.

I tried casting but my application crashes when I try to run it.

Any ideas?

Robin


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

2006-06-19 Thread Derek Vadneau
Are you loading a SWF or using attachMovie?

If you are using attachMovie, the value isn't ready until a frame later. 
Use onEnterFrame or some other mechanism to cause a delay to read the 
value.

If you are loading the movie, make sure to use the onLoadInit event of 
MovieClipLoader so that the code within the first frame of the movie has 
enough time to run, setting up the value.

If you are loading it is it coming from a domain other than that of the 
main SWF? Let me know, the questions branch out if this is the case.


Derek Vadneau

- Original Message - 
From: Mendelsohn, Michael [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, June 19, 2006 11:25 AM
Subject: RE: [Flashcoders] Can't reach boolean?


Hi Danny...

Thanks for responding.
The value is just a constant true, on the timeline of
_root.collective.table1.p5.

If I trace(root.collective.table1.p5), I get the clip's path in the
output window, no problem.  But if I go and trace a variable within that
mc, I get nothing.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Accepting 1 parameter with 2 possible types inamethod?

2006-06-15 Thread Derek Vadneau
It depends on how you are using it.

Object is NOT the same as untyped.

Try this code:

var a:Array = new Array();
a.push('blah');
var s:String = a.shift();

Output panel displays:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: Type mismatch in 
assignment statement: found Object where String is required.
 var s:String = a.shift();

The Array.shift method returns type Object (according to the intrinsic 
definition), so you have to leave s untyped, make it type Object, or cast 
the value as String, otherwise you can't compile.

Array.shift should be untyped, imho.

In AS3 you actually have * to indicate that the parameter/return is 
untyped.


Derek Vadneau

- Original Message - 
From: Ian Thomas [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, June 15, 2006 1:49 PM
Subject: Re: [Flashcoders] Accepting 1 parameter with 2 possible types 
inamethod?


Yes - but - why bother omitting it?

It's only a few characters you're saving - the word :Object. If later
down the line you decide to change compilers and go with MTASC (or
perhaps port your code to AS3) you'll have to trawl back through all
the code putting those missing type definitions back in...

Ian


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

2006-06-13 Thread Derek Vadneau
Contact your bank/credit card company and do a charge-back. Explain the 
situation and you should be able to get your money back from the credit 
card company. Metaliq will get dinged for both the refund and a 
charge-back fee.

Normally this is not a nice thing to do, but if the company offers you no 
other alternative ...


Derek Vadneau

- Original Message - 
From: Sorensen, Shannon M - MWL [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 13, 2006 11:29 AM
Subject: [Flashcoders] Buyer beware mCOM


http://67.104.17.194/complaint/view/57077332/c/47x9hr


Consumer's Original Complaint :
Total:  $299.00 USD
Item/Product Name:  mCOM

Forum of upset customers:
http://www.gskinner.com/blog/archives/2005/09/mcom_glic_compo.html

The documentation and API spec for this product is so minimal that it
makes using these components impossible.

I open two support tickets, Ticket id: 132  133, with no responses. I
called twice and was told I would receive a call back and never did.

Consumer's Desired Resolution:
I believe Metaliq needs to make appropriate documentation for this
product and I personally want my money returned.

BBB Processing
(Most recent activity listed first)
06/13/2006 OttO EMAIL Forward Business Response to Consumer
06/12/2006 WEB BBB RECEIVE BUSINESS RESPONSE : From the
Master End User License Agreement, which all customers must agree to
before purchasing the mCOM product:
THE FEE FOR THE PRODUCT BY METALIQ IS NON-REFUNDABLE.
in addition,
Section 7, Paragraph (a)
METALIQ PROVIDES NO REMEDIES OR WARRANTIES, WHETHER EXPRESS OR IMPLIED,
FOR THE PRODUCT, AND THE PRODUCT IS PROVIDED AS IS.
from Section 8. EXCLUSIVE REMEDY:
Provided that any non-compliance with the above warranty is reported in
writing to Metaliq no more than ninety (90) days following delivery to
you, Metaliq will use reasonable commercial efforts to supply you with a
replacement copy of the Software that substantially conforms to the
documentation, provide a replacement for defective media, or refund to
you your purchase price for the Product, at its option.
**Please note: 90 DAYS
Purchase date 9/2/2005
Case opened 5/31/2006


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

2006-06-12 Thread Derek Vadneau
Been like that for quite some time.

Too many people answering newbie posts instead of pointing them to the 
newbie list.

Plus, too many OT posts. Why would someone want to read discussions on 
non-Flash coding topics in Flashcoders? That's what other lists are for. 
Others seem to disagree, and while I too am interested in various topics 
Flash-related, they don't necessarily belong here.

Dave Watts gave an excellent post and link a couple of weeks ago about 
list etiquette: 
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-May/166785.html


Derek Vadneau

- Original Message - 
From: Mike Mountain [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, June 12, 2006 10:37 AM
Subject: [Flashcoders] Flash coders content degrading


Dunno if its me skilling up (which I doubt) but it would seem a lot of
the posts flash coders are getting now would be better suited in:

Flashnewbie: http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie

We seem to be getting a lot of basic questions and the list seems to
have lost some of its bleeding edge status.

Anyone else sense this change in the force?

It would seem a lot of the big guns have moved on - so the question is
where is the next list up? Has everyone moved over to:

OSFlash: http://osflash.org/mailman/listinfo/osflash_osflash.org

What's the traffic/quality ratio there like?

M


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

2006-06-12 Thread Derek Vadneau
There is no free license for the standalone player alone, that I know of. 
Are you trying to distribute to just one person for development/approval 
purposes?

If so, then just send an EXE with a SWF that loads another SWF at startup 
as someone suggested, so that you can just send them new SWFs to test.

If you are trying to distribute the player, you need to apply for a 
license to do so. If the license on the Adobe site does not satisfy your 
needs you should contact Adobe for licensing options.

Licensing requirements are best discussed with lawyers not other 
developers. Everyone has their opinion, but only a lawyer is going to be 
able to give you the legal devices to back you up.

If you are planning to distribute you might also want to look at some of 
the SWF2EXE options out there.


Derek Vadneau
http://MadeByDerek.com
mailto:[EMAIL PROTECTED]

- Original Message - 
From: 8ball Developer [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, June 12, 2006 12:13 PM
Subject: Re: [Flashcoders] Flash coders content degrading


People, stop the madness

The flash player question is not a newbie question. I have over 8 years of
flash development under my belt. It's a simple question, not newbie and I
still don't have a good answer for 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] Flash coders content degrading

2006-06-12 Thread Derek Vadneau
We know. The only way to discuss the list with the list is to post on the 
list.


Derek Vadneau

- Original Message - 
From: Lee McColl-Sylvester [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, June 12, 2006 12:44 PM
Subject: RE: [Flashcoders] Flash coders content degrading


Er, didn't they just turn this thread into what they commented they'd
prefer not to see so much of in the FlashCoders list?  ;-)

Lee


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Is it possible to change Stage background coloratruntime?

2006-06-08 Thread Derek Vadneau
There is no way to change the actual background at runtime from Flash 
alone. Using a background movieclip will let you do this. As someone else 
mentioned, use the Stage onResize event and change the size of the 
movieclip to fill the Stage. You can then use the Color methods to 
manipulate the colour at runtime.

Not sure about the other SWF2EXE tools, but SWF Studio does enable you 
change the background colour at runtime - assuming this is even an option 
for your project.


Derek Vadneau
Northcode Inc.
http://www.northcode.com

- Original Message - 
From: Fernando Castillo [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Thursday, June 08, 2006 12:28 AM
Subject: RE: [Flashcoders] Is it possible to change Stage background 
coloratruntime?



Oops! I did forget to specify that this question is about EXE files.

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] remove haloGreen - haloBlue- haloOrange

2006-06-07 Thread Derek Vadneau
myRadioButton.drawFocus = undefined;


Derek Vadneau

- Original Message - 
From: Gresh, Lois [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Wednesday, June 07, 2006 2:24 PM
Subject: RE: [Flashcoders] remove haloGreen - haloBlue- haloOrange



Seems the only solution is to handcode the radio buttons, as in the old
days, to get rid of the need to totally void the themeColor to 
transparent.


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

2006-06-05 Thread Derek Vadneau
There's no simple property for this but I was able to put together an 
example that works (check below for the caveats):

var o;
var i:Number;
var tf = t.getTextFormat();
var linesOfText:Number = 2;

var originalText:String = t.text;

for (i=0; ioriginalText.length; i++)
{
o = tf.getTextExtent(originalText.substr(0, i));

if (o.width  2 * t.textWidth  o.width  linesOfText * t.textWidth - 
20)
{
t.text = originalText.substr(0, i);
break;
}
}

It's a little funky, but extending Flash textfield seems to always be like 
that.

What it does is store the original text and populate the textfield with 
text only up until it would scroll.

Here are the caveats:
1. The number in the if condition (20) is a guess. If I had the time to 
spend on this I would calculate the size before the next word. As it is 
now 20 seemed to work for the text that I had.
2. The text will be from the 0 character onwards. If you have a scrollbar, 
or other means of scrolling, the scrollPosition will not be taken into 
account.

Again, if I had the time this could probably be made to compensate for the 
caveats.

Hope it helps.


Derek Vadneau

- Original Message - 
From: Tom Lee [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Monday, June 05, 2006 4:05 PM
Subject: SPAM-LOW: [Flashcoders] Prevent Multiline Selectable TextField 
from scrolling?


This should be a trivial problem, but for some reason I'm not seeing an
obvious and clean solution (one of those Mondays).  What I want to do is
prevent a TextField from scrolling when the user selects the text.
Essentially, have the text be selectable but locked in place, regardless 
of
the height of the text field.



I've tried:



TextField.onScroller = function(tf){

tf.scroll = 0;

}



This works ok, but not cleanly.  The text is still allowed to scroll, it
just jumps back into place when the user releases the mouse.  There 
oughtta
be a TextField.scrollable:Boolean.



Ideas?


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

2006-06-02 Thread Derek Vadneau
The second parameter is optional and can be left out.

Check the docs:

Availability:
- None of the commands described in the table are available in web 
players.
- All of the commands are available in stand-alone applications, such as 
projectors.
- Only allowscale and exec are available in test-movie players.

The only thing you can use fscommand for in the web player is to 
communicate with scripting on the hosting page. So if you want to quit the 
browser, you can use fscommand(QuitBrowser, ), and then have a 
function in JavaScript that actually does the close.


Derek Vadneau
Northcode Inc.
http://www.northcode.com

- Original Message - 
From: Dan Efergan [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, June 02, 2006 11:34 AM
Subject: Re: [Flashcoders] browser will not quit!!


You're FScommand is wrong... I'm pretty sure you need the blank
argument as well.

Try:
on (release, releaseOutside ) {
this.gotoAndStop ('buttonUp');
getURL(javascript:window.close(this));
fscommand(quit,);
}

(Extra blank argument to the end of the quit)

Dan

On 2 Jun 2006, at 14:42, Simon Turner wrote:

 I am trying to get a browser window to quit upon completion of a
 Flash based Assessment.

 It is running on a touch screen till using the html file generated
 when the fla file is published.  Everything works fine until the
 assessment is required to quit - but the current  coding i am using
 will not do this.

 please have you any  ideas or work rounds that i may use or try?

 current code is 

 on (release, releaseOutside ) {
this.gotoAndStop ('buttonUp');
getURL(javascript:window.close(this));
fscommand(quit);
 }

 many thanks
 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] OOP 101: Is import really necessary?

2006-05-25 Thread Derek Vadneau
The import statement embeds, but so does this:
var a:mx.controls.Button;

import also allows you to use a shortcut as has been mentioned already.

From the docs:
Lets you access classes without specifying their fully qualified names.
..
You must issue the import statement before you try to access the imported 
class without fully specifying its name.

If you import a class but don't use it in your script, the class isn't 
exported as part of the SWF file. This means you can import large packages 
without being concerned about the size of the SWF file; the bytecode 
associated with a class is included in a SWF file only if that class is 
actually used.

If you import but don't use it it's not included ... however, in practice 
you can definitely see that the SWF file size has changed.

I took a blank FLA and published for a SWF size of 43 bytes.


I then used this code:

import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;

File size: 42.5 KB


I then used this code:

var b:mx.controls.Button;
var l:mx.controls.List;
var t:mx.controls.Tree;
var d:mx.controls.DataGrid;
var a:mx.containers.Accordion;

FileSize: 48.3 KB


I then used this code:

import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;

var b:Button;
var l:List;
var t:Tree;
var d:DataGrid;
var a:Accordion;

FileSize: 48.3 KB

So the classes seem to be included in the SWF with just the import 
statements. Of course there is no difference if you import and use them 
compared to using them with explicit reference to the classes.

Now the docs say that import by itself doesn't include the classes, but I 
used this code:

import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;

trace(_global['mx']['controls']['Button']);

The output panel displays [type Function] telling me that the class was 
indeed included. The compiler doesn't understand the [] notation as a 
reference to the class during compile-time, so I don't think that's why it 
worked. I think the classes are indeed included. However, someone could 
prove me wrong.

Incidentally, the file size was 42.5 KB ... so, trim the fat and use [] 
notation!


Derek Vadneau

- Original Message - 
From: Merrill, Jason [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 1:24 PM
Subject: RE: [Flashcoders] OOP 101: Is import really necessary?


The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.

Err...that has not been my understanding at all.  If that is the case,
then why do you NOT need to include your class files on the server with
the .swf?  Since reality is you don't, all that code has to be in the
swf upon compiling, otherwise, the .swf wouldn't know what to do with

Myvar:MyCoolClass = new MyCoolClass();

If it's not included with the .swf, how would the .swf know what
MyCoolClass is otherwise?


Jason Merrill
Bank of America
Learning Technology Solutions


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

2006-05-25 Thread Derek Vadneau
Then how do you explain my results?

43 bytes for a SWF with nothing in it compared to 42.5 KB (that's 
kilobytes) with only 5 import statements.

How do you account for the ~42.4 KB?

And how do you account for the fact that a trace of the class using [] 
notation traces out [type Function]? If the classes were in fact not 
included, would it not return undefined? The compiler doesn't know that 
I've referenced the class when I use [] notation.


Derek Vadneau

- Original Message - 
From: Weldon MacDonald [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 2:54 PM
Subject: Re: [Flashcoders] OOP 101: Is import really necessary?


The import statements tell the compiler where to find the classes your
going to use, it compiles into the byte code only the classes you use.
You could also do it by giving the full package.class of the class
too. Import statements aren't strictly necessary, but they save a lot
of typing if your using the library 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] OOP 101: Is import really necessary?

2006-05-25 Thread Derek Vadneau
Well, I've demystified it, sorta.

My previous results were from the timeline.

Here are the results from a simple class:

Just a simple class that is instantiated.
228 bytes

Same but with import statements in the class file.
228 bytes

Same but with variable assignments in the class.
47.9 KB

Variable assignments with no imports.
47.9 KB

That is probably what everyone is expecting to see and how the docs define 
the behaviour. When we talk timeline, you can chuck that.

Interesting difference. I don't know why it would matter but that's the 
behaviour I'm seeing.


Derek Vadneau

- Original Message - 
From: Ian Thomas [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 3:47 PM
Subject: Re: [Flashcoders] OOP 101: Is import really necessary?


Hi Derek,
  That's really interesting - and goes against everything I'd expect.
Particularly when your other results have kind of proved the opposite
(and I've certainly proved the opposite before with ClassFinder
situations). A couple of other tests might prove illuminating...

- Is the same true of non-Macromedia classes? (i.e. have they hacked
something specifically for those? I'd doubt it, but you never know)

- How does it behave when you do something like:
import mx.controls.Button;
var a:String=mx;
trace(_global[a]['controls']['Button']);

In other words, is the compiler doing some cunning reduction on the
string literals and actually working out that you're using the class?
Again, I doubt it, but you never know!

You have me mystified. :-D

I'd test it myself, but have to rush off now to put up a tent in about
10cm of muddy water in a field somewhere in the middle of the UK. If
nothings come to light by the beginning of next week, I'll have
another look. :-)

Cheers,
  Ian


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

2006-05-19 Thread Derek Vadneau
All of that would be true, if I hadn't mentioned changing the resolution 
via DirectDraw.

When you change the resolution via DirectDraw, the actual screen 
resolution doesn't change, so it doesn't screw up desktop icons or your 
original settings. The only exception to this is with some dual screen 
setups. My dual-screen setup doesn't recover properly when returning from 
a changed resolution, whether it be DirectDraw or a temporary setting 
(other functionality available from SWF Studio that doesn't mess with 
desktop icons). But I'm used to that with any software that changes my 
resolution, like games.

As for the jagged display, yes flat panels like to display at certain 
resolutions and get fuzzy at others. It's a give and take for this 
scenario, since you would get better performance but a fuzzyier image.

And yes you do get better performance when you lower the screen res 
because the Flash Player, and the client system, has fewer pixels to push 
around.

There's a reason why games change your screen resolution on you, and they 
do change it, via DirectDraw typically. Some games will let you set the 
screen resolution, and if you've got a kick-ass system you can play the 
game at very high res for even clearer display, but it does degrade 
performance.

And when I mention games I don't mean Flash games, I mean PC games.

As for the change res failing, when you attempt a res change in SWF 
Studio, via DirectDraw, and it fails, nothing happens, as in the call 
fails and the user's system doesn't change. DirectDraw doesn't change the 
refresh rate so cannot place the monitor in some messed up state.

Lucky for you, Flash can stretch to fill the screen.  You just need to
design for that by using vector art for the UI, although raster images 
look fine up to a point.  Stretching Flash may cause a slight performance 
hit, but you can also code your application to dynamically resize itself 
based on the user's current resolution, which takes more finesse and 
planning.

That's the point in changing the res - performance and keeping your SWF 
playing at the size you want while making it fullscreen.

Many users have flatscreen displays nowadays, which you can't or don't 
want to change resolutions on anyway.

Really? I have not yet seen a flat panel display that won't let you change 
the resolution. While I don't claim to have seen all flat panels out 
there, I would bet this isn't true of most displays.

On others, it simply puts deadspace around the sides whilst making the 
visual area smaller

800x600 is only 224x168 smaller than the average resolution these days. 
Try a nice border around the edge, black or a dark grey usually works best 
and after a few minutes most users won't even notice it anymore (much like 
the black bars at the top and bottom of widescreen movies).

That's rather contradictory. Yes, there is a setting for some screens 
(like laptops) that causes a res change to shrink the visual area, 
actually using the specified number of pixels rather than blowing up the 
image to fit the screen. What does that do? It's actually a great effect! 
It means you are playing your SWF at the smaller res, which means better 
performance, and the screen doesn't get fuzzy, and you get black borders 
for free! I don't see a downside here ...

As Robin mentioned it's not a wise thing to do this for every project. 
It's only needed when you are looking for best performance in a project 
that demands it.

And with proper planning you actually can account for special 
circumstances like screens that are not the typical 4:3 or dual displays.

I don't think a blanket don't do it is particularly useful.


Derek Vadneau

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Steven 
Sacks
Sent: Friday, May 19, 2006 1:11 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] CD ROM dimensions?


As a former Director programmer and desktop application developer, with 10
years experience in the industry, I have one thing to say to Flash
developers who have little to no experience developing desktop 
applications.

Changing a user's resolution without asking them first is a HUGE no-no.

Don't do it.

Why shouldn't I change their resolution automatically? I hear from the
desktop application development neophytes.  Such sweet innocence.  Your
incredulous cries shall be answered forthwith.

First, many displays, laptop displays (read: flatscreens) in particular,
only like to display at a specific resolution.  Changing the resolution on
these displays can result in unintended side effects.  On some, everything
gets extremely jagged, pixelated, blocky (i.e. crappy).  On others, it
simply puts deadspace around the sides whilst making the visual area 
smaller
(oh the irony).  Either way, your goal of making things look bigger and
better for the user just got Punk'd (Punk'd used with express permission
from Ashton Kutcher and MTV/Viacom, all rights reserved).

Second

RE: [Flashcoders] CD ROM dimensions?

2006-05-18 Thread Derek Vadneau
Just to clarify the performance hit with 3rd party projectors compared to 
the Adobe standalone player. It's due to the fact that the 3rd party tools 
use the ActiveX player, which as we know does not run as high as the other 
players with regards to framerate. Of course nothing stops you from 
changing the framerate to compensate.

With a tool like SWF Studio you can actually increase the performance by 
using it's ability to change the screen resolution using DirectDraw to run 
your app at an even lower resolution while keeping the app fullscreen.


Derek Vadneau

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Robin 
Burrer
Sent: Thursday, May 18, 2006 7:19 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] CD ROM dimensions?


I'd say pretty much everybody runs at least a 1024 X 768 resolution
these days. Most of the times I use 800x600 though, because of
performance issues.
It all depends on the kind of application you want to build.

Also keep in mind that your performance can decrease up to 20% if you
use a wrapper such as SWF studio or zinc (compared to the adobe
projector).

Robin


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

2006-05-15 Thread Derek Vadneau
That should be:
x = str.split(\\r).join(\r);


Derek Vadneau

- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Monday, May 15, 2006 2:38 PM
Subject: RE: [Flashcoders] \r


x = str.split(\r).join(newline);


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

2006-05-15 Thread Derek Vadneau
I don't mean to argue a moot point, but, newline is \r. I understood that 
the XML contains \ and r as text, which when displayed in his textfield 
showed \r, the text itself, instead of a newline. If you split out \\r and 
replace it with \r (or newline) it would replace the text \r with a real 
newline. Sorry for the confusion.


Derek Vadneau

- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Monday, May 15, 2006 3:07 PM
Subject: RE: [Flashcoders] \r


I tested it before I posted it.  The split works with just \r and the 
point
is that he was having an issue with \r not resolving in his textfield as a
newline so replacing it with a \r might not fix it but newline might.

-Steven


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

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


RE: [Flashcoders] kioks

2006-05-10 Thread Derek Vadneau
It depends on your needs. For a true kiosk app where certain keys and key 
combinations are disabled as well as the ability to kill certain 
applications and stop the user from killing your app and Windows, I 
recommend SWF Studio.

SWF Studio offers the most power for kiosk apps. With one checkbox you get 
kiosk mode, which disables keys like Alt+Tab for app switching, and 
disables TaskManager and any way to shutdown Windows. You also get the 
ability to monitor certain applications and have them shut down as soon as 
they start.

MDM decided to sell a kiosk add-on separately, although someone posted a 
free add-on in their exchange the same day. Now the exchange is no longer 
linked from the main site. Coincidence I guess. The official solution is 
$150 (on top of buying Zinc) and you can't try it without contacting their 
sales dept.

FlashProjector has an option to disable TaskManager, though I'm not sure 
what other capabilities it has in this area.

I don't think mProjector has anything built-in for kiosk apps, although 
someone correct me if I'm wrong.

Installers are another way to go. If you know what to shutdown in the 
registry you can get some kiosk functionality. You'd probably need some 
helper apps to get some of the other functionality that the wrappers have 
built into one tool.

If you want to check out the 3rd party wrappers, check out their trials 
and take a look at their docs and forums.


Derek Vadneau
http://www.northcode.com


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Flash guru
Sent: Wednesday, May 10, 2006 4:18 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] kioks


How does one go about making an installable flash app for a kiosk?

Do i need third party software?
Can i do it straight from flash?
What is the best way to go about doing this thing?

Thanks to all who answer


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] using both flash 8 -and- flash mx 2004 pro/flash 7player

2006-04-28 Thread Derek Vadneau
I run Flash 5/6/MX04/8 at home and 6/MX04/8 at work.

They install to different directories so there's nothing you need to do 
except install to the default directory.

The Flash players are included with the installs, so you can run the 
installers from the appropriate folder.

There are utilities that you can download to switch between versions in 
the browser, which would probably be handier.

The standalone players are also included in the installs and you just need 
to run the version you want and then anytime you double-click an SWF after 
that it will launch in that version of the SA player.


Derek Vadneau

- Original Message - 
From: Gresh, Lois [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, April 28, 2006 3:48 PM
Subject: [Flashcoders] using both flash 8 -and- flash mx 2004 pro/flash 
7player


We're thinking about upgrading to Flash 8.  Our customers are at Flash 6/7
players, but we expect some to start the shift to 8.

So - while using Flash 8 and the 8 player, I must simultaneously develop
Flash mx 2004 pro applications that run in Flash 6/7 players.

A long time ago, I read somewhere on this list that there's a way to 
install
Flash 8 so that you can still develop in MX 2004 pro - ie, run both 
versions
of Flash on the same PC at the same time.  Would you guys kindly supply 
some
tips for doing this?  Also, do we buy an upgrade, and if so, does the
upgrade install overwrite mx 2004 pro?  or are we forced to buy a full
install package if we need to run both versions of flash at the same time?

Also, is there a way to install the Flash 8 player without blowing away my
Flash 7 player -- ie, run both players on the same PC at the same time? 
If
so, how have you done this and then...how do you launch Flash 7 player
(rather than the also-installed 8) for testing purposes?  Ie, if I need to
test application A in flash 7, how do I make sure the 7 player launches
(rather than the 8 player) when I test application A?

Any help/tips appreciated.
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] Running FSCOMMAND EXEC with switches

2006-04-17 Thread Derek Vadneau
A SWF file can't write a text file by itself. If you use a SWF to EXE tool 
you can write whatever you want to a text file. And they will probably 
have the functionality to do what you were looking to have the batch file 
do for you.


Derek Vadneau

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Haschenburger
Sent: Monday, April 17, 2006 5:26 PM
To: Flashcoders mailing list
Subject: SPAM-LOW: RE: [Flashcoders] Running FSCOMMAND EXEC with switches


Is it possible to write text to a text file with out the variable names
monthNames=? My thought is to write to a text file(bat file) and then
execute the .bat file.

Thanks,T


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Thinking about upgrading to Flash 8

2006-04-11 Thread Derek Vadneau
Take a look at the man's JSFL command:
http://www.jessewarden.com/archives/2004/04/jsfl_list_frame.html

Also, there's an extension from Teknision, but I can't find the link at 
the moment.

So, no Flash 8 doesn't have this built-in, but with JSFL you can do this 
yourself. Jesse's spits out the frame labels to the output panel, but you 
could write the labels to an ActionScript layer, which is what I think the 
Teknision extension does.

Of course this could be done in Flash MX04 ...

As an aside, I'd recommend Flash 8 as an upgrade if you're using the IDE a 
lot. I use it all day and can't stand going to back MX04. Not that Flash 8 
is perfect, but there are enough IDE glitches that have been fixed in 8 to 
make it well worth the upgrade for me.


Derek Vadneau
Northcode Inc.
http://www.northcode.com

- Original Message - 
From: Info [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 11, 2006 12:36 PM
Subject: SPAM-LOW: [Flashcoders] Thinking about upgrading to Flash 8


A quick question before taking the plunge.

Has Macromedia gotten around to adding a movieclip property that is
an array of all the labels in the movieclip?  Much like the LabelList
property in Director?

If not, has anyone been able to replicate this
functionality?  Meaning, is it even possible to fake it without
having to make an array, containing the frames and their labels, by hand.

Thanks in advance,

Fred


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

2006-04-07 Thread Derek Vadneau
I did a search through the list and on Google for this but couldn't find 
mention about this issue.

Has anyone ever tried using __resolve on a class that extends another 
class?

I'm using __resolve to handle the multitude of methods that will be called 
on this class, which actually calls a 3rd party API. The class has some 
smarts for some of the methods and provides an interface to parameters via 
the parameters panel.

The class extends UIComponent.

Initially I was getting a 256 loop error and then nothing, after some 
tinkering.

After some debugging I put a trace in the __resolve function and what I've 
found is that any calls to superclass members are ending up in the 
__resolve and thus not working.

It's as though the inheritted members are not really on the subclass. 
That's the best I can explain it.

I've simplified the class:

import mx.core.UIComponent;

class Browser extends UIComponent
{
public var dispatchEvent:Function;
public var addEventListener:Function;
public var removeEventListener:Function;

function Browser()
{
}

public function init()
{
super.init();
}

public function go()
{
dispatchEvent({type:'gone'});
}

public function __resolve()
{
var method = arguments.shift();

return function ()
{
trace(method+':'+arguments);
}
}
}

Then in frame 1 I add a listener for the 'gone' event and execute 
myInstance.go();

This is the output:

initProperties:
createAccessibilityImplementation:
_endInit:
dispatchEvent:[object Object]
addEventListener:gone,_level0
dispatchEvent:[object Object]

The event handler never gets called.

Does anyone know why this happens? Is it not possible to use __resolve in 
this way?


Derek Vadneau


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

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


RE: [Flashcoders] what�s the catch?

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

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

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

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


Derek Vadneau


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


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

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

Any suggestions?
Thanks in adwane!

Peter


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

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


Re: [Flashcoders] FATAL Zinc issue

2006-03-27 Thread Derek Vadneau
Hey Peter,

Why does MDM release new builds without incrementing the build number? 
Doesn't that cause confusion for users? How would a user know if they have 
the latest build or not? How do you go about supporting them? It sounds a 
little odd to keep the build number the same for a new build, especially 
with critical fixes (like the one mentioned here) and additions (like the 
newest release of the Flash player). It may be a minor change on MDM's 
side, but for the developer, and end-user, it's a very big difference.


Derek Vadneau

- Original Message - 
From: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, March 27, 2006 6:38 AM
Subject: SPAM-LOW: [Flashcoders] FATAL Zinc issue


Hello Gene and everyone,

We identified an issue which caused this behavior on certain XP and 2000 
systems.
Minor changes have now been implemented to prevent the possibility of this 
issue arising again.
The latest 2.5.0.12 build includes these minor changes and will prevent 
this issue from occurring.

Registered users can download most recent builds from software update 
page:
http://www.multidmedia.com/support/update/

kind regards,
Peter Blazejewicz
MDM Support Team


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

2006-03-27 Thread Derek Vadneau
Actually they don't always:
http://www.mdmforum.com/forum/index.php?showtopic=14984hl=

This will, apparently, be the third release of 2.5.0.12.

Thus my question.


Derek Vadneau


- Original Message - 
From: Lee McColl-Sylvester [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, March 27, 2006 11:22 AM
Subject: SPAM-LOW: RE: [Flashcoders] FATAL Zinc issue


They do up the build... Now it's 2.5.0.12 whereas before it was 2.5.0.11

Lee


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

2006-03-10 Thread Derek Vadneau
Check the styles for superclasses of components as well:
myDataGrid.setStyle('alternatingRowColors', [0xE0E0E0, 0xFF]);

alternatingRowColors comes from List.

Set an array with the colours you want.


Derek Vadneau

- Original Message - 
From: Adrian Park [EMAIL PROTECTED]
To: Flashcoders@chattyfig.figleaf.com
Sent: Friday, March 10, 2006 8:12 AM
Subject: [Flashcoders] DataGrid rows with unique background colours?


I'm working on an app' that uses the Datagrid component. It would make my
client very happy if I could apply unique colours to individual rows in 
the
datagrid and it would enhance the user exeprience of the app' if it were
possible. Looking through the documentation, I can't find any way of
directly referencing a row or cell in the DataGrid so that's the first
problem. If I could get that reference, the next problem is how to apply 
the
colour to the background but I'm less worried about that as I'm sure I can
figure that out.

Anyone know how I might be able to do this?


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

2006-03-09 Thread Derek Vadneau
Not sure for SWFStudio.

Latest version of SWF Studio comes with intrinsic classes that you can 
just include in your classpath.


Derek Vadneau
Northcode Inc.
http://www.northcode.com

- Original Message - 
From: JesterXL [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 09, 2006 11:46 AM
Subject: Re: [Flashcoders] Hiding methods from the compiler


For Zinc, define in main class:

var mdm:Function;

For mProjector, prefix with _global.

Not sure for SWFStudio.


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

2006-03-02 Thread Derek Vadneau
Make sure you're loading a file from a web server, not locally.  Local 
files will be loaded in one shot so getBytesTotal will not be what you 
expect.

In my experience getBytesTotal will not be ready in the same frame, or 
possibly even the next, but whenever Flash is able to get the size of the 
file from the server.

The slow part of loading a large local XML file is the parsing of the XML 
by Flash, not the loading of the file itself.

all other caluculations had to stop until the XML was loaded.
That's true for local files: XML, SWF, etc.  Not true when loading from a 
web server.


Derek Vadneau


 Yes I also tried this with the same results.

 Merrill, Jason wrote:

var pctLoaded:Number = Math.floor(my_xml.getBytesLoaded() /
my_xml.getBytesTotal() * 100);


Does that really work?  I know you said you got it from the help docs
and all, but I always thought the Flash player, when it came to loading
XML, ran single threaded in the sense that all other caluculations had
to stop until the XML was loaded.  I ask because with the code you
posted, I tried it on a 2mb XML file and pctLoaded traces NaN, and
my_xml.getBytesLoaded traces 0 the entire time the file is loading.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] fscommand(exec,...) in a standalone app

2006-02-28 Thread Derek Vadneau
This:
a href=asfunction:openExe(path/to/exe-file.exe);
should be:
a href=asfunction:openExe,path/to/exe-file.exe

The first part of the string after asfunction: is the path to the function 
you are calling.  After the comma is the parameter the function will 
receive.

Btw, your subject is a little misleading since your actual problem is with 
asfunction.  If the trace isn't happening then the fscommand has no chance 
of working.

And to that, make sure your EXE is in a folder called fscommand, and that 
folder is in the same folder as your SWF/EXE.


Derek Vadneau

- Original Message - 
From: Oliver Quas [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, February 28, 2006 12:12 PM
Subject: [Flashcoders] fscommand(exec,...) in a standalone app


hi there,

i know there have been a lot of posts about this topic, but i didn't
find any information related to the case i'm currently dealing with,
and the deadline for the job is pretty soon, so please forgive me, if
this has been discussed before:

i have implemented a flash movie (1 file), that should run offline as
a standalone-app/projector from cd (Windows only). the contents get
loaded dynamically using xml-files. the app contains a movieclip
(box_mc) that contains a textfield (text_tf) showing html-text
provided by the xml-files.


in the text displayed inside text_tf, i want to show some links,
opening .wmv- and .exe-files. for the links, i'm using something like
this in the xml:

?xml version=1.0 encoding=UTF-8?
text
   ![CDATA[...a href=asfunction:openExe(path/to/exe-
file.exe);ulink text/u/a...]]
/text


inside box_mc i implemented the following function:

public function openExe(path:String):Void
{
 trace(works);
 fscommand(exec, path);
}

unfortunately, when i click the link, the function doesn't get
called. does anyone see/know what i am doing wrong?

thanks in advance!

best regards,
oliver


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 connecting to a database - all running on a DVD-ROM

2006-02-24 Thread Derek Vadneau
How about SWF Studio and SQLite?  SQLite is a no-install database 
solution.

Check out Andre Goliath's site:
http://www.software-and-solutions.de/

He's put together a SQLite connector for SWF Studio.

I don't know what the cost of v12flash will be (it's in beta right now), 
but judging by the pricing for their Director equivalent, the SWF 
Studio/SQLite option would be slightly cheaper, and of course you get a 
lot more than just database features with SWF Studio.

Just another option.


Derek Vadneau
Northcode Inc.
http://www.northcode.com

- Original Message - 
From: nik crosina [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 24, 2006 12:28 PM
Subject: SPAM-LOW: Re: [Flashcoders] Flash connecting to a database - all 
running on a DVD-ROM


v12 and Flash! can onl;y be a good thing! I know it from director!
good old inm!

thanks,

Nik


On 2/24/06, Éric Thibault [EMAIL PROTECTED] wrote:

 Take a look at this one : http://www.inm.com/products/v12flash/

 Sound promissing!

 Éric.

 nik crosina wrote:

 That sounded interesting after reading the first sentence, after the
 second
 I knew we couldn't use it, Clark. Becasue we have to create something
 that
 works out of the box, - no installation required.
 
 I was thinking of the XML version already as well, but sometimes I am
 thinking that a db would be the cleaner soplution, and also offer less
 chance to mess up the file if it happens to be run from hard disk?
 
 But I only have some experience with databases, not very much with XML.
 
 Thanks for your thoughts! I'll check out SWFStudio nevertheless.
 
 Nik C


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

2006-01-30 Thread Derek Vadneau
I remember this happening with my components at one point, but I think the 
issue was with MX04 - pre 7.2.  I'm not 100% on that but I do remember the 
problem occurring.

Are you using MX04?  If so, are you using the 7.2 update?

If not, I'll see if I can dig up some info about what I did ... 
record-keeping is not my strong-suit ...


Derek Vadneau


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 11:22 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Component and Live Preview ~ problems


Hello All ---

I posted this on FlashNewbie and didn't have much luck getting it 
resolved. I also found a number of posts on Actionscript.org referencing 
this same problem, but I couldn't find any solutions, so I thought I would 
try here. I created a custom button component with live preview enabled 
for the label. The live preview works great with only one button component 
on stage. However, if I put another instance of my btn component on stage, 
both btn components are updated to the most recent component's label. Both 
buttons have different instance names.

Any ideas on how to resolve this issue?

Thanks for any and all replies.



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


[Flashcoders] Cellrenderer confirmation

2006-01-25 Thread Derek Vadneau
Hi all,

I just want to verify a few things in case I've thought about this 
incorrectly.

I've built three cellrenderer classes for a datagrid.  I've got everything 
working but I'm trying to optimize the classes so things don't get cycled 
when they don't need to be.

Am I correct in assuming that a datagrid (and a list-based component in 
general) only produces X number of instances of a cellrenderer, where X is 
the number of VISIBLE rows, as opposed to TOTAL rows?

When I scroll, it's as if the rows cycle: 0-6 are visible.  Scroll so 7 is 
visible, but the cellrenderer in row 7 traces out data that was kept in 
row 0.

If that's the case, then you can't store row-specific information in a 
cellrenderer instance.  In which case, my optimizations are probably as 
good as they're going to get.

Also, I've searched through the archives and it seems the only way to 
trigger the change event, or any event, in the datagrid from the 
cellrenderer is to have the cellrenderer execute the dispatchEvent method. 
Is that the only way?  It seems a little hackish to me.  It does work, but 
you'd think there would be a mechanism in place to have the cellrenderer 
tell the datagrid that it wants to update the dataProvider.

Any thoughts?


Derek Vadneau


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


Re: [Flashcoders] Cellrenderer confirmation

2006-01-25 Thread Derek Vadneau
Thanks Jesse.

What do you mean by make the events bubble?  I know I can do 
listOwner.dispatchEvent - it's what I'm doing now - but is there a better 
way than accessing the listOwner?  By better I mean accessing the 
listOwner's method feels wrong somehow ...

I tried using editField but it causes all items in the list to get 
updated, or at least all cellrenderers get their setValue called. 
Instead, I'm accessing 
listOwner.getItemAt(getCellIndex().itemIndex)[getDataLabel()] to write 
values.  Then I'm triggering the change event through dispatchEvent.  That 
works and avoids the multiple calls to setValue.

Do you see any issues with that?


Derek Vadneau

- Original Message - 
From: JesterXL [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, January 25, 2006 2:15 PM
Subject: Re: [Flashcoders] Cellrenderer confirmation


For the event part, CellRenderers have access to both the cell and list 
they
are in.  So, if you do this.listOwner; that's the DataGrid.  You can 
either
dispatch events and make them bubble, or dispatch them from the DataGrid's
scope; listOwner.dispatchEvent.

Additionally, if you want to update the dataProvider's data, easiest way 
is
to use editField.  For example, if your cell renderer has a CheckBox in 
it,
in the click event, you could do:

var lbl:String = getDataLabel();
var index:Number = getCellIndex().itemIndex;
listOwner.editField ( index, lbl, my_ch.selected);


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


RE: [Flashcoders] input text scrolls when pressing right arrow key

2006-01-06 Thread Derek Vadneau
The combination of input and autoSize is what's killing you.  Do you 
really need the textfield to resize with the text entry?

If not, you're better off setting the width and height explicitly.

However, if you don't know the size before you enter text, then here is an 
alternative:

TextField.prototype.resizeToMatchText = function()
{
this.autoSize = 'none';
this._width = 
this.getTextFormat().getTextExtent(this.text).textFieldWidth + 4;
this._height = 
this.getTextFormat().getTextExtent(this.text).textFieldHeight;
this.hscroll = 0;
}

createTextField('txf',1,0,0,0,0);
txf.type = input;
txf.autoSize = left;
txf.multiline = false;
txf.wordWrap = false;
txf.border = true;
txf.text = test;

txf.resizeToMatchText();


If you need the textfield to resize with text entry add this:
txf.onChanged = txf.resizeToMatchText;
and then call txf.onChanged() after you set the text property.  Setting 
the text property through AS won't trigger the onChanged event so you'll 
have to do that manually anytime you change the text property.

You'll need to call resizeToMatchText() after a TextFormat change as well.

Nasty?  Perhaps.
Processor-friendly?  Yes.
Effective?  Yes.


Derek Vadneau


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of fla coder
Sent: Friday, January 06, 2006 6:19 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] input text scrolls when pressing right arrow key


hi

please try the following:

create a TextField with properties similar to:

txf.type = input;
txf.autoSize = left;
txf.multiline = false;
txf.wordWrap = false;
txf.text = test;

run the movie and click inside the field.
press the right cursor key until you reach the last character in the 
field.
(the last 't' of 'text').
now, if you press the right cursor key again, the word scrolls to the 
left.

my question is, is there any way to stop this behaviour?
open to nasty, but processor friendly tricks if that is the only way...

many thanks
fla


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


Re: [Flashcoders] XMLSocket + close()

2006-01-06 Thread Derek Vadneau

I think that you're supposed to assume it worked. The only time you
get the closed event is when its not intiated by the client.

Exactly.  When you issue the close method YOU are disconnecting from the 
server.  There is no reason for the onClose event to be fired because you 
are causing the event.  If you want to trigger an event, just dispatch the 
onClose yourself.


Hmm, does anyone know a way to get a call to find if I got succesfully
disconnected using the close()-method?

I think what you are probably looking for is confirmation from the server 
that you were disconnected.  The close method is the client shutting down 
the connection.  There is no way to know if the server failed or not 
because ... well, you're disconnected :)

Instead of calling close, send a message to the server to close the 
connection.  That way you will receive the onClose because it will be the 
server that closes the connection.


Derek Vadneau

- Original Message - 
From: Chris Allen [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, January 06, 2006 12:07 PM
Subject: Re: [Flashcoders]  XMLSocket + close()


Interesting observation Weyert.  I always initiate the closing of my
socket session through the protocol that I'm using and the server ends
the connection.  That obviously fires the onClose() event.  I had
assumed it did that too if the client does closes first, but I guess
not.
Anyway, thanks for the clarification.

-Chris

On 1/6/06, Weyert de Boer [EMAIL PROTECTED] wrote:
 Hi Jobe,

  I think that you're supposed to assume it worked. The only time you
  get the closed event is when its not intiated by the client.

 Bummer, then we have to assume that indeed!

  BTW, if you use ElectroServer, there is a close event fired through
  the ElectroServer class no matter what, client-initiated or
  server-initiated...or due to network problems.

 Thanks, I will have a look at it!

  Jobe Makar

 Weyert de Boer

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

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


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


Re: [Flashcoders] Get SWF Version

2006-01-05 Thread Derek Vadneau
There are a few ways.  The easiest is to load the SWF into another SWF and 
check the version:

// After the SWF has been loaded:
trace(child_mc.getSWFVersion());


Derek Vadneau

- Original Message - 
From: Josh Buhler [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, January 05, 2006 12:57 PM
Subject: [Flashcoders] Get SWF Version


Does anybody know of a quick and easy way to get the version info on
a published swf?  I've got a swf that was published by the previous
developers of a client's site, but no FLA to look at publish settings
to see what version it's targeting.


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


Re: [Flashcoders] TextFormat constructor

2006-01-03 Thread Derek Vadneau
underline:true isn't valid, unless you are building an anonymous object.

You can pass the values like this but they're not named.  You have to pass 
the values in the order shown in the docs.  It would have been a lot more 
useful if you could pass an object ...


Derek Vadneau

- Original Message - 
From: Mendelsohn, Michael [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, January 03, 2006 8:39 AM
Subject: [Flashcoders] TextFormat constructor


Hi list...

I thought you could instantiate a TextFormat object like this:

var tf:TextFormat = new TextFormat(underline:true, color:0xFF);

But that doesn't work as there's a compile error.  Why?

- MM


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


RE: [Flashcoders] Flash Player 8.5 - Illegal Operation caused by ?

2006-01-02 Thread Derek Vadneau
Firefox 1.0.6 also reports many syntax errors:

Error: syntax error
Source File: 
http://www.ericd.net/new_css/sections/aspcomments/aspcomments.asp?blogid=113621728008762265count=1
Line: 1
Source Code:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

Error: syntax error
Source File: 
http://www.ericd.net/new_css/sections/aspcomments/aspcomments.asp?blogid=113597757803253823count=1
Line: 1
Source Code:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

.. etc.


Derek Vadneau


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian 
Lynch
Sent: Monday, January 02, 2006 12:06 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flash Player 8.5 - Illegal Operation caused by 
?


Not sure about the Flash, but that page is full of JS errors on IE6.

Ade


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


Re: [Flashcoders] Live Preview Woes

2005-12-14 Thread Derek Vadneau
If your component live preview is generated by Flash, when you specify an 
AS2 class in the Component Definition dialog, then you can check for 
_global.isLivePreview in your class code.  Some of the V2 components use 
this.

That variable is populated by Flash when your live preview is generated 
that way.

If your live preview is a SWF that you've published, then you can just 
provide a variable such as this yourself.


Derek Vadneau


- Original Message - 
From: Judah Frangipane [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 14, 2005 2:22 PM
Subject: SPAM-LOW: [Flashcoders] Live Preview Woes



I am working on a component that attaches a movieclip. When I drag it to
the stage it attaches multiple copies of this movieclip skipping my
checks and balances. But when I test the movie it works fine and only
shows one instance like i designed it to. Is there anyway to find out in
my component class file if the instance is on the stage or in a test 
movie?


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


Re: [Flashcoders] Sandbox violation on local file (was AS3: Sandbox violation on BitmapData.draw())

2005-12-13 Thread Derek Vadneau
Are you publishing from Flash 8?  Are you publishing the SWF with Local 
Playback Security set to Access local files only or Access network 
files only?

I think by default Flash 8 will deny local file access on files less than 
version 7.  You either need to re-publish the file from Flash 8 to gain 
the Access local files only setting, or use the Macromedia 
batch-converter for SWFs.


Derek Vadneau


- Original Message - 
From: Shaw, Matt (MTVN) [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, December 13, 2005 12:15 PM
Subject: SPAM-LOW: [Flashcoders] Sandbox violation on local file (was AS3: 
Sandbox violation on BitmapData.draw())


I'm actually getting this error now in a Flash 7 swf with local
files...a swf from folder A can't load another swf from folder A?

*** Security Sandbox Violation ***
Connection to file://...\swf\Library.swf halted - not permitted from
file://...\swf\Other.swf


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


Re: [Flashcoders] License rules when distributing Flash exe files?

2005-12-09 Thread Derek Vadneau
I would definitely contact Adobe/Macromedia about that.  Don't rely on 
anyone else to tell you what you can and can't do with someone else's 
product.

The Flash player is also included with Flash 8 but you can't simply 
distribute it how you wish.  The EXE you produce with Flash 8 contains the 
Flash player, so I'd look a little deeper into it.

http://www.macromedia.com/licensing/distribution/faq/
Check out the question:
Are the debugger or standalone Players included in the Free Licensing 
Agreement?

Maybe you're fine, but there's a link on that page where you can contact 
Adobe/Macromedia, so you can be sure.

Especially if you're planning on doing something commercially I would 
verify the licensing, even if you need a lawyer's opinion.

I'm not trying to scare anyone.  It's just a good idea to cover your ass.


Derek Vadneau

- Original Message - 
From: brian groth [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, December 09, 2005 3:33 AM
Subject: Re: [Flashcoders] License rules when distributing Flash exe 
files?


You understood my question right. Thanks for the answer

/Brian


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


Re: SPAM-LOW: Re: [Flashcoders] FAQ Adobe acquisition of Macromedia

2005-12-08 Thread Derek Vadneau
Actually you can group panels together in Flash 8, and they'll have tabs.

Click the icon on the right in a tab header and select Group [PanelName] 
with.  Then choose the panel you want it to be grouped with.  Once they 
are grouped, they'll each have a tab.

There seems to be a bug: the first time you group panels, then click a 
tab, the tabs disappear.  Just collapse the panel and open it again and 
all is well.


Derek Vadneau


- Original Message - 
From: Zeh Fernando [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 08, 2005 10:21 AM
Subject: SPAM-LOW: Re: [Flashcoders] FAQ Adobe acquisition of Macromedia

Not really. He means Adobe-like paletters that MM was forced to stop using
by a lawsuit from Adobe a couple of years ago (or so the story goes). On
Photoshop, Illustrator and other Adobe tools, you can group panels 
together
(using 'tabs') so space is a bit better used. MM's current solution is 
close
to it, but not as good, IMO, as you can just fold and unfold panels but 
they
can never share the same space.

Funny enough, it's also one of the best things I expect from this
merger/aquisition.


- zeh


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


Re: [Flashcoders] fscommand exec . exec programs with parameters

2005-11-18 Thread Derek Vadneau
You can no longer pass parameters via fscommand exec - from Flash player 6 
onward.

There are 3rd party programs available that will allow you to execute any 
program on a user's system and pass parameters.  These programs produce an 
EXE that the user launches, or is launched from a CDROM.

Some of the applications available are:
SWF Studio - http://northcode.com
mProjector - http://screentime.com
Zinc - http://multidmedia.com
Screenweaver - http://screenweaver.com


Derek Vadneau
Northcode Inc.
http://www.northcode.com

- Original Message - 
From: kosztik istvan [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, November 18, 2005 3:33 PM
Subject: [Flashcoders] fscommand exec . exec programs with parameters


hi all

is there any solution to call programs with one or more parameter?
fscommand(exec, sample.exe param1 param2)

but it not work in this way.

(to create a bat file and put there my sample.exe and parameters is not
right for me)


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


Re: [Flashcoders] Flipbook in AS2

2005-11-11 Thread Derek Vadneau
The most impressive one I've seen:
http://www.flippingbook.com/

They charge for it, but considering what it does the price seems 
reasonable.


Derek Vadneau


- Original Message - 
From: Stephen Hueners [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Friday, November 11, 2005 6:49 AM
Subject: [Flashcoders] Flipbook in AS2


Back in the days of player 6 there was a sample floating around that
demonstrated a book whose pages could be 'flipped' - dragged open from one
to the next. The author (the copy I have attributes pixelwit.com but if I
recall there was some issues with the original source of the idea) did a
great job with masking, gradients, and rotation to simulate the act of 
page
turning.

But it doesn't translate to AS2. Anyone seen anything similar? Skewing
pre-existing bitmaps won't work for me...I'm generating page content at
runtime.


Thnkx
--steve...


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


Re: [Flashcoders] change icon

2005-11-03 Thread Derek Vadneau
what about mac application? (change the icon)

You only asked about .exe applications so I assumed you meant just for 
Windows.

Some of the Icon editors can change the icons of applications, but I'm not 
sure if they are limited to Windows or not, in that respect.


Derek Vadneau


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


Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Derek Vadneau
The keyword this makes sense to me.  I use it for instance variables.  I 
guess at the end of the day, though, as long as you're consistent anyone 
can pick up your code.

For MovieClip and addChild, is this similar to the way we use XML in AS2? 
As in, you use createElement, then appendChild?

I'm a little confused like Frédéric about what happens when you add a 
child multiple times.  Is a new instance created for each addChild?  If 
so, is the return a reference to the new instance? (again, in the same 
metaphor as XML children)

If this is not the case, then would adding multiple times just cause an 
error or overwrite the previous addChild?  Just wondering how you 
reference the child(ren).


Derek Vadneau



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