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!
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 04-26-2007, 08:38 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
ActionScrip V2 Help Needed -Flash Player8
Appreciate if anyone can help me on this!
I used this actionScript on the main timeline to control an MC - determining its scale and the x_ y_ posiotions. But it doesn't work with ActionScript V2 - Flash player 8.
flg12:scale_target = "100";
flg12_target = "-70.8";
flg12:y_target = "304.1";
Thanks in advance. :>)
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]
Update String Won't Work
Hi guys,
I have a problem with updating my database in flash remoting mx. Whenever i try to update the table using a new value, the error below is thrown:
Operation must use an updateable query
Below's my code for updating the table called "poll.mdb". It is written in asp.net with VB.NET:
Code:
Dim dbConn as OleDbConnection
Dim sqlStr as String
Dim objCmd as OleDbCommand
dbConn = new OleDbConnection( _
"Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=" _
& Server.Mappath("poll.mdb"))
sqlStr = "UPDATE tblPoll " _
& "SET votes = '" & lblVote.Text & "'" _
& " WHERE name = '" & lblName.Text & "'"
objCmd = New OleDbCommand(sqlStr, dbConn)
objCmd.Connection.Open()
objCmd.ExecuteNonQuery()
flash.Result = sqlStr
objCmd.Connection.close()
The strange thing is that when I try to run the same code in asp.net(the web server that I'm using with flash remoting mx), it works! I've tried to substitute the new values with some hard-coded values but they didn't work either. I've also tried to modify the sql string by using the 'Insert' and 'Delete' query instead but the same error is thrown. Has any1 encountered the same problem b4 and knows how to solve it? Any help is greatly appreciated.
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();
}
Desperate To Update FLA To Work In Newer Flash Players
I'm trying to use a Flash file (this one--> http://www.simplethoughts.com/Reflection.fla) for a current project. Unfortunately the file and it's actionscript is pretty old and as a result won't work in newer flash players.
There's not a lot of scripting in it and the functionality seems pretty basic. Can the code be easily updated? Or is it a matter of completely recoding everything?
There are only three frames (within the main mc):
Frame 1:
Code:
tracer = 1;
tracerx = 0;
speed = 1.15;
direction = 1;
while (Number(i)<33) {
set(i add ":x", getProperty(i, _x));
i = Number(i)+1;
}
Frame 2:
Code:
if (tracer eq 1) {
x1 = getProperty("tracer", _x);
} else {
x2 = getProperty("tracer", _x);
tracer = 1;
}
tracerx = x1-x2;
// ===first loop store all past coordinates of the slices
//
i = 1;
while (Number(i)<33) {
set(i add ":flexa", eval(i add ":flexb"));
i = Number(i)+1;
}
//
// ===setting of flex the variable that simulate a cyclic movement
//
flex = Number(Number(flex)+Number((speed*direction)))+Number(random(3));
if (Number(flex)<Number(-5)) {
direction = 1;
}
if (Number(flex)>5) {
direction = -1;
}
//
// ===the second loop uses the new value of flex and the previous stored datas
// ===the result is applied to the position of the slices
//
2:flexb = Number(flex)+Number(tracerx);
j = 3;
while (Number(j)<33) {
set(j add ":flexb", eval(j-1 add ":flexa"));
setProperty(j, _x, eval(j add ":x")+Eval(j add ":flexb"));
j = Number(j)+1;
}
x1 = x2;
Frame 3:
Code:
tracer = 0;
gotoAndPlay(2);
Can anyone offer any suggestions? I'm not a great scripter (I get by) and can't figure out how I would recode this.
Thanks!
Trouble Making The Active Content Update Work
Hello,
Please note, this is not a "What do I do about the white box?" question as I've already downloaded the updates, installed them, and published new .swf and .html files out of flash. This is more of a "What am I doing wrong?" question.
I downloaded and installed the update as stated on the Adobe Flash TechNote page
I received a confirmation message in Flash that the Apple Active Content update worked and have a "AC_RunActiveContent.js" file.
I brought my updated .swf file into Dreamweaver, and resaved my index.html file (my website's homepage which contains the updated .swf file). I uploaded the following files to my server:
1)my index.html file
2)my updated .swf file created from Flash
3)the updated .html file created from Flash (I don't think this is doing anything, but I uploaded it anyways-better to have it than not I figure)
4)the AC_RunActiveContent.js
I did everything that the Flash TechNotes told me to, so I'm wondering why this is not working. The white square still appears asking for confirmation, even though I have already uploaded all the files needed for the update.
Does it have to do with putting the .swf file into Dreamweaver? If so, this update does not help me at all, because I need to use the .swf in Dreamweaver to make a complete website.
Here are the sites:
http://freevox.us
This one is my main page created in Dreamweaver. If you view this in IE you will see the white box asking for confirmation.
Here is just the updated .html file that was created from Flash:
http://freevox.us/F-9.html
You will notice that here there is no problem with the confimation box.
If this is just a matter of putting the code in the right place in the Dreamweaver file, perhaps I can post my code and someone can help me find the right location to paste the active content code.
Thanks for any help you can offer.
Need To Make This Work Is Flash 8 Action Script Update Fla Included
ok I have this fla I need to edit for a client. Now if you look at this http://bearbonez.ca
Youll see the real nice fire effect coming from the exaust pipes. The problem is that its a flash 6 file and I need it to be a flash 8 fla. You say well just change the settings! Well when I do that the fire effect doesnt work any more!
No Ive realized this must be becuase of the action script it using.
Now Ive included the fla if you go to last frame, layer 2,and click the fire symbol youll see a time line. Now when you go thru the time line youll see 4 little flames from the exaust. now click into one of them that and youll see this action script on frame one
count = 0;
_quality = "high";
onEnterframe = function () { attachMovie("myfirst", "dot"+count, count++);};
Now if you click into that symbol you see this action script
one the first frame
#initclip
function Dot() {
this.color = new Color(this);
this.color.setRGB(16775372);
this._x = 250+Math.random()*8-2.5;
this._y = 200+Math.random()*8-2.5;
}
Dot.prototype = new MovieClip();
Object.registerClass("myfirst", Dot);
Dot.prototype.onEnterFrame = move;
function move() {
this.age++;
this.relage=this.age/12;
R=255<<16;
G=(255-(this.relage*126)); if (G<0) G=0; G=G<<8;
B=(255-(this.relage*1024)); if (B<0) B=0;
this.color.setRGB(R+G+B);
this._x -= Math.random()*5-2.5;
this._y -=Math.random()*4+2;
this._alpha -= 2;
this._xscale -= 2;
if (this._alpha<5) {
this.removeMovieClip();
}
}
#endinitclip
Now I really need to get this to work in flash 8. I really really really apreciate any help!
http://spyderdesignz.com/justin/index.rar
right now it set to flash 8 so the flames dont work but if you go in publishing settings and change to flash 6 it works. Ive even left the action script to action script 1 and still no luck!
PLease help action script masters!
Desparate To Update Older Actionscipt - Won't Work In Newer Players.
I'm trying to use a Flash file (this one--> http://www.simplethoughts.com/Reflection.fla) for a current project. Unfortunately the file and it's actionscript is pretty old and as a result won't work in newer flash players.
There's not a lot of scripting in it and the functionality seems pretty basic. Can the code be easily updated? Or is it a matter of completely recoding everything?
There are only three frames (within the main mc):
Frame 1:
Code:
tracer = 1;
tracerx = 0;
speed = 1.15;
direction = 1;
while (Number(i)<33) {
set(i add ":x", getProperty(i, _x));
i = Number(i)+1;
}
Frame 2:
Code:
if (tracer eq 1) {
x1 = getProperty("tracer", _x);
} else {
x2 = getProperty("tracer", _x);
tracer = 1;
}
tracerx = x1-x2;
// ===first loop store all past coordinates of the slices
//
i = 1;
while (Number(i)<33) {
set(i add ":flexa", eval(i add ":flexb"));
i = Number(i)+1;
}
//
// ===setting of flex the variable that simulate a cyclic movement
//
flex = Number(Number(flex)+Number((speed*direction)))+Number(random(3));
if (Number(flex)<Number(-5)) {
direction = 1;
}
if (Number(flex)>5) {
direction = -1;
}
//
// ===the second loop uses the new value of flex and the previous stored datas
// ===the result is applied to the position of the slices
//
2:flexb = Number(flex)+Number(tracerx);
j = 3;
while (Number(j)<33) {
set(j add ":flexb", eval(j-1 add ":flexa"));
setProperty(j, _x, eval(j add ":x")+Eval(j add ":flexb"));
j = Number(j)+1;
}
x1 = x2;
Frame 3:
Code:
tracer = 0;
gotoAndPlay(2);
Can anyone offer any suggestions? I'm not a great scripter (I get by) and can't figure out how I would recode this.
Thanks!
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.
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!
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>
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.
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">
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 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
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
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
Local File Locked Cannot Update, Rename, Change
I have 2 swf files... the main.swf loads the secondary.swf
main.swf is and will run on my local computer in the standalone flash player.
When main.swf loads secondary.swf all is well except secondary.swf is locked on my local file system, I cannot rename, delete, or overwrite it as long as main.swf is running.
I would like main.swf to load secondary.swf and then close the file, seems simple!! however I have had no luck in succeeding....
I am using the standard methods for loading URLRequest and Loader.
Any ideas!?
Flash Update Makes .swf File Unclickable In Firefox
I just got a new computer and installed the Flash plugin 9,0,115,0. This now causes part of my website to not function properly in Firefox. I have confirmed this is the cause because my old computer was using 9,0,45,0, which I then upgraded to 115,0. It has caused the same problem.
My site is www.rogerspublishing.ca. I also have a restricted access subdomain (xyz.rogerspublishing.ca) on that site. Both use the identical flash files in the left nav to allow the user to navigate to other pages by clicking. Although the swf displays fine, in Firefox, when you click, nothing happens if you are in the xyz subdomain portion of the site.
So within the www, I can navigate using the swf (all the links within it point to www.). Within the xyz subdomain, the identical swf (all of which links point to www.) is unclickable.
I am especially concerned when Flash pushes this new release out to users -- it will render all Firefox users useless on my secure subdomain site.
Can anyone make any recommendations??
Thanks,
Lauren
Dynamic Text Field Won't Show Update Until NEXT Update Happens
Hi,
In a very simple Flash file with bascially just a dynamic text field and a button I attached some very simple code to the button that updates the text fields .text parameter, like this:
on(click) {
some_textfield.text = some_value;
}
With trace(...) I have verified that "some_value" is what I want it to be. However, the txt field doe NOT get updated! It gets that (b ythen old) value the NEXT time I press the button!
So when I start the flash movie and click the button nothing happens, the next time I see the value I should have seen the first time, etc. - always one event late. Since the trace() I put inside the on(click) handler shows the correct value I'm really at a loss to explain why the text field is not updated.
Any explanations?
PS: By the way, I'm using font "_sans" so there's no font to embed, but trying Arial with "embed numbers" (I want to display an integer number) doesn't work either. I only mention that because I think to have observed something like the above strange behavior caused by embedding (or not) the characters.
Edited: 09/04/2007 at 09:23:57 AM by Hasenstein
Player 9 Update-Firefox Update And Bandwidth
Hi,
I have a site of mine online which I created some 2.5 years ago probably with Flash MX--Recently, my hosting company informed me that I had allotted my bandwidth allowance--I had recently installed the latest version of the Flash Player as well as the latest version of Mozilla Firefox--It seems that through viewing my site in the updated Firefox browser with the updated player there was some code in my swf which apparently kept trying to download the mp3 file --Some 271769 hits in a few hours resulting in using 1341.07 GB of bandwidth, all originating from IP address, btw--The hosting company is threatening to charge me at the rate of $10 per 5GB over my allotted bandwidth-I get 20GB free per month--That means they are planning to charge me over $2,600 --
Anyway, here is the code:
Code:
jimi = new Sound();
jimi.loadSound("jimi.mp3", true);
jimi.onSoundComplete = function() {
jimi.loadSound("jimi.mp3", true);
};
Which has not caused any problems in over 2 years and countless viewings until the recent installations of the most current security updates to the Flash 9 Player and Firefox-
Does anyone know if the code is now incompatible with the new player and/or firefox and if there is a way to fix this without redoing the entire site in AS3?
Thanks
---Yvette
On A PC SWF File Won't Work While Mac File Works Great
A link does not work properly under the pc environment for no good reason...
While it may not be the best coded file ever created, I was just hoping it could work cross platform.
I already posted something about this problem before christmas and someone tried to give me some help but I was unable to upload the file.
So if any of you have spare time to look up my file and maybe have a clue for a solution. You can download it at:
http://www.studioimaginaire.com/flash/b4.zip
It's a very simple alignment «game» intended for a special audience
It's supposed to go «hurray!» when the user assembles all corresponding pictures. Instead, on the PC, it goes «ho no !».
Everything works fine on mac...
Thanks for your time and your knowledge
A sparetime flasher,
Simon.
|