473,383 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,383 developers and data experts.

Minimal MXML for ActionScript3 in FlashDevelop with spark

8
FlashDevelop would seem to be the best free alternative to an Adobe product for working in ActionScript and Flex. But life with plain-old AS3 and minimal-Flex4 XML seems complicated.

This seems to be a basic minimum (one of a few alternatives) for using spark components* from Flex4 in FlashDevelop AS3:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete()">
<mx:Script source="" />
</mx:Application>
I right-click to flip this MXML file to being the "must compile" file and adjust the Project "properties" menu to build a suitably named SWF file.

The ActionScript3 code using spark components then runs fine in that onCreationComplete() method in my script file "spark_02.as" in the example.

I owe this technique to a web AS3 guru.

mx.core.FlexGlobals.topLevelApplication.addChild( myComp );

Anything fancier using your own classes or extending spark seems to now require giving up the Application class and working instead with the FlexGlobals.topLevelApplication and dealing with preloading and class loading.

At that point I would prefer to be in the Curl Surge RTE with curl, pcurl, scurl and dcurl files than in the Flash Player or even the Air WebKit wrapper.

*spark components are the Adobe replacement hierarchy which Adobe now recommends over Flex mx components. Useful points of comparison with Curl 7.0 include Box, VBox, HBox and other recent parallels/imitations.
Jun 6 '10 #1
0 4859

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Magnus Lie Hetland | last post by:
I'm working on a project where I have to create parsers on the fly, based on input to my program. I think Spark seems like a good candidate for the parser generation part, but it seems very geared...
1
by: Diez B. Roggisch | last post by:
Hi, I've got to create some spark-based parsers during runtime. For people not familiar with spark, a parser looks like this: class MixFixParser(spark.GenericParser): def __init__(self,...
9
by: Tran Tuan Anh | last post by:
Hi all, I am searching for a suitable parsing tool to parse C++ for a research project. Actually I am parsing SystemC, it is a C++ lib with some macros, hence I need to modify the grammar a...
16
by: Mike | last post by:
Does anyone know of a minimal/mini/tiny/small xml parser in c? I'm looking for something small that accepts a stream or string, builds a c structure, and then returns an opaque pointer to that...
0
by: Sébastien Boisgérault | last post by:
Hi, Has anybody already implemented a full ANSI C parser with John Aycock's spark module ? (spark : http://pages.cpsc.ucalgary.ca/~aycock/spark/) Cheers, SB
1
by: Mr Shore | last post by:
hi,every buddy I've now installed a jabber server,right it's ejabberd mentioned above and 2 jabber client,right again it's spark and psi and I can connect to jabber server by spark but failed by...
0
by: phanimadhav | last post by:
Hello experts how to redirect first.mxml to secound.mxml by using actionscript in flexbuilder3.What is the option.please help me
2
by: Jeff Louie | last post by:
I stumbled upon an amazing deal if you want to try your hand at Windows CE embedded programming using C#. It is called the SPARK program at: ...
3
by: ksrashmi | last post by:
Hi , How to get the session value in mxml file . (flex 2.0.1)
1
by: ksrashmi | last post by:
HI I am getting following exception when i use mxml tags in jsp <%@ taglib uri="FlexTagLib" prefix="mm" %> can any one tell why i am getting this exception type Exception report message...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.