Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2003, 09:21 AM
Junior Member
 
Join Date: May 2003
Posts: 3
Default Passing array structures between .swf and swfkit

at the moment I'm using

FlashPlayer.variablename

to getvariables from my movie.

do i use this method to retrieve array structures too?
Reply With Quote
  #2 (permalink)  
Old 05-22-2003, 09:55 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Passing array structures between .swf and swfk

Hi, the Flash player will convert an array to a string,

In Flash: var x = [0, 'hello', 'world'];

In SWFKit:

FlashPlayer.x will return a string '0,hello,world'

You can get back the array like this,

var x = FlashPlayer.x.split(',');
Reply With Quote
  #3 (permalink)  
Old 09-06-2003, 12:12 PM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:Passing array structures between .swf and swfkit

I want to do the same thing,
But in my flasharray, there are allready words seperated with komma's (',').
So the array structure in swfkit isn't quite the same as in my flash movie.
Is there a way to pass the array to swfkit with another seperator?
Reply With Quote
  #4 (permalink)  
Old 09-06-2003, 06:07 PM
Member
 
Join Date: Jan 2003
Posts: 54
Default Re:Passing array structures between .swf and swfkit

Hi,

U can use any kind of seperator as u wish (§,%,;,coma,....) as long as you use only one.
ie:
...split('|') >> will work but,
...split('||') won't.

avoid using '&' as a separator in your string, it will cause u some pb sooner or later.

SeeU
Madcha
__________________
http://www.alyze.com - http://www.ecomzone.net - http://www.alisook.com -http://www.madcha.com - http://www.i-multimedia.fr -
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 05:45 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.