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




[F8] Updating Code



When I publish the following code for Flash player 6 I get a grid of cards. When I publish for player 8 I get a blank screen. Can you please explain to me why? Thanks.

function Makecard(cardname, p, q, cardm) {
this.card = cardm;
this.cardname = cardname;
this.card._x = p;
this.card._y = q;
cardm.whichcard = this;
this.remove = false;
}
ux = 10;
uy = 2.5;
function makecards() {
card1 = new Makecard("uno", ux, uy, pic1);
pic1.duplicateMovieClip("pic2", 10);
card2 = new Makecard("uno", ux+100, uy, pic2);
//
card3 = new Makecard("dos", ux, uy+100, pic3);
pic3.duplicateMovieClip("pic4", 11);
card4 = new Makecard("dos", ux+100, uy+100, pic4);
//
card5 = new Makecard("tres", ux, uy+200, pic5);
pic5.duplicateMovieClip("pic6", 12);
card6 = new Makecard("tres", ux+100, uy+200, pic6);
//
card7 = new Makecard("cuatro", ux, uy+300, pic7);
pic7.duplicateMovieClip("pic8", 13);
card8 = new Makecard("cuatro", ux+100, uy+300, pic8);
//
card9 = new Makecard("cinco", ux+200, uy, pic9);
pic9.duplicateMovieClip("pic10", 14);
card10 = new Makecard("cinco", ux+300, uy, pic10);
//
card11 = new Makecard("seis", ux+200, uy+100, pic11);
pic11.duplicateMovieClip("pic12", 15);
card12 = new Makecard("seis", ux+300, uy+100, pic12);
//
card13 = new Makecard("siete", ux+200, uy+200, pic13);
pic13.duplicateMovieClip("pic14", 16);
card14 = new Makecard("siete", ux+300, uy+200, pic14);
//
card15 = new Makecard("ocho", ux+200, uy+300, pic15);
pic15.duplicateMovieClip("pic16", 17);
card16 = new Makecard("ocho", ux+300, uy+300, pic16);
//
cards = [card1, card2, card3, card4, card5, card6, card7, card8, card9, card10, card11, card12, card13, card14, card15, card16];
nc = 16;
nm = 8;
}



FlashKit > Flash Help > Flash General Help
Posted on: 02-24-2008, 12:58 PM


View Complete Forum Thread with Replies

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

Help With Updating Code
Hi,
I am using one of the tutorials posted on this site "Tsunami"
It is written in Flash4 and I want to update it using Flash MX AS

Could anyone help me with this?

if (Number(myInit) == Number(false)) {
// on first run make an array of all the text Y Pos.
while (Number(i)<=Number(endnum)) {
set("textY" add i, getProperty ("text" add i, _x ) );
i = Number(i)+1;
}
i = startnum;
myInit = true;
}
boundleft = getProperty ("../boundbox" add colnum, _x);
boundright = boundleft + getProperty ("../boundbox" add colnum, _width) ;
boundtop = getProperty ("../boundbox" add colnum, _y);
boundbottom = boundtop + getProperty ("../boundbox" add colnum,_height);

I am having some difficulty trying to update these lines of code:
set("textY" add i, getProperty ("text" add i, _x ) );

boundleft = getProperty ("../boundbox" add colnum, _x);

Thanks in advance!

Jane

Help Updating A Little Bit Of Code?
need help updating some syntax for a scrolling navigation system. I'm also having trouble masking it....i know how to use setMask() and i even tried masking it the tradional way...and when i test the movie by itself..it works fine. but when i load it into my main movie... i never see the mc that is supposed to bew scrolling.

I thought if i updated the code, it would help me identify the problem...But, I'm not sure how to do it...so here is the code i need to update:
Code:
// this is on the first frame of timeline
// no updating is necessary here....i don't think
mw = "580";
//movie clip width for each section
mh = "200";
//movie clip height for each section
// total mc length is 3480px
stop();
this is the code inside an empty mc with the instance name "scroll". It consists of 2 frames:
Code:
//-------------- FRAME ONE ---------------------
speed = 60;
name = "/moving";
//"moving" is the instance name for the series of pages that scroll
//horizontally when you press a button
action = "/scroll";
// set variables
dragX = getProperty(action, _x);
dragY = getProperty(action, _y);
// Set some more variables
squareX = getProperty(name, _x);
squareY = getProperty(name, _y);
// set even more variables - subtract positions
difX = dragX-squareX;
difY = dragY-squareY;
// divide movement
xStp = difX/Number(speed);
yStp = difY/Number(speed);
// set property with new equations
setProperty (name, _x, Number(squareX)+Number(xStp));
setProperty (name, _y, Number(squareY)+Number(yStp));
//---------------------------------------------------
//-------------- FRAME TWO ---------------------
// set variables
dragX = getProperty(action, _x);
dragY = getProperty(action, _y);
// Set some more variables
squareX = getProperty(name, _x);
squareY = getProperty(name, _y);
// set even more variables - subtract positions
dif1X = dragX-squareX;
dif1Y = dragY-squareY;
// divide movement
xStp = difX/Number(speed);
yStp = difY/Number(speed);
// set property with new equations
setProperty(name, _x, Number(squareX)+Number(xStp));
setProperty(name, _y, Number(squareY)+Number(yStp));
// go back and play it again
this.gotoAndPlay(1);
and the following code is on a series of buttons:
Code:
// btn 1
on (release) {
setProperty("/scroll", _x, "0.0");
}

