Flex 4 SDK - VerifyError: Error #1014: Class mx.core::BitmapAsset could not be found. [FIX]

628 views
Skip to first unread message

roarindustries

unread,
Dec 3, 2009, 4:02:59 PM12/3/09
to ProjectSprouts
I ran in to this today using the latest nightly build of Flex 4
(Version 4.0.0 build 12412).

[trace] VerifyError: Error #1014: Class mx.core::BitmapAsset could not
be found.
[trace]
[trace] ReferenceError: Error #1065: Variable
FooBarSkin_ProjectSprouts is not defined.
[trace]

It happens with a bare sprouts project using the default skin and can
be fixed by prepending:

-static-link-runtime-shared-libraries=true

to the mxmlc arguments; I've pastied up my rakefile @ http://pastie.org/726322
if it'll help anyone.

p.s. thanks for the great set of tools ^-^

Luke Bayes

unread,
Dec 3, 2009, 4:17:32 PM12/3/09
to project...@googlegroups.com
Hey Roar Industries - assuming that is your real name...

Thanks for sharing the fix!


Luke
> --
> You received this message because you are subscribed to the Google Groups "ProjectSprouts" group.
> To post to this group, send email to project...@googlegroups.com
> To unsubscribe from this group, send email to projectsprout...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
>
> For other info you can visit our project at: http://projectsprouts.org, or on Github at: http://github.com/lukebayes/project-sprouts
>

roarindustries

unread,
Dec 3, 2009, 10:15:04 PM12/3/09
to ProjectSprouts
Ha!

No worries, figured it would be better here since it's not actually a
bug.

Scotty

On Dec 3, 9:17 pm, Luke Bayes <lba...@patternpark.com> wrote:
> Hey Roar Industries - assuming that is your real name...
>
> Thanks for sharing the fix!
>
> Luke
>
> On Thu, Dec 3, 2009 at 1:02 PM, roarindustries
>
>
>
> <sco...@roarindustries.com> wrote:
> > I ran in to this today using the latest nightly build of Flex 4
> > (Version 4.0.0 build 12412).
>
> > [trace] VerifyError: Error #1014: Class mx.core::BitmapAsset could not
> > be found.
> > [trace]
> > [trace] ReferenceError: Error #1065: Variable
> > FooBarSkin_ProjectSprouts is not defined.
> > [trace]
>
> > It happens with a bare sprouts project using the default skin and can
> > be fixed by prepending:
>
> > -static-link-runtime-shared-libraries=true
>
> > to the mxmlc arguments; I've pastied up my rakefile @http://pastie.org/726322
> > if it'll help anyone.
>
> > p.s. thanks for the great set of tools ^-^
>
> > --
> > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group.
> > To post to this group, send email to project...@googlegroups.com
> > To unsubscribe from this group, send email to projectsprout...@googlegroups.com
> > For more options, visit this group athttp://groups.google.com/group/projectsprouts?hl=en

codedsignal

unread,
Dec 26, 2009, 9:00:36 PM12/26/09
to ProjectSprouts
Guys

Sorry to sound like a total noob, but, not being familiar with ruby or
rake, I'm having trouble compiling despite the help (for which many
thanks, by the way). I'm guessing I should specify a particular
task... but I'm just not getting the relationship of the structure to
the dependencies, so I can't extrapolate what to do to fix things.

Any chance of a pointer?

Cheers,

Oliver

Luke Bayes

unread,
Dec 27, 2009, 4:50:13 AM12/27/09
to project...@googlegroups.com
In terms of not getting the default Rakefile, this Gist might help:

http://gist.github.com/221569

It represents roughly what the Sprout Task Helpers do - but in more
verbose, base Rake tasks with dependencies.

This should basically be a drop-in replacement for the default
rakefile on a Flex 3 or 4 project.

With that said, what issues exactly are you running into at this point?

Stack traces from the terminal along with your platform info would help.


Thanks,

Luke

codedsignal

unread,
Jan 7, 2010, 4:16:25 PM1/7/10
to ProjectSprouts
Hi Luke

Thanks for getting back and happy new year.

I'm afraid that the stack trace is pretty laconic:

zephyr:SproutProject oliver$ rake
(in /Users/oliver/Sites/SproutProject)


[trace] VerifyError: Error #1014: Class mx.core::BitmapAsset could not
be found.
[trace]

[trace] ReferenceError: Error #1065: Variable

SproutProjectSkin_ProjectSprouts is not defined.
[trace]
[trace] ReferenceError: Error #1065: Variable SproutProject is not
defined.
[trace]

And that's it.

Regarding my environment I'm running...

OS X 10.6 on an Intel Mac Pro.

Ruby is from MacPorts: ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-
darwin10]

Installed Sprouts gems:
sprout (0.7.223)
sprout-as3-bundle (1.0.32, 1.0.31)
sprout-asunit3-library (4.0.14)
sprout-flashplayer-bundle (10.22.6)
sprout-flashplayer-tool (10.22.2)
sprout-flex3sdk-tool (3.3.1)
sprout-flex4-bundle (0.1.4)
sprout-flex4sdk-tool (4.1.60109)

I have export RUBYOPT=rubygems in ~/.profile

Incidentally, the same issue affects my MacBook Pro (pretty much same
set-up as above, so at least the problem is consistent!)

Please let me know if there's anything else I can furnish that would
help: I'm *longing* to sprout!

Best,

Oliver

codedsignal

unread,
Jan 11, 2010, 2:29:34 AM1/11/10
to ProjectSprouts
Hmmm... binned my macports ruby install and reloaded everything... it
all works now.

Cheers

Luke Bayes

unread,
Jan 11, 2010, 5:27:27 PM1/11/10
to project...@googlegroups.com
Ahhhh...

That damn macports!

It's always so enticing, but never fails to bite me....

Thanks for letting us know.


lb.

> --
> You received this message because you are subscribed to the Google Groups "ProjectSprouts" group.
> To post to this group, send email to project...@googlegroups.com
> To unsubscribe from this group, send email to projectsprout...@googlegroups.com

> For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en

Reply all
Reply to author
Forward
0 new messages