Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Pre-sales

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2006, 08:22 PM
Junior Member
 
Join Date: Dec 2006
Posts: 2
Default Struggling to save text

First off, great package!

I'm trying the demo to see how easy it will be to save text files locally using Flex as the main movie and I guess between being new to SWFKit as well as AS3 scripting in general, I'm having trouble saving a simple textfield. Using a simple prepopulated textfield and one button in Flex and I import the FileStream.as file and Dialogs.as file I get an error at compile time that says the

ret:*

reference in the FileStream.as has no type defined.

Is it possible for anyone to show me a very simple, working example of saving a textfield straight from Flex using the classes? I assume the SWFKit classes are perfect so obvioulsy it's something on my mxml side so an example mxml that does this (again...I just need a simple working one) type of thing would really help me learn what I'm doing wrong and definitely allow me to justify the purchase since this basic ability is paramount to my needing SWFKit. I'm not sure if I'm not importing the right .as files or what I'm doing wrong ???



EDIT: I probobly should have mentioned I was using the FileSave example from the samples which is why I imported the Dialogs.as. I'm sure I screwed up something trying to convert it to AS3 but can't even guess what. Sorry again.
Reply With Quote
  #2 (permalink)  
Old 12-12-2006, 01:01 AM
Junior Member
 
Join Date: Dec 2006
Posts: 2
Default Re:Struggling to save text

Well, I've tried falling back to the fscommand version and it creates the file with the name I specify but using the example which retrieves the _root.nameoftextfield.text method it simply writes nothing because Flex does things differently.

As it stands I'll have to try another wrapper as I was hoping to have a solution by this evening. Thanks everyone for your time.

Anne
Reply With Quote
  #3 (permalink)  
Old 12-12-2006, 10:22 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Struggling to save text

You must use actionsript 3 wrapper classes to call swfkit objects. Please try the attached sample. The swfkit project is in the "bin" folder.
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 02:50 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.