[Flashcoders] A3 scrollbars in Flex app

2007-07-24 Thread Smith, Philip
Hello,

We are experiencing the following error with actionscript 3/Flash CS3
scrollbars when embedded in a Flex application:


TypeError: Error #1034: Type Coercion failed: cannot convert
fl.events::[EMAIL PROTECTED] to mx.events.FlexEvent.
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
tFunction()
at flash.events::EventDispatcher/dispatchEvent()
at fl.core::UIComponent/set visible()
at
fl.containers::BaseScrollPane/fl.containers:BaseScrollPane::drawLayout()
at fl.containers::ScrollPane/fl.containers:ScrollPane::drawLayout()
at fl.containers::BaseScrollPane/fl.containers:BaseScrollPane::draw()
at fl.containers::ScrollPane/fl.containers:ScrollPane::draw()
at fl.core::UIComponent/::callLaterDispatcher()

How can this be fixed?

Thanks,

Phil



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

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


[Flashcoders] Embed fonts Flash C3

2007-06-07 Thread Smith, Philip

Hi there,

Is it possible for child .swfs (loaded into a parent .swf) to access the
embedded fonts in a parent .swf? Actionscript 3.0, Flash C3. I know Flex
has some handy functionality to embed fonts, is something similar
possible with C3?

Thanks,

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

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


RE: [Flashcoders] Flash C3 and Embedding resources

2007-06-01 Thread Smith, Philip

Muzak, thanks. If a graphical library linkage element you want to
add/attach is in the host .swf library (ie 'Box' class), how you would
access it from a sub-loaded .swf without throwing an error?
subSWF-addChild(new Box()) --undefined.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Friday, June 01, 2007 12:01 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash C3 and Embedding resources

[Embed] is Flex only, because FlexBuilder doesn't have a library, like
the Flash IDE has.

regards,
Muzak

- Original Message -
From: Smith, Philip [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, June 01, 2007 3:10 AM
Subject: [Flashcoders] Flash C3 and Embedding resources


Hi there,

I was reading this article on embedding resources here:
http://www.bit-101.com/blog/?p=853 and wondered if the same, or a
similar technique can be achieved when compiling AS3 with the Flash C3
IDE, ie:

[Embed(source=graphics.swf, symbol=box)]
private var B:Class;

public function Constructor()
{
var square:Sprite = new B();
}

I'm getting an error doing this, and was wondering if this possible, or
is there another alternative to 'embedding assets/creating com graphical
libs' with the Flash C3 IDE?

Thanks,

Phil



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

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

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


RE: [Flashcoders] Flash C3 and Embedding resources

2007-06-01 Thread Smith, Philip
Thank you very much! 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Romanek
Sent: Friday, June 01, 2007 10:39 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash C3 and Embedding resources

Try this out in your sub-loaded swf

var tClass:Class = getDefinitionByName(Box) as Class; addChild(new
tClass());

hth,
Rob

On Fri, 01 Jun 2007 12:15:09 -0400, Smith, Philip [EMAIL PROTECTED] wrote:


 If a graphical library linkage element you want to add/attach is in 
 the host .swf library (ie 'Box' class), how you would access it from a

 sub-loaded .swf without throwing an error?
 subSWF-addChild(new Box()) --undefined.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Muzak
 Sent: Friday, June 01, 2007 12:01 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Flash C3 and Embedding resources

 [Embed] is Flex only, because FlexBuilder doesn't have a library, like

 the Flash IDE has.

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

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

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


[Flashcoders] Flash C3 and Embedding resources

2007-05-31 Thread Smith, Philip
Hi there,

I was reading this article on embedding resources here:
http://www.bit-101.com/blog/?p=853 and wondered if the same, or a
similar technique can be achieved when compiling AS3 with the Flash C3
IDE, ie:

 [Embed(source=graphics.swf, symbol=box)]
private var B:Class; 

public function Constructor() 
{
 var square:Sprite = new B();
}

I'm getting an error doing this, and was wondering if this possible, or
is there another alternative to 'embedding assets/creating com graphical
libs' with the Flash C3 IDE?

Thanks,

Phil

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

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


[Flashcoders] Adobe Checkbox RunTime error 1009

2007-05-25 Thread Smith, Philip
Hi there,

An AS3 Adobe CheckBox run time error 1009 is being thrown:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at fl.controls::CheckBox/fl.controls:CheckBox::drawLayout()
at fl.controls::LabelButton/fl.controls:LabelButton::draw()
at fl.core::UIComponent/::callLaterDispatcher()

This happens when the .swf is loaded into a host .swf. Embedding the
CheckBox in the host .fla/.swf solves the problem when running from the
Flash IDE, but the runtime error is occuring when testing in a web
browser.

How can this be fixed?

Thanks,

Philip
___
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] Adobe Checkbox RunTime error 1009

2007-05-25 Thread Smith, Philip
Yes, the instance is properly initialized. Upon further testing, this
error is no longer thrown when the CheckBox is embedded in the host,
although that is an inconvenient workaround. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Friday, May 25, 2007 3:13 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Adobe Checkbox RunTime error 1009

Make sure the CheckBox has initialized before using it.

- Original Message -
From: Smith, Philip [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, May 25, 2007 10:55 PM
Subject: [Flashcoders] Adobe Checkbox RunTime error 1009


Hi there,

An AS3 Adobe CheckBox run time error 1009 is being thrown:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at fl.controls::CheckBox/fl.controls:CheckBox::drawLayout()
at fl.controls::LabelButton/fl.controls:LabelButton::draw()
at fl.core::UIComponent/::callLaterDispatcher()

This happens when the .swf is loaded into a host .swf. Embedding the
CheckBox in the host .fla/.swf solves the problem when running from the
Flash IDE, but the runtime error is occuring when testing in a web
browser.

How can this be fixed?

Thanks,

Philip


___
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] AS3 Loader multiple .swfs

2007-05-21 Thread Smith, Philip
Hi there,

Is multiple .swf loading built into the AS3 Loader class API, if so how
is it implemented?

Thanks,

Philip
___
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