Flex vs ActionScript
Hi all,
Perhaps I am confused but here's my situation: I'm trying to build a Flash video player for compatibility with IE. I built a simple on in Flex using the Spark components but compiled, it comes to 41k without static linking and 300k+ with static linking.
I have seen some implementations in ActionScript alone and their implementations are 20k-ish flat.
I generated the report from the compile in Flex and it includes a lot of libraries. My questions are:
1. Can anyone explain why these libraries are need and if I can remove them to reduce my filesize?
2. Without static linking and the 41k file size, if a user hits my site for the first time, does it only download 41k or does it download the full 300k? Also, where does it download the libraries that it needs? from Adobe?
3. Is there anyway that I can build a Flex application with pure ActionScript? Or how would I go about building an ActionScript video player and compile it using Flex?
Thanks!
Frameworks carry a price. The ability to just have scrollbars show up by
setting a property is weight the every application carries. If you use the
Microsoft Foundation Classes, an app for HelloWorld is not 2k as if you
coded it by hand in C.
Therefore:
1) you can hand code stuff and not use flex
2) 41K if they already have the RSLs which most folks should
3) hand coding.
Similar Messages
-
Memory (RAM) model in Flex or ActionScript for local variables in a method
I have a method in AS3 to handle certain event generated from some Components in <mx:Repeater>. Two different Components can fire the same event
at the same time so the same method must handle the two events together. My question is if the two calls on the same event handler method will step on each other. The event handler method only uses the local variables.
In Java, the local variables of a method for the two callers are in two different memory (RAM) addresses. So they will not step on each other. Not sure about
Flex/ActionScript.Actionscript runs in a single thread. One of the events will get fully
processed before the other. -
How can I Access the Flash "Slide class" using flex and ActionScript 3?
Hi,
I hope someone can help me solve a problem...
I'm using the flex SwfLoader to load a flash side
presentation as follows...
<mx:SWFLoader id="ss_slides" source="ss_slides.swf"
width="320" height="240"/>
I would like to access the flash "Slide Class" using flex so
I can make the following call...
Slide.gotoNextSlide();
Anyone know how I can do that?
Would it be through the SwfLoader Object?
Is there another way?
F.Y.I. Here is a snippets about the Slide class from the
Flash 8 help...
Using the Slide class (Flash Professional only)
You use the methods and properties of the Slide class to
control slide
presentations you create using the Screen Outline pane for a
Flash Slide
Presentation, to get information about a slide presentation
(for example, to
determine the number of child slides contained by parent
slide), or to navigate
between slides in a slide presentation (for example, to
create "Next slide" and
"Previous slide" buttons).
You can also use the built-in behaviors that are available
in the Behaviors
panel to control slide presentations. For more information,
see Adding controls
to screens using behaviors (Flash Professional only) in Using
Flash.
Thanks,
Chris S.Hi Chris,
You cannot access the methods of the Flash 8 movie from Flex.
And you can't do it the other way around either.
The only way to communicate is to create a LocalConnection on
each side.
M. -
How to edit/update data into an XML file using Flex and Actionscript
I can read an external xml file, please see the code below:
protected function button1_clickHandler(event:MouseEvent):void
var GrowthChartsDataGrid:XML;
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("../GrowthChartsDataGrid.xml");
loader.load(request);
loader.addEventListener(Event.COMPLETE, onComplete)
function onComplete (event:Event)
var loader:URLLoader = URLLoader(event.target);
GrowthChartsDataGrid = new XML(loader.data);
GrowthChartsDataGrid.GrowthChartGridView += <Month> {txtMonth.text} <Weight> {txtWeight.text} </Weight> </Month>
texttesting.text = GrowthChartsDataGrid.toString();
I can read an XML file and can add an extra node and can display it in a text filed. But I want to update the XML file contents which will come from the txtMonth and txtWeight text boxes.
Please any suggestions???First of all thanks for your quick reply .
I actually want to add another node inthe xml file. Files is at a local location and i can read the file and add an extra node (but I cant store this extra node in the actual XML file). But I want to save XML with the extra node.
For exmaple,
my current xml is:
<?xml version="1.0" encoding="utf-8"?>
<GrowthChartGridView>
<Month> 1
<Weight>3.5</Weight></Month>
<Month> 2
<Weight>3.9</Weight></Month>
<Month> 3
<Weight>4.5</Weight></Month>
</GrowthChartGridView>
and at run time, I can create a new node using the data from two textboxes at button click event.
GrowthChartsDataGrid.GrowthChartGridView += <Month> {txtMonth.text} <Weight> {txtWeight.text} </Weight> </Month>
Now what I want to do is, I want to add this node back in to my XML. Therefore, the result I am looking for is, my local XML should update like this.
<?xml version="1.0" encoding="utf-8"?>
<GrowthChartGridView>
<Month> 1
<Weight>3.5</Weight></Month>
<Month> 2
<Weight>3.9</Weight></Month>
<Month> 3
<Weight>4.5</Weight></Month>
<Month> {txtMonth.text} <Weight> {txtWeight.text} </Weight> </Month> //I can read data from text boxes so its fine but I can not store this in to my original XML
</GrowthChartGridView>
Thanks -
Unable to map nested java classes and objects in actionscript using flex
Hi All..,
Im a newbie in flex and actionscripting...,I however have a task assigned in this domain and goin insane since a week now with this problem...
Problem explained:
I have a class called Unit that inturn have many other classes like for example unit has an engineer class,,,Im not able to access the attributes of engineer using the unit class...that is unit.engineer,engineerid is giving me a null...however attributes unique to unit are accessible...
Please help me out with this...,this problem has already eaten up my deadlines...
Any help would be appreciated and thankz in advance..Thank you for the swift reply...,
I actually have three java classes Unit , Engineer and UnitretrievalRemote....
Unit contains engineer and also UnitRetrievalRemote has methods to retrieve unit which inturn should return engineer...,However i hav actionscript classes for both engineer and unit and mapped it apporopriately using the remotetag...and also my remote object is defined with a destination...
The below code is my Actionscripting code included in mxml:
import UnitScript.Engineer;//These are my Action Scripting Classes
import UnitScript.Unit;
import mx.collections.ArrayCollection;
import mx.collections.ArrayList;
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.rpc.events.ResultEvent;
public var unitIds:ArrayCollection;//I'm passing an array from java end
that retrieves the unitId's from the db using hibernate...
public var index:int;
public var unit:Unit;
protected function initData():void
ApplicationService.getUnitIds();
//This is the remoteobject call using blazeds to load the method during application start from java..
private function setUnitIds(event:ResultEvent):void
unitIds = ArrayCollection(event.result);
private function setUnit(event:ResultEvent):void
unit = Unit(event.result);
//mx.controls.Alert.show( "Compling" );
//mx.controls.Alert.show( "Engineer Method" +unit.engineerId);
//mx.controls.Alert.show( " Engineer=="+unit.engineer) ;
unitIDText.text = String( unit.unitId );
customerName.text = unit.name;//displaying the contents fetched from the backend in the panel...
setEngineer(event);
private function setEngineer(event:ResultEvent):void
unit.engineer = Engineer(event.result);
unit = Unit(event.result);
eng_id.text = String(unit.engineer.engineerId);
mx.controls.Alert.show( "Engineer ID Please Show"+unit.engineer);
//This prints a null.
mx.controls.Alert.show( "Direct Engineer Id" +unit.engineer.category);
// This prints a null.
Remote object mapping is as below:
<mx:RemoteObject
id="ApplicationService"
destination="Destination1" >
<mx:method name="getUnitIds" result="setUnitIds(event)"
fault="mx.controls.Alert.show(event.fault.faultString)"/>
<mx:method name="getUnit" result="setUnit(event)"
fault="mx.controls.Alert.show(event.fault.faultString)"/>
</RemoteObject> -
How to align buttons using ActionScript in Flex
Hi all, I'm pretty new to Flex and ActionScript but
I’ve created an myAddForm() function in an actionscript class
but I can't align the buttons - I’ve been looking at using a
buttonbar but can't figure out how to convert the code in to
actionscript from the mxml examples. any advice what to use...
function below.. This works but with the button on top of one
another.. Any help is greatly appreciatedOoops - I indeed mean ActionScript.
In any case, what is the difference between ExtensionBuilder and "FlashBuilder + CSIDE libs"? Is ExtensionBuilder that thing that you have to be a Partner for and nobody alive today has managed to reach the person at Adobe who adds you to the program?
Apropo the upcoming holoday, I understand that successfully contacting Adobe about joining the CS5 SDK partner program is sort of like virgin birth - the last time it happened was 2010 years ago and nobody alive today has ever seen it happen...
I THINK I am using FlashBuilder plus the CS5 SDK Framework. So how do I catch events that way, since I don't see the CS5 options in the project's properties dialog.
mlavie -
Flex project vs. mxml application
im totally new to flex and actionscript, coming from traditional web app development. ive been watching videos on lynda.com and it has gone well, but one thing it fails to mention and that i couldnt find in the forums or on google is the difference between creating a flex project and an mxml applciation. what's the difference?
thanks!I don't know if you have knowledge about java or C#.
The project is a location where you collect all files that you need for your final application: mxml files, as filex, assets ....
The mxml application is the mxml file that inherit mx:Application and is the main file of the project.
Here is the start point of what you see in the browser.
The red circle specify the project and the blue cicrle specify the mxml application.
There is only one default mxml application in each project, but you can have many mxml files (that can be components) or mxml application that are applications. -
Adobe Flex & DESIGN Recommendations ?
Hi Folks,
While I am a bit beyond scratching the surface in Adobe Flex 4 & AS3 usage and knowledge, I am looking to spruce up the look and feel of my applications. So, I am looking at and getting confused by a never ending alpha soup of various Adobe products - such as Photoshop, Illustrator, InDesign, Catalyst, etc.
Where do I start and what do I actually need in order to be able to spruce up my Flex App with some custom looking components, UI controls and logos ?
What are you using and what would you recommend for a noobish person like my self?
Thanks again,
VCWhen I got Flex 2 certified, I found this software to be
fairly useful. The Flex 3 exam version is not out yet, so you might
consider getting the version for Flex 2, as it still should be
useful:
Attest
I suggest going through these FB help topics and all
sub-topics TWICE, compiling all sample programs.
Flex Programming Elements
User Interfaces
Advanced Flex Programming
Data Access and Interconnectivity
Application Design
Application Development
Application Deployment
Custom Component Development
MXML Custom Components
ActionScript Custom Components
Nonvisual Custom Components
Flex Data Visualization Developer's Guide
Using Flex Builder 3
Developing AIR applications with Flex
Programming ActionScript 3.0 -
Getting started with Flex ...
Hi All,
I've been looking a Flex over the last couple of weeks and have managed to setup a couple of basic projects that can read data from a mySQL database etc... However when it comes to understanding some of the more advanced frameworks and options to use with Flex it starts to get very overwhelming.
Does anyone have any pointers/suggestions for good material (online or books etc) to start with Flex. I come from an Oracle Forms development background and in terms of setting up an application with a connection to a database Oracle Forms seems to a lot simplier than building a Flex database application (although the functionality of Oracle Forms as a lot more limited than Flex/Flash).
I have taken a look at a the book Enterprise Development with Flex: Best Practices for RIA Developers (Adobe Dev Lib)http://www.amazon.com/Enterprise-Development-Flex-Practices-Developers/dp/059615416X/ref=s r_1_6?s=books&ie=UTF8&qid=1319581262&sr=1-6 by Yakov Fain, Victor Rasputnis and Anatole Tartakovsky (Mar 30, 2010), however the very first code example in the book appears to be dated and I'm having trouble getting it to work and finding the appropriately dated source files for the example project.
I have also taken a quick look at Adobe Flex 4.5 Fundamentals: Training from the Source by Michael Labriola and Jeff Tapper (Aug 5, 2011) which appears to be a bit more recent, however I am not sure how much is covered regarding database connections to databases like mySQL and Oracle.
Any suggestions on the best learning materials available would be really helpful. At the moment it feels like I need to be an expert in Flex, MXML, ActionScript, Java, Spring, Hibernate, AMF, Maven, BlazeDS etc etc just to be able to create a simple database centric application (aarrgghh).
Ideally I would love to be able to find a recent tutorial that goes through the building a relatively advanced Flex database centric application, that includes information about building a database based login/authentication system (without having to use PHP), and database controlled/stored main menu system and a system for modular sub tabs/screens/programs within a main application.
Regards,
Leigh.Thanks everyone for the replies. I guess I'm a bit lazy when it comes to reading up on a technology I am not familiar with :-) . What makes things worse is the Oracle Forms Builder IDE is very highly coupled to the Oracle database and therefore there is no requirement to know or understand the language or technology under hood (other than PL/SQL), Oracle takes care of that within the IDE and the Forms Java Bean (deployed by default with a middleware installation of Oracle application server).
@dwaynie Started working through the Flex in a week video training yesterday. Its really good and probably the best place for me to start as it goes over a lot of the assumed knowledge regarding Flex, MXML and AS (stuff I have probably glossed over up until now)
@Mansuro noticed that spring has a dedicated page on the Flex/Flash plaform site so I'll probably look into this more down the track. I guess the thing I am little confused about is that there are many examples online that integrate Spring + Hibernate + Maven + Java etc etc, I guess each framework has different features that the others don't and therefore all can be used at once, or does each one offer a completely different service? More reading is required here I think. -
Unable to map actionscripting with java nested objects
Hi Experts...,
Im a newbie in flex and actionscripting.....
Im unable to map nested java classes and objects with my front end flex application using actionscript....I have searched everywhere almost to my knowledge on the net but failed to find a fix...,
im having serious trouble reffereing to attributes of an object using another object( which by the way happens to be the parent object).
Im using hibernate and springs to do the DB transactions....,
Please help me out with this issue.....
Thanks for all the help and support in advance....Again, I don't work with Java and you should ask Java-related question in Flex (or Java) forum.
Java or not - you need to package your server side language specific object into something that AS understands (text, XML, AMF object) and load this data into AS via, perhaps, URLLoader. Or you can open socket. Then you parse this data with AS3 code in SWF. -
I have a flash movie I created in Flash that has a couple
buttons in the clip. Is there a way to make the flash buttons
change the currentstate in Flex?
I know in Flex state changes are as easy as
currentState='STATENAME';
Flex uses actionscript and so does flash, that is why I am
hoping this is possible.
PLEASE HELP, I appreciate your anticipated response.
Thanks
ToddIs Flash movie created using ActionScript 3? If so, you
button click can dispatch an event and Flex application can
register a listener to this event and whenever the event is
dispatched, change the state. -
Too small window size in standalone flash player in FLEX
Hello,
I have unchecked the option "generate html wrapper file" so I
don't have to bother about closing the browser tab each time I make
a small change to the code and rerun the application.
This works fine as the standalone flash player closes when I
terminate the application from Flex. However, the standalone flash
player always starts in a fixed window size smaller than my
application size so that I cannot see the whole application. So I
have to enlarge the window size of the standalone flash player each
time which is annoying!
Is there a better solution?
Maybe get Flex to close the browser tab after I terminate the
application. I still prefer to use the standalone flash player
during development as my application doesn't depend on the browser
though.Adobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
Flex 3 - About the Flex development tools:
Adobe Flex Software Development Kit (SDK) primarily provide
XML files that you use ... When you use the debugger version of
Flash Player or start your AIR
Link:
http://livedocs.adobe.com/flex/3/html/building_overview_2.html
Adobe - Flex 3:
While Flex applications can be built using only the free Flex
SDK, developers can use ... Alert This content requires Flash.
Download Flash Player now
Link:
http://www.adobe.com/products/flex/
Flex.org - Rich Internet Application Development:
I would like to extract data from my Flex application to a
CSV file for loading into Excel. However, the current Flash player
does not allow direct access
Link:
http://flex.org/
Adobe - Flex Developer Center:
Supports visual and code-centric development, code hinting,
visual debugging, and so forth. Includes the Flex 3 SDK and Flash
Player 9.
Link:
http://www.adobe.com/devnet/flex/
moockblog: Flash Player 9, Flex 2, ActionScript 3.0: A Survey
of:
Flash Player 9's main new feature is full support for
ActionScript 3.0 (but older ... Flex Builder 2 also includes a
development framework known as the Flex
Link:
http://www.moock.org/blog/archives/000189.html
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine. -
Adobe Flex Showcase Directories?
I know about only two adobe flex showcase directories which
are
flex.org
scalenine.com
please list down other directories, where one can submit its
flex application.
thanks in advanceWhen I got Flex 2 certified, I found this software to be
fairly useful. The Flex 3 exam version is not out yet, so you might
consider getting the version for Flex 2, as it still should be
useful:
Attest
I suggest going through these FB help topics and all
sub-topics TWICE, compiling all sample programs.
Flex Programming Elements
User Interfaces
Advanced Flex Programming
Data Access and Interconnectivity
Application Design
Application Development
Application Deployment
Custom Component Development
MXML Custom Components
ActionScript Custom Components
Nonvisual Custom Components
Flex Data Visualization Developer's Guide
Using Flex Builder 3
Developing AIR applications with Flex
Programming ActionScript 3.0 -
Flex / Java Developer Needed
Brilig (www.brilig.com) is a fun and exciting startup who are changing the world of online advertising. We are currently looking for a talented and energetic Flex/Java developer to join our team for the key role of front end interface developer. We are located in Manhattan and candidate needs to work onsite. Candidates must be able to work independently and take ownership of their domain. This role may lead to a full-time position as the company expands.
Experience:
3 years Flex Builder/Actionscript 3 experience
At least 5 years Java experience
Wicket a strong plus
Experience with Eclipse, Maven, Jetty, Hibernate and SVN a plus
Any web design experience a plus
Please include:
Contract rate
Availability
PLEASE NOTE:
US citizens and Green Card Holders and those authorized to work in the US only. We are unable to sponsor or transfer H-1B candidates.
Contact:
Alex Levin, COO
[email protected]
About Brilig
The online advertising industry is in the midst of a disruptive transition from untargeted ad 'space' buys to sophisticated targeted 'audience' buys. While there are many different kinds of data that can be used individually to target consumers, there is currently no way to combine them to get a complete view of a unique consumer.
The problem is compounded by the fact that audience data exists in different forms, in thousands (maybe millions) of unconnected databases. Brilig is in the business of weaving online audience information together from any data source, wherever it is located. Our service provides a seamless way for publishers (audience sellers) to make their segments available for sale to the open market. Using Brilig, marketers, agencies and behavioral targeters (audience buyers) can access, analyze and combine these audience segments to find lift hidden within the intersection of them and transfer that lift to their online advertising campaigns.hi ,i am interested in your project ,i have 3 year's flex experience.please
tell me more about it.
eirc -
How to expose Hibernate 'non' conventional beans into flex apps via remoting
I am relatively new to the flex world. I am from the
Spring/Hibernate world.
In Hibernate, the POJO object or domain object , or simply
beans that you use to persist you object into the database does not
have to follow the bean definition/contract, i.e: public default
constructor with getter/setters. There are good reasons behind
creating those kind of 'hibernate beans' (I will call them that way
for lack of a better name). In fact, only defining a one-parameter
constructor (i.e. omitting the default one) guaranties you that
your client cannot invoke your API without that needed parameter.
Likewise, exposing only the getters for some private member
variables (without the setters) make sense when you don't want that
variable to ever change, etc....hibernate can do all that using
cglib, etc....
Now, my understanding of Flex and how remote services work
(from what I could see in all the samples around about
hibernate/spring), is that your java server bean get proxied
'dynamically' or 'statically' if I wish into an Actionscript class
object according to the rule: "values found in public bean
properties with get/set methods and public variables ", therefore
my public getVariable() from my 'hibernate' bean does not get sent
back.
This is creating me tons of problems, because the server API
already exist and we already have a JSF implementation using
it....Changing into flex is just my own initiative to prove that we
can get better UI...
What is flex/BlazeDS solution for fixing this case?
One solution that comes to mind (not very bright, but should
work) is to build a plain java bean object for each of these
'hibernate' beans to ensure the translation on both side between
the 'hibernate bean' and the 'expected' bean from flex. From the
server to the client, It would to copy the content of the hibernate
bean and return those 'proper' beans back to flex. On the way out
(from the client to the server), it would have to recreate the bean
as exposed on the server before sending it to the server).... It's
probably not the best solution, especially considering that
eventually as some point, I will need to define another set of
those object, in flex, using actionscript (I think these are what
you guys call VOs) in order to do strong typing in
flex........becomes very tough to manage!
Any input would be valuable.
Thank you,Hi Saket,
By 'not really complete' I'm assuming (hoping) that some work has been done on this already. Our project requires the use of custom assets, so it's very important that we get this functionality running as soon as possible.
Any help, unsupported or otherwise, would be great. Feel free to email me any details if you'd prefer not to post anything public on the boards.
Cheers,
Kristian
Maybe you are looking for
-
im not getting my TEXT messages anymore until i get around Wifi and then they flow in....i have Imessage on on both iphone and ipad...i tried turning OFF Imessage and they still dont come in!
-
Hi, I am new to Solaris10, just want to confirm if following applications are provided in Solaris 10. Clock Perf Meter Audio Tool Snapshot Answerbook If yes please provide me with path. Thank You
-
Windows 2000 connection to Oracle7.34
Is it possible to connect a Windows2000 machine to an Oracle7.34 Server via ODBC? I ask because I don't know if the oracle7 odbc driver has win2000 support... I'd be grateful for any hints.
-
How Do I Know if my Replacement iPhone 3GS is/isn't Refurbished?
I've heard about the serial number starting with an 8 or a 5 and the one that starts with a 5 is a refurb model..(Which is what my new replacement starts with). Is there any way to confirm this--possibly if I call Apple and ask them to look up the se
-
Alternate OC program to MSI Afterburner that doesn't use Riva Tuner?
I noticed a 20-40 FPS frame rate drop in BF4 when using Afterburner with rivia tuner statistics server installed. I just re installed windows 7 to clean things up with a i7 4790k and new mobo upgrade. I didnt install after burner and my FPS in BF4 wa