// btn 2
on (release) {
setProperty("/scroll", _x, -(Number(mw)));
}

// btn 3
on (release) {
setProperty("/scroll", _x, -(Number(mw*2)));
}

// btn 4
on (release) {
setProperty("/scroll", _x, -(Number(mw*3)));
}

// btn 5
on (release) {
setProperty("/scroll", _x, -(Number(mw*4)));
}

// btn 6
on (release) {
setProperty("/scroll", _x, -(Number(mw*5)));
}
i also have a mc that i was trying to use as a mask (i.e this.moving.setmask(maskMC)...so you only see the masked area...(because this will be loaded as an external swf file). It works when i test it by itself... but when it's loaded into the main movie.... i never see the "moving" mc...hence all my content disappears!!!!

please help me out... this is really frustrating!!! thanks in advance!!!
M

Updating Code
can anyone help me update this code from flash 6 to flash 8?

[CODE]

//this is a prototype to smoothly scroll a clip to a certain position
//the parameters within the ( ) must be provided when calling the prototype
Movieclip.prototype.scrollme = function(xPos, yPos) {
//this get the current X position of the clip calling the function
cX = this._x;
//this works out the distance between its current X position and where it has to go
difX = cX-xPos;
//this sets the new X position of the clip
//in this example, the clip moves 1/5th of the total distance every frame
//because the total distance will get smaller every frame, so will the speed of the movement
this._x = cX-(difX/5);
//the actions below do the same as the ones above except along the y axis
cY = this._y;
difY = cY-yPos;
this._y = cY-(difY/5);
};

//set the starting value of a variable
arrayIndex = 0;
//make a couple of arrays to hold the x and y positions for our clip
//more arrays
onemcXpositions=new Array (50,280,50,50,50,50,50);
onemcYpositions=new Array (350,159 ,350,350,350,350,350);

twomcXpositions=new Array (145,145,280,145,145,145,145);
twomcYpositions=new Array (350,350,159 ,350,350,350,350);

threemcXpositions=new Array(240,240,240,280,240,240,240);
threemcYpositions=new Array(350,350,350,159,350,350,350);

fourmcXpositions=new Array (335 ,335,335,335,280,335,335);
fourmcYpositions=new Array (350,350,350,350,159 ,350,350);

fivemcXpositions=new Array (430,430,430,430,430,280,430);
fivemcYpositions=new Array (350,350,350,350,350,159,350);

sixmcXpositions=new Array (525,525,525,525,525,525,280);
sixmcYpositions=new Array (350,350,350,350,350,350,159);

//set the scrolling animation for the mcs

onemc.onEnterFrame = function() {
this.scrollme(onemcXpositions[arrayIndex],onemcYpositions[arrayIndex]);
};
twomc.onEnterFrame = function() {
this.scrollme(twomcXpositions[arrayIndex],twomcYpositions[arrayIndex]);
};
threemc.onEnterFrame = function() {
this.scrollme(threemcXpositions[arrayIndex],threemcYpositions[arrayIndex]);
};
fourmc.onEnterFrame = function() {
this.scrollme(fourmcXpositions[arrayIndex],fourmcYpositions[arrayIndex]);
};
fivemc.onEnterFrame = function() {
this.scrollme(fivemcXpositions[arrayIndex],fivemcYpositions[arrayIndex]);
};
sixmc.onEnterFrame = function() {
this.scrollme(sixmcXpositions[arrayIndex],sixmcYpositions[arrayIndex]);
};


//set the button actions
_root.one.onRelease=function(){
arrayIndex=1;
}
_root.two.onRelease=function(){
arrayIndex=2;
}
_root.three.onRelease=function(){
arrayIndex=3;
}
_root.four.onRelease=function(){
arrayIndex=4;
}
_root.five.onRelease=function(){
arrayIndex=5;
}
_root.six.onRelease=function(){
arrayIndex=6;

}

[/CODE]

Updating Code For CS3?
Basically i made a game about a year ago on FlashMX (flash player 6) and now im using CS3 and would like to involve some of its new features (filters etc.)
This requires my game to flash player 8/9. When i set this flash times for about 20 seconds when i test movie then says
"a script in this movie is causing flash player to run slowly. if it continues to run, your computer may become unresponsive. do you want to abort the script?"
So im guessing a part of my code is not recognised by flash player 8 but i really have no idea.
I was wondering if someone could take a look at the code and tell me what might be causing the problem?

http://www.csvid.com/maxoys/files/fi...ame_kirupa.fla

The main actions are on:
first and second frames (actions layer)
the spaceship (middle)
the enemy plane (right of screen)
and the three moving backgrounds

Thanks a lot

max

Updating Code From Player 6 To 7 ?
I've got a text scroller that I've been using for various flash projects, but the actionscript in it only seems to work for flash player 6 & I want to publish in player 7...
so here's the script:

Code:
onClipEvent (load) {
//---------------------------------------------------------------------------------------
//--initialize variables
numLines = 50;
// guesstimate of number of visible lines in text area
tolerance = 1;
// controls how close the scroll bar can get before snapping to target
speed = 5;
// controls re-size and re-position animation speed
origHeight = scrollbar._height;
origX = (scrollbar._x+1);
//---------------------------------------------------------------------------------------
//--resizes scrollbar according to content length
function scrollResize() {
lastHeight = scrollbar._yscale;
totalLines = (text.maxscroll+1)+numLines;
newHeight = 100*(numLines)/totalLines;
scaleDiff = Math.abs(newHeight-lastHeight);
currentPosition = scrollbar._y;
pixelDiff = currentPosition-(arrowUp._height-1);
}
//---------------------------------------------------------------------------------------
//--positions scrollbar when text is scrolled
function scrollPosition() {
scrollbar._y = (lineHeight*(text.scroll-1))+(arrowUp._height-1);
}
}
//-------------------------------------------------------------------------------------------
onClipEvent (enterFrame) {
scrollResize();
//---------------------------------------------------------------------------------------
//--animate the scale and position of scrollbar if resize is required
if (lastHeight<>newHeight) {
if (scaleDiff<tolerance && scaleDiff>(0-tolerance)) {
scrollbar._yscale = newHeight;
heightDiff = origHeight-scrollbar._height;
lineHeight = HeightDiff/(text.maxscroll-1);
rePosition = false;
text.scroll = 1;
scrollPosition();
} else {
if (newHeight<lastHeight) {
scrollbar._yscale = scrollbar._yscale-(scaleDiff/speed);
} else if (newHeight>lastHeight) {
scrollbar._yscale = scrollbar._yscale+(scaleDiff/speed);
}
}
}
if (rePosition == true) {
currentPosition = currentPosition-(pixelDiff/speed);
scrollbar._y = currentPosition;
pixelDiff = pixelDiff-(pixelDiff/speed);
if (currentPosition == (arrowUp._height-1)) {
rePosition = false;
}
}
//---------------------------------------------------------------------------------------
//--scrolling when arrows are pressed
if (startScroll == true) {
if (scroll == "up" && text.scroll>1) {
text.scroll--;
scrollPosition();
}
if (scroll == "down" && text.scroll<text.maxscroll) {
text.scroll++;
scrollPosition();
}
}
//---------------------------------------------------------------------------------------
//--page text if mouse is clicked within the scrollarea
if (paging == true) {
if (hitLocation<scrollbar._y) {
text.scroll -= numLines;
scrollPosition();
if (hitLocation>=scrollbar._y && hitLocation<=(scrollbar._y+scrollbar._height)) {
paging = false;
}
} else {
text.scroll += numLines;
scrollPosition();
if (hitLocation>=scrollbar._y && hitLocation<=(scrollbar._y+scrollbar._height)) {
paging = false;
}
}
}
//test = (arrowDown._y - arrownDown._height) - scrollbar._height;
}
//--------------------------------------------------------------------------------------------
onClipEvent (mouseDown) {
//--detect if mouse click is in scrollarea but not on scrollbar
if (scrollArea.hitTest(_root._xmouse, _root._ymouse) and not scrollbar.hitTest(_root._xmouse, _root._ymouse)) {
hitLocation = this._ymouse;
paging = true;
resize = false;
}
//--detect if mouse click is on up arrow button
if (arrowUp.hitTest(_root._xmouse, _root._ymouse)) {
scroll = "up";
startScroll = true;
arrowUp.gotoAndPlay(2);
resize = false;
}
//--detect if mouse click is on down arrow button
if (arrowDown.hitTest(_root._xmouse, _root._ymouse)) {
scroll = "down";
startScroll = true;
arrowDown.gotoAndPlay(2);
resize = false;
}
//--detect if mouse click is on scrollbar
if (scrollbar.hitTest(_root._xmouse, _root._ymouse)) {
startDrag(scrollbar, false, origX, arrowUp._height-1, origX, heightDiff+(arrowUp._height-1));
scroll = "scrollbar";
scrollbar.gotoAndPlay(2);
resize = false;
}
}
//--------------------------------------------------------------------------------------------
//--reset scroll properties when mouse button is released
onClipEvent (mouseUp) {
scroll = "";
startScroll = false;
paging = false;
stopDrag();
resize = true;
scrollbar.gotoAndStop(1);
arrowUp.gotoAndStop(1);
arrowDown.gotoAndStop(1);
}
//--------------------------------------------------------------------------------------------
//-adjust text when scroll bar is dragged
onClipEvent (mouseMove) {
if (scroll == "scrollbar") {
text.scroll = Math.round((scrollbar._y-arrowUp._height)/lineHeight+1);
//--test for scrollbar position to correct errors created by numLines guesstimate
if (scrollbar._y == Math.ceil(arrowDown._y-(arrowDown._height-1)-scrollbar._height)) {
text.scroll = text.maxscroll;
}
}
updateAfterEvent();
}
//--------------------------------------------------------------------------------------------
//--detects when content is text box is changed...reset scroll property and resize scroll bar
onClipEvent (data) {
rePosition = true;
scrollResize();
text.scroll = 1;
}


It was taken from a tutorial I found here I think, and so hopefully someone maybe be able to help me out - hopefully it's not that big of a job.

If you want a source file to see how it should work, then just reply to let me know.

Thanks in advance

Overcast

Help With Updating Code For Site
Need to update my coding for my site...i think it was done in flash5. every time i go to the homepage there is a link that says need to download the flash player, but i think tis just because i need to update code. site is
www.simplyaddwater.com/designarial2black

[F8] Updating TellTarget Code
I am updating an old file that used tellTarget - it found out which day
it was then told the file which day number to play which would be 1,2,3
etc. So I used the find and replace to change

tellTarget(thattarget){
gotoAndPlay(2);
}

to

thattarget.gotoAndPlay(2);

but it is not working, it is getting the correct day/target I used

trace(thattarget)

and got 3 for today but the target is not playing any idea why?


Thanks

Snowflakes - Updating Code
I'm trying to update the Flash 5 actionscript on an old Deconcept file to at least Player 7 and AS 2.0. Here's my updated code -

The snow flake movie clip:

Code:
onClipEvent(load) {
// mostly just initializing some vars
//var xSpeed = (random(10)+1)-5; // OLD CODE
var xSpeed = (Math.floor(((Math.random() * 10) +1)-5)); // left to right movement, all random
var a = 7; // vars for movement code, just makes is smoother
var d = 1.7; // same as above
var newX = _x;
var newY = _y;
if (this._name == "flake") { // this makes the original flake invisible (not really needed, but what the hell
this._visible = false;
}
}
onClipEvent(enterFrame) {
if (this._name <> "flake") { // this is so the original flake stays put
var changeXspeed = (Math.random() * 8) + 1; // random value to change the left to right motion of the flakes
if (changeXspeed == 5) {
xSpeed = ((Math.random() * 10) + 1) - 5;
}
newX += xSpeed;
newY += ySpeed;
if (this._y > 300) { // this removes the clip once it reaches a certain point
this.removeMovieClip();
}
}
myXspeed = ((this._x-newX)/a+myXspeed)/d; // this is just movement code to make is move smoother
myYspeed = ((this._y-newY)/a+myYspeed)/d;
this._x -= myXspeed;
this._y -= myYspeed;
}
And the controller movie clip:


Code:
onClipEvent (load) {
var counter = 1;
}
onClipEvent (enterFrame) {
if (counter < 70) {
//var makeItSnow = (random(3)==2) ? 1:0;
var makeItSnow = Math.floor(Math.random() * 2);// this determines how many flakes are created, make the random value higher for fewer flakes (a good idea if you have lots of other movement on the page)
//trace(makeItSnow);
if (makeItSnow) {// duplicate the main clip, position it randomly, then set the width and height to random values, then set the speed according to the size - that's it
duplicateMovieClip("_root.flake", "flake" + counter, counter);
myFlake = _root["flake" + counter];
myFlake._x = (Math.random() * 750) + 1;
myFlake._xscale = (Math.random() * 34) + 1;
myFlake._yscale = (Math.random() * 34) + 1;
myFlake.ySpeed = (myFlake._width + myFlake._height) / 2;
counter++;
}
} else {
delete this.onEnterFrame;
}
}
When I trace the different variables I don't see any problems but the snow just isn't visible. Anyone see any obvious mistakes?

Updating Code To Flash 8
I have a cool effect that works up to and including Flash 7. However, in Flash 8 it all goes wrong. I am not good enough to know how to update this code, so could someone scan their eyes over this and give me the benefit of their insight?

The main existing code is as follows in the root:

Frame 1:
licz = 0;


Frame 2:
licz++;
newstar = "star" add licz;
r = random(360);

duplicateMovieClip ("/star", newstar, licz);
setProperty (newstar, _x, _xmouse);
setProperty (newstar, _y, _ymouse);
setProperty (newstar, _rotation, r);


Frame 3:
gotoAndPlay(2);


This code refers to a simple animation in a timeline called 'star', and makes it do all sorts of funky stuff.

Many thanks!

Updating Code For Lionbichstudios Tutorial
I would like to update this "Rollover Depth" script to work in Flash Player 7 (works in 6):
(http://www.lionbichstudios.com/flash...overdepth.html)

The functionality works much better than the standard rollOver/rollOff scripts.
I assume there's a problem with how the variables are declared, but haven't been able to fix it yet. Anyone have any ideas?

MovieClip.prototype.jumpSkale = function(obj, rush, friction) {
this.tempo += (obj - this._xscale) * rush;
this.tempo *= friction;
this._xscale = this._yscale += this.tempo;
};
for (var i = 1; i <= 3; i++) {
this["MC" + i].onEnterFrame = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.jumpSkale(400, .9, .6);
} else {
this.jumpSkale(100, .6, .5);
}
};
this["shadow" + i].nr = i;
this["shadow" + i].onEnterFrame = function() {
this._xscale = this._yscale = _root["MC" + this.nr]._xscale;
};
}

