Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How Do I Update The Swf File Dynamically?



Hi!

Essentially, what I'm trying to make is a
forum kinda thing, where users can enter their comments and stuff(into an input field) which will be loaded automatically into another dynamic field. This may seem easy, but what I want to do is for the SWF file to update after the user submits his/her comments and these comments should be accessable for other users.

Basically, how do I make the SWF file 'save', keeping the new info stored in it perminantly ?

Thank you!



FlashKit > Flash Help > Flash ActionScript
Posted on: 04-19-2003, 12:27 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Dynamically Update Thumbnails
Ok here goes....

I would like to create a dynamically updating list of thumbnails. I need flash to load every image from a certain directory, change all the images loaded into smaller thumbnails, and display them in a list.

Does anyone have any ideas or know of any tutorials that may help.

thanks

How To Dynamically Update An Image?
Is there any way I can dynamically update an image within swf flash movie?? I mean, I have some images imported into my .fla file and I need to be able to change the image that is being loaded without having to change my swf file...Set a function that changes the image accoring to the day of the month or week...like a calendar....
TKs

Update Gallery Dynamically
I am trying to create my portfolio website like this...

http://www.andreasbommert.com/


I want to know that this is possible if the gallery can be updated by FTP, and changing variables in an external text file eg.
1. Photos and thumbnails (from directory)
2. Titles (from text file)

Please let me know, if yes how?

Dynamically Update Flash
I have a client who wishes to update a flash banner on a weekly bases, changing prices etc. How do I go about this. Any HELP!!!! would be much appreciated.

James

Creating A Loop To Dynamically Update
I am creating a training interface which will have a list of categories on the left which needs the option to grow when a user decides to add new categories to the list. This interface will function much like the macromedia on demand training section:

http://www.macromedia.com/macromedia...?id=245&type=2

Here is a sample of the code that I have so far. I have all of the images and text reading from an external xml file.

// define our variables
var oXML;
var tNodes;
var xmlPath = "xml/categories.xml"; //

