Re: [Flashcoders] how to use AV1Movie Class?

2008-04-04 Thread Sidnei Vladisauskis
The class AVM2Loader not worked.

The swf that I need load is a game, and has very actions

I think that convert script as2 in as3
:o(


On Fri, Apr 4, 2008 at 5:26 AM, Ian Thomas <[EMAIL PROTECTED]> wrote:

> If you do need to talk to an AVM1 movie (flash AS1/AS2) in an AVM2
> movie (AS3) you can use Grant Skinner's excellent SWFBridge:
> http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html
>
> Cheers,
>Ian
>
> On Fri, Apr 4, 2008 at 8:19 AM, ekameleon <[EMAIL PROTECTED]> wrote:
> > Hello :)
> >
> >  For me the problem is the difference between AVM2 and AVM1 in the FP9
> :)
> >
> >  It's really difficult to execute AVM1 and AVM2 scripts in the same
> time.
> >
> >  For me the best way is to transform the AVM1 swf in AVM2 swf or... use
> AS3
> >  source code from the main swf application to resolve all elements in
> the
> >  AVM1 swf.
> >
> >  Example in my framework i use 2 class :
> >
> >  http://www.ekameleon.net/vegas/docs/asgard/display/TimelineScript.html
> >  http://www.ekameleon.net/vegas/docs/asgard/display/AVM2Loader.html
> >
> >  To install my framework you can read :
> >  http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
> >
> >  EKA+ :)
> >
> >  2008/4/4, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
> >
> >
> > >
> >  > Hi,
> >  >
> >  > I tried use your example, I trace in completeHandler and see that the
> >  > object
> >  > loaded is a AV1Movie, ok...
> >  >
> >  > But my problemes are some functions not run, for examples hitTest,
> tweener
> >  > and other functions excluded in AS3.
> >  >
> >  > Very bugs happen with my swf-AS2 loaded in my swf-AS3.
> >  >
> >  > I need they run whitout bugs.
> >  > :o(
> >  >
> >  > Is there any way?
> >  >
> >  >
> >  > On Thu, Apr 3, 2008 at 2:37 PM, Sidnei Vladisauskis <
> [EMAIL PROTECTED]>
> >  > wrote:
> >  >
> >  >
> >  > > tks...
> >  > >
> >  > > I will try this example...
> >  > >
> >  > > tks a lot...
> >  > >
> >  > >
> >  > > On Thu, Apr 3, 2008 at 12:59 PM, ekameleon <[EMAIL PROTECTED]>
> wrote:
> >  > >
> >  > > > hello :)
> >  > > >
> >  > > > see the example in the reference of the AS3 class :
> >  > > >
> >  > > >
> http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html
> >  > > >
> >  > > > See the example in the end of the page
> >  > > >
> >  > > > In the completeHandler callback method you can test the type of
> the
> >  > > > "event.target.content" reference :)
> >  > > >
> >  > > > Example
> >  > > >
> >  > > > private function completeHandler(event:Event):void
> >  > > > {
> >  > > > trace("completeHandler: " + describeType(
> >  > > > event.target.contentType ) ); // import the
> flash.utils.describeType
> >  > > > method in the header of your code.
> >  > > > }
> >  > > >
> >  > > >
> >  > > >
> >  > > > and read :
> >  > > >
> >  > > >
> http://livedocs.adobe.com/flex/2/langref/flash/display/AVM1Movie.html
> >  > > >
> >  > > > .. after, open Flex or Flash CS3 and copy the code and test it
> with an
> >  > > > external swf in AS2 and AS3...
> >  > > >
> >  > > > It's easy to test it :)
> >  > > >
> >  > > > EKA+ :)
> >  > > >
> >  > > >
> >  > > > 2008/4/3, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
> >  > > > >
> >  > > > > Hi ekameleon ,
> >  > > > >
> >  > > > > tks for your help, but was you have a exemple??
> >  > > > >
> >  > > > > tks again.
> >  > > > >
> >  > > > >
> >  > > > > On Thu, Apr 3, 2008 at 12:17 PM, ekameleon <[EMAIL PROTECTED]
> >
> >  > > > wrote:
> >  > > > >
> >  > > > > > hello :)
> >  > > > > >
> >  > > > > > yes when you use the Loader class.. inside your reference you
> can
> >  > > > find
> >  > > > > the
> >  > > > > > "content" reference who is the reference of the Bitmap or
> >  > MovieClip,
> >  > > > > > etc...
> >  > > > > > if the external swf is a AVM1 file the type of the reference
> is
> >  > > > AVM1.
> >  > > > > >
> >  > > > > > Use the Loader class and test the content property when the
> >  > external
> >  > > > swf
> >  > > > > > is
> >  > > > > > loading.
> >  > > > > >
> >  > > > > > EKA+ :)
> >  > > > > >
> >  > > > > > 2008/4/3, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
> >  > > > > > >
> >  > > > > > > Hi,
> >  > > > > > >
> >  > > > > > > I´m developing my new portfolio in AS3 for learn.
> >  > > > > > >
> >  > > > > > > I need load swf AS2 into the movieclip in my swf AS3.
> >  > > > > > >
> >  > > > > > > I researched, but I don´t find one documentation for this.
> >  > > > > > >
> >  > > > > > > I find a reference using AV1Movie Class?
> >  > > > > > >
> >  > > > > > > is it correct for load a swf AS2?
> >  > > > > > >
> >  > > > > > > But how to use this class with Loader class?
> >  > > > > > >
> >  > > > > > > Tks.
> >  > > > > > > ___
> >  > > > > > > Flashcoders mailing list
> >  > > > > > > Flashcoders@chattyfig.figleaf.com
> >  > > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >  > > > > > >
> >  > > > > >
> >  > > > > > _

Re: [Flashcoders] Seeking example: pop up div with greyed out background

2008-04-04 Thread Matt S.
It sounds like you're looking for what is often referred to as a
"Lightbox" or "Greybox" effect, and there are  several good canned
ajax solutions out there. if you google Lightbox you'll find em.

However, since this is a Flash list I'm wondering if you're planning
for this effect to be occurring OVER a flash object, in which case you
should be aware that support for that effect will be inconsistent at
best, as Flash tends to push to the top in all but the most current
browsers. It might be less failure-prone these days, but just a word
of caution...

.m

On Fri, Apr 4, 2008 at 5:06 PM, Mendelsohn, Michael
<[EMAIL PROTECTED]> wrote:
> Hi list...
>
>  Does anyone have a good example URLs of a  that pops up an alert
>  for users to do something, then have an additional  that grays out
>  the background thus highlighting the "alert" div?
>
>  Thanks,
>  - Michael M.
>
>  ___
>  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] Seeking example: pop up div with greyed out background