Updating Another's Component Code For Multiple Instances
I'm using the following from Flash-db, which as is works great:

http://www.flash-db.com/Components/F...llBar_Text.zip

However, I've an fla that I'm trying to get to work with multiple chapters, that load into the same area, as in this .swf:


http://www.marketaschusterova.com/temp/test.swf

the fla is available, here

http://www.marketaschusterova.com/temp/test.fla

...and it's trying to load Scrollbar_text1.txt into button 1 ara (frames 'txt1') and Scrollbar_text2.txt into the second button area ('txt2' frames). I have multiple chapters to get going here. All I've tried to do is duplicate the code into each frame area, and remane the variables to be uniqui, but it doesn't work.

I'm as AS ass, so please excuse my very basic need here - it's beyond me.

Any help would be greatly appreciated.

Thanks

Shawn

Updating Code From _droptarget To HitTest - Not Working :(
I am currently using _droptarget in a class file for a project and am wanting to update it to hitTest(). The surrent, working code pulls values from an variable, like so:


Code:
if(eval(this._droptarget) == eval(this._parent[target])){
trace("comparisson successful")
}
This traces correctly. However, when I change the code to the following:


Code:
if(this.hitTest(this._parent[target])){
trace("comparisson successful")
}
the trace does not work. I am figuring this should be a no brainer, but apparently not. Can some one please tell me what I'm doing wrong.

Updating Flash 4 Code To Flash MX 2004 Or Flash 8
Can Flash MX or Flash 8 automatically update old flash code or update depreciated code? I have a flash 4 project that when resaved as Flash MX 2004, obviously starts to throw errors.

Updating
i have a window which contains a box for text, 3 boxes for 3 pictures, and a box for a movie. (this is so clients can follow the progress of their work). i want to be able to update these regularly from a folder which will contain this info, without making a new swf.

how can this be done...please!

Updating MX
When I'm trying to update my Falsh MX I get an error that goes like:check your Internet connection!??and I'm online using both lines on my ISDN line.Is there anybody who can gice me some tips?

Updating
hey guys um..is there any easier way to update flash sites without having to open the .fla file and doing it all threw that thanx

Updating To AS3
Hey guys I'm redoing one of my previous flash projects and I want to bring all the coding up to date since its all written in AS2 and I really have no clue where to start can someone help me? Here's me coding...


Code:
container.loadMovie("http://www.example.com/flash/one.swf");
onLoad = function () {
destinationX = buttonOne._x;
destinationY = buttonOne._y;
};
onEnterFrame = function () {
hoverSquare._x += (destinationX-hoverSquare._x)*0.2;
hoverSquare._y += (destinationY-hoverSquare._y)*0.2;
};
buttonOne.onRelease = function(){
container.loadMovie("http://www.example.com/flash/one.swf");
destinationX = buttonOne._x;
destinationY = buttonOne._y;
}

XML Updating Help
Hello, Pretty new to using XML format, but i have created a interactive AS2 gallery with a linked XML file. Is there any easy method for someone else to edit the images or text? maybe through an external program without them using an FTP program?

or does it rely on the author updating the site?

Hope you can help, Thanks!

AS No Updating
Hi, i got Krazydad's news ticker and began to experiment with it. My problem comes when i edit the AS file to make something else scroll. i edited the file but the same text from before still scrolls. i thought maybe it will update by itself overnight, but its been the same for about 4 days since i edited the file. If you can help, or point me to the specific thread that deals with this problem, i will appreciate it.

Updating FDT For CS4
Does anyone know how to update the fdt plugin for eclipse to allow for code hinting for the new additions to AS3 in CS4? Now, if I try to use the Vector class, it is not recognized. Thanks

Updating .x Value
Hi all thanks for taking the time to read this. I have attached a zip with the FLA that i have a problem with. I have a button which tweens a mc across the stage and what i was hoping it would do is update the .x on the mc.
I inserted a trace statement into my button to check, but it doesnt seem to update the .x after it has moved, and i want to get the .x value so that i can add an "if" statement when the mc is >= a value of my choice, so i can call a funtion, but the trace just shows the same value for .x everytme i click, however the mc is moving across the stage.

here is my code


ActionScript Code:
import gs.*;

var nmcX:Point = new Point(new_Mc.x);

var nmcsX:Point = Point(new_Mc.localToGlobal(nmcX));

mve_But.addEventListener(MouseEvent.CLICK, mveRight);

mve_But.buttonMode = true;

function mveRight(e:MouseEvent):void{
    TweenLite.to(new_Mc, 1, {x:"100", overwrite:1});
    trace("Item", nmcX);
    trace("Stage", nmcsX);
}

as you can see im using the TweenLite class for my tweens but the trace shows no movement of the .x value

Sorry for being such a noob hope i am clear in what i want to do, thanks.

Updating
I want to create a Score centre were people can view a item on the page the show infomation such a a football score, i would then like to update another script and it will automatically update the main page that everyone see's. Something like this - http://skysports.planetfootball.com/scores Can anyone tell me what would be invovled in creating something like this.
Thanks
Liam

Use XML Instead Of Updating Fla
Hi All,

I posted something similar a while ago at the sever side board (sorry for the crosspost)- but there was no answer. Maybe it's working out here better.
I try to create a dynamic web gallery in flash that feeds it's content from a XML DB, so it's easy to update and maintain the gallery (right?!).
What I have, is the gallery specs in the flash movie itself:


// container dimensions
// is that even necessary?
movieW = 650;
movieH = 600;

loadURL = new array();

loadURL[0] = "01";
loadURL[1] = "02";
loadURL[2] = "03";

loadW = new array();
loadW[0] = 338;
loadW[1] = 450;
loadW[2] = 522;

loadH = new array();
loadH[0] = 450;
loadH[1] = 338;
loadH[2] = 400;


and then the gallery process - so how can I subsitute this for a XML DB?

Thanks, I appreciate your input.

M.

Updating XML
How do you guys go about letting a client update an XML file that gets read from Flash?
What I have done in the past.
I built a litle .swf that displays the XML file in an input text field. But it displays all the nodes. So in order to change it, you just basically copy a node, change the text and image link, then hit a submit button. Then PHP code overwrites the XML file with whatever was in the input textbox.
But what if you have a client that is extemely dumb when it comes to understanding nodes and stuff like that?
So my question I guess is what are some of the pros here doing in situations like this?

Updating .swf's
Ok we have had this problem for a little while and are looking for an answer. We manage a few websites for clients which we have made in Flash 8. The problem is, is that they require updates from time to time and its proving to be a nuisance. Everytime we upload the new .swf to the server it will not re-download the latest version when we send clients to the site. Most of the people complain that they do not see the latest unless they refresh. Is there a way that the site will auto download whenever it has been updated without refreshing?

Use XML Instead Of Updating Fla
Hi All,

I posted something similar a while ago at the sever side board (sorry for the crosspost)- but there was no answer. Maybe it's working out here better.
I try to create a dynamic web gallery in flash that feeds it's content from a XML DB, so it's easy to update and maintain the gallery (right?!).
What I have, is the gallery specs in the flash movie itself:


// container dimensions
// is that even necessary?
movieW = 650;
movieH = 600;

loadURL = new array();

loadURL[0] = "01";
loadURL[1] = "02";
loadURL[2] = "03";

loadW = new array();
loadW[0] = 338;
loadW[1] = 450;
loadW[2] = 522;

loadH = new array();
loadH[0] = 450;
loadH[1] = 338;
loadH[2] = 400;


and then the gallery process - so how can I subsitute this for a XML DB?

Thanks, I appreciate your input.

M.

Updating XML
How do you guys go about letting a client update an XML file that gets read from Flash?
What I have done in the past.
I built a litle .swf that displays the XML file in an input text field. But it displays all the nodes. So in order to change it, you just basically copy a node, change the text and image link, then hit a submit button. Then PHP code overwrites the XML file with whatever was in the input textbox.
But what if you have a client that is extemely dumb when it comes to understanding nodes and stuff like that?
So my question I guess is what are some of the pros here doing in situations like this?

Updating
I've got a button on my page, that when clicked the variable name changes:

if(input eq "login_buildbase_77_jc_cons"){
_root.output.text="connecting to jc_cons
Using password: YES

Now logged in.
Type 'connect_jc_cons' to connect. Use 'logout' to diconnect.";
_root.jc_cons._visible=true;
jc_cons_port="yes";
}
else if(input eq "connect_jc_cons"){_root.output.text="connecting to jc_cons
Using password: YES

Now connected.
Type logout to diconnect.
Welcome to JC Cons. Type list to view the files.";
jc_cons_por="yes";*
jc_cons_log="yes";*
loaclhost_log="";
}
They change here*);
but when I type that in, the variable don't change. When changed it should edit these vars:

