Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Snimanje podataka u cookies...?!

[es] :: Flash :: Snimanje podataka u cookies...?!

[ Pregleda: 2451 | Odgovora: 6 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Boki DX-11

Član broj: 52138
Poruke: 227
213.137.102.*



Profil

icon Snimanje podataka u cookies...?!30.09.2005. u 12:20 - pre 226 meseci
Imam jedan text box u kome stoji odredjena brojcana vrednost, klikom na dugme bi trebalo tu vrednost snimiti u cookie...

Kako???!
 
Odgovor na temu

noviKorisnik
Dejan Katašić
Novi Sad

Član broj: 13216
Poruke: 4533
194.247.222.*

Sajt: www.novikorisnik.net


+5 Profil

icon Re: Snimanje podataka u cookies...?!30.09.2005. u 13:11 - pre 226 meseci
http://www.elitesecurity.org/tema/107753
 
Odgovor na temu

Boki DX-11

Član broj: 52138
Poruke: 227
213.137.102.*



Profil

icon Re: Snimanje podataka u cookies...?!30.09.2005. u 14:31 - pre 226 meseci
OK! Pomoglo mi je ovo,ali i dalje nisam resio problem...

Ne znam kako da snimim neku vrednost, a onda i da je ucitam iz SOL fajla...
 
Odgovor na temu

noviKorisnik
Dejan Katašić
Novi Sad

Član broj: 13216
Poruke: 4533
*.dialup.neobee.net.

Sajt: www.novikorisnik.net


+5 Profil

icon Re: Snimanje podataka u cookies...?!30.09.2005. u 19:53 - pre 225 meseci
Vidi, nisam nikada koristio SharedObject, ali da smatram da mi je potreban, pogledao bih u Helpu sve što piše o SharedObject klasi, ako mi to ne bi bilo dovoljno pretražio bih još malo Internet i tada bih sigurno znao odgovor na pitanje kako da to koristim. Probaj tako.
 
Odgovor na temu

Boki DX-11

Član broj: 52138
Poruke: 227
213.137.127.*



Profil

icon Re: Snimanje podataka u cookies...?!30.09.2005. u 22:55 - pre 225 meseci
U Helpu nema, a na NET-u sam trazio i nasao nekoliko primera od kojih mi je ovaj bio najkorisniji http://www.flashkit.com/tutori...aveLoa-fwe4life-1037/index.php

Sa ovim sam uspeo da snimim SOL fajl, ali ne znam sta dalje? Meni treba da se snimi odredjena brojcana vrednost, a ne ovo... Znaci trebalo bi izmeniti nekoliko linija ovog koda?!

[Ovu poruku je menjao Boki DX-11 dana 30.09.2005. u 23:57 GMT+1]

[Ovu poruku je menjao noviKorisnik dana 01.10.2005. u 00:46 GMT+1]
 
Odgovor na temu

noviKorisnik
Dejan Katašić
Novi Sad

Član broj: 13216
Poruke: 4533
*.dialup.neobee.net.

Sajt: www.novikorisnik.net


+5 Profil

icon Re: Snimanje podataka u cookies...?!01.10.2005. u 00:00 - pre 225 meseci
Citat:
Boki DX-11: U Helpu nema

?
Flash MX 2004, Help, postoji ikonica za Search, otkucaš SharedObject...
Citat:
SharedObject class
Availability
Flash Player 6.

Description
Shared objects are quite powerful: they offer real-time data sharing between objects that are persistent on the user's computer. You can think of local shared objects as "cookies."

You can use local shared objects to maintain local persistence. This is the simplest way to use a shared object. For example, you can call SharedObject.getLocal() to create a shared object, such as a calculator with memory, in the player. Because the shared object is locally persistent, Flash saves its data attributes on the user's machine when the SWF file ends. The next time the SWF file runs, the calculator contains the values it had when the SWF file ended. Alternatively, if you set the shared object's properties to null before the SWF ends, the calculator opens without any prior values the next time the SWF file runs.

To create a local shared object, use the following syntax:

// Create a local shared object
so = SharedObject.getLocal("foo");

Local disk space considerations
Local shared objects are always persistent on the client, up to available memory and disk space.

By default, Flash can save locally persistent remote shared objects up to 100K in size. When you try to save a larger object, Flash Player displays the Local Storage dialog box, which lets the user allow or deny local storage for the domain that is requesting access. Make sure your Stage size is at least 215 x 138 pixels; this is the minimum size Flash requires to display the dialog box.

If the user clicks Allow, the object is saved and SharedObject.onStatus is invoked with a code property of SharedObject.Flush.Success; if the user clicks Deny, the object is not saved and SharedObject.onStatus is invoked with a code property of SharedObject.Flush.Failed.

The user can also specify permanent local storage settings for a particular domain by right-clicking (Windows) or Control-clicking (Macintosh) while a SWF file is playing, choosing Settings, and then opening the Local Storage panel.

You can't use ActionScript to specify local storage settings for a user, but you can display the Local Storage panel for the user by using System.showSettings(1).

The following list summarizes how the user's disk space choices interact with shared objects:

If the user selects Never, objects are never saved locally, and all SharedObject.flush() commands issued for the object return false.
If the user selects Unlimited (moves the slider all the way to the right), objects are saved locally up to available disk space.
If the user selects None (moves the slider all the way to the left), all SharedObject.flush() commands issued for the object return "pending" and cause the player to ask the user if additional disk space can be allotted to make room for the object, as explained above.
If the user selects 10 KB, 100 KB, 1 MB, or 10 MB, objects are saved locally and SharedObject.flush() returns true if the object fits within the specified amount of space. If more space is needed, SharedObject.flush() returns "pending", and the player asks the user if additional disk space can be allotted to make room for the object, as explained above.
Additionally, if the user selects a value that is less than the amount of disk space currently being used for locally persistent data, the player warns the user that any locally saved shared objects will be deleted.

Note: There is no size limit in Flash Player that runs from the authoring environment.

Method summary for the SharedObject class
Method
Description

SharedObject.clear()
Purges all of the data from the shared object and deletes the shared object from the disk.

SharedObject.flush()
Immediately writes a locally persistent shared object to a local file.

SharedObject.getLocal()
Returns a reference to a locally persistent shared object that is available only to the current client.

SharedObject.getSize()
Gets the current size of the shared object, in bytes.


Property summary for the SharedObject class
Property (read-only)
Description

SharedObject.data
The collection of attributes assigned to the data property of the object; these attributes can be shared and/or stored.


Event handler summary for the SharedObject class
Event handler
Description

SharedObject.onStatus
Invoked every time an error, warning, or informational note is posted for a shared object.


Constructor for the SharedObject class
For information on creating local shared objects, see SharedObject.getLocal().

Ovo je stranica za opis klase, postoje još i stanice za sve metode, za property i za event handler.

Ne vidim da se ovo pominje u Flashu MX, iako gore u opisu piše da je klasa dostupna od verzije 6 plejera. Ako si te sreće, kopiraću ti ovde i ostatak helpa za klasu.
 
Odgovor na temu

Boki DX-11

Član broj: 52138
Poruke: 227
213.137.102.*



Profil

icon Re: Snimanje podataka u cookies...?!04.10.2005. u 21:52 - pre 225 meseci
Okacen je primer u temi koja je sad na vrhu!

To je ono sto mi treba!

Hvala moderatoru ovog podforuma...!
 
Odgovor na temu

[es] :: Flash :: Snimanje podataka u cookies...?!

[ Pregleda: 2451 | Odgovora: 6 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.