# Publish preview as flash VS publish preview as html

**URL:** <https://forum.kirupa.com/t/publish-preview-as-flash-vs-publish-preview-as-html/53724>\
**Category:** Uncategorized\
**Created:** [June 7, 2004, 10:27am UTC](https://forum.kirupa.com/t/publish-preview-as-flash-vs-publish-preview-as-html/53724 "2004-06-07T10:27:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laukis](https://avatars.discourse-cdn.com/v4/letter/l/a87d85/32.png) [@laukis](https://forum.kirupa.com/u/laukis)\
**Post date:** [June 7, 2004, 10:27am UTC](https://forum.kirupa.com/t/publish-preview-as-flash-vs-publish-preview-as-html/53724/1 "2004-06-07T10:27:54Z")

</div>

Ive made a movie that add strings from several input text fields to an array. This array is sent from the flash video to php.  
This is working fine when I preview the movie as Flash. The php script prints the variables as intended.

But when I preview it as html the arrays are all empty…  
Can anyone tell me why?

[AS]  
on (release) {  
number\_of\_attr1 = main.\_currentframe + 1;  
suggestions1 = new Array();  
if(main.attr1.text.isEmpty()) {  
gotoAndStop(8);  
}  
else {  
for(i=1; i\<=number\_of\_attr1; i++) {  
attr = main[“attr”+i]  
suggestion = attr.text;  
if(!suggestion.isEmpty()) {  
suggestions1.push(suggestion);  
}  
}  
var submit1 = new LoadVars();

submit1.sugg1 = suggestions1;  
submit1.send(“[http://mylink.php","\_self","POST](http://mylink.php)”);

}//end else  
}  
[/AS]
