Hi... due to changes between the virtual machines in Flash Player 8 and
8.5, there is no cross-compatibility with scripting between the two
versions.
Until the new AS3-based version of Flash Authoring comes out, we are
only supporting a workflow based on non-scripted assets. You basically
will create individual assets in Flash 8, export them in the library with a
unique name, and then use Embed in Flex 2 to pull them in. All scripting
needs to be done on the Flex side. You can either use var-level Embed to
have an AS3 class for your asset created for you, or you can use class-level
Embed on an appropriate class for the particular asset type you want to
use.
See the docs on skinning for more details.
-rg
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan
BezuidenhoutSent: Thursday, March 23, 2006 6:58 AMTo:
flexcoders@yahoogroups.comSubject: [flexcoders] Flash custom
components in Flex 2
Hi everyone,In the Flex 1.5 docs there was a section on
how to make a custom component in Flash and how to export it etc for use in
Flex. I have noticed that this content is missing from the new Flex 2
docs.Is this not encouraged anymore or have they just not been
included?I have tried to make a swc component using the directions in
the old docs. I am not very good with Flash at all - but here is
what I did: I am trying something simple - I create a graphic in Flash
- in the library, I make the graphic to be a component called Navigator and I
have an associated .as class file like this:class Navigator extends
mx.core.UIComponent { static var
symbolName:String="Navigator"; static var
symbolOwner:Object="Navigator"; var
className:String="Navigator"; function Navigator()
{ }
function init() {
super.init();
invalidate(); }}I then export this as a swc
and call it Navigator.swc. I place this swc file in the root of my app -
the same place where the mxml files are. In my main.mxml I then try and
instantiate it as The Flex Builder compiler then
says 'Could not resolve to be a component
implementation.Do I need to do anything else?The end result
needs (I guess once I have the basic thing above working) is to have a graphic
with a bunch of objects of different shapes that are actually buttons - but
they do not look like buttons - they have irregualr edges and I need to be
able to disable/enable them from Flex and monitor in Flex when they get
clicked etc. Any idea as to where I am going
wrong?ThanksJonathan
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.