2008-04-04 Thread Steven Sacks
You can't do any legwork first?  This is a Flash list and you're asking 
a non-Flash question.


Guess how easy it is to find numerous examples of this:

http://www.google.com/search?&q=ajax+modal+dialog

Done.

Mendelsohn, Michael wrote:

Hi list...

Does anyone have a good example URLs of a  that pops up an alert
for users to do something, then have an additional  that grays out
the background thus highlighting the "alert" div?

Thanks,
- Michael M.

___
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] maximum length of an xml document?

2008-04-04 Thread Allandt Bik-Elliott (Receptacle)
yeh i'm using as3 - i've run a trace on the xml and it seems to pull  
it all in okay so i'm going to go with it


thanks for the input

a


On 4 Apr 2008, at 19:30, Jason Van Cleave wrote:

in my experience the problem wasn't loading it but having the  
script time

out trying to work with it.

AS3 expoentially faster if you have a choice.

On Thu, Apr 3, 2008 at 3:09 PM, Allandt Bik-Elliott (Receptacle) <
[EMAIL PROTECTED]> wrote:

can anyone tell me what the maximum length i can go to is for an  
xml file

to load into flash?

i'm working on a biggie

ta
a

___
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] Seeking example: pop up div with greyed out background

2008-04-04 Thread Helmut Granda
Called within Flash?

On Fri, Apr 4, 2008 at 4:06 PM, Mendelsohn, Michael <
[EMAIL PROTECTED]> wrote:

> Hi list...
>
> Does anyone have a good example URLs of a  that pops up an alert
> for users to do something, then have an additional  that grays out
> the background thus highlighting the "alert" div?
>
> Thanks,
> - Michael M.
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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


[Flashcoders] Seeking example: pop up div with greyed out background

2008-04-04 Thread Mendelsohn, Michael
Hi list...

Does anyone have a good example URLs of a  that pops up an alert
for users to do something, then have an additional  that grays out
the background thus highlighting the "alert" div?

Thanks,
- Michael M.

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


[Flashcoders] Focus issues when Flex loads Flash 8 content

2008-04-04 Thread William Chadwick
Objects (text boxes in particular) work fine in a Flash 8 movie loaded into
Flex …that is unless you click on a flex object. At which point it doesn't
want to give the focus back to the Flash 8 movie. Not even if you click on
the text box a thousand times.

However the "tab" key on the keyboard (in my application) allows you to
click and then type in the Flash 8 text box. In my application, the Flash 9
text box is above the Flash 8 text box which might have something to do with
why tab 'works' (of course tab doesn't give focus to the text box, you still
have to click on it).

It's not really acceptable to force the users to press tab between objects
that look like they're part of the same application. "Why can't I type in
the text box anymore?" I can just hear it.

It is perfectly illustrated here: http://www.brandonellis.org/?p=9

I don't understand why this isn't a high priority with Adobe. I will not be
able to convince my organization to rewrite these huge AS2 applications all
at once, but if I could load the old application into Flex, I could do all
new development and all fixes in AS3. An incremental approach is welcome.

Can anyone help me with this issue?

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


Re: [Flashcoders] moving a symbol with AS

2008-04-04 Thread Gerry Creighton

http://code.google.com/p/tweener/

Get yourself acclimated with Tweener. You can use Tweener to move or  
change properties

of your movieClips with code.

Gerry

On Apr 4, 2008, at 12:20 PM, Lehr, Theodore M (N-SGIS) wrote:

How can I move an object with AS and be able to watch it move? I am  
not

talking about simply giving it a new x or y - I want to animate it to
move
___
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] maximum length of an xml document?

2008-04-04 Thread Jason Van Cleave
in my experience the problem wasn't loading it but having the script time
out trying to work with it.

AS3 expoentially faster if you have a choice.

On Thu, Apr 3, 2008 at 3:09 PM, Allandt Bik-Elliott (Receptacle) <
[EMAIL PROTECTED]> wrote:

> can anyone tell me what the maximum length i can go to is for an xml file
> to load into flash?
>
> i'm working on a biggie
>
> ta
> a
>
> ___
> 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] Dynamic class instantiation

2008-04-04 Thread Ian Thomas
Yes.

Ian

On Fri, Apr 4, 2008 at 7:08 PM, Jiri Heitlager
<[EMAIL PROTECTED]> wrote:
> But either way, do you still need to force to compiler to add the class? I
> am almost sure you do, but asking just in case.
>
>  Jiri
>
>
>
>  Hans Wichman wrote:
>
> > btw new eval("_global.myPackage.MyClass")(); does the trick as well.
> > If you please add
> > Assert.assertNotNull (eval("_global.myPackage.MyClass"))
> > etc
> >
> > On Fri, Apr 4, 2008 at 5:01 PM, Jiri Heitlager
> > <[EMAIL PROTECTED]> wrote:
> >
> > > Thanx Alan, using a custom error exception is a nice little added touch
> :)
> > >
> > > Jiri
> > >
> > >
> > >
> > > Alan MacDougall wrote:
> > >
> > > > Here is the class I use for dynamic instantiation. Note that it throws
> a
> > > >
> > > custom exception type, you'll have to create that type yourself or alter
> > > that line of code. I copied the instantiation technique from Drew
> Cummins at
> > > blog.generalrelativity.org.
> > >
> > > > class com.phoenixgp.common.utils.ClassLoader
> > > > {
> > > >  /* CLASS METHODS */
> > > >  /**
> > > >  Returns a new instance of a class given the fully-qualified
> name
> > > >
> > > of
> > >
> > > >  the class. The instance will be returned as an
> Object,
> > > >
> > > so
> > >
> > > >  the caller must cast the return value to the expected type or
> > > >
> > > supertype.
> > >
> > > >Original author: Drew Cummins,
> > > >
> > > blog.generalrelativity.org
> > >
> > > >@param classPath The fully-qualified class name, in dot
> > > >
> > > notation
> > >
> > > >  @return A new instance of the named class, using its default
> > > >
> > > constructor
> > >
> > > >  @throws ClassNotFoundException if the named class is not present.
> > > >
> > > This
> > >
> > > >  may indicate an error or omission in the
> > > >
> > > ClassRegistry.
> > >
> > > >  */
> > > >  public static function createInstance(classPath:String):Object
> > > >  {
> > > >  var packageList:Array = classPath.split(".");
> > > >  var constructor:Function = Function(_global);
> > > >while (packageList.length > 0)
> > > >  {
> > > >  constructor = constructor[String(packageList.shift())];
> > > >  }
> > > >if (constructor == null)
> > > >  {
> > > >  throw new ClassNotFoundException(classPath);
> > > >  return null;
> > > >  }
> > > >return new constructor();
> > > >  }
> > > > }
> > > > ___
> > > > Flashcoders mailing list
> > > > Flashcoders@chattyfig.figleaf.com
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > > >
> > > >
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
>  ___
>  Flashcoders 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] Dynamic class instantiation