bank_of_scot_port="";
bank_of_eng_port="";
jc_cons_port="";
hq_port="";
lansdown_ind_port="";
liverpool_football_port="";
haven_hol_port="";
google_port="";
apple_port="";
with scripting:
if(bank_of_scot_log == "yes"){
_root.host.text="bank_of_scot";
}
if(jc_cons_log == "yes"){
_root.host.text="jc_cons";
}
if(localhost_log == "yes"){
_root.host.text="Localhost";
}

Can anyone help me on this. Thanks
Sephers181

? Need Your Suggetion For Updating
Hi,

It is my AlarmClock, Please check it out,
I want to Update the second & Last Version of it,
So, please give me your suggetion that what kind of features you want now in this.

http://www.flashkit.com/movies/Scrip...51/index.shtml

If you have any type of comments then tell me.

Thanx In Advance.

Shailesh

Updating Variable
I am setting up the navigation for a future site and I have run into a little trouble. I have a scroll that scrolls an *.swf movie, the problem is the scroll script was designed for one page only and basically it just takes the height of that movie. However I am going to change that movie to different ones depending on what button the user clicks and all those movies have different height parameters so I want to update the variable which defines the height of the movie for the scroll. (The scroll script is a movie clip (embedded into the main file and not loaded from external))

What would be the easiest way of doing this? Any help is appreciated, thanks in advance.

