Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Intro To Flex Builder - Questions
donovans
post Jan 11 2010, 11:37 AM
Post #1


New Member
*

Group: Members
Posts: 3
Joined: 11-January 10
Member No.: 3,900



Hi

I've gone through the excellent tutorial and started putting my newly acquired knowledge to practice. I very quickly hit a stumbling block when trying to load a file with URLLoader. It all goes smoothly unless the filenames I'm loading end with ".properties" eg "env.properties". If I rename the file, everything is dandy, it just appears to dislike that suffix blink.gif:S

I'm all googled out - how do i load a text file that happens to be called "whatever.properties"?
Go to the top of the page
 
+Quote Post
cartoon_smart
post Jan 11 2010, 12:23 PM
Post #2


Administrator
***

Group: Root Admin
Posts: 341
Joined: 12-June 08
From: Georgia
Member No.: 1



I don't know, I've never even heard of a dot properties file. But I think Flash is going to be pretty restrictive about the type of text files its willing to load. Like if its a text file, its going to want to see that .txt extension. Similarly, its is loading an xml file, it'll want that .xml extension.

One thing you might try would be adding the extension to your .properties file. so like myfile.properties.txt could work. There's some PHP scripts that rename files.


--------------------
Justin at CartoonSmart

http://www.ZombieAirStrike.com/ My iPhone Game, its free!
http://www.cartoonsmart.com Flash, Adobe, Blender Tutorials & More
http://www.cartoonsmartblog.com Finally a real CartoonSmart Blog. Much more than just tutorial updates!
http://www.1and1.com Need a host? We test our tutorials on their $9.99/mo Business Plan
http://www.cartoonsmart.com/affiliates CartoonSmart Affiliate Program!
Go to the top of the page
 
+Quote Post
donovans
post Jan 11 2010, 01:43 PM
Post #3


New Member
*

Group: Members
Posts: 3
Joined: 11-January 10
Member No.: 3,900



QUOTE (cartoon_smart @ Jan 11 2010, 12:23 PM) *
I don't know, I've never even heard of a dot properties file. But I think Flash is going to be pretty restrictive about the type of text files its willing to load. Like if its a text file, its going to want to see that .txt extension. Similarly, its is loading an xml file, it'll want that .xml extension.

One thing you might try would be adding the extension to your .properties file. so like myfile.properties.txt could work. There's some PHP scripts that rename files.

Unfortunately renaming isnt an option as its for a client who happens to use lots of files suffixed with ".properties". I'm pretty sure any file should be able to load, it shouldn't be dependant on filenames, but rather content type. Their particular files contain basic ascii characters, just the same as a .txt file. In fact, I can call it "myfile.wibblewobble" and it will work just fine, it's just the pesky ".properties" suffix that's freaking it out.

Just to be clear for other readers, renaming the files does work, just not an option for me as the files are used by lots of other processes.

PS thanks for the previous prompt reply!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Time is now: 10th September 2010 - 08:07 AM