2008-04-04 Thread Jiri Heitlager
But either way, do you still need to force to compiler to add the class? 
I am almost sure you do, but asking just in case.


Jiri

Hans Wichman wrote:

btw new eval("_global.myPackage.MyClass")(); does the trick as well.
If you please add
Assert.assertNotNull (eval("_global.myPackage.MyClass"))
etc

On Fri, Apr 4, 2008 at 5:01 PM, Jiri Heitlager
<[EMAIL PROTECTED]> wrote:

Thanx Alan, using a custom error exception is a nice little added touch :)

Jiri



Alan MacDougall wrote:

Here is the class I use for dynamic instantiation. Note that it throws a

custom exception type, you'll have to create that type yourself or alter
that line of code. I copied the instantiation technique from Drew Cummins at
blog.generalrelativity.org.

class com.phoenixgp.common.utils.ClassLoader
{
  /* CLASS METHODS */
  /**
  Returns a new instance of a class given the fully-qualified name

of

  the class. The instance will be returned as an Object,

so

  the caller must cast the return value to the expected type or

supertype.

Original author: Drew Cummins,

blog.generalrelativity.org

@param classPath The fully-qualified class name, in dot

notation

  @return A new instance of the named class, using its default

constructor

  @throws ClassNotFoundException if the named class is not present.

This

  may indicate an error or omission in the

ClassRegistry.

  */
  public static function createInstance(classPath:String):Object
  {
  var packageList:Array = classPath.split(".");
  var constructor:Function = Function(_global);
while (packageList.length > 0)
  {
  constructor = constructor[String(packageList.shift())];
  }
if (constructor == null)
  {
  throw new ClassNotFoundException(classPath);
  return null;
  }
return new constructor();
  }
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


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


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


Re: [Flashcoders] is there a maximum filename length for pc?

2008-04-04 Thread Allandt Bik-Elliott (Receptacle)

ah cool - thanks for the heads up


On 4 Apr 2008, at 18:07, Ibrahim Y wrote:


this article may help you
http://labnol.blogspot.com/2006/10/limitations-with-long-file-names- 
on.html



Ibrahim

On Fri, Apr 4, 2008 at 7:32 PM, Allandt Bik-Elliott (Receptacle) <
[EMAIL PROTECTED]> wrote:


i am creating a hybrid cd for mac and pc and, while the mac can take
ridiculously long filenames, will the pc be able to see them or  
will they be

truncated to 25 characters?

I don't want some of my images to become unreadable on one side or  
the

other

thanks

al


Allandt Bik-Elliott
thefieldcomic.com

___
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] Dynamic class instantiation

2008-04-04 Thread Hans Wichman
btw new eval("_global.myPackage.MyClass")(); does the trick as well.
If you please add
Assert.assertNotNull (eval("_global.myPackage.MyClass"))
etc

On Fri, Apr 4, 2008 at 5:01 PM, Jiri Heitlager
<[EMAIL PROTECTED]> wrote:
> Thanx Alan, using a custom error exception is a nice little added touch :)
>
> Jiri
>
>
>
> Alan MacDougall wrote:
> > Here is the class I use for dynamic instantiation. Note that it throws a
> custom exception type, you'll have to create that type yourself or alter
> that line of code. I copied the instantiation technique from Drew Cummins at
> blog.generalrelativity.org.
> >
> > class com.phoenixgp.common.utils.ClassLoader
> > {
> >   /* CLASS METHODS */
> >   /**
> >   Returns a new instance of a class given the fully-qualified name
> of
> >   the class. The instance will be returned as an Object,
> so
> >   the caller must cast the return value to the expected type or
> supertype.
> > Original author: Drew Cummins,
> blog.generalrelativity.org
> > @param classPath The fully-qualified class name, in dot
> notation
> >   @return A new instance of the named class, using its default
> constructor
> >   @throws ClassNotFoundException if the named class is not present.
> This
> >   may indicate an error or omission in the
> ClassRegistry.
> >   */
> >   public static function createInstance(classPath:String):Object
> >   {
> >   var packageList:Array = classPath.split(".");
> >   var constructor:Function = Function(_global);
> > while (packageList.length > 0)
> >   {
> >   constructor = constructor[String(packageList.shift())];
> >   }
> > if (constructor == null)
> >   {
> >   throw new ClassNotFoundException(classPath);
> >   return null;
> >   }
> > return new constructor();
> >   }
> > }
> > ___
> > 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] is there a maximum filename length for pc?

2008-04-04 Thread Ibrahim Y
this article may help you
http://labnol.blogspot.com/2006/10/limitations-with-long-file-names-on.html


Ibrahim

On Fri, Apr 4, 2008 at 7:32 PM, Allandt Bik-Elliott (Receptacle) <
[EMAIL PROTECTED]> wrote:

> i am creating a hybrid cd for mac and pc and, while the mac can take
> ridiculously long filenames, will the pc be able to see them or will they be
> truncated to 25 characters?
>
> I don't want some of my images to become unreadable on one side or the
> other
>
> thanks
>
> al
>
>
> Allandt Bik-Elliott
> thefieldcomic.com
>
> ___
> 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] moving a symbol with AS

2008-04-04 Thread Bob Wohl
yep, tween it. There are a ton of methods and classes out there for doing
this. google Flash tweening or easing.

B.

On Fri, Apr 4, 2008 at 9:20 AM, Lehr, Theodore M (N-SGIS) <
[EMAIL PROTECTED]> wrote:

> How can I move an object with AS and be able to watch it move? I am not
> talking about simply giving it a new x or y - I want to animate it to
> move
> ___
> 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] is there a maximum filename length for pc?

2008-04-04 Thread Allandt Bik-Elliott (Receptacle)
i am creating a hybrid cd for mac and pc and, while the mac can take  
ridiculously long filenames, will the pc be able to see them or will  
they be truncated to 25 characters?


I don't want some of my images to become unreadable on one side or  
the other


thanks

al


Allandt Bik-Elliott
thefieldcomic.com

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


[Flashcoders] moving a symbol with AS