Updating News Etc ?
Hey :P erm if you head over to www.ultrashock.com(a great site btw) anyway after the intro etc it says loading new content ???. does any one have any ideas on how this is done because i havn't got a clue and i need it for my clan site ???

Dynamic Updating
Need help on dynamic updating of text boxes!!!!!!

Updating Links From Asp
I need to know, if it is possible, how to call information from a database using asp, and then tag that information onto the end of a buttons url link.

example:
I need the url to look like...

http://www.me.com/listing.asp?id=(number called from database)

Any help would be appreciated.

Updating Problem...
i have designed a website for a club in taiwan, http://www.2f-taipei.com

but here is a weird problem: the content is updated often, but a lot of times after i updated the content, many people tell me right away that they see nothing but the old content.... why is that? is there some kind of code or action script that will fix the problem???

thanx

Updating A MovieClip
Hi,

I'm writing a space trading game at

http://ancientempire.cjb.net/
(careful - no preloaders)

and I have an eeny weeny problem...
The game consists of you visiting planets in your ship. Only one planet is ever visible at any one time, and you 'hyperspace' to get to another planet (i.e. just make the screen go white and then load a different planet in place of the previous one).

The planet you are at is held in a variable, which references a MC for that particular planet. When you enter the frame where the planet is displayed (the one with the silver bar down the right), the movie dynamically loads the right MC for the planet.