// define our xml object and load up the naughty word file
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function() {
menuItem = this.firstChild.childNodes;
for (var i=0; i<menuItem.length; i++) {

item._x = 0;
item._y = 20*i;
item.itemLabel.text = menuItem[i].attributes.name;
item.myUrl = menuItem[i].attributes.url;
blueBar1.onPress = function() {

blankMC1.attachMovie("blueBar", "blueBar1" + i, i);
// THIS IS THE LINE OF TEXT THAT WILL NEED TO BE CHANGED "loadMovie("scroll1.swf", "blankTraining1");" SIMPLY CHANGE THE NAME OF THE .swf FILE TO THE FILE THAT YOU WOULD LIKE TO HAVE PLAY
loadMovie("scroll1.swf", "blankTraining1");
}
blueBar2.onPress = function() {
blankMC2.attachMovie("blueBar", "blueBar2" + i, i);
// THIS IS THE LINE OF TEXT THAT WILL NEED TO BE CHANGED "loadMovie("scroll2.swf", "blankTraining2");" SIMPLY CHANGE THE NAME OF THE .swf FILE TO THE FILE THAT YOU WOULD LIKE TO HAVE PLAY
loadMovie("scroll2.swf", "blankTraining2");
}
etc.

Thanks

Creating A Loop To Dynamically Update
I am creating a training interface which will have a list of categories on the left which needs the option to grow when a user decides to add new categories to the list. This interface will function much like the macromedia on demand training section:

http://www.macromedia.com/macromedi...l?id=245&type=2

Here is a sample of the code that I have so far. I have all of the images and text reading from an external xml file.

// define our variables
var oXML;
var tNodes;
var xmlPath = "xml/categories.xml"; //

// define our xml object and load up the naughty word file
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function() {
menuItem = this.firstChild.childNodes;
for (var i=0; i<menuItem.length; i++) {

item._x = 0;
item._y = 20*i;
item.itemLabel.text = menuItem[i].attributes.name;
item.myUrl = menuItem[i].attributes.url;
blueBar1.onPress = function() {

blankMC1.attachMovie("blueBar", "blueBar1" + i, i);
// THIS IS THE LINE OF TEXT THAT WILL NEED TO BE CHANGED "loadMovie("scroll1.swf", "blankTraining1");" SIMPLY CHANGE THE NAME OF THE .swf FILE TO THE FILE THAT YOU WOULD LIKE TO HAVE PLAY
loadMovie("scroll1.swf", "blankTraining1");
}
blueBar2.onPress = function() {
blankMC2.attachMovie("blueBar", "blueBar2" + i, i);
// THIS IS THE LINE OF TEXT THAT WILL NEED TO BE CHANGED "loadMovie("scroll2.swf", "blankTraining2");" SIMPLY CHANGE THE NAME OF THE .swf FILE TO THE FILE THAT YOU WOULD LIKE TO HAVE PLAY
loadMovie("scroll2.swf", "blankTraining2");
}
etc.

Thanks

Creating A Loop To Dynamically Update
I am creating a training interface which will have a list of categories on the left which needs the option to grow when a user decides to add new categories to the list. This interface will function much like the macromedia on demand training section:

http://www.macromedia.com/macromedi...l?id=245&type=2

I need to also have this as a dynamically updateable interface. Any help or suggestions will help.

Thanks

I Would Like To Be Able To Update My Photo Collection Dynamically
I have a photo album that goes through a sequence of same sized photos. However when I want to change the photos I always have to go into flash and change stuff which is time consuming. I would like to be able to update my photo collection dynamically by just changing the files in the folder in my computer called images. The .swf file would respond to this by showing the new sequence of files in this folder. This would save me much time.

thnks very much for any advice.

Dynamically Update And Load Text
Hey guys I was wondering if someone could help me out with this. I want to be able to update a textbox depending on the date thats in either xml file or text file. Most of the time its weekly that it needs to be updated. this is usually the text that would go in it:

FC Dallas vs. Columbus Crew - June 3, 2006
Join us June 3rd at Pizza Hut Park for some good times as FC Dallas plays Columbus Crew. Game time is 7:30pm Central. The tailgate will start at the Dr. Pepper Victory Pavilion just north of the stadium around 4:00pm or so.

COME EARLY. WEAR RED. STAY LATE.

Click here for more info (this is a link to the forum section where there is more info in regards to a game.)

Automatic Update In Flash File(.swf File) When There Is Any Change In A .txt File
i have a site(intra) in my college for displaying notices.the clerk is completely ignorant of flash.he knows how to type the text in notepad.so whenever he changes the .txt file it should get updated in the flashfile automatically.

so anybody please help me in solving this problem..

kiran

[Edited by kiranwizz on 04-16-2002 at 05:25 PM]

How To Update Dynamic Text Field, Dynamically
Hello

This is my first question on this forum , and sorry if the question is abit unclear

I have created an swf page which has a dynamic text field to hold peoples comments which its content is kept in a TXT file called: TopicComment.txt , on the left side of that there are input fileds if anyone wants to add more comments, when the user clicks the submit button to submit the comment, the users comments and his particulars such as his/her name will be submitted to a .php file, and the php file will append the new comment to the text file which contains all the comments submitted (TopicComment.txt).

the problem is when I put the file on the server on IIS, and link the swf file from the HTML page, first the previous comments gets loaded into the Dynamic Text field, but if I add a new comment and click the submit button, the Dynamic Text field will not update itself and add my comment to it (but my comment and specifications will be added to the TopicComment.txt file by the php file), even when I click the refresh button it will no appear only the old comment, but if I close the browser and enter the link again, now the data will appear.


the other funny thing is that, if use this code outside of the server (localhost on IIS) there is no problem and works fine, but once I place the .txt file, swf file, and the html code and run the file from LocaHost, the problem comes!!!
ho to solve this problem,

the code which I use is this:

commentTopic = new LoadVars();
commentTopic.onLoad = onText2;
commentTopic.load("TopicComment.txt");
function onText2() {
oldComment.htmlText = commentTopic.comment;
}

function showContent() {
commentTopic.load("TopicComment.txt");
oldComment.htmlText = commentTopic.comment;

fname_txt.text = "";
lname_txt.text = "";
email_txt.text = "";
newComment.text = "";
getURL("javascript:window.location.reload();");
}


var c = new LoadVars();
c.onLoad = showContent;

this.submit_btn.onPress = function () {

if ( fname_txt.text!= "" && newComment.text != "" ) {
c.fname = "First Name: " + fname_txt.text + "
";
c.lname = "Last Name: " + lname_txt.text + "
";
c.email = "Email: " + email_txt.text + "
";
c.newComment = newComment.text + "

";
//oldComment.htmlText = "Loading data!";
c.sendAndLoad("http://localhost/deitel/temp.php",c,"POST");
error_txt.text = "";
}
else {
error_txt.text = "Error: Please Enter Name & Comment!";
}
}


stop();



-------------------------------
my php file is this:

<?php

extract ($_POST);

if ( ($file = fopen ("TopicComment.txt", "a") ) ) {
fputs ($file, "<b>$fname$lname$email$newComment<b>");
}

fclose($file);



?>

Script To Dynamically Update Color Won't Work
This is my first posting and I am not accustomed to using forums so please be patient if I do not do this correctly!

I am in an ActionScript class, and am trying to get a colored box to dynamically update its hue based on the root level _ymouse. After examinine how HSB worked in Photoshop, I found a way that should theoretically work, but when I translate it into ActionScript it doesn't. I a quite a newbie but have searched to find code to do this and have not found it. My professor suggested I post the code here for help.

Here is my code, which is attached to a movie clip called 'colorbox' in the flash file:

onClipEvent (load) {
t = new Object();
function doColor() {
if (_ymouse<60) {
red = 255;
green = _ymouse*(255/60);
blue = 0;
}
if (_ymouse>61 and _ymouse<120) {
red = 255-((_ymouse-60)*4.25);
green = 255;
blue = 0;
}
if (_ymouse>121 and _ymouse<180) {
red = 0;
green = 255;
blue = (_ymouse-120)*4.25;
}
if (_ymouse>181 and _ymouse<240) {
red = 0;
green = 255-((_ymouse-180)*4.25);
blue = 255;
}
if (_ymouse>241 and _ymouse<300) {
red = (_ymouse-240)*4.25;
green = 0;
blue = 255;
}
if (_ymouse>301 and _ymouse<360) {
red = 255;
green = 0;
blue = (_ymouse-300)*4.25;
}
t.rb = (red);
t.gb = (green);
t.bb = (blue);
myColor.setTransform(t);
myColor = new Color(_root.colorbox);
}
}
onClipEvent (enterFrame) {
doColor();
}

List Component Doesnt Update Dynamically?
Hi everyone,

Im very new at flash, only been writing stuff for a couple weeks, so maybe there is a simple solution. I have a List component that i use, and it doesnt seem to update its labels dynamically when i change an object in the dataprovider. The code goes like this:

I use a dataprodiver.

var dp:DataProvider = new DataProvider();
mylist.dataProvider = dp;

var myObj:testObj = new testObj("name");
dp.addItem(myObj);

mylist.labelFunction = setLabel;

function setLabel(Obj:Object):String{
return Obj.name;
}

then if I change the object name, it doesnt update the label.

myObj.name = "test 2";

I have even dispatched an event in the in myObj and added a listener so
I can explicitly make the List update label, but I cant find any
function call to make it do that. Driving me insane :)

Please let me know if youve experienced that same., TIA





























Edited: 06/08/2007 at 03:00:01 PM by studmanho

Update Video Play-speed Dynamically
I want to change the framerate of one movieclip in a game I am making. I know about the stage.frameRate, but that is something that affects the entire application. I was thinking about trying to use a timer to do so. Does anyone have any ideas of where to start?

Update A Swf File
Hi there

I want to know if there's a way to update text inside a swf file? but without using flash MX pro... I mean like some content manager or something...
What I need is to update a the content of an swf file, but no to replace it
anyone knows how to do it?

Could Someone Update File
I would like to be able to open this file in Flash MX and I keep getting a Unexpected file format error message.
Could someone update this file for me so that I may open it with Flash MX?
Thanks
Ecinele

I Can't Update The Swf File
I pulblish a swf file for a html file
so that I can watch the movie in the html file

but I found that when I update the swf file then open the html file
I saw the old one also...it hadn't been updated

Is it the problem of apach?
Please help!!

Update An Txt File
hi there.

hi have an txt file which have this:


ActionScript Code:
&countvar=5

this value is loaded into flash.

there's anyway to change from flash this countvar value and save the txt with the new value, without using serverside scripts?

thanks

Update .txt File
I'm using loadVar to load a .txt file into a dynamic text field. (data is a number)
I can't seem to get the send part down. I want to update the .txt file with the new info thats in a dynamic text field. (again just one number.)

Any Hints????

How To Update SWF File Via XML
I'll probably start most of my posts off like this for awhile... but i am a noob to action scripting

I want to make a file that is a simple scroll list of like ten links (buttons) but i want to be able to update and change links via a XML file or something, thus not having to make a new SWF everytime i have an update, i see weather.com does this all the time, and there is NO way they make new SWF files for EVERY state and country around the world, on the second it goes up 1 degree

anyhow, thanks for anyhelp you may provide.

Update/Edit XML File
i posted this in a thread in the XML section, but it's a ghost town.

let's say i want to change product b's price from 1.25 to 2.25... what method do you use in flash to accomplish this? i know createElement("name") makes a new element, but i'm wanting to update a current one.

i assumed this would work...


PHP Code:




this.firstChild.childNodes[0].nodeValue = "2.25";







it does, but just in flash. as soon as i reload the flash file, it's back to 1.25 and the xml file never changes.

mystore.xml
--------------


PHP Code:




<store>
   <product name="product a">
      <type>vegetable</type>
      <price>5.50</price>
   </product>
   <product name="product b">
      <type>fruit</type>
      <price>1.25</price>
   </product>
   <product name="product c">
      <type>meat</type>
      <price>8.50</price>
   </product>
</store>

Can Flash Update An XML File By Itself?
hi can flash update an xml file by itself or does it need to tell a php file to do it?

Update Flash From A File?
Hi,

Is is possible to create a flash file, that then have it updat via reading its information for a text file or a database? I'd like to create a Flash Scoreboard, but as the scores are updated throughout the date, to have the flash automatically update as well.

Thanks
Switch

Update SWF File On Webserver
Hello,

I have a nice flash movie on my webpage. It works fine and all but when I want to update my flash movie and add something new, the people who have my "old version" of the flash movie will not see my new one because it has been loaded from their webbrowser cache. How can I prevent this? I still want users to be able to read from their cache because it takes quite long time to load the movie and I dont update very often but when there is a new version I dont want the cache to work. Is this even possible?

How To Update An External XML File
Ok, we all know how to read an external XML file, navagete in it (only a few lines of codes), but somthing i cant seem to find is how to update (add, delete or edit) nodes in the external XML file.

Is it realy that hard? Does anyone know how? Will i ever find out? Does god exist? and so many more questions ...

help!

Auto Update Xml File...
I know this has prob been asked somewhere but not sure what to search for.

I have a flash gallery that gets the pics and description from an xml file.

I want to create an online file up loader so the user can create a new folder and then up load pictures to it.

Is there a way i can get it to then add this information to the xml file?

all advice and pointers appreciated.

Update The Text Through A DB Or An XML File
I have a scrolling banner developed in Flash but how can i make it that allows me to update the text and link in the Flash through a DB or an XML file.


thank you !~~!

How Do You Update An .SWF File With Javascript
Hello - I have this Flash map that I've created. It uses javascript calls from within Flash to swap out hidden DIVS when a user clicks on a county. When the user clicks on the zip code region of that map, a javascript triggers the check box.

What I need to do now is to have a way that when a user unclicks the check box, the zip code region in the map will be unhighlighted. Essentially, I need to have javascript tell a movie clip within the .SWF file to goto a certain frame and stop.

I've never done this before, so I'm seeking someone's wisdom on how to proceed with this.

For a visual on what I'm describing, the file can be viewed here:
http://pixegen.com/sandbox/map.html

How Update Text File With New Data?
I'm able to load the variables I have in a text file into my Flash movies, but once the values are changed in my .swf, how do I update them in my text file? :-(

Thanks!

Rick

Text File Update Problem
I have a text file that I'm writing to and reading from using Flash 5.0. I use a text file (on my server) to display info. I then write over the same text file with user input. My problem is that it requires me to open a new browser in order to see the updated info contained in the text file. I can see on my server that the text file is updated with the new info, but the flash interface will not display the info unless I leave the browser and come back. In other words just having the html page refresh or looping the movie back to the first frame is not reading the updated text file.

The short-term fix was to use getUrl and target a blank page. What I really want is the information to update without having to close the browser then opening it again. I looked to various guest book (even non flash stuff) to get an idea of how they are doing it, but it doesn't seem to work with the shoty code I wrote (and as I write this I just know you guys are going to ask to see my code).
uh oh!

Lost FLA File--need To Update Includes
My problems are continuing from a crash which left me .FLA-less. I need to make some changes to my actionscript includes, but it seems that I still have to republish the FLA every time I update these includes. Is the only way to do this to invest in Eltima (I'm on osx) and convert my swf back to fla? Or is there any other possible workaround?

Thanks in advance!

Mp3 Playerwith Automatic File Update
hi .here is what i whant to do:for example i have folder contain folders with mp3 ,i want flash watch this folders&files and create list (in list i whant that it shows name of mp3 and folder names)automatic using action skript.and when mp3 file(or folder) will be changed with new file(and folder) list must updated and show this new files(and folders) in list automatic and when i press mp3 on list i whant to start download the file. can anyone helps me to do this i need it for my little site and sorry for my english i hope u understand me

Php UpDate File For Flash Online
I am using Macromedia Flash Pro 8.

I am trying to teach myself to pass information from an admin view to a public view online through a .php upDate file. This testNew.swf (http://individualsignature.com/WEB/SUB/SALS/testNew.swf) is what I have been working with, including downloadable .zip file. Could some one take a look and point me in the right direction.

The code in both
testNew.swf-----
testUD.php------
is less than a page and a half.
I am on a SQL server

Need To Update Js In Html File W/ FlashVars
This is the current html that being used with our existing videoplayer.





HTML Code:
<html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>video player</title>

<style type="text/css">
<!--
body {
font: 12px Arial, Helvetica, sans-serif;
}
textarea {
font: 11px "Courier New", Courier, monospace;
border: 1px solid #C0C0C0;
height: 150px;
width: 450px;
padding: 5px;
}
input {
font: 11px "Courier New", Courier, monospace;
border: 1px solid #C0C0C0;
padding: 2px;
}
a {
color: #000000;
text-decoration: none;
}
a:hover {
color:#9BAEEE;
text-decoration: underline;
}
-->
</style>
</head>
<body bgcolor="#ffffff">
<script language="JavaScript" type="text/javascript">
function updatePlayer(obj){
if ((document.getElementById("width").value == "") || (document.getElementById("height").value == "")){
divWidth = 320;
divHeight = 280
} else {
divWidth = document.getElementById("width").value;
divHeight = parseFloat(document.getElementById("height").value)+40
}
flvSrc = document.getElementById("flv").value;
previewSrc = document.getElementById("preview").value;
autoPlayVal = document.getElementById("autoPlay").value;
shareURLSrc = document.getElementById("shareURL").value;
redSrc = document.getElementById("red").value;
greenSrc = document.getElementById("green").value;
blueSrc = document.getElementById("blue").value;
amountSrc = document.getElementById("amount").value;
flash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
+ 'width="100%" height="100%"'
+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
+ '<param name="movie" value="video player.swf" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#3C404B" />'
+ '<param name=flashVARS value="flvURL=' + flvSrc + '&preview=' + previewSrc + '&auto_play=' + autoPlayVal + '&shareURL=' + shareURLSrc + '&red=' + redSrc + '&green=' + greenSrc + '&blue=' + blueSrc + '&amount=' + amountSrc + '"'
+ '<param name="allowFullScreen" value="true" />'
+ '<embed src="video player.swf" menu="false" quality="high" scale="noscale" bgcolor="#3C404B" '
+ 'width="100%" height="100%" name="video player" align="middle"'
+ 'FlashVARS="flvURL=' + flvSrc + '&preview=' + previewSrc + '&auto_play=' + autoPlayVal + '&shareURL=' + shareURLSrc + '&red=' + redSrc + '&green=' + greenSrc + '&blue=' + blueSrc + '&amount=' + amountSrc + '"'
+ 'play="true"'
+ 'loop="false"'
+ 'quality="high"'
+ 'allowScriptAccess="sameDomain"'
+ 'allowFullScreen="true"'
+ 'type="application/x-shockwave-flash"'
+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
+ '</embed>'
+ '</object>';
if (divWidth==""){
divWidth="320"
}
if (divHeight==""){
divHeight="245"
}
document.getElementById("container").innerHTML= "<div id='player' style='width:" + divWidth + "; height:" + divHeight + ";'>" + flash +"</div>"
}
</script>
<!--url's used in the movie-->
<!--text used in the movie-->
<noscript>
<div style="padding:15px; border:solid 1px #CCCCCC; background-color:#FFFFCC; margin-bottom:10px;">It appears javascript is not enabled. Please turn Javascript on to use this page.</div>
</noscript>
<div id="container" style="border: solid 1px #ccc; width:auto; float:left; margin-right:25px; padding:5px;">
<div id="player">
<embed src="video player.swf" FlashVARS="flvURL=sample2.flv&preview=sample2.flv&auto_play=false&shareURL=www.mysite.com" scale="noscale" allowFullScreen="true" quality="high" bgcolor="#3C404B" width="320" height="276" name="video player2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</div>
<div style="clear:both"></div>
</div>
<div style="float:left; text-align:left; width:470px;">
<p style="text-align:left;"><strong>Container Code</strong></p>
<p>
Video Width:
<input name="width" type="text" id="width" value="320">
&nbsp;&nbsp;Video Height:
<input name="height" type="text" id="height" value="240">

</p>
<p style="text-align:left;"><strong>Movie Code</strong></p>
<p>
<div style="width:152px; float:left;">FLV File:</div>
<div style="width:152px; float:left;">Preview:</div>
<div style="width:152px; float:left;">Auto Play:</div>
<div style="float:left;"><input name="flv" type="text" id="flv" value="sample2.flv"></div>
<div style="padding-left:5px; float:left;"><input name="preview" type="text" id="preview" value="screenshot4.jpg"></div>
<div style="padding-left:5px; float:left;"><input name="autoPlay" type="text" id="autoPlay" value="false"></div>
<div style="clear:both; height:15px;"></div>
<div style="width:80px; float:left;">Red:</div>
<div style="width:80px; float:left;">Blue:</div>
<div style="width:80px; float:left;">Green:</div>
<div style="width:80px; float:left;">Amount:</div>
<div style="clear:both;"></div>
<div style="float:left;"><input name="red" type="text" id="red" value="000" style="width:75px"></div>
<div style="padding-left:5px; float:left;"><input name="green" type="text" id="green" value="000" style="width:75px"></div>
<div style="padding-left:5px; float:left;"><input name="blue" type="text" id="blue" value="000" style="width:75px"></div>
<div style="padding-left:5px; float:left;"><input name="amount" type="text" id="amount" value="25" style="width:75px"></div>
<div style="clear:both; height:15px;"></div>
<div style="width:152px; float:left;">Share URL:</div>
<div style="clear:both;"></div>
<div style="float:left;"><input name="shareURL" type="text" id="shareURL" value="http://www.mysite.com" style="width:448px"></div>
</p>
<div style="clear:both; height:20px;"></div>
<a href="javascript:updatePlayer()" style="padding:5px 20px 5px 20px; background-color:#F0F0F0; border: solid 1px #CCCCCC; width:auto; text-align:center;">Apply</a>
<div style="clear:both; height:20px;"></div>

<div style="text-align:left; float:left;">
<p><strong>Flash Vars Options</strong></p>
<div style="float:left; width:auto; border-right:dashed 1px #CCCCCC; font-size:11px; margin-right:10px; padding-right:10px;">
<strong>flvURL:</strong><br>
sample.flv<br>
sample2.flv<br>
sample3.flv<br>
sample4.flv
</div>
<div style="float:left; width:auto; border-right:dashed 1px #CCCCCC; font-size:11px; margin-right:10px; padding-right:10px;">
<strong>preview:</strong><br>
screenshot1.jpg<br>
screenshot4.jpg
</div>
<div style="text-align:left; float:left; width:auto; border-right:dashed 1px #CCCCCC; font-size:11px; margin-right:10px; padding-right:10px;">
<strong>auto_play:</strong><br>
true<br>
false<br>
noPreload
</div>
<div style="float:left; width:auto; border-right:dashed 1px #CCCCCC; font-size:11px; margin-right:10px; padding-right:10px;">
<strong>color:</strong><br>
0-255
</div>
<div style="float:left; width:auto; border-right:dashed 1px #CCCCCC; font-size:11px; margin-right:10px; padding-right:10px;">
<strong>amount:</strong><br>
0-100
</div>
</div>
<div style="text-align:left; float:left;">
<p><strong>Other Options</strong></p>
<div style="float:left; width:auto; border-right:dashed 1px #CCCCCC; font-size:11px; margin-right:10px; padding-right:10px;">
<strong>width/height:</strong><br>
will scale player
</div>

</div>
</div>
</div>
</body>
</html>
what I need is to replace the embed tag with a object tag but include all the flash vars.

here is the javascript I need to include in to the html doc.


Code:
<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
// <![CDATA[

var so = new SWFObject("video player.swf.swf", "Video Player", "320", "280", "9", "#FF6600");
so.addVariable("flashVarText", "this is passed in via FlashVars"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
so.useExpressInstall('expressinstall.swf');
so.write("flashcontent");

// ]]>
</script>
I am lost here and really need some help. thanks

How Do I Get A SWF File To Update If It Is Newer Than The Cache One?
How do I get a SWF file to update if it is newer than the cache one?

At the moment EI puts a SWF into the cache and when I upload the new SWF, nother changes. After I delete all the saved files, I can see the new SWF.

Is there a way to get the SWF to update the cache if the file is newer than the old cache data?

Regards,

Glen Charles Rowell

Remotely Update A Text File
I have checked out the Loading/Saving Variables Tute by J. Hill and got it to work ok. However I am wondering if there are other (simple) ways that you kind people can suggest, that my client can:

a. "log in" reasonably securely from any remote location with a web connection

b. Update/change/replace a text file of 500 - 1000 words (news etc.)

c. Then have that updated text viewed by the general public.

Assumptions/Constraints:
1. My client is really technophobic (read thick) so this has to be simple
2. I have no real constraints on whether Flash has to even be involved here
3. This thing is to be hosted on an NT server

Basically I was wondering what people would suggest for this and if there is any funky new ways to do this?

Cheers,
Rupert

Trace File Stopped Being Update?
Hello all,

Up until 1 hour ago, my flashlog.txt file was getting updated, but now it isn't, and I am going mad.

Here is my setup (Ubuntu):

* Have flashdebugger plugin installed for Firefox
* created flashlog.txt in directory /home/<user>/.macromedia/Flash_Player/Logs
* chmod 777 flashlog.txt
* created /home/<user>/mm.cfg file, chmod it to 777
* the file contains:
ErrorReportingEnable=1
TraceOutputFileEnable=1

I am sure the code runs into trace() calls.

Here is what happened: I used to see all the traces in the flashlog.txt file. Then I added line MaxWarnings=25 to mm.cfg file, and since then the tracing stopped working. I have now removed that line, but still the tracing does not work.

Anyone has an idea of what might be happening?

Thanks a lot

Update An External XML File Using Flash
hi all

Is there a way to update an external XML file using Flash?

thanks

Jiby

Update LoadVars From External File
Hello,

I'm sure this is easy. I've created a loadVars that reads an external file into an array[]. It works fine.
The external file updates every 20 seconds. My loadVars doesn't.

I'm not sure if I should be adding a listener object or what to check the file every Nth second.

Any idea?

thanks,

sky

Is It Possible To Update An Xml File Via A Form In Flash?
If so, how? :p
I have been searching for a way for some time now, i have tried to learn how to do it myself, but all my attempt were almost completely useless instead of learning new things

Can anyone please help me?

Ruud

Update File To Work In Player8
I am looking for some help getting my file to work when exported to player 8. right now it only seems to work in 6. it drives me crazy to not have the text alias set to 'readability' option, especially for this project. i need my text to be crisp and legible! anyone know of any resources that are great for troubleshooting this? i dont even know where to begin. thanks!

Mp3 Playerwith Automatic File Update
hi every body.here is what i whant to do:for example i have folder contain mp3 files(or folders with mp3) ,i want flash watch this files and create list (in list i whant that it shows name of mp3 and folder names)automatic using action skript.and when mp3 file(or folder) will be changed with new file(and folder) list must updated and show this new files(and folders) in list automatic and when i press mp3 on list i whant to start download the file. can anyone helps me to do this i need it for my little site and sorry for my english i hope u understand me

Is It Possible To Update An Xml File Via A Form In Flash?
If so, how? :p
I have been searching for a way for some time now, i have tried to learn how to do it myself, but all my attempt were almost completely useless instead of learning new things

Can anyone please help me?

Ruud

Real Time External Txt File Update
i have this situation:
i have an swf file that loads news from an external txt file.my clent wants to edit by himself the news from the external txt file..til here no problem..but my clent (arghhhhhhhh) wants to view the news in realtime..explain better;i have the news page opened...in the mean time i will upload the edited txt file in the server,and if i refresh the page the edited news will appear...but with the txt file i have to delete the cache to view the edited news..is there a way to view the news without delete the cache file from the remote computer???

How To Store And Update Variable In An External File
Hi there,
I'm a designer with just a very little knowledge of xml and java script programming and now I'm designing a flash movie that I think it will involve the XML or java scripting so I hope anybody out there can guide me or recommend me any tutorials or books that will help me on this.

Below are what i have in my flash movie.

---------------------------------------------------------------------

launch.swf
- this swf contains a static background image for the rest of the movies and will load movie0.swf and navigation.swf

movie0.swf
- contains introduction animation.

movie1.swf
- contains animation 1.

movie2.swf
- contains animation 2.

movie3.swf
- contains animation 3.


navigation.swf
- This swf consists of 3 buttons ( button 1 will load movie1.swf at level 2, button 2 will load movie2.swf at level 2, button 3 will load movie3.swf at level2).

All the buttons will be highlighted after it's pressed, the reason is to let the user know that the particular movie is been viewed.

---------------------------------------------------------------------

Now Let say an user has gone thru movie1.swf and movie2.swf, the button 1 and button 2 in navigation.swf will be highlighted now.

When the user exits the entire flash movie and relaunch the flash movie again by clicking the launch.swf, now I want the launch.swf to load the last movie(swf) that the user went to which is movie2.swf and the button 1 and button 2 in the navigation.swf should be highlighted as well.

It's like a bookmark feature that brings the user back to which movie he was in and also shows them what movie they have viewed (button1 and 2 are highlited).

So now i need some kind of scripts to send information/variables about which particular movie I have last viewed and also what are the buttons that I have pressed to an external file and stored, so that next time when the launch.swf is launched again, it should be able to load movie2.swf instead of movie0.swf and also the button 1 and button 2 will be highlighted.

I would like to thank those who will give their precious input in advance.

cheers

External Text File - Automatic Update
Hello, I am trying to make a file that contais 3 lines of text, the content of which should be taken from an external text file.

These external text files are updated automatically, and unfortunately the flash file reads the cached version and so it doesn't get the updated content.

I asked for solution and I was told that I could add a random number at the end of the file (ie. test.html?12345), but that would create a ton of cache file if I am not mistaken.

Does anyone know a way of doing what I need without creating so many temporary files on the user's browser?

Thank you!

Update A Textfield From A Function Inside An As File
I'm trying to update a text field on my stage based on the results of a function. My function is in a as file however when it gets to the

textField.text="something" part it errors out with the following message
ReferenceError: Error #1065: Variable mainDisplay is not defined.

here is the line in my functin code
mainDisplay.text="GAME OVER TRY AGAIN";

how do i reference the textField mainDisplay from the function contained with the as file

I have tried stage.mainDisplay

any help would be appreciated.

regards

Imported Photoshop File Fails To Update
I have imported a layered file from Photoshop CS3 into Flash CS3. The original import works fine but when I change the PSD file in Photoshop and try to update it in Flash it doesn't get updated. To do the update I right-click on the bitmap layer in the Library and select Update. A dialog is displayed showing the name of the layer and at the bottom of the dialog it says "1 of 1 items need to be updated." But after I click the Update button, it says "0 of 1 items updated" and a question mark appears next to the Label in the dialog. And the bitmap is not updated.

I have tried this same procedure with a simple single-layer bitmap and that works so I'm guessing it must have something to do with the structure of my Photoshop file. That file has a folder nested within another folder. The inner folder contains several layers, one of which is the layer in question.

At one point, I thought it might have something to do with the fact that the layer contains a SmartObject but I tried the same procedure on another layer in the same folder which contains just a simple bitmap. That layer fails to update also.

Is this a bug?

David Salahi

Link In External File To Update Text In Other Textfield?
hi,

I am trying to create a link in a external text file, that will make a text appear in another textbox on the stage.
ie i have two textbox's on the stage, one called SubMenu one called MainText. Both are filled reading from an external text file. Now I would like to create a hyperlink in the SubMenu textfile that will make a new text appear in the MainText.
Anyone have any idea?

what i have sofar is this (the SubMenu text file):

SubMenu=Galleries
<p><a href="http://www.adamandtheweightfansite.com/NewsText.txt" target="MainText">Gallery 1</a></p>
<p>Gallery 2</p>

MainText or _MainText doesnt make a difference. It keeps opening it in a new browser.
I think that if we can make this work, we will have created a way to update menu's without any flash knowledge.
Any help is greatly appreciated. Oh im using MX Pro

Lisa

Copyright © 2005-08 www.BigResource.com, All rights reserved