2008-04-04 Thread Lehr, Theodore M (N-SGIS)
How can I move an object with AS and be able to watch it move? I am not
talking about simply giving it a new x or y - I want to animate it to
move
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Dynamic class instantiation

2008-04-04 Thread Jiri Heitlager

Thanx Alan, using a custom error exception is a nice little added touch :)

Jiri

Alan MacDougall wrote:
Here is the class I use for dynamic instantiation. Note that it throws a 
custom exception type, you'll have to create that type yourself or alter 
that line of code. I copied the instantiation technique from Drew 
Cummins at blog.generalrelativity.org.


class com.phoenixgp.common.utils.ClassLoader
{
   /* CLASS METHODS */
   /**
   Returns a new instance of a class given the fully-qualified 
name of
   the class. The instance will be returned as an 
Object, so
   the caller must cast the return value to the expected type or 
supertype.
 Original author: Drew Cummins, 
blog.generalrelativity.org
 @param classPath The fully-qualified class name, in dot 
notation
   @return A new instance of the named class, using its default 
constructor
   @throws ClassNotFoundException if the named class is not present. 
This
   may indicate an error or omission in the 
ClassRegistry.

   */
   public static function createInstance(classPath:String):Object
   {
   var packageList:Array = classPath.split(".");
   var constructor:Function = Function(_global);
 while (packageList.length > 0)
   {
   constructor = constructor[String(packageList.shift())];
   }
 if (constructor == null)
   {
   throw new ClassNotFoundException(classPath);
   return null;
   }
 return new constructor();
   }
}
___
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] Dynamic class instantiation

2008-04-04 Thread Alan MacDougall
Here is the class I use for dynamic instantiation. Note that it throws a 
custom exception type, you'll have to create that type yourself or alter 
that line of code. I copied the instantiation technique from Drew 
Cummins at blog.generalrelativity.org.


class com.phoenixgp.common.utils.ClassLoader
{
   /* CLASS METHODS */
   /**
   Returns a new instance of a class given the fully-qualified 
name of
   the class. The instance will be returned as an 
Object, so
   the caller must cast the return value to the expected type or 
supertype.
  
   Original author: Drew Cummins, blog.generalrelativity.org
  
   @param classPath The fully-qualified class name, in dot notation
   @return A new instance of the named class, using its default 
constructor
   @throws ClassNotFoundException if the named class is not 
present. This
   may indicate an error or omission in the 
ClassRegistry.

   */
   public static function createInstance(classPath:String):Object
   {
   var packageList:Array = classPath.split(".");
   var constructor:Function = Function(_global);
  
   while (packageList.length > 0)

   {
   constructor = constructor[String(packageList.shift())];
   }
  
   if (constructor == null)

   {
   throw new ClassNotFoundException(classPath);
   return null;
   }
  
   return new constructor();

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


Re: [Flashcoders] Dynamic class instantiation

2008-04-04 Thread Jiri Heitlager
OK, I understand, without it the classes dont exist and therefor equals 
to null.


Cheers!

Ian Thomas wrote:

Are you sure you're embedding the code for the objects into your app?

import com.mypack.MyClass;

on its own isn't enough: you need a concrete reference to a class for
its code to be included in the SWF.

Something like:

import com.mypack.MyClass;
import com.mypack.MyOtherClass;

// somewhere in the startup of your app
var dummyClasses:Array=[MyClass,MyOtherClass];

should be enough to get them compiled in.

HTH,
   Ian

On Fri, Apr 4, 2008 at 1:18 PM, Jiri Heitlager
<[EMAIL PROTECTED]> wrote:

Thanx Ian,

 it is still tracing null. Is this even possible to do. How do all the big
boys do dynamic instantation. What I basically want to achieve is
 have a hashMap store different kinds of Command Objects. Instead of
instantiation at the start of the app, I would like to instatiated them when
the are required. The argument thing I can probably solve by adding a method
to the CommandObject  interface like addParameters() The type casting is the
real problem here. I cant have the commands tracing as null..

 Do you or anybody maybe have a solution?

 Jiri



 Ian Thomas wrote:


On a quick glance, I think this line is breaking it:

var constructor:Function = Function( _global );

because _global is not a function.

Try:

function createInstance ( classPath:String , args:Array) : Object
 {
  var packageList:Array = classPath.split( "." );
  var constructor:Object =  _global ;

  while( packageList.length> 0 )
  {
  constructor = constructor[String(packageList.shift() )];
  }

  return Function(constructor).apply( constructor , args ) ;
  }

On Fri, Apr 4, 2008 at 12:29 PM, Jiri Heitlager
<[EMAIL PROTECTED]> wrote:


Hello list,

 Does anybody know an AS2 version of the AS method getDefinitionByName()
 I would like to dynamic instantiated classes in AS2 with passing

argument

to that created instance.

 I am using a modified script from  'http://blog.generalrelativity.org/'

,

but the return datatype  ==  null, even when I cast the returned

instance.


 import test.Shape


 function createInstance ( classPath:String , args:Array) : Object
   {
   var packageList:Array = classPath.split( "." );

   var constructor:Function = Function( _global );


   while( packageList.length> 0 )
   {
   constructor = constructor[ String( packageList.shift() ) ];

   }

   return constructor.apply( constructor , args ) ;

   }

 var newShape:Shape = Shape ( createInstance('test.Shape' , [1,2,3]) )

 trace( newShape ) //ouputs null, it should output Shape




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



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



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


___
Flashcoders 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] Dynamic class instantiation

2008-04-04 Thread Ian Thomas
Are you sure you're embedding the code for the objects into your app?

import com.mypack.MyClass;

on its own isn't enough: you need a concrete reference to a class for
its code to be included in the SWF.

Something like:

import com.mypack.MyClass;
import com.mypack.MyOtherClass;

// somewhere in the startup of your app
var dummyClasses:Array=[MyClass,MyOtherClass];

should be enough to get them compiled in.

HTH,
   Ian

On Fri, Apr 4, 2008 at 1:18 PM, Jiri Heitlager
<[EMAIL PROTECTED]> wrote:
> Thanx Ian,
>
>  it is still tracing null. Is this even possible to do. How do all the big
> boys do dynamic instantation. What I basically want to achieve is
>  have a hashMap store different kinds of Command Objects. Instead of
> instantiation at the start of the app, I would like to instatiated them when
> the are required. The argument thing I can probably solve by adding a method
> to the CommandObject  interface like addParameters() The type casting is the
> real problem here. I cant have the commands tracing as null..
>
>  Do you or anybody maybe have a solution?
>
>  Jiri
>
>
>
>  Ian Thomas wrote:
>
> > On a quick glance, I think this line is breaking it:
> >
> > var constructor:Function = Function( _global );
> >
> > because _global is not a function.
> >
> > Try:
> >
> > function createInstance ( classPath:String , args:Array) : Object
> >  {
> >   var packageList:Array = classPath.split( "." );
> >   var constructor:Object =  _global ;
> >
> >   while( packageList.length> 0 )
> >   {
> >   constructor = constructor[String(packageList.shift() )];
> >   }
> >
> >   return Function(constructor).apply( constructor , args ) ;
> >   }
> >
> > On Fri, Apr 4, 2008 at 12:29 PM, Jiri Heitlager
> > <[EMAIL PROTECTED]> wrote:
> >
> > > Hello list,
> > >
> > >  Does anybody know an AS2 version of the AS method getDefinitionByName()
> > >  I would like to dynamic instantiated classes in AS2 with passing
> argument
> > > to that created instance.
> > >
> > >  I am using a modified script from  'http://blog.generalrelativity.org/'
> ,
> > > but the return datatype  ==  null, even when I cast the returned
> instance.
> > >
> > >
> > >  import test.Shape
> > >
> > >
> > >  function createInstance ( classPath:String , args:Array) : Object
> > >{
> > >var packageList:Array = classPath.split( "." );
> > >
> > >var constructor:Function = Function( _global );
> > >
> > >
> > >while( packageList.length> 0 )
> > >{
> > >constructor = constructor[ String( packageList.shift() ) ];
> > >
> > >}
> > >
> > >return constructor.apply( constructor , args ) ;
> > >
> > >}
> > >
> > >  var newShape:Shape = Shape ( createInstance('test.Shape' , [1,2,3]) )
> > >
> > >  trace( newShape ) //ouputs null, it should output Shape
> > >
> > >
> > >
> > >
> > >  ___
> > >  Flashcoders mailing list
> > >  Flashcoders@chattyfig.figleaf.com
> > >  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
>  ___
>  Flashcoders mailing list
>  Flashcoders@chattyfig.figleaf.com
>  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Dynamic class instantiation

2008-04-04 Thread Jiri Heitlager

Thanx Ian,

it is still tracing null. Is this even possible to do. How do all the 
big boys do dynamic instantation. What I basically want to achieve is
have a hashMap store different kinds of Command Objects. Instead of 
instantiation at the start of the app, I would like to instatiated them 
when the are required. The argument thing I can probably solve by adding 
a method to the CommandObject  interface like addParameters() The type 
casting is the real problem here. I cant have the commands tracing as null..


Do you or anybody maybe have a solution?

Jiri

Ian Thomas wrote:

On a quick glance, I think this line is breaking it:

var constructor:Function = Function( _global );

because _global is not a function.

Try:

function createInstance ( classPath:String , args:Array) : Object
 {
   var packageList:Array = classPath.split( "." );
   var constructor:Object =  _global ;

   while( packageList.length> 0 )
   {
   constructor = constructor[String(packageList.shift() )];
   }

   return Function(constructor).apply( constructor , args ) ;
   }

On Fri, Apr 4, 2008 at 12:29 PM, Jiri Heitlager
<[EMAIL PROTECTED]> wrote:

Hello list,

