Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Dynamic, input, if...(početnik...)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
paor



Joined: 08 Aug 2008
Posts: 23

PostPosted: 08.08.2008 20:48    Post subject: Dynamic, input, if...(početnik...) Add user to your forum ignore list Reply with quote

Novi sam u Flash vodama pa sam zapeo (hm, skoro na početku) pa ako ima netko voljan bio bih zahvalan.

Napravio bih si flash izračun cijene mlijeka:
--------------------------

inputtext1...2 (npr.)
inputtext2...3
inputtext3....može biti x ili y
...
dynamctext = inputtext1 * inputtext2 * 10 (if inputtext3 = x)
* 20 (if inputtext3 = y)
--------------------------


Trebao bih taj kratki script. Za po dalje bih (valjda) učio iz tog primjera.

Ako je važno - koristim Swishmax (2006.)

Hvala puno
...
Back to top
View user's profile Send private message Visit poster's website
hrvoje_86



Joined: 06 Dec 2006
Posts: 107
Location: Zagreb

PostPosted: 08.08.2008 23:03    Post subject: Add user to your forum ignore list Reply with quote

Quote:
inputtext1...2 (npr.)
inputtext2...3
inputtext3....može biti x ili y
...
dynamctext = inputtext1 * inputtext2 * 10 (if inputtext3 = x)
* 20 (if inputtext3 = y)


// pretvori text iz polja u brojeve
var prvo_polje = int(inputtext1.text)
var drugo_polje = int(inputtext2.text)

if(nputtext3.text == "x"){
dynamctext.text = prvo_polje * drugo_polje * 10
}

if(nputtext3.text == "y"){
dynamctext.text = prvo_polje * drugo_polje * 20
}

To ti je to uglavnom moras napisat imepolja.text da dobiješ sadrzaj polja.
Nisam nikad vidio taj swishmax ali predlažem da si skineš flex builder ako hoces nekakve aplikacije radit u flashu.
http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3email
Ovakve stvari ti je pljuga radit u flexu imaš u helpu baš ovakve primjere u glavnom povuces 2 polja i gumb napišeš akciju u gumb i to radi.
Usput možeš kompajlirat aplikacije za adobe air i onda možeš koristit sqllite bazu za spremat podatke.
Za to ces morat malo ucit ali ako ti to treba ovo ti je najbolji put.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
paor



Joined: 08 Aug 2008
Posts: 23

PostPosted: 10.08.2008 22:39    Post subject: Add user to your forum ignore list Reply with quote

tnx hrvoje_86, valjda će mi biti dovoljno za početak...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group