The thing is, when you change planets, it sometimes only loads the new planet when you leave the frame, not when you enter it, so you still see the old planet picture at first.

Try it out if you're not sure what I'm talking about. How do I fix this?

cheers,

Darkwhiteorange

Updating Site - HELP
Ok - I'm building a site entirely in Flash. Using the loadmovie command I can bring up my different page content and keep the load up time reasonable. However, when it comes to updating any of my pages I find that if the original swf (lets say News.swf) is still in the surfers cache, then the new News.swf doesn't load - instead its called from cache and therefore not updated.

How can I overide this? I don't want to be completely renaming all the loadmovie commands - News1.swf, News2.swf etc. Is there an easy way around this that I'm missing.

Updating The Player In MX
How do you update the player that MX uses for test movie? I got the latest player, and it went to the browser, but when I test movie and use Debug/List Variables, I get "Variable _level0.$version = "WIN 6,0,21,0", which is the old version, before the update.

Updating A XML File, It's Possible Right?
hello everyone,

question 1:
is there a way to update a "XML" file with flash (not local). if so is there a tutorial that covers that?

question 2:
can "ASP" generate "XML" files?

thanx in advance,

GRAFX|::|::::..................................... ....................

Updating Graphics
If I have a button that has jpegs as the graphics for the Up, Over and Down stages, and I make a change to the original image (say, in Photoshop) willFlash update the image or do I have to re-import it?
Thanks, Tulane