 Does anybody know an AS2 version of the AS method getDefinitionByName()
 I would like to dynamic instantiated classes in AS2 with passing argument
to that created instance.

 I am using a modified script from  'http://blog.generalrelativity.org/' ,
but the return datatype  ==  null, even when I cast the returned instance.


 import test.Shape


 function createInstance ( classPath:String , args:Array) : Object
{
var packageList:Array = classPath.split( "." );

var constructor:Function = Function( _global );


while( packageList.length> 0 )
{
constructor = constructor[ String( packageList.shift() ) ];

}

return constructor.apply( constructor , args ) ;

}

 var newShape:Shape = Shape ( createInstance('test.Shape' , [1,2,3]) )

 trace( newShape ) //ouputs null, it should output Shape




 ___
 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] Dynamic class instantiation

2008-04-04 Thread Ian Thomas
On a quick glance, I think this line is breaking it:

var constructor:Function = Function( _global );

because _global is not a function.

Try:

function createInstance ( classPath:String , args:Array) : Object
 {
   var packageList:Array = classPath.split( "." );
   var constructor:Object =  _global ;

   while( packageList.length> 0 )
   {
   constructor = constructor[String(packageList.shift() )];
   }

   return Function(constructor).apply( constructor , args ) ;
   }

On Fri, Apr 4, 2008 at 12:29 PM, Jiri Heitlager
<[EMAIL PROTECTED]> wrote:
> Hello list,
>
>  Does anybody know an AS2 version of the AS method getDefinitionByName()
>  I would like to dynamic instantiated classes in AS2 with passing argument
> to that created instance.
>
>  I am using a modified script from  'http://blog.generalrelativity.org/' ,
> but the return datatype  ==  null, even when I cast the returned instance.
>
>
>  import test.Shape
>
>
>  function createInstance ( classPath:String , args:Array) : Object
> {
> var packageList:Array = classPath.split( "." );
>
> var constructor:Function = Function( _global );
>
>
> while( packageList.length> 0 )
> {
> constructor = constructor[ String( packageList.shift() ) ];
>
> }
>
> return constructor.apply( constructor , args ) ;
>
> }
>
>  var newShape:Shape = Shape ( createInstance('test.Shape' , [1,2,3]) )
>
>  trace( newShape ) //ouputs null, it should output Shape
>
>
>
>
>  ___
>  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] Dynamic class instantiation

2008-04-04 Thread Jiri Heitlager

Hello list,

Does anybody know an AS2 version of the AS method getDefinitionByName()
I would like to dynamic instantiated classes in AS2 with passing 
argument to that created instance.


I am using a modified script from  'http://blog.generalrelativity.org/' 
, but the return datatype  ==  null, even when I cast the returned instance.



import test.Shape


function createInstance ( classPath:String , args:Array) : Object
{
var packageList:Array = classPath.split( "." );

var constructor:Function = Function( _global );


while( packageList.length> 0 )
{
constructor = constructor[ String( packageList.shift() ) ];

}

return constructor.apply( constructor , args ) ;

}

var newShape:Shape = Shape ( createInstance('test.Shape' , [1,2,3]) )

trace( newShape ) //ouputs null, it should output Shape




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


Re: [Flashcoders] embedded fonts

2008-04-04 Thread Allandt Bik-Elliott (Receptacle)

thanks - that was helpful


On 4 Apr 2008, at 10:47, Meinte van't Kruis wrote:


as for font strangeness, this page is very helpful;

