Welcome, Guest. Please login or register.
Did you miss your activation email?
05/21/12, 04:12
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)
| | |-+  help! loading data into nested swfs...
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: help! loading data into nested swfs...  (Read 7027 times)
voodoochild
Server what's that
*
Posts: 2


View Profile Email
« on: 03/23/06, 16:54 »

Hey dudes....

i have followed the tutorial on the site to create a guestbook, which is all well and good, and works fine on the server when i access it directly.

In my site, however, i load each separate page into an empty movie clip when needed (so an swf inside the main swf), but in this instance it will not load the txt file.

Any easy soloution to this? it would really suck if i had to redo the whole site......
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 03/23/06, 16:57 »

Read the third post of this board

Jorge
Logged

voodoochild
Server what's that
*
Posts: 2


View Profile Email
« Reply #2 on: 03/24/06, 15:22 »

easy solution (that took me far too long to find)....

on the Load frame in the guestbook change the line to:

this.loadVariables(...) (rather than just loadVariables)

its a bugger eh?
Logged
Jakobus
Server what's that
*
Posts: 1


View Profile Email
« Reply #3 on: 12/05/06, 06:43 »

I am struggling with the same issues as alot of the other members in regard to the guest book.

VoodooChild, you write for the script to work, you must change 'loadVariables' to 'this.loadvariables'. In the script I have the script goes 'loadVariablesNum'. Is that the one you mean? Cause I changed this and it makes no difference. I have also tried to change the submit button's script, without any luck.

When I access the swf directly it works fine - but not when I access it from my main movie.

For the sake of not getting too confused I have kept everything in mainfolder of my server although I intend to change it to a subfolder subsequently.
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #4 on: 12/05/06, 08:21 »

Hi Jakobus,
welcome to the boards.

Get used to the loadVars object - there you can work object oriented and place the variables in the level you expect it.
THIS uses the current container as base for the variable - so its easyer to find and access Wink
Logged

happy flashing
Cool
Ronald
Nicolas Zein
Jr. Programmer
**
Posts: 59


View Profile Email
« Reply #5 on: 01/05/07, 05:16 »

this.loadvariables works great for the frame action but what do we change the send button actionscript too?

this.loadvariables does not work.

thanks guys

Submit = "Yes";
      NumHigh = 10;
      NumLow = 0;
      _parent.GuestBook = "Processing..   Loading New... ";
      loadVariablesNum("GuestBook.php", 1, "POST");
      _parent.Status = "Your entry has been submitted.  You should see your comments appear immediately";
      gotoAndStop (2);
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #6 on: 01/05/07, 15:47 »

Forget the old loadVariables and loadVariablesNum - they are ok for Flash until Version 5.
Everything above should use LoadVars Object with all its advantages.

btw. this point allways to the current object. I fyou use this inside of a button, you address the button.
If you want to address the clip containing the button, address to this._parent Wink
Logged

happy flashing
Cool
Ronald
Nicolas Zein
Jr. Programmer
**
Posts: 59


View Profile Email
« Reply #7 on: 01/05/07, 20:10 »

hey ronald, so what would be the new syntax then?

just replace loadvariables with loadvars and that is it?
Logged
embrion
Server what's that
*
Posts: 17


View Profile
« Reply #8 on: 05/18/07, 18:01 »

I have been trying everything, i still have my guestbook folder and all the files ( guestbook.php, the swf and text file inside. i change it the path in the load action layer, and in the submit button and nothing, change the swf load action loadvariables to this.loadvariables and nothing. i try to move all the files to my root site and nothing
IF anyone can help, please i would be very appreciate. Smiley
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #9 on: 05/20/07, 08:51 »

POST the url to take a look

Jorge
Logged

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


View Profile WWW Email
« Reply #10 on: 05/20/07, 16:23 »

to Nicolas,
just replacing would not do any effort for better encapsulation Wink

Read tha manual for the exact use of the LoadVars object. It encapsulates the communication process into a object oriented asynchronous process - independant from the rest of the movie.
Logged

happy flashing
Cool
Ronald
embrion
Server what's that
*
Posts: 17


View Profile
« Reply #11 on: 05/21/07, 01:05 »

Hello jorge, this is my main scene http://usb.embrionproducciones.com/main.swf is uncomplete is at "contactos" link theres i  use a loadmovie(url) script, and a MC holder  and nothing happens, here is the guestbook directory http://usb.embrionproducciones.com/GuestBook/GuestBook.swf, there´s everything works.
This is my setup. root = main.swf
Guestbook folder = Guestbook.php, GuestBook.swf, Guestbook.txt
as i say i tryed everything, and nothing works.
Please take a look

Oh by the way, when i do a loadmovie of the root of the guestbook like loadmovie(guestbook/GuestBook.swf) instead of the url, there also i cant watch the content but if i add a comment and later watch it in the full adress is displayed!.

Any help please.
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #12 on: 05/21/07, 01:08 »

Is looking for guestbook PHP at the root folder because the main.swf and guestbook.swf are in different folders, check the last post of this thread: http://www.flash-db.com/Board/index.php?topic=505.0

Jorge
Logged

embrion
Server what's that
*
Posts: 17


View Profile
« Reply #13 on: 05/21/07, 01:48 »

yes i read it, so you are telling me that i had to move the guestbook.php, guestbook.txt and guestbook.swf without not changing any path?
Logged
Pages: [1] 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