Updating Actioscript
I got this piece of actionscript from a tutorial designed to show how a button click can bookmark a page:

On (Release)
Get URL ("javascript:window.external.AddFavorite('http: //www.yoursite.com','Friendly Site Name')")
End On

This scripting is for Flash 4. When I try using it in MX it comes up with these debug errors in my test movie screen:

Scene=Scene 1, Layer=Add to Favourites, Frame=1: Line 1: Statement must appear within on handler
On (Release)

Scene=Scene 1, Layer=Add to Favourites, Frame=1: Line 2: ';' expected
Get URL ("javascript:window.external.AddFavorite('http: //www.awakinglife.live.com.au','Awaking Life')")

Scene=Scene 1, Layer=Add to Favourites, Frame=1: Line 3: ';' expected
End On

Can anyone help to decipher the main code at the top so that it works in Flash MX.

Thanks a lot

Updating Url Variables
Does anyone know how to update the the variables in a url string from flash 6? For example say i start with with a url being

www.mysite.com/index.php

and i want to change it to

www.mysite.com/index.php?name=section1

without refreshing the page when a user loads section 1 from the embedded flash file.

Thanks!

Updating Site
i was thinking of having this list of projects i have done on my site, with rollovers and all... but i have no idea how to script it so that i can update the list, like add projects onto it, without remaking the main file... cos i am making the projects to pop up in a different window, so i just need to maybe update a text file, and add a new file to the site and it will be updated so that the new project appears on the list on my main site with rollover effects and all, and when clicked a pop up shows the new project... and i dont have to touch my main file at all... hm. am i sounding confusing? oh well...
many thanks in advance.