http://www.connectedpixel.com/blog/fonts/embedding

On Thu, Apr 3, 2008 at 7:13 PM, Kenneth Kawamoto  
<[EMAIL PROTECTED]>

wrote:

For embedded fonts you can either use the actual font name (as you  
have

discovered it already), or YourFontClass.fontName

Kenneth Kawamoto
http://www.materiaprima.co.uk/


Allandt Bik-Elliott (Receptacle) wrote:


wotcha

i have a quick query about embedded fonts.

I thought that when you used them in the movie, that you should call
them by the Class name in the linkage identifier however when I  
try to do
this, my text disappears (i have embedFonts set to true and I've  
triple
checked the names), however when i use the font's original name,  
export,
close the fonts and then open the swf, everything works as it  
should.


Was I originally wrong or is there something screwy going on with  
this?


examples:

original font: Helvetica 75 Bold
Linkage class name: Helvetica75Bold
Name used as .font property: "Helvetica75Bold" // causes text to
disappear
Name used as .font property: "Helvetica 75 Bold" // causes text to
reappear

original font: Helvetica with B selected
Linkage class name: HelveticaBold
Name used as .font property: "HelveticaBold" // causes text to  
disappear

Name used as .font property: "Helvetica" // causes text to reappear

hope you can help because this doesn't seem right to me.

thanks
a


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





--
M.A. van't Kruis
http://www.malatze.nl/
___
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] Reading properties of a textbox [AS3]

2008-04-04 Thread Stuart (FunkDaWeb)
When you say replace do you mean like this?

  var formatter:TextFormat = new TextFormat();
  formatter.italic = !currentFormat.italic;
   _selectedBox.setTextFormat(formatter);

SM


  - Original Message - 
  From: Cory Petosky 
  To: Flash Coders List 
  Sent: Thursday, April 03, 2008 8:43 PM
  Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]


  Replace that with:

  formatter.italic = !currentFormat.italic;

  The conditionals aren't necessary in that situation. :)

  On Thu, Apr 3, 2008 at 1:21 PM, Stuart (FunkDaWeb) <[EMAIL PROTECTED]> wrote:
  > YAY! It works! Thank you! :o)
  >
  >  Wont work with embedFonts = true thought! :o(
  >
  >  Onwards and upwards!
  >
  >  Thanks for your help!
  >
  >  SM
  >
  >
  >   - Original Message -
  >   From: jonathan howe
  >   To: Flash Coders List
  >   Sent: Thursday, April 03, 2008 6:53 PM
  >   Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]
  >
  >
  >   Okay, but in the simple example, you are using it for both:
  >
  >   Okay, but formatter should not be treated as a property of _selectedBox.
  >   _selectedBox has no property named formatter.
  >
  >   This is the offending line:
  >
  >   if (_selectedBox.formatter.italic == false)
  >
  >   You already have set formatter to the value of 
_selectedBox.getTextFormat();
  >   Thus your conditional should read:
  >
  >   if (formatter.italic == false)
  >
  >   To simplify it to keeping formatter separate from the current format, 
let's
  >   rewrite:
  >
  >   var currentFormat:TextFormat = _selectedBox.getTextFormat();
  >   var formatter:TextFormat = new TextFormat();
  >
  > if (currentFormat.italic == false)
  > {
  >  formatter.italic = true;
  > }
  > else
  > {
  >  formatter.italic = false;
  > }
  >
  >_selectedBox.setTextFormat(formatter);
  >
  >
  >   -jonathan
  >
  >
  >   On Thu, Apr 3, 2008 at 1:19 PM, Stuart (FunkDaWeb) <[EMAIL PROTECTED]>
  >   wrote:
  >
  >   > formatter is a blank variable and has nothing to do with reading the 
text
  >   > propperties its used for setting them! I need to figure out how to tell 
if a
  >   > text field is set to italic or not! once i can do this i can fix the if
  >   > statement!
  >   >
  >   > do you have any idea how to do this?
  >   >
  >   >
  >   >
  >   > 

  >   >
  >   >
  >   > FUI - New code is this
  >   >
  >   > var formatter:TextFormat = _selectedBox.getTextFormat();
  >   >
  >   >if (_selectedBox.formatter.italic == false)
  >   >{
  >   >formatter.italic = true;
  >   >   }
  >   >   else
  >   >   {
  >   >formatter.italic = false;
  >   >   }
  >   >
  >   >  _selectedBox.setTextFormat(formatter);
  >   >   - Original Message -
  >   >  From: jonathan howe
  >   >  To: Flash Coders List
  >   >   Sent: Thursday, April 03, 2008 5:53 PM
  >   >  Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]
  >   >
  >   >
  >   >  Hi, Stuart,
  >   >
  >   >  Based on the error message sounds like maybe you are trying to access
  >   >  _selectedBox.formatter or something else invalid. Can you repaste your
  >   > new
  >   >  code after the change?
  >   >
  >   >  -jonathan
  >   >
  >   >
  >   >  On Thu, Apr 3, 2008 at 11:15 AM, Stuart (FunkDaWeb) <[EMAIL PROTECTED]
  >   > >
  >   >  wrote:
  >   >
  >   >  > thanks Jonathan for some reason i get this error when i change to 
your
  >   >  > code...
  >   >  >
  >   >  > ReferenceError: Error #1069: Property formatter not found on
  >   >  > flash.text.TextField and there is no default value.
  >   >  >   - Original Message -
  >   >  >  From: jonathan howe
  >   >  >  To: Flash Coders List
  >   >  >  Sent: Thursday, April 03, 2008 4:04 PM
  >   >  >  Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]
  >   >  >
  >   >  >
  >   >  >  var formatter:TextFormat = _selectedBox.getTextFormat();
  >   >  >
  >   >  >  On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) <
  >   > [EMAIL PROTECTED]
  >   >  > >
  >   >  >  wrote:
  >   >  >
  >   >  >  > Hi all im tring to write a button that changes the format of a
  >   > textbox
  >   >  >  > from normal to italic and back again. I have written the below 
code
  >   > but
  >   >  > i
  >   >  >  > cannot seam to get it to work!
  >   >  >  >
  >   >  >  > var formatter:TextFormat = new TextFormat();
  >   >  >  >
  >   >  >  >   if (formatter.italic == false)
  >   >  >  >   {
  >   >  >  >formatter.italic = true;
  >   >  >  >   }
  >   >  >  >   else
  >   >  >  >   {
  >   >  >  >formatter.italic = false;
  >   >  >  >   }
  >   >  >  >
  >   >  >  >   _selectedBox.setTextFormat(formatter);
  >   >  >  >
  >   >  >  > So my question is how do i read the properties of a textbox in 
