This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > April 2004 > Existe incompatibilidade entre Button e Loader????
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Existe incompatibilidade entre Button e Loader????
|
|
| Thiago Rossato 2004-04-26, 5:32 pm |
| As vezes encontro alguns problemas no flash q me desanimam.. ele parece
apresentar alguns erros meio sem explicações, que para mim parecem ser erros
do pessoal da macromedia, e não meus.. olha q estranho:
se eu crio um novo documento flash, adiciono um componente "Loader" (listado
na barra "componentes", no grupo UI Components), nomeio a instância como
"teste" e coloco um valor qualquer no campo "contentPath" deste componente
Loader que eu adicionei.. e depois coloco um componente "Button",
pertencente ao mesmo grupo do "Loader", e coloco a seguinte ação neste
botao, na parte de actionscript:
"on (release) {trace("teste.contentPath = "+teste.contentPath);}"
o resultado é: "teste.contentPath = undefined"
indefinido? pq? esse flash ta louco?? mas se eu coloco o MESMO codigo em um
botao qq, criado facilmente atraves de "create new symbol -> button", aí
funciona e o resultado, no meu teste, é: "teste.contentPath =
file://c:/monet.jpg"
Alguem sabe o porque disto? sempre tenho alguma ideia, vou tentar fazer no
flash mas tenho problemas por dificuldades do gênero, coisas q nao dariam
erro em outras ferramentas, por nao haver nenhum erro lógico, mas no flash
dá erro.. q será isso? alguem pode me dar dicas de como aprender a lidar
melhor com esses erros do flash?
nao acho q o erro seja meu, mas se alguem achar pode dizer o q pensa, nao me
incomodo com críticas se for o caso..
Obrigado
| |
| cVarz 2004-04-26, 10:30 pm |
| Could you translate into english please. I don't understand that language.
| |
| rlragona 2004-04-26, 10:30 pm |
| Okay, working entirely off my limited lingustic knowledge and your code, I'd
posit that:
Okay, you're telling Flash that myVar.contentPath = +myVar.contentPath - so
the contentPath equals the contentPath and I fail to see the purpose. And did
you define the content path before or after telling Flash that the content path
= the content path?
Try being a little clearer, or reposting in English for better help.
!Arrepentido yo no soy m?s ayuda!
| |
| Thiago Rossato 2004-04-27, 5:34 pm |
| Now I´m posting my question in English.. sorry, I must be very stressed,
because when I wrote that I didn´t notice that this is not a newsgroup in
portuguese.. sorry c|:-)
first of all, sorry about my english, as I´m an portuguese speaker/reader (I
live in Brazil)..
Seems to me that Flash is a little buggy or I don´t know what.. because
sometimes i find some problems
that looks not as a logic error of mine.
if i create a new flash document, add a "Loader" component, (listed in
components bar, under the group called UI Components), name the instance as
"test" and put this value under contentPath property: "file://c:/monet.jpg",
and later I add a "Button" component, listed in the same UI Components
group, and add this action to this button, as actionscript:
"on (release) {trace("test.contentPath = " + test.contentPath);}"
the result is: "test.contentPath = undefined"
undefined? why? is flash crazy or am I?? heheh
but if I add the same come in any button, created in the "create new
symbol -> button" menu, then, it works,
and the result of this test is: "test.contentPath = file://c:/monet.jpg"
Some1 knows why this? even if i use the (click) event, instead of (release)
(that seems to be not supported by this UI Button) it doesn´t works,
anyway.. I can´t understand why i can not use this UI Button..
Some1 can help? maybe giving a website address where I could learn more
about flash components´ limitations..
Oh, I use flash mx 2004, and the document´s settings is adjusted like this:
player: 7 / ActionScript: 2....
Thanks..
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|