Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 08:21 PM
Junior Member
 
Join Date: Feb 2008
Posts: 5
Default setvaiable

Hi, I'm new here.

I am trying to add save slots to a game I have been making.
I had a basic thing working which saved a var in a file, then could also load and send to flash player.
now i want to have 2 arrays, one for save name, and the other fro the data.
I manage to save the arrays fine, but im not sure the load works, and after putting replacement vars ina nd trying to send that to the flash player, it says undefined. I cant post code because it's on different computer, but it just involves setvariables("_root.var", var) and then thing1=_root.var
Reply With Quote
  #2 (permalink)  
Old 02-07-2008, 08:30 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: setvaiable

You can use the "trace" method in ffish script to check if the variables are loaded successfully.
Reply With Quote
  #3 (permalink)  
Old 02-08-2008, 07:37 AM
Junior Member
 
Join Date: Feb 2008
Posts: 5
Default Re: setvaiable

I know. they didnt. Ill try and get code
Reply With Quote
  #4 (permalink)  
Old 02-13-2008, 01:20 AM
jon jon is offline
Junior Member
 
Join Date: Sep 2007
Posts: 25
Default Re: setvaiable

I couldnt find it in the help but I suspect that setVariable() doesnt do arrays? Just strings?

There is a putArray() function of the FlashPlayer object;

FlashPlayer.putArray(name, value)

and the corresponding;

FlashPlayer.getArray(name)
Reply With Quote
  #5 (permalink)  
Old 02-18-2008, 06:31 PM
Junior Member
 
Join Date: Feb 2008
Posts: 5
Default Re: setvaiable

OK, ill try that thanks
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:59 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.