order
  >   > to
  >   >  >  > create an if statment to change the properties?
  >   >  >  >
  >   >  >  > SM
  >   >  >  >

Re: [Flashcoders] embedded fonts

2008-04-04 Thread Meinte van't Kruis
as for font strangeness, this page is very helpful;

http://www.connectedpixel.com/blog/fonts/embedding

On Thu, Apr 3, 2008 at 7:13 PM, Kenneth Kawamoto <[EMAIL PROTECTED]>
wrote:

> For embedded fonts you can either use the actual font name (as you have
> discovered it already), or YourFontClass.fontName
>
> Kenneth Kawamoto
> http://www.materiaprima.co.uk/
>
>
> Allandt Bik-Elliott (Receptacle) wrote:
>
> > wotcha
> >
> > i have a quick query about embedded fonts.
> >
> > I thought that when you used them in the movie, that you should call
> > them by the Class name in the linkage identifier however when I try to do
> > this, my text disappears (i have embedFonts set to true and I've triple
> > checked the names), however when i use the font's original name, export,
> > close the fonts and then open the swf, everything works as it should.
> >
> > Was I originally wrong or is there something screwy going on with this?
> >
> > examples:
> >
> > original font: Helvetica 75 Bold
> > Linkage class name: Helvetica75Bold
> > Name used as .font property: "Helvetica75Bold" // causes text to
> > disappear
> > Name used as .font property: "Helvetica 75 Bold" // causes text to
> > reappear
> >
> > original font: Helvetica with B selected
> > Linkage class name: HelveticaBold
> > Name used as .font property: "HelveticaBold" // causes text to disappear
> > Name used as .font property: "Helvetica" // causes text to reappear
> >
> > hope you can help because this doesn't seem right to me.
> >
> > thanks
> > a
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to use AV1Movie Class?

2008-04-04 Thread Ian Thomas
If you do need to talk to an AVM1 movie (flash AS1/AS2) in an AVM2
movie (AS3) you can use Grant Skinner's excellent SWFBridge:
http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html

Cheers,
   Ian

On Fri, Apr 4, 2008 at 8:19 AM, ekameleon <[EMAIL PROTECTED]> wrote:
> Hello :)
>
>  For me the problem is the difference between AVM2 and AVM1 in the FP9 :)
>
>  It's really difficult to execute AVM1 and AVM2 scripts in the same time.
>
>  For me the best way is to transform the AVM1 swf in AVM2 swf or... use AS3
>  source code from the main swf application to resolve all elements in the
>  AVM1 swf.
>
>  Example in my framework i use 2 class :
>
>  http://www.ekameleon.net/vegas/docs/asgard/display/TimelineScript.html
>  http://www.ekameleon.net/vegas/docs/asgard/display/AVM2Loader.html
>
>  To install my framework you can read :
>  http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
>
>  EKA+ :)
>
>  2008/4/4, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
>
>
> >
>  > Hi,
>  >
>  > I tried use your example, I trace in completeHandler and see that the
>  > object
>  > loaded is a AV1Movie, ok...
>  >
>  > But my problemes are some functions not run, for examples hitTest, tweener
>  > and other functions excluded in AS3.
>  >
>  > Very bugs happen with my swf-AS2 loaded in my swf-AS3.
>  >
>  > I need they run whitout bugs.
>  > :o(
>  >
>  > Is there any way?
>  >
>  >
>  > On Thu, Apr 3, 2008 at 2:37 PM, Sidnei Vladisauskis <[EMAIL PROTECTED]>
>  > wrote:
>  >
>  >
>  > > tks...
>  > >
>  > > I will try this example...
>  > >
>  > > tks a lot...
>  > >
>  > >
>  > > On Thu, Apr 3, 2008 at 12:59 PM, ekameleon <[EMAIL PROTECTED]> wrote:
>  > >
>  > > > hello :)
>  > > >
>  > > > see the example in the reference of the AS3 class :
>  > > >
>  > > > http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html
>  > > >
>  > > > See the example in the end of the page
>  > > >
>  > > > In the completeHandler callback method you can test the type of the
>  > > > "event.target.content" reference :)
>  > > >
>  > > > Example
>  > > >
>  > > > private function completeHandler(event:Event):void
>  > > > {
>  > > > trace("completeHandler: " + describeType(
>  > > > event.target.contentType ) ); // import the flash.utils.describeType
>  > > > method in the header of your code.
>  > > > }
>  > > >
>  > > >
>  > > >
>  > > > and read :
>  > > >
>  > > > http://livedocs.adobe.com/flex/2/langref/flash/display/AVM1Movie.html
>  > > >
>  > > > .. after, open Flex or Flash CS3 and copy the code and test it with an
>  > > > external swf in AS2 and AS3...
>  > > >
>  > > > It's easy to test it :)
>  > > >
>  > > > EKA+ :)
>  > > >
>  > > >
>  > > > 2008/4/3, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
>  > > > >
>  > > > > Hi ekameleon ,
>  > > > >
>  > > > > tks for your help, but was you have a exemple??
>  > > > >
>  > > > > tks again.
>  > > > >
>  > > > >
>  > > > > On Thu, Apr 3, 2008 at 12:17 PM, ekameleon <[EMAIL PROTECTED]>
>  > > > wrote:
>  > > > >
>  > > > > > hello :)
>  > > > > >
>  > > > > > yes when you use the Loader class.. inside your reference you can
>  > > > find
>  > > > > the
>  > > > > > "content" reference who is the reference of the Bitmap or
>  > MovieClip,
>  > > > > > etc...
>  > > > > > if the external swf is a AVM1 file the type of the reference is
>  > > > AVM1.
>  > > > > >
>  > > > > > Use the Loader class and test the content property when the
>  > external
>  > > > swf
>  > > > > > is
>  > > > > > loading.
>  > > > > >
>  > > > > > EKA+ :)
>  > > > > >
>  > > > > > 2008/4/3, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
>  > > > > > >
>  > > > > > > Hi,
>  > > > > > >
>  > > > > > > I´m developing my new portfolio in AS3 for learn.
>  > > > > > >
>  > > > > > > I need load swf AS2 into the movieclip in my swf AS3.
>  > > > > > >
>  > > > > > > I researched, but I don´t find one documentation for this.
>  > > > > > >
>  > > > > > > I find a reference using AV1Movie Class?
>  > > > > > >
>  > > > > > > is it correct for load a swf AS2?
>  > > > > > >
>  > > > > > > But how to use this class with Loader class?
>  > > > > > >
>  > > > > > > Tks.
>  > > > > > > ___
>  > > > > > > Flashcoders mailing list
>  > > > > > > Flashcoders@chattyfig.figleaf.com
>  > > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>  > > > > > >
>  > > > > >
>  > > > > > ___
>  > > > > > Flashcoders mailing list
>  > > > > > Flashcoders@chattyfig.figleaf.com
>  > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>  > > > > >
>  > > > > >
>  > > > > ___
>  > > > > Flashcoders mailing list
>  > > > > Flashcoders@chattyfig.figleaf.com
>  > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>  > > > >
>  > > >
>  > > > ___
>  > > > Flashcoders mailing list
>  > > > Flashcoders@chattyfig.figleaf.

