Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 07:15
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Recent Tutorial Support
| |-+  Flash GuestBook Support (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis)
| | |-+  THERE IS A GOD!! GUESTBOOK V1 WORKING
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2] Print
Author Topic: THERE IS A GOD!! GUESTBOOK V1 WORKING  (Read 4103 times)
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #15 on: 10/04/10, 15:31 »

I dont see a section, where you handle the received data.

This is another reason for switching to a more modern environment.

Use the LoadVars object, instead of the old loadVariablesNum.

Then you aill receive a data event, when the server returned them.

There you can assign them to the values.
Logged

happy flashing
Cool
Ronald
maas
Server what's that
*
Posts: 11

nothing endures but change...


View Profile WWW
« Reply #16 on: 10/09/10, 15:07 »

Hi Ronald

(his son speaking)

I implemented the loadvar for my father, but it isn't quite working as I want it to...

The php adds new entries to the txt file to the top (the flash starts importing after the variable is declared in the .txt)
Also php renders the entry with html tags flash isn't reading them...

Is there a way to fix this?
Should I upload the file for you to take a look at it?

Cheers,
Jeroen
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #17 on: 10/09/10, 15:20 »

first of all, give me a life link
and print the section where you fetch the onData event.
Logged

happy flashing
Cool
Ronald
maas
Server what's that
*
Posts: 11

nothing endures but change...


View Profile WWW
« Reply #18 on: 10/09/10, 15:27 »

Hi,
The life link is: http://www.ikbiedzorg.com wait for the menu and select 'Gastenboek'.

The loadaction is:

NumLow = 0;
NumHigh = 10;

//Make a new loadvars object
myLoadVars_lv = new LoadVars();
//when this load vars object FINISHES LOADING something this function is run
myLoadVars_lv.onLoad = function(success) {
   //the success variable is a parameter, it is true or false, if it is true,
   //that means the file has loaded properly
   if (success) {
      //you can call the variable from the text file using the loadvars object
      myTextBox2_txt.text = this.variable2;
   }
}
//AFTER you define the onLoad event handler, then you tell flash to load the file.
myLoadVars_lv.load("GuestBook.txt");

Cheers
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #19 on: 10/10/10, 01:08 »

why this.variable2?
shouldt it be this.GuestBook?
Logged

happy flashing
Cool
Ronald
maas
Server what's that
*
Posts: 11

nothing endures but change...


View Profile WWW
« Reply #20 on: 10/10/10, 10:44 »

Hi Ronald,
Jos again, Jeroen is a week in Berlin for school.

I changed this.variable2 into this.GuestBook
I get an undefined error.

So I changed it back and as you can see , the entries are loaded. Not HTML formatted but loaded. I added the last entry after the first one, so there are 2 entries at this time.

Best Regards,
Jos
« Last Edit: 10/10/10, 10:47 by maas » Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #21 on: 10/11/10, 07:38 »

how the variables are named, depends on, how they are given back from php and how they are defined in the loadVars object.

If you do the loading and saving tutorials, you will have a deeper look into this technique.
Logged

happy flashing
Cool
Ronald
maas
Server what's that
*
Posts: 11

nothing endures but change...


View Profile WWW
« Reply #22 on: 10/20/10, 13:39 »

Ok , my son fixed it by rewriting the php-script.
Cheers
Jos
Logged
Pages: 1 [2] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything