Skip to main content
Participant
Jun 23, 2010 7:48 PM UTC
Question

How to modify and compile SDK 4 frameworks file in Flash Builder 4

Hi,

I would like to modify \Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\src\mx\core\ScrollControlBase.as file for testing of my application. How do I get FlashBuilder 4 to compile that file and include it into my build.

Thanks

Jerry

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
Jun 23, 2010 7:53 PM UTC

You can actually just take the source for that file and put it in your project in the correct package. So create the mx/core/ folders inside the src folder. and then create a new ScrollControlBase.as file with the contents you wish to run.

This is often called monkey patching because the files in your project folder have higher precedence over the ones in the sdk. Allowing you to override them.

Simeon Bateman

Principal Instigator

PNW Rain LLC

simeon@pnwrain.com

503-616-4405

Translate
jdtealeafAuthor
Participant
Jun 23, 2010 7:58 PM UTC

Hi Simeon,

Thank you for such a quick reply. I will try what you suggested.

Thanks

Jerry

Jerry Dietrich | RIA Consultant | jdietrich@tealeaf.com | ph: 602-412-3783

Tealeaf Customers

Tealeaf Testimonials

Tealeaf Press Coverage

Translate