PDA

View Full Version : flash publish profile xml files


quincewyss
03-19-2008, 06:13 PM
I have seen people using jsfl to create custom flash publish profles, but I can't find any documentation of the publish profile xml. does anyone knowwhere to find the documentation on this xml doc or know how to add custom files to publish along with the swf? the custom files are 4 php files that work with th custom classes of my pannel.

Thanks!
Quince

quincewyss
03-20-2008, 05:28 AM
I wanted this documentation which would have been great because it place the files in the correct place wih the html doc as a reference. I figured out another way to get the desired effect. I want to share the code because there were some weird things going on in the JSFL code.

I also want to point out this should work on both pc and mac.


var filePath=document.path;
for(var i=0; i<30; i++){
filePath=String.replace(filePath, '\\\\', '/');
}

var dPath=document.name;
filePath=filePath.split(dPath);
FLfile.createFolder(\"file:///\"+filePath[0]+\"php\");
var ofPath=fl.configURI;

for(var i=0; i<30; i++){
ofPath=String.replace(ofPath, '|', ':');
ofPath=String.replace(ofPath, '%20', ' ');
}

var newFileURI=\"file:///\"+filePath[0]+\"php/\";

var originalFileURI=ofPath+\"php/\";

FLfile.copy(originalFileURI+\"my file original name\", newFileURI+\"my new file name\");

FLfile.copy(originalFileURI+\"my file original name\", newFileURI+\"my file new name\");";


the formating you see above is what you will need when making the string.

this is a copy and paste, but I also had to do some formating.

first I had to get the \ to be a /
I had to run String.replace in a loop I made it 30 since I couldn't imagine anyone having folders set up more than 30 deep I think 10 would of been fine, but you will never notice the difference in function time at 30 loops.

Also in the original file path I had to use the same sort of loop to replace %20

Hope this helps others in the future when coping files using jsfl for a pannel in flash.

quincewyss
03-20-2008, 10:43 AM
here is a link to the extension I was working on. http://peakstudios.com/actionscript-3-flash-php-mysql-pannel-extension/

There is a video tutorials section I made for using the extension.

I recomend watching the install video this pannel does more than you would expect.

We will be release the full version with a ton more mySQL functionality at the end of March.

Have fun and enjoy.

Thanks!
Quince Wyss

squadjot
03-28-2008, 07:20 PM
Good to hear, i will definately check it out, thanks for your effort, keep it up.