Re: [Flashcoders] books for flash programming

2008-04-04 Thread Paul Andrews
- Original Message - 
From: "Kerry Thompson" <[EMAIL PROTECTED]>

To: "'Flash Coders List'" 
Sent: Friday, April 04, 2008 2:45 AM
Subject: RE: [Flashcoders] books for flash programming



Vlado Krempl wrote:


I'm a designer who is getting more and more interested in programming and
not just actionscript 3.
>From your list above, and in your opinion, which are the "must learn"
programs to learn?
I have been doing alot of reading on PHP, HTML, Javascript and

Actionscript

3.


Of the languages I know, the only one I could recommend for a young
programmer would be C++ (and, of course, ActionScript 3). Even that is
problematic, though--C++ may be an obsolescent language itself.


C++ would be the last language I would recommend (I worked as a freelance 
database developer using C++ for two years). It has multiple 'gotchas' and 
as Kerry has said is falling behind rapidly as an in-vogue development 
language. Ugh. If your interested, the most problems on my project (five 
developers working on it - not just me!), came from unintended references to 
temporary objects.


More to the point would be what language would I learn that I don't 
already

know. PHP would be near the top of the list. If you want to branch out, I
think C# and .NET is the up-and-coming language for the next few
years--actually, make that Visual Basic and C#, both with .NET.


Thre's also quite a buzz around Ruby right now.


Java would be high on my list, too, especially since it is so similar to
AS3. I think there is a future also for Python and some other Web-oriented
languages.


Java is a pretty good choice right now, and as Kerry says a really good fit 
with Actionscript and avoids many of the problems that C++ has.


What is clear is that, at the moment, Web-oriented development is the 
growth

field, more so than desktop apps.


Very true.


Cordially,

Kerry Thompson 


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


Re: [Flashcoders] how to use AV1Movie Class?

2008-04-04 Thread ekameleon
Hello :)

For me the problem is the difference between AVM2 and AVM1 in the FP9 :)

It's really difficult to execute AVM1 and AVM2 scripts in the same time.

For me the best way is to transform the AVM1 swf in AVM2 swf or... use AS3
source code from the main swf application to resolve all elements in the
AVM1 swf.

Example in my framework i use 2 class :

http://www.ekameleon.net/vegas/docs/asgard/display/TimelineScript.html
http://www.ekameleon.net/vegas/docs/asgard/display/AVM2Loader.html

To install my framework you can read :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

EKA+ :)

2008/4/4, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
>
> Hi,
>
> I tried use your example, I trace in completeHandler and see that the
> object
> loaded is a AV1Movie, ok...
>
> But my problemes are some functions not run, for examples hitTest, tweener
> and other functions excluded in AS3.
>
> Very bugs happen with my swf-AS2 loaded in my swf-AS3.
>
> I need they run whitout bugs.
> :o(
>
> Is there any way?
>
>
> On Thu, Apr 3, 2008 at 2:37 PM, Sidnei Vladisauskis <[EMAIL PROTECTED]>
> wrote:
>
>
> > tks...
> >
> > I will try this example...
> >
> > tks a lot...
> >
> >
> > On Thu, Apr 3, 2008 at 12:59 PM, ekameleon <[EMAIL PROTECTED]> wrote:
> >
> > > hello :)
> > >
> > > see the example in the reference of the AS3 class :
> > >
> > > http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html
> > >
> > > See the example in the end of the page
> > >
> > > In the completeHandler callback method you can test the type of the
> > > "event.target.content" reference :)
> > >
> > > Example
> > >
> > > private function completeHandler(event:Event):void
> > > {
> > > trace("completeHandler: " + describeType(
> > > event.target.contentType ) ); // import the flash.utils.describeType
> > > method in the header of your code.
> > > }
> > >
> > >
> > >
> > > and read :
> > >
> > > http://livedocs.adobe.com/flex/2/langref/flash/display/AVM1Movie.html
> > >
> > > .. after, open Flex or Flash CS3 and copy the code and test it with an
> > > external swf in AS2 and AS3...
> > >
> > > It's easy to test it :)
> > >
> > > EKA+ :)
> > >
> > >
> > > 2008/4/3, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
> > > >
> > > > Hi ekameleon ,
> > > >
> > > > tks for your help, but was you have a exemple??
> > > >
> > > > tks again.
> > > >
> > > >
> > > > On Thu, Apr 3, 2008 at 12:17 PM, ekameleon <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > > hello :)
> > > > >
> > > > > yes when you use the Loader class.. inside your reference you can
> > > find
> > > > the
> > > > > "content" reference who is the reference of the Bitmap or
> MovieClip,
> > > > > etc...
> > > > > if the external swf is a AVM1 file the type of the reference is
> > > AVM1.
> > > > >
> > > > > Use the Loader class and test the content property when the
> external
> > > swf
> > > > > is
> > > > > loading.
> > > > >
> > > > > EKA+ :)
> > > > >
> > > > > 2008/4/3, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I´m developing my new portfolio in AS3 for learn.
> > > > > >
> > > > > > I need load swf AS2 into the movieclip in my swf AS3.
> > > > > >
> > > > > > I researched, but I don´t find one documentation for this.
> > > > > >
> > > > > > I find a reference using AV1Movie Class?
> > > > > >
> > > > > > is it correct for load a swf AS2?
> > > > > >
> > > > > > But how to use this class with Loader class?
> > > > > >
> > > > > > Tks.
> > > > > > ___
> > > > > > Flashcoders mailing list
> > > > > > Flashcoders@chattyfig.figleaf.com
> > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > > > >
> > > > >
> > > > > ___
> > > > > Flashcoders mailing list
> > > > > Flashcoders@chattyfig.figleaf.com
> > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > > >
> > > > >
> > > > ___
> > > > Flashcoders mailing list
> > > > Flashcoders@chattyfig.figleaf.com
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > >
> > > ___
> > > Flashcoders 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