Updating Problem
I was just doing a quick test, to do simple drawing from a/s, and I've hit a snag, I can't get the screen to refresh so when I move my lines, they leave their old position like a trace (this might work for some of the things I want to try, but not on this occasion.)

I have tried to use updateafterEvent(), but this doesn't have any effect.

I have attached the fla if anyone has the time to take a look, but here is the main part of the code...


Code:
_root.createEmptyMovieClip("mycurv", 1);
stop();
//
brain.onEnterFrame = function() {
with (_root.mycurv) {
lineStyle(0, 0xff00FF, 100);
moveTo(circ1._x, circ1._y);
curveTo(circ3._x, circ3._y, circ2._x, circ2._y);
}
};
circ1.onPress = function() {
circ1.startDrag();
};
circ1.onRelease = function() {
circ1.stopDrag();
};
circ1.onReleaseOutside = function() {
circ1.stopDrag();
};
circ2.onPress = function() {
circ2.startDrag();
};
circ2.onRelease = function() {
circ2.stopDrag();
};
circ2.onReleaseOutside = function() {
circ2.stopDrag();
};
circ3.onPress = function() {
circ3.startDrag();
};
circ3.onRelease = function() {
circ3.stopDrag();
};
circ3.onReleaseOutside = function() {
circ3.stopDrag();
};

Updating Swf Files?
Can anyone help me. I need to update and add some text to a flash website template I bought. How can I update the swf files? Thanks

Site Not Updating
O.K. my computer is still showing an older version of a site. i just uploaded the new one. i cleaned out my cash but it still shows the old site whats wrong it is driving me nuts oh also the new site is showing up on a friends computer..

Thanks for your help

Updating Versions
Hi there, I have a site I am developing, but things are being altered and updated. Is there a way of forcing Flash to always download the movie from the ISP rather than using the Tempory Internet Files copy on the local machine. Th only way around this so far is to 'delete files' in Tools Options, but i can't expect all users to do this.

Any help would be appreciated.

Updating Nav Bars
I am wondering if there is a way in flash to make a nav bar that will apply to several different flash files, and be updatable in just one spot, so I dont have to go through every page that uses the navagation every time i want to add something..?

Thank you for you help.

Cd Rom Updating Content...possible?
Hi all...

Ok, have a question...I have a cdrom project i am just about to start and have this problem...

I have a projector file on the cdrom...this opens and looks great. In the content, I have a catalogue of clothes, each with a picture and a bit of blurb next to it...now, I want the content to be updatable...and feed into the projector file. Now I understand that to do this, they need to be onlinem which is ok, but could they also download the content to their c drive and update from there...

I guess what I am asking is, whats the best way to update content to a projecter file on a cdrom that may or may not be connected to the interent...!! I guess another issue would be how the images/content would be cached once disconnected from the net...?

Hopefully i have explained this well enough for someone to help...!

ta.

Cam.

Updating A Text Box
I have a text box which displays the amount of fuel remaining (variable "_global.fuel") but it only updates when the main timeline moves, I need it to update constantly, or at least be able to tell it to update from within the ActionScript. Does anyone know how to do this? Thanks

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