Practica Flex en el DF (Mexico)
Hola,
me llamo Djibril. No sé si es el buen lugar, pero lo
pruebo en todas partes.Estoy estudiando informatica en EPITA
(escuela de ingenieros en informatica) en Paris en ultimo ano.
Estoy estudiando Flex desde 2anos, haciendo proyectos para la
escuela y tambien para algunas empresas. Tengo que hacer una
practica de 6 meses en Febrero y la querria hacer en el DF sobre
Flex. Ya me fui 4 meses de practica el ano pasado y me gustaria
regresar. Tengo buena experiencia en largos proyectos y en trabajar
en grupo. Hice tambien algunos proyectos en Java/J2EE/C#/C++. Pero
lo que pasa, es que desde Paris es muy dificil de encontrar algo
sobre Flex. Entonces Uds pueden ayudarme a encontrar a una practica
por favor.
Muchas gracias, estoy esperando a su respuesta para mandar mi
CV.
Nos vemos luego.
Buen tip, esto es parecido a lo que se haria en el layout , aunque en este puedes escoger la opcion de Traer descripcion y te trae el estado completo (en lugar de Jal, Jalisco)
thumbs up
Similar Messages
-
Regarding rendering data from seperate XML form in Adobe Flex
Hi All,
I am practicing Flex, in this practice I had used SWF file generated for perticular flex project in NWCE but one problem is occur i.e. one of the flex project(day3 exercise 10 ) is implementing drag and drop between the components is there in flex ,I had practiced in flex builder working fine then swf file generated for this and try to use it in my NWCE environment but problem is room rendering( rooms data extracts from separate XML form is placed at assests in workset ) not working plus no items displayed on that component only ,items of remaining components displayed properly.This Rooms.xml form where to place for display rooms data properly.
How can I solve this problem.
Thanks,
surya.Thank u,
You mean we are unable to access data from local files at run time in flex applications,is right? but suppose at the time of integration of flex application with webdynpro are any other how to pass the required information,for example i am extracting rooms data from xml this xml and pass to list in MXMl component.This XML file is placed source folder of flex project at the time of run this application in Flex builder but i want to use this flex application SWF File in Webdynpro for java(means integration flex and wendynpro).how can i pass this rooms data to list .
Is there any alternative for this please provide me answer asap.
Best Regards,
surya. -
Best practice for adding text to Flex container?
Hi,
I'm having some troubles to lay a TextFlow class out properly
inside a Flex container. What's the best practice to achieving
this, for example adding a lot of text to a small Panel?
Is it possible to pass anything other than a static width and
height to DisplayObjectContainerController constructor, or is this
not the place to implement this? I guess what I am looking for is
the layout logic I'd normally pack into a custom Flex component and
implement inside measure() and so on.
My use case: a chat application which adds multiple TextFlow
elements to a Flex container such as Panel. Or use TextFlow as a
substitute for UITextField.
Some example code would help me greatly.
I'm using Flex 3.2.
Regards,
StefanThanks Brian, the example helps. However problems quickly
arise if I modify it slightly to this (please compile it to see):
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" initialize="init()">
<mx:Script>
<![CDATA[
import flashx.textLayout.compose.StandardFlowComposer;
import
flashx.textLayout.container.DisplayObjectContainerController;
import flashx.textLayout.container.IContainerController;
import flashx.textLayout.elements.TextFlow;
import flashx.textLayout.conversion.TextFilter;
private var _container:Sprite;
private var _textFlow:TextFlow;
private function init():void
_container = new Sprite();
textArea.rawChildren.addChild(_container);
var markup:String = "<TextFlow xmlns='
http://ns.adobe.com/textLayout/2008'><p><span>Hello
World! Hello World! Hello World! Hello World! Hello World! Hello
World! Hello World! Hello World! Hello World! Hello World! Hello
World! Hello World! </span></p></TextFlow>";
_textFlow = TextFilter.importToFlow(markup,
TextFilter.TEXT_LAYOUT_FORMAT);
_textFlow.flowComposer.addController(new
DisplayObjectContainerController(_container, 200, 50));
_textFlow.flowComposer.updateAllContainers();
]]>
</mx:Script>
<mx:Canvas width="100" height="100" id="textArea" x="44"
y="46" backgroundColor="#F5EAEA"/>
</mx:Application>
What is the best way to make my textflow behave like a
'normal' UIComponent in Flex? Should I use UIComponent instead of
Sprite as a Container? Will that take care of resize behaviour?
I have never before needed to use rawChildren.addChild for
example, maybe you can explain why that's needed here?
I realise that the new Textframework works on an AS basis and
is not Flex or Flash specific, but this also poses some challenges
for those of us using the Flex framework primarily.
I think it would help to have some more basic examples such
as using the new text features in a 'traditional' context. Say for
example a TextArea that is just that, a TextArea but with the
addition of inline images. I personally feel that the provided
examples largely try to teach me to run before I can walk.
Many thanks,
Stefan -
Best practice for auto update flex web applications
Hi all
is there a best practice for auto update flex web applications, much in the same way AIR applications have an auto update mechanism?
can you please point me to the right direction?
cheers
YarivHey drkstr
I'm talking about a more complex mechanism that can handle updates to modules being loaded into the application ect...
I can always query the server for the verion and prevent loading from cach when a module needs to be updated
but I was hoping for something easy like the AIR auto update feature -
Best practices for "designer - developer" interaction in Flex Mobile
Hi,
I'm starting development of a mobile software application and Flex Mobile is the platform I've chosen for that.
What is the best practice / recommended workflow for designer-developer interaction? For example in web application the designer provides HTML/CSS templates to the developer which integrates them in the Web Application. What is the analogue in Flex Mobile? What should I request as input from the designer?
I'll appreciate any hints, links, advises or previous experience on the topic.
Thanks!
Best Regards,
DinkoIf you're using Adaptive Web Design (CSS3 media queries), you can maintain one site with CSS Layouts optimized for different device widths.
http://www.adobe.com/devnet/dreamweaver/articles/introducing-media-queries.html
jQuery Mobile
http://jquerymobile.com/
If you're actually running separate web sites for mobile and non-mobile devices, have a look at this recent discussion:
http://forums.adobe.com/message/4177360#4177360
IMO, there is nothing wrong with providing links for mobile and non-mobile users to choose which site they would prefer to use -- especially for tablets who may have an interest in both.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Best practice to embed flex application in html
Hello guys
I am not sure what's the best practice to embed the flex application. We couldn't use html code in flex builder. Would you guys edit the html files via other tools to embed the swf file after the application is completed or there are other ways to do it. Thanks for the reply.Hi Jerry,
Why you couldn't use the html code generated in flex builder. In the html wrapper file generated in FlexBuilder you have SWF embed code directly along with the Flash Player detection javascript code...If your users don't have the FlashPlayer installed or if they don't have the latest Flash Player version installed then the application will prompt the users to install the latest Flash player plugin..
What's the problem that you have got by using the html wrapper file generated in FlexBuilder..
Thanks,
Bhasker Chari -
Im new to Flex but I have plenty of experience using traditional webdev technologies (HTML, CSS, JS/AJAX, PHP). I know that when you build a web app using these technologies, it's considered best practice to use event listeners rather than event handlers in JS, and to place all your JS in an external file and reference it in your HTML page. I've been watching several videos on Lynda.com on Flash Builder 4 and Flex, and in all the videos, the author places most of the Actionscript in the MXML file while referencing a few custom Actionscript classes. With that said, what do Flex developers typically do?
In Flex 3, it is considered best practice to use the Presentation Model pattern (as advocated by Martin Fowler), where you extract the view states and view logic.
A PM is a simple ActionScript class that extends EventDispatcher (for Data Binding purposes).
[Bindable]
public class SalesProjectionPM extends EventDispatcher {
// Collection of QuarterlySales objects
public class quarterlySales:ArrayCollection;
// Event handler
public function viewSwitchHandler(event:MouseEvent):void {}
You can then inject this PM into an MXML view using an IoC container framework and bind your view to the corresponding PM for both your components dataProviders and events. If you have a central data model, you can inject it into your PM and bind to it.
In Flex 4, you already have the separation of view and logic that comes with the new Spark Architecture. You have an ActionScript component that contains the view states and view logic (including event handlers) on the one side. And you have a MXML skin that materializes the UI on the other.
You add/remove event handlers in the partAdded(), partRemoved() overriden methods. If you have a central data model, you can inject it into your ActionScript components. -
Attest1.5 - a practice exam engine for the Adobe Flex 3 Developer Certification
http://software.pxldesigns.com/attest/
Has anyone used Attest 1.5 and passed the ACE for Flex 3?I did not use Attest for the Flex 3 exam. The questions in the version for the Flex 2 exam did not cover the breadth of topics covered in the real exam, and some of the questions were not as difficult as the real exam.
That said, I did find Attest extremely valuable in preparing for the Flex 3 certification exam.
BTW, I'm currently working on a Flex app to help others prepare for the Flex 3 certification exam. It won't be ready until end of July, but it should have far more questions than Attest. Where Attest offers several "full" mock exams and several "mini" exams, my application will be designed to make persons "over-prepared" for the exam, because the end goal is not just to pass the exam, but to reach a high level of expertise in Flex.
I have not decided if I will charge for the application, we'll see how it turns out by end-of-July.
Attest is free, but I expect you will be more than pleased to buy my version, as it will be a different animal entirely. -
Best practice for skinning a cross-platform action bar in flex mobile
what is the best way for skinning (mxml skin) an action bar with is diffrent in height and icon between andorid and Iphone apps?
can i find somewhere a sample for skinning (spark skin in mxml) an action bar?I was just dealing with this today on my app, which also has a view with a video object, netstream, netconnection, etc. I was seeing a lot of memory leakage on my device, which then caused the app to crash on the device due to it running out of memory.
here's what I suggest:
-Clean up, close and null all netconnection objects when leaving the view. You should also null all video objects as well. Anything additional that you might have instantiated in actionscript instead of the view mxml.
-The View will take care of discarding its components, any subviews that are present.
If you have FlashBuilder Premium you can use the Flex Profiler to see memory usage of your app when running in the simulator. If you're still seeing problems you can use that tool to diagnose your memory usage -
Using XML with Flex - Best Practice Question
Hi
I am using an XML file as a dataProvider for my Flex
application.
My application is quite large and is being fed a lot of data
– therefore the XML file that I am using is also quite large.
I have read some tutorials and looked thorough some online
examples and am just after a little advice. My application is
working, but I am not sure if I have gone about setting and using
my data provider in the best possible (most efficient) way.
I am basically after some advice as to weather I am going
about using (accessing) my XML and populating my Flex application
is the best / most efficient way???
My application consists of the main application (MXML) file
and also additional AS files / components.
I am setting up my connection to my XML file within my main
application file using HTTPService :
<mx:HTTPService
id="myResults"
url="
http://localhost/myFlexDataProvider.xml"
resultFormat="e4x"
result="myResultHandler(event)" />
and handling my results with the following function:
public function myResultHandler(event:ResultEvent):void
myDataFeed = event.result as XML;
within my application I am setting my variable values by
firstly delacring them:
public var fName:String;
public var lName:String;
public var postCode:string;
public var telNum:int;
And then, giving them a value by “drilling” into
the XML, E;g:
fName = myDataFeed.employeeDetails.contactDetails.firstName;
lName = myDataFeed.employeeDetails.contactDetails.lastName;
postCode =
myDataFeed.employeeDetails.contactDetails.address.postcode;
telNum = myDataFeed.employeeDetails.contactDetails.postcode;
etc…
Therefore, for any of my external (components in a different
AS file) components, I am therefore referencing there values using
Application:
import mx.core.Application;
And setting the values / variables within the AS components
as follows:
public var fName:String;
public var lName:String;
fName =
Application.application.myDataFeed.employeeDetails.contactDetails.firstName;
lName =
Application.application.myDataFeed.employeeDetails.contactDetails.lastName;
As mentioned this method seems to work, however, is it the
best way to do it??? :
- Connect to my XML file
- Set up my application variables
- Give my variables values from the XML file ……
Bearing in mind that in this particular application there are
many variable that need to be set and there for a lot of lines of
code just setting up and assigning variables values from my XML
file.
Could someone Please advise me on this one????
Thanks a lot,
Jon.I don't see any problem with that.
Your alternatives are to skip the instance variables and
query the XML directly. If you use the values in a lot of places,
then the Variables will be easier to use and maintain.
Also, instead of instance variables, you colld put the values
in an "associative array" (object/hashtable), or in a dictionary.
Tracy -
Displaying Content in Flex - Best Practice
I'm curious as to people's thoughts for the best methods to
display content in Flex. In particular, I'm creating a UI and want
one of the first panels that is displayed to the user to display
some simple instructions on how to use the UI. Should I import HTML
from an external file? Should I embed XML or HTML in the SWF? Or,
should I simply code the content into the SWF? I want the content
to be styled like the rest of my application - fonts, colors, etc.
Any suggestions would be greatly appreciated.
Thank you.You can embed the content in the swf (unless you want it to
change).
Then you can style it using standard css.
This way the resulting application is modular, and if you
change the css in the future, changes are reflected in all your
styled components.
More here:
http://livedocs.adobe.com/flex/1/flex_builder_en/wwhelp/wwhimpl/common/html/wwhelp.htm?con text=Using_Flex_Builder&file=brady510.htm -
Flex, PHP, MySQL Best Practices?
When using the HTTPService to invoke PHP/ database
transactions what are some best practices to insure multiple
simultaneous users successfully complete the transaction?
So, in my Actionscript I build an object to pass to the PHP
script that uses the values of the object to build a SQL query and
executes the query, evaluating the result.
Right now, I'm returning a text string from the PHP script
(after error checking there) that simply says "ok" if the script
succeeded.. and using that string in the HTTPService.Result
(lastResult) listener.
Anyone have any experiences to comment on?
thanks,
DanOr use AMFPHP and pass typed objects back and forth. I find
this much easier than working with XML. Once you've used AMFPHP on
one project, you'll wonder why you bothered with XML. Or at least
that's how it was for me. AMFPHP 2.0 should be released very soon -
I believe they're just getting the docs ready.
Cheers,
Darren. -
Best practice. Flex Builder / Form Guides
Hi,
We have a quite complex form which requires functionality not present in Form Guide Builder.
My question is what would be the best way to go about this.
Create the entire layout in flex builder and later bind the form fields to it?
or
Create the layout in Form Guide Builder, bind the fields and then use Flex Builder to make final adjustments?
Kind regards
LarsI am not sure that you are understanding how form guides works. Form Guides leverage the XFA template design in Designer to allow you to have an alternate interface for collecting data. The structure of the guide is built in Guide Builder but the underlying definition for the template is in the XFA template in Designer. The only time that Flex Builder would be required is if you wanted to modify individual components or layout styles. So to answer your question build the form in Designer then use Guide Builder to bind the individual fields and objects to the appropriate panels.
-
Flex Best Practices-Transitions
What would be the best way to transition from a small login
screen to a full application once the user has been verified? The
best example that I could find uses flex's base states
http://www.vipercreations.com/media/tutorials/login_system_with_flex_and_php/
(Login with user:test,pass:test)
I don't think thats the wrong way to do it, but I don't know
if its the best.well, i do it this way
public function login(userId:String, password:String):void
var url:String = "
http://"+GeneralSettings.SERVERIP+":8080/login.do";
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.userId = userId;
variables.password = password;
request.data = variables;
request.method = URLRequestMethod.POST;
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, requestWsdls);
loader.load(request);
} -
Help needed in migrating Flex 2 application to Flex 3
Hi All,
We are in process of migrating a working Flex 2 application
to Flex 3.
There were no compilation errors when application was
compiled with Flex 3 SDK. But when we start the application, it
throws a script timeout error:
Error: Error #1502: A script has executed for longer than the
default timeout period of 15 seconds.
at
mx.managers.layoutClasses::PriorityQueue/removeSmallestChild()[C:\autobuild\3.2.0\framewo rks\projects\framework\src\mx\managers\layoutClasses\PriorityQueue.as:214]
at
mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\managers\LayoutManager.as:915]
at
mx.core::UIComponent/validateNow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\m x\core\UIComponent.as:5679]
at mx.core::UIComponent/
http://www.adobe.com/2006/flex/mx/internal::validateBaselinePosition()[C:\autobuild\3.2.0\ frameworks\projects\framework\src\mx\core\UIComponent.as:5715
at mx.controls::TextInput/get
baselinePosition()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\TextI nput.as:408]
at
mx.containers::FormItem/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\containers\FormItem.as:913]
at
mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:6351]
at
mx.core::Container/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework \src\mx\core\Container.as:2677]
at
mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:622]
at
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:677]
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
at
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]
The application is taking a huge time to 'validate' each
component in the UI and each time we observe a timeout at different
UI component.
Few observations from our end:
1. The application is very straight forward and only thing
complex in it is UI layout. There are a few of complex layouts,
viewstacks and datagrids used.
2. The ‘creationPolicy' at application level has been
set to 'All' because of design. This although is not a standard
practice but this does not help us because the same application
compiled with Flex 2 used to load successfully.
If anybody has faced a similar issue and has some suggestions
please do give us pointers. Otherwise we are left with a lengthier
option of re-factoring the application so that creation policy
defaults to 'auto' and modify the application design.
Thanks in advance,
SujathaHi All,
We are in process of migrating a working Flex 2 application
to Flex 3.
There were no compilation errors when application was
compiled with Flex 3 SDK. But when we start the application, it
throws a script timeout error:
Error: Error #1502: A script has executed for longer than the
default timeout period of 15 seconds.
at
mx.managers.layoutClasses::PriorityQueue/removeSmallestChild()[C:\autobuild\3.2.0\framewo rks\projects\framework\src\mx\managers\layoutClasses\PriorityQueue.as:214]
at
mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\managers\LayoutManager.as:915]
at
mx.core::UIComponent/validateNow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\m x\core\UIComponent.as:5679]
at mx.core::UIComponent/
http://www.adobe.com/2006/flex/mx/internal::validateBaselinePosition()[C:\autobuild\3.2.0\ frameworks\projects\framework\src\mx\core\UIComponent.as:5715
at mx.controls::TextInput/get
baselinePosition()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\TextI nput.as:408]
at
mx.containers::FormItem/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\containers\FormItem.as:913]
at
mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:6351]
at
mx.core::Container/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework \src\mx\core\Container.as:2677]
at
mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:622]
at
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:677]
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
at
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]
The application is taking a huge time to 'validate' each
component in the UI and each time we observe a timeout at different
UI component.
Few observations from our end:
1. The application is very straight forward and only thing
complex in it is UI layout. There are a few of complex layouts,
viewstacks and datagrids used.
2. The ‘creationPolicy' at application level has been
set to 'All' because of design. This although is not a standard
practice but this does not help us because the same application
compiled with Flex 2 used to load successfully.
If anybody has faced a similar issue and has some suggestions
please do give us pointers. Otherwise we are left with a lengthier
option of re-factoring the application so that creation policy
defaults to 'auto' and modify the application design.
Thanks in advance,
Sujatha
Maybe you are looking for
-
Table component - how to find out which cell is clicked
Hello! I have a couple of questions regarding table component 1. Is there any way to find out which table cell is clicked on? 2. And is it possible to paint clicked cell programmatically? Possible solution might be a Select Boolean Checkbox inside a
-
Error occurred while saving document in Web Analysis Studio
We have encountered an issue when we tried to save a new report in Web Analysis. An error message box will prompt up displaying "Error occurred while saving document." (Please refer to the attached screenshots). Clicking the details button gives no r
-
MBP 15-inch, Late 2008 - Windows 7 black screen
Specs first: MacBook Pro 15-inch, Late 2008 OS X 10.8.3 (12D78) Boot ROM Version: MBP51.007E.B06 Want to install: Windows 7 x64 Ultimate (disc) I needed to format my windows partition because whenever I wanted to boot with bootcamp the scree
-
ITunes 7 does recognize 30gb 5th gen and will not update to 1.2
Upgraded to iTunes 7, program no longer recognizes 30GB 5th gen. Windows does pick it up. So, I plug it in, explorer window for removeable drive appears, iTunes does not launch. With iTunes open, explorer window opens and there is no effect in iTunes
-
Daren't sync iPhone to new Windows install. HELP
My old Windows installation was recently plagued by a virus, and as such I had to back everything up, and re-install. I've retrieved all my music off of my iPod Classic, no problems there. Set the iPod to manual, no stupid iTunes wiping. I also have