O tutorial que estou a escrever, sofreu algumas alterações, bem como correcções linguísticas e alguns erros detectados foram corrigidos. The tutorial that I write, has suffered some changes and corrections language and some errors were corrected. Apenas actualizei o pdf “Flex Book”. Just upgraded the PDF "Flex Book."
- O index foi alterado, bem com alguns pedaços de código que não estavam devidamente formatados com a sintaxe original do flex (principalmente a parte I). - The index has changed, as well as some pieces of code that were not properly formatted with the syntax of the original flex (especially the part I).
-Foi alterado o tipo de letra para uniformizar o documento, e adicionados alguns pontos novos, tais como a separação por tópicos colocada em relevo, para serem mais faceis de identificar. -It has changed the font to standardize the document, and added some new items, such as the separation of topics raised in relief to be easier to identify.
-Foi adicionada a parte IV do tutorial. -It was added to Part IV of the tutorial.
-Foram adicionados algumas entradas no index que ficam para fazer nas próximas edições -We added some entries in the index that are to do in the next editions
-O número de páginas foi actualizado, contando agora com 46 paginas. -The number of pages has been updated, counting now with 46 pages.
Vou alterar o método de distribuição dos pdf’s na próxima edição, esta e as próximas versões em pdf encontra-se debaixo da licença creative commons: I will change the method of distribution of PDF's next edition, this and future versions can be found in pdf format under the creative commons license:
Atribuição-Uso Não-Comercial-Vedada a Criação de Obras Derivadas 3.0 Unported Attribution-Noncommercial-fenced the creation of Derivative Works 3.0 Unported
Pelo que podem continuar a ler, distribuir, imprimir, etc.. So can continue to read, distribute, print, etc. .. Quase nada mudou (mas leiam os termos no link em cima), apenas é pedido a quem distribuia este “book” que inclua o nome do seu autor (Mário Santos, eu! Almost nothing has changed (but read the words on the link above), who is only asked to distribute this "book" that includes the name of the author (Mario Santos, me!
) bem como o site ( www.msdevtudio.com ), acho que não é pedir muito, ou é? ) And the website (www.msdevtudio.com), I think it is not asking much, is it? :p : p
Podem ver a versão online disponibilizada nas publicações issuu.com . They can see the online version available in publications issuu.com. (Flash)
Download Flex Book Part 1, 2, 3, 4 Download Flex Book Part 1, 2, 3, 4
Continuo à procura de alguém que esteja interessado em fazer a revisão, apenas que faça uma leitura mais atenta à procura de erros, bem como a testar o código todo descrito neste mesmo tutorial. Still looking for someone who is interested in doing the review, just to make a more careful reading looking for errors and to test all the code described in this same tutorial. A pessoa que proceder a esta revisão será devidamente identificada no tutorial. The person making this revision will be identified in the tutorial. Se alguém estiver interessado informe. Anyone interested please.
Alguma critica, sugestão e/ou comentário será bem vindo. Any criticism, suggestions and / or comments are welcome.
Se alguém estiver interessado em suportar algum do meu trabalho, sinta-se à vontade para fazer uma contribuição, usando o paypal, clicando no botão payPal no topo à direita. Anyone interested in supporting some of my work, feel free to make a contribution, using paypal by clicking on the PayPal button in the top right.
Abraços. Hug.
versão pdf temporariamente indisponivel. pdf version temporarily unavailable.
21 Comments
Man .. its wonderful tutorial! ... To doing everything step by step and have some things in translation (or do not know if writing is en or PT) and if BR can collaborate reviewing but my problem is the implementation where on page 27:
[Bindable]
public var ... ....
A warning appears:
1084: var'dadosDataGrid 'will be scoped to the default namespace: olaMundo: internal. It will not be visible outside of this page.
I do not know what I did wrong. I'm using Adobe Flex powers conferred 3 (do not know if it is different version)
A hug
Good villas ..
The language is Portuguese PT, but if you follow the tutorial, and like everyone else, and is reporting these possible small errors, I help much.
As to your question, you must be to declare a variable within a function ... make sure it is not ...
You have to be declared (global variable) usually at the top of the document! after the imports and away from any function.
Would it?
Mario already decided what happened and I confess that not imagine what could be, perhaps the builder's cache.
I will continue the tutorial. Regarding the correction of the language think little cautious because it has some differences although PT hehe!
Big hug
Strange villas, but normally this error would be due to the declaration of variable within a function ... but as the flex builder also sometimes shoot each byte, it could be the same cache ... rsrsrs
As for the tutorial, really the level of language, is a little difficult as the languages are actually even a little bit different ... but if you find a mistake tell me more!
So I can count on a little help from everyone
Hug.
Mario think would be appropriate to send you some fixes via email. Now I'm locked in the tutorial is perhaps one of them and I can not do the loading disappear after loading (on page 39)
1046: Type was not found or was not a compile-time constant: ModuleEvent. olaMundo mainScript.as line 96
Oops .. the code and checked it. Gone the error. I just blacked out the function and rewrites giving space and awaiting the suggestion that the builder had not previously aparecid.
So it could have been error in typing because I am not doing copy / paste to learn.
A hug and I look forward in your email
mine is villas2terra.com.br
I sent an email to you now ...
Sometimes these mistakes can happen even by distraction ... even though it solved.
Do not do very well copy / paste, as well learn it!
A hug.
Mario did not get the email
edu try the (snail) villasweb.com please that the land did not come.
Mario only now that I looked right and saw:
Villas Boas ... and I found interesting because my name is Villas Boas hehehe ..
good tutorial on the packages on page 41 and can not discover the error that appears in flex:
1195: Attempted access of inaccessible method defineUser through a reference with static type modLogin. olaMundo mainScript.as line 104
I can not figure out what I did wrong. will be by chance that you distrust?
Hug
Eduardo Villas Boas
Details about the error:
The User Set button does not appear in rendering
Villas, shows me his line 104. And now verify that the function defineUser has done well in modLogin ..
This error is saying that it is impossible to access the method defineUser () ...
I do not know whether the code will appear
in the mainScript.as
private function define (): void (
if ((loader.getChildren ()). length> 0)
(loader.child the modLogin).
inputUser ( "test");
Alert.show else ( "Module not yet loaded");
)
In modLogin.mxml
Well, I got your email and saw that it was resolved that problem, and it seems that it might be for the inputUser ( "test"); line at the bottom. everything must be on the same line:
(loader.child the modLogin). inputUser ( "test");
Mario finished the tutorial swimmingly. Now redo everything from scratch from scratch and tailor my applications mainly the communication with the php.
How about in part 5 with a grid insert, edit, delete, etc?
Congratulations
Glad Eduardo.
As for part 5 is still in the oven ... without walking a long time .. but we are going to see if there in the middle of the month will be completed ...
As for the datagrid, there is the example that a blog can take a look:
http://msdevstudio.com/blog/2008/03/25/flex-datagrid-operaes-no-dataprovider/
Uses a DataProvider created in the application, but can already see how the CRUD operations in dataProviders.
Hug and thanks for the "errors" detected!
I have a question here looking at the book online.
Example:
Why are the times an object of type Panel is instantiated
with parentheses and the times without parentheses:
var painel2: Panel = new Panel ();
var new: Panel = new Panel;
Is there any difference?
I found the book online also some errors in Portuguese.
In fact these statements work virtually the same way, declare a new instance of the panel. This means that in practice results in the same thing, are such as to use or not use a semicolon; at the end of each line, using works, if you do not use, works on the same ...
The errors of Portuguese, I think we would have corrected almost everyone, but if you have found any report.
ps Note that it is Portuguese in Portugal
A hug.
Locked in the session 7.4, at two points in the first, involving the pages 38-39, in part:
carregaModulo private function (): void (
loader.url = "modLogin.swf";
loader.loadModule ();
loaderBar.source = loader;
)
It cites the error "1020: access of undefined property loader." In three lines of 'loader', and another specific to the line with the 'loaderBar'.
Without find the error (and even using copy / paste to see if I thought which missed, if typing), I tried to ignore and along with the examples, according to pages 39-40:
The error of three lines with the addition of some light ahead, but then this function is the error "1046: Type was not found or was not a compile-time constant: ModuleEvent." Resource "mainScript.as," path "olaMundo / src ", and the error is cited twice, the row referindo" private function loadTerminado (event: ModuleEvent): void ( ".
(a ProgressBar not some, the "User defined" does not appear)
I hope to understand the problem that it might be the same as the Villas, but spent the entire afternoon going to clean (and even copying and pasting) does not understand where I'm missing.
A light?
Thank you.
PS In the first version of Chapter 4, had two points of reference on popUpManager.createPopUp, which have never been cited before, so I understood it was a confusion with the "centerPopUp" of the previous page. It worked. In the review, in fact, the first was replaced by "centerPopUp" rather than "createPopUp", but the second (bottom of page), remains as "create" instead of "center".
Morning Renan.
Give this loader error, and error indicates that it is not possible to access the loader, that is, the loader or do not have the id = "loader" or the loader was not started (signal that can be placed depending on the file wrong ...)
the error in the event module because there is copy the code book ...
stick with the imports:
mx.events.ModuleEvent import;
and must resolve.
Do not copy the code, is always new, because there are certain imports that are automatically inserted to write and do not appear if you copy ...
If you can not resolve raises a doubt with the code at all http://forum.msdevstudio.com so there is easier that I see the code and to take the doubt.
Hug.
I have not read in full this tutorial, but looking over already liked a lot. Congratulations on the desire to teach
Thanks Cristiano ... when you finish that thought the speech and let your opinion, suggestion or criticism!
Hug.