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




Disable Code Conversion In Flash



Hello everybodyWe have some legacy code in ActionScript 1 and we would like to open it in Flash 8 or CS3. When we open the file, Flash makes some automatic changes in the code, we would like to override. Does anyone know if it is possible to deactivate that automatic code conversion?Thanks a lot!



Adobe > ActionScript 1 and 2
Posted on: 04/24/2008 07:32:51 AM


View Complete Forum Thread with Replies

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

Google Analytics Conversion Code And Flash
Hi guys,

I have some google analytics conversion tracking code I need to activate from an all flash site. So I can’t simply embed the javascript into a html page like normal.

Here is the code with Id numbers changed for privacy.

http://pastie.org/265740

I have found a fair bit of information on how to activate regular google analytics “page tracking” code with flash but NOT “conversion tracking” code that looks very different.

Thank you in advance for any help.

Is There A Code To Disable Exit Button In Flash?
hey umm i was just wondering if there was a code to disable or delay the exit button in a flash? i am wondering because i remember playing a game that i couldnt exit until the credits had finished and no my comp wasnt lagging?

Code Conversion.
Hi there,

I`ve got a tiny problem, got some flash 4 A.S. and i don`t know how to convert it to flash 5 A.S.
Here it is:

Set Variable: "a"=1
Loop While (A<29)
Set Variable: "bar"&a = Random (100)
Set Variable: "a" = a+1
End Loop

and

Set Variable: "a"=1
Loop While (a<29)
Begin Tell Target ("var"&a)
Goto and Stop (Eval("_level0/:bar"&../:a))
End Tell Target
Set Variable: "a" = a+1
End Loop

I really hope that one of you flash guru`s can convert this for me

Thanks In Advance,

Sidney

Code Conversion AS1 To AS2
Hi,

I am trying to convert this AS1 code to AS2, but it just doesn't work properly anymore.

The code below is attached to a movieclip (a background picture) that is constantly moving and it is supposed to duplicate that movieclip (the background picture) as soon as certain coordinates are reached.

Unfortunately my action script skills are aparently not good enough to figure out the changes.

Here's the code:


Code:

onClipEvent (enterFrame)
{
setProperty("", _x, _x + _root.dir);
if (_xscale > myscale * 10)
{
setProperty("", _xscale, myscale * 10);
setProperty("", _yscale, myscale * 10);
} // end if
if (_xscale < myscale * minXs)
{
setProperty("", _xscale, myscale * minXs);
setProperty("", _yscale, myscale * minXs);
minXT = true;
} // end if
if (_root.arrower.zoomin)
{
lastX = _x;
if (minXT != true)
{
setProperty("", _x, obj_x * _root.arrower.scalefactor);
setProperty("", _x, _x + _root.x);
}
else
{
setProperty("", _x, lastX);
minXT = false;
} // end else if
setProperty("", _y, obj_y * _root.arrower.scalefactor);
}
else
{
setProperty("", _x, _x + _root.dx);
} // end else if
actual_W = getProperty(_level0.img, _width);
actual_XF = getProperty(_level0.img, _xscale) / 100;
actual_WXF = init_width * actual_XF;
actual_R = _root.img._x + actual_WXF / 2 + (h - 1) * actual_WXF;
actual_L = _root.img._x - actual_WXF / 2 - (i - 1) * actual_WXF;
actual_T = _level0.img._y - _level0.img._height / 2;
actual_B = _level0.img._y + _level0.img._height / 2;
minY = 0;
maxY = _root.movieH;
minX = 0;
maxX = _root.movieW;
if (actual_L >= minX)
{
if (_root.panorama)
{
setProperty("", _x, _width / 2);
}
else
{
duplicateMovieClip(_level0.img.central, "left" + i, i + 10000);
prevL = "left" + (i - 1);
prevLX = getProperty(prevL, _x);
setProperty("left" + i, _x, prevLX - init_width);
i = i + 1;
for (iDel = 1; iDel < h; iDel++)
{
removeMovieClip ("right" + iDel);
} // end of for
h = 1;
} // end if
} // end else if
if (actual_R <= maxX + 500)
{
if (_root.panorama)
{
setProperty("", _x, _root.movieW - _width / 2);
}
else
{
duplicateMovieClip(_level0.img.central, "right" + h, h);
prevR = "right" + (h - 1);
prevRX = getProperty(prevR, _x);
setProperty("right" + h, _x, prevRX + init_width);
h = h + 1;
for (hDel = 1; hDel < i; hDel++)
{
removeMovieClip ("left" + hDel);
} // end of for
i = 1;
} // end if
} // end else if
if (actual_T >= minY)
{
setProperty("", _y, _height / 2);
} // end if
if (actual_B <= maxY)
{
setProperty("", _y, _root.movieH - _height / 2);
} // end if
actual_X = _x;
actual_Y = _y;
}
onClipEvent (load)
{
ok = ok2 = 1;
beginX = _x;
h = 1;
i = 1;
myscale = _xscale;
minXs = _root.movieH / _height;
init_width = _root.img.central._width;
setProperty("central", _x, 0);
setProperty("central", _y, 0);
}
onClipEvent (mouseDown)
{
obj_x = _x - _root.x;
obj_y = _y - _root.y;
}
Thanx for your help in advance !!

Mike

Code Conversion
So I've finally purchased Flash 8 and am working on an old project however adding some Actionscript 2.0 features (flv playback).

I have a particular code that no longer works when the movie is now published. Can anyone provide any insight into this please.


PHP Code:



onClipEvent (enterFrame) {
    var speed = 10;
    var viscosity = 1.5;
    ypos = 460;
    difference = ypos-this._y;
    yvelocity = (yvelocity+(difference)/speed)/viscosity;
    this._y += yvelocity;





Thank you so much in advance.

AS2 To AS3 Code Conversion
I am trying to create this effect in AS3 and am having some trouble converting the code over any help would be greatly appreciated.

Thanks,
Alex







Attach Code

onClipEvent (load) {
dir = 0;
speed = 10;
topImage._alpha = 0;
this.onRollOver = function() {
dir = 1;
};
this.onRollOut = function() {
dir = -1;
};
}
onClipEvent (enterFrame) {
temp = topImage._alpha+speed*dir;
topImage._alpha = Math.min(100, Math.max(temp, 0));
}

5 To MX Code Conversion
I've been trying to convert some flash 5 code to MX but have failed in getting it to work in MX. I've been on trying to convert the sticky button code from mjau-mjau but with no success.

You can download from

http://www.mjau-mjau.com
http://www.sintax321.com/sticky.zip

If some one could please convert this code to work in MX it would be greatly apprecitated.

Code Conversion AS1 To AS2
Hi,

I am trying to convert this AS1 code to AS2, but it just doesn't work properly anymore.

The code below is attached to a movieclip (a background picture) that is constantly moving and it is supposed to duplicate that movieclip (the background picture) as soon as certain coordinates are reached.

Unfortunately my action script skills are aparently not good enough to figure out the changes.

Here's the code:


Code:
onClipEvent (enterFrame)
{
setProperty("", _x, _x + _root.dir);
if (_xscale > myscale * 10)
{
setProperty("", _xscale, myscale * 10);
setProperty("", _yscale, myscale * 10);
} // end if
if (_xscale < myscale * minXs)
{
setProperty("", _xscale, myscale * minXs);
setProperty("", _yscale, myscale * minXs);
minXT = true;
} // end if
if (_root.arrower.zoomin)
{
lastX = _x;
if (minXT != true)
{
setProperty("", _x, obj_x * _root.arrower.scalefactor);
setProperty("", _x, _x + _root.x);
}
else
{
setProperty("", _x, lastX);
minXT = false;
} // end else if
setProperty("", _y, obj_y * _root.arrower.scalefactor);
}
else
{
setProperty("", _x, _x + _root.dx);
} // end else if
actual_W = getProperty(_level0.img, _width);
actual_XF = getProperty(_level0.img, _xscale) / 100;
actual_WXF = init_width * actual_XF;
actual_R = _root.img._x + actual_WXF / 2 + (h - 1) * actual_WXF;
actual_L = _root.img._x - actual_WXF / 2 - (i - 1) * actual_WXF;
actual_T = _level0.img._y - _level0.img._height / 2;
actual_B = _level0.img._y + _level0.img._height / 2;
minY = 0;
maxY = _root.movieH;
minX = 0;
maxX = _root.movieW;
if (actual_L >= minX)
{
if (_root.panorama)
{
setProperty("", _x, _width / 2);
}
else
{
duplicateMovieClip(_level0.img.central, "left" + i, i + 10000);
prevL = "left" + (i - 1);
prevLX = getProperty(prevL, _x);
setProperty("left" + i, _x, prevLX - init_width);
i = i + 1;
for (iDel = 1; iDel < h; iDel++)
{
removeMovieClip ("right" + iDel);
} // end of for
h = 1;
} // end if
} // end else if
if (actual_R <= maxX + 500)
{
if (_root.panorama)
{
setProperty("", _x, _root.movieW - _width / 2);
}
else
{
duplicateMovieClip(_level0.img.central, "right" + h, h);
prevR = "right" + (h - 1);
prevRX = getProperty(prevR, _x);
setProperty("right" + h, _x, prevRX + init_width);
h = h + 1;
for (hDel = 1; hDel < i; hDel++)
{
removeMovieClip ("left" + hDel);
} // end of for
i = 1;
} // end if
} // end else if
if (actual_T >= minY)
{
setProperty("", _y, _height / 2);
} // end if
if (actual_B <= maxY)
{
setProperty("", _y, _root.movieH - _height / 2);
} // end if
actual_X = _x;
actual_Y = _y;
}
onClipEvent (load)
{
ok = ok2 = 1;
beginX = _x;
h = 1;
i = 1;
myscale = _xscale;
minXs = _root.movieH / _height;
init_width = _root.img.central._width;
setProperty("central", _x, 0);
setProperty("central", _y, 0);
}
onClipEvent (mouseDown)
{
obj_x = _x - _root.x;
obj_y = _y - _root.y;
}
Thanx for your help in advance !!

Mike

Code Conversion AS1 To AS2...
Hi,

I am trying to convert this AS1 code to AS2, but it just doesn't work properly anymore.

The code below is attached to a movieclip (a background picture) that is constantly moving and it is supposed to duplicate that movieclip (the background picture) as soon as certain coordinates are reached.

Unfortunately my action script skills are aparently not good enough to figure out the changes. ;)

Here's the code:

onClipEvent (enterFrame)
{
    setProperty("", _x, _x + _root.dir);
    if (_xscale > myscale * 10)
    {
        setProperty("", _xscale, myscale * 10);
        setProperty("", _yscale, myscale * 10);
    } // end if
    if (_xscale < myscale * minXs)
    {
        setProperty("", _xscale, myscale * minXs);
        setProperty("", _yscale, myscale * minXs);
        minXT = true;
    } // end if
    if (_root.arrower.zoomin)
    {
        lastX = _x;
        if (minXT != true)
        {
            setProperty("", _x, obj_x * _root.arrower.scalefactor);
            setProperty("", _x, _x + _root.x);
        }
        else
        {
            setProperty("", _x, lastX);
            minXT = false;
        } // end else if
        setProperty("", _y, obj_y * _root.arrower.scalefactor);
    }
    else
    {
        setProperty("", _x, _x + _root.dx);
    } // end else if
    actual_W = getProperty(_level0.img, _width);
    actual_XF = getProperty(_level0.img, _xscale) / 100;
    actual_WXF = init_width * actual_XF;
    actual_R = _root.img._x + actual_WXF / 2 + (h - 1) * actual_WXF;
    actual_L = _root.img._x - actual_WXF / 2 - (i - 1) * actual_WXF;
    actual_T = _level0.img._y - _level0.img._height / 2;
    actual_B = _level0.img._y + _level0.img._height / 2;
    minY = 0;
    maxY = _root.movieH;
    minX = 0;
    maxX = _root.movieW;
    if (actual_L >= minX)
    {
        if (_root.panorama)
        {
            setProperty("", _x, _width / 2);
        }
        else
        {
            duplicateMovieClip(_level0.img.central, "left" + i, i + 10000);
            prevL = "left" + (i - 1);
            prevLX = getProperty(prevL, _x);
            setProperty("left" + i, _x, prevLX - init_width);
            i = i + 1;
            for (iDel = 1; iDel < h; iDel++)
            {
                removeMovieClip ("right" + iDel);
            } // end of for
            h = 1;
        } // end if
    } // end else if
    if (actual_R <= maxX + 500)
    {
        if (_root.panorama)
        {
            setProperty("", _x, _root.movieW - _width / 2);
        }
        else
        {
            duplicateMovieClip(_level0.img.central, "right" + h, h);
            prevR = "right" + (h - 1);
            prevRX = getProperty(prevR, _x);
            setProperty("right" + h, _x, prevRX + init_width);
            h = h + 1;
            for (hDel = 1; hDel < i; hDel++)
            {
                removeMovieClip ("left" + hDel);
            } // end of for
            i = 1;
        } // end if
    } // end else if
    if (actual_T >= minY)
    {
        setProperty("", _y, _height / 2);
    } // end if
    if (actual_B <= maxY)
    {
        setProperty("", _y, _root.movieH - _height / 2);
    } // end if
    actual_X = _x;
    actual_Y = _y;
}
onClipEvent (load)
{
    ok = ok2 = 1;
    beginX = _x;
    h = 1;
    i = 1;
    myscale = _xscale;
    minXs = _root.movieH / _height;
    init_width = _root.img.central._width;
    setProperty("central", _x, 0);
    setProperty("central", _y, 0);
}
onClipEvent (mouseDown)
{
    obj_x = _x - _root.x;
    obj_y = _y - _root.y;
}

Thanx for your help in advance !!

Mike

Code Conversion Confusion
Hi all,

I'm new to actionscript so please be patient.

I came across some code that allowed me to have a pop-up window set to a specific size, from an external text file. Only problem is that it is in Actionscript 1. If anyone can help me with converting this to Actionscript 2, or even point me in the right direction, that would be more than appreciated.

Thanks in Advance

stop();
//loadVariablesNum("main.txt", 0);
//the flash piece:
var l = new LoadVars();
l.onLoad = function(done)
{
if (done)
{
scroller.htmlText = this.links;
}
};
l.load("main.txt");
//function to open a javascript popupwindow
openWin = function (url)
{
getURL("javascript:window.open('" + url + "','newWin','toolbar=no,width=600,height=400') ; void(0);");
};

Quick Code Conversion Help, Please
The problem is that this code was written (obviously) to be on a button, but I'm now using a keyListener instead and for the life of me, I can't get this code to convert away from the on(release) aspect to regular code.

Could someone please fix this for me so that the code works with:

KeyListener = new Object();
KeyListener.onKeyDown = function() {
if (Key.getAscii() == 13) {
checkMe();
}
};
Key.addListener(KeyListener);







Attach Code

onClipEvent (load) {
playOrder = new Array(1,2,3,4,5,6,7,8,9,10).sort(shuffle);
position = 0;
function shuffle():Number {
return Math.floor(Math.random() * 3) - 1;
}
}

on (release) {
_root.gotoAndStop(playOrder[position]);
this.gotoAndPlay(playOrder[position++]);
_root.txtAnswer.text = " "
if (position >= playOrder.length) {
_root.gotoAndStop(11);
playOrder.sort(shuffle);
position = 0;
}
}

Gallery Code..Conversion Plz Help.
Ok I have some code that I created awhile back to load images for a website. It has since become very tedious and I'm having to restructure the site and rename hundreds of files to fit my code....

I would like to know if there is a way to read the contents of a directory and grab the names of the files and load a gallery ....but I want to structure it around the following code:

But I've Attached the FLA.


Code:
picNamesA = ["pic1","pic2","pic3","pic4","pic5","pic6"];
picNamesB = ["pic7","pic8","pic9","pic10","pic11","pic12"];
picNamesC = ["pic13","pic14","pic15","pic16","pic17","pic18"];
picNamesD = ["pic19","pic20","pic21","pic22","pic23","pic24"];
picNamesE = ["pic25","pic26","pic27","pic28","pic29","pic30"];
picNamesF = ["pic31","pic32","pic33","pic34","pic35","pic36"];
picNamesG = ["pic37","pic38","pic39","pic40","pic41","pic42"];
picNamesH = ["pic43","pic44","pic45","pic46","pic47","pic48"];
picNamesI = ["pic49","pic50","pic51","pic52","pic53"];
picsDir = "pics/chevy/";
picsThumb = "thumbs/chevy/";

pic1();
pic2();
pic3();
pic4();
pic5();
pic6();
fbutton();
unloadMovie("_root.picholder");


function pic1() {
for(i=0; i<picNamesA.length; i++) {
mc = this.createEmptyMovieClip("container"+i, i);
trace(mc.getDepth());
mc._y = 20;
mc._x = i*55+30;
loadMovie(picsThumb+"sm_"+picNamesA[i]+".jpg", "container"+i);
}
for(i=0; i<picNamesA.length; i++) {
mcbutton = this.attachMovie("hidden", "hidden"+i, i+picNamesA.length);
//trace(mcbutton.getDepth());
mcbutton._y = 20;
mcbutton._x = i*55+30;
mcbutton.i = i;
mcbutton.onRelease = function() {
//trace(_root.picNamesA[this.i]);
loadMovie(picsDir+picNamesA[this.i]+".jpg", _root.picholder);
}

}
}

function pic2() {
for(i=0; i<picNamesB.length; i++) {
mc2 = this.createEmptyMovieClip("container1"+i, i+picNamesA.length*2);
trace(mc2.getDepth());
mc2._y = 65;
mc2._x = i*55+30;
loadMovie(picsThumb+"sm_"+picNamesB[i]+".jpg", "container1"+i);
}
for(i=0; i<picNamesB.length; i++) {
mcbutton2 = this.attachMovie("hidden", "hidden1"+i, i+picNamesA.length*3);
mcbutton2._y = 65;
mcbutton2._x = i*55+30;
mcbutton2.i = i;
mcbutton2.onRelease = function() {
//trace(_root.picNamesB[this.i]);
//getURL(picsDir+_root.picNamesB[this.i]+".jpg", "_blank");
loadMovie(picsDir+picNamesB[this.i]+".jpg", _root.picholder);
}

}
}


function pic3() {
for(i=0; i<picNamesC.length; i++) {
mc2 = this.createEmptyMovieClip("container2"+i, i+picNamesA.length*4);
//trace(mc2.getDepth());
mc2._y = 110;
mc2._x = i*55+30;
loadMovie(picsThumb+"sm_"+picNamesC[i]+".jpg", "container2"+i);
}
for(i=0; i<picNamesC.length; i++) {
mcbutton2 = this.attachMovie("hidden", "hidden2"+i, i+picNamesA.length*5);
mcbutton2._y = 110;
mcbutton2._x = i*55+30;
mcbutton2.i = i;
mcbutton2.onRelease = function() {
//trace(_root.picNamesB[this.i]);
//getURL(picsDir+_root.picNamesB[this.i]+".jpg", "_blank");
loadMovie(picsDir+picNamesC[this.i]+".jpg", _root.picholder);
}

}
}

function pic4() {
for(i=0; i<picNamesD.length; i++) {
mc2 = this.createEmptyMovieClip("container3"+i, i+picNamesA.length*6);
mc2._y = 155;
mc2._x = i*55+30;
loadMovie(picsThumb+"sm_"+picNamesD[i]+".jpg", "container3"+i);
}
for(i=0; i<picNamesD.length; i++) {
mcbutton2 = this.attachMovie("hidden", "hidden3"+i, i+picNamesA.length*7);
mcbutton2._y = 155;
mcbutton2._x = i*55+30;
mcbutton2.i = i;
mcbutton2.onRelease = function() {
loadMovie(picsDir+picNamesD[this.i]+".jpg", _root.picholder);
}

}
}

function pic5() {
for(i=0; i<picNamesE.length; i++) {
mc2 = this.createEmptyMovieClip("container4"+i, i+picNamesA.length*8);
mc2._y = 200;
mc2._x = i*55+30;
loadMovie(picsThumb+"sm_"+picNamesE[i]+".jpg", "container4"+i);
}
for(i=0; i<picNamesE.length; i++) {
mcbutton2 = this.attachMovie("hidden", "hidden4"+i, i+picNamesA.length*9);
mcbutton2._y = 200;
mcbutton2._x = i*55+30;
mcbutton2.i = i;
mcbutton2.onRelease = function() {
loadMovie(picsDir+picNamesE[this.i]+".jpg", _root.picholder);
}

}
}

function pic6() {
for(i=0; i<picNamesF.length; i++) {
mc2 = this.createEmptyMovieClip("container5"+i, i+picNamesA.length*10);
mc2._y = 245;
mc2._x = i*55+30;
loadMovie(picsThumb+"sm_"+picNamesF[i]+".jpg", "container5"+i);
}
for(i=0; i<picNamesF.length; i++) {
mcbutton2 = this.attachMovie("hidden", "hidden5"+i, i+picNamesA.length*11);
mcbutton2._y = 245;
mcbutton2._x = i*55+30;
mcbutton2.i = i;
mcbutton2.onRelease = function() {
loadMovie(picsDir+picNamesF[this.i]+".jpg", _root.picholder);
}

}
}


function pic7() {
for(i=0; i<picNamesG.length; i++) {
mc2 = this.createEmptyMovieClip("container6"+i, i+picNamesA.length*12);
mc2._y = 20;
mc2._x = i*55+30;
loadMovie(picsThumb+"sm_"+picNamesG[i]+".jpg", "container6"+i);
}
for(i=0; i<picNamesG.length; i++) {
mcbutton2 = this.attachMovie("hidden", "hidden6"+i, i+picNamesA.length*13);
mcbutton2._y = 20;
mcbutton2._x = i*55+30;
mcbutton2.i = i;
mcbutton2.onRelease = function() {
loadMovie(picsDir+picNamesG[this.i]+".jpg", _root.picholder);
}

}
}

function pic8() {
for(i=0; i<picNamesH.length; i++) {
mc2 = this.createEmptyMovieClip("container7"+i, i+picNamesA.length*14);
mc2._y = 65;
mc2._x = i*55+30;
loadMovie(picsThumb+"sm_"+picNamesH[i]+".jpg", "container7"+i);
}
for(i=0; i<picNamesH.length; i++) {
mcbutton2 = this.attachMovie("hidden", "hidden7"+i, i+picNamesA.length*15);
mcbutton2._y = 65;
mcbutton2._x = i*55+30;
mcbutton2.i = i;
mcbutton2.onRelease = function() {
loadMovie(picsDir+picNamesH[this.i]+".jpg", _root.picholder);
}

}
}

function pic9() {
for(i=0; i<picNamesI.length; i++) {
mc2 = this.createEmptyMovieClip("container8"+i, i+picNamesA.length*16);
mc2._y = 110;
mc2._x = i*55+30;
loadMovie(picsThumb+"sm_"+picNamesI[i]+".jpg", "container8"+i);
}
for(i=0; i<picNamesI.length; i++) {
mcbutton2 = this.attachMovie("hidden", "hidden8"+i, i+picNamesA.length*17);
mcbutton2._y = 110;
mcbutton2._x = i*55+30;
mcbutton2.i = i;
mcbutton2.onRelease = function() {
loadMovie(picsDir+picNamesI[this.i]+".jpg", _root.picholder);
}

}
}
function clearDepths() {
for(i=0; i<150; i++) {
unloadMovie("container"+i);
}
}

function fbutton() {
fbutton = this.attachMovie("forward","foward1",1000);
fbutton._x = 160
fbutton._y = 290
fbutton.onRelease = function () {
clearDepths();
pic7();
pic8();
pic9();
bbutton();
}
}

function bbutton() {
bbutton = this.attachMovie("back","back1",1000);
bbutton._x = 160
bbutton._y = 290
bbutton.onRelease = function () {
clearDepths();
loadMovie("chevygal.swf",_root.stage1);
}
}

Conversion From Swf File To Actionscript Code
Hi guys
Do you think , it is possible to write the actionscript code
which create the simple animation attached in 1.zip
supposed to have the function CREATE_RECTANGLE() and the function MOVE_RECTANGLE() .
Please help me !!

Disable Some Code
I'm using an elastic scale function, which is allowing me to build the elements on my page without tweening.

i'm using on clip event code:

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
elasticScale(400, 0.1, 0.9);
} else {
elasticScale(100, 0.01, 0.05);
}
}

Now my problem is i want to disable actual hit effect, i just want to scale the objects down using the function code (elasticScale). I'm not a experinced coder so i'm not sure the best way to do this.

rat

Disable Code In A Swf
Is there a way I can make sure ActionScript in a external swf don't mess up my application when I load it into a movieClip in my application???

Any way to block ActionScript in a swf from running?

Code 2 Disable Zooming
Is there a code i can type in to stop the viewer from zooming in and out of my movie clips?

do you think this website has an over the top theme?
some people say I should make it look more sleek and profesional.
my site

Disable Button By Code
Hi,

I have lets say four button called A, B, C and D in flash. So, i have a form(explorer form) that asks me to choose which button that i want to activate. Let say i choose button A and D. The form will send the button's name to flash file and the flash file will activate the choosen button. Meanwhile, the two other buttons (B and C) will remain there but locked! Means, user cannot do anything.. they can't even click it coz the buttons are currently in-active.. is it possible to do this?

Thanks for all those who are willing to help..

Regards..

Disable Code Needed
I have a movie clip called "mainsite". I have a few pop-overs and would like to diable the movie clip underneath when they are up. I am using:

mainsite.enabled=false;

however it will not work - does this only work with buttons? If so can someone reccommed a code that will disable the Movie Clip? I do not want to use the _visable script becuase I want to still be able to see it.

Thanks for help in advance!

Disable Actionscript Code
Anyone know of a way to strip(make unusable) code for a flash movie?
The reason is, I have a site that you can upload a flash movie as part of your profile but when you do so you have the ability of making a new window pop-up using getURL and such. I need this not to be able to happen but still be able to allow flash movies.
The users upload them thru an ASP interface.


Thanks

Code To Disable A Button After Release
I have some code on my website that allows users to drag a thumbnail onto a target and then expand to full size on release.

//The function growIt causes the clip to expand on release

function growIt(){
_xscale+=100;
_yscale+=100;
}

on (press) {
startDrag ("_root.movieclip");
}
on (release) {
stopDrag ();
_root.movieclip.growIt();
}

How can I disable the function after release so that when the user drags the expanded clip it doesn't keep growing?

Is Right Click Disable Within Swf Possible? - NO HTML CODE
HI all,

i know you can turn off, or at least limit the right click menu appearance within the source html code where the flash movie is embedded, but if i am just looking at an swf straight in a browser, is there any way of turning the right click off?

thanks in advanvce

gilesb.

Does Setting _visible To 0 Disable Code?
Hi there, a quick question: does code driving a movie clip stop when it's _visible property is set to 0. So If I had code spinning a movie clip (using the _rotate property) and at some point the visibility of the movie clip is set to 0, is the code that's spinning it disabled or does it continue to spin the MC but you just can't see it?

Cheers, K.Rice

Whast The Code To Disable A Button
Whast the code to disable a button once it has already been pressed and loaded an external movie into a level above your "MAIN" movie?

AND WHERE DO YOU PUT THE CODE?

Code For Disable Print Screen
var screenPurge = setInterval(clipboardPurge, 100);
function clipboardPurge() {
System.setClipboard('ALL IMAGES COPYRIGHTED');
}

I found this code that works with IE Firefox Safari on PC.
OK, no code will ever stop somebody determined to steal images but this goes a long way to preventing screenshots.

Does anyone have opinions on this script?

Code To Focus On Input Box (disable Keypress)?
is there a code that will disable key press all together or to focus on just the input box so that i can type with the space key (space is used to pick objects up in game not in use when this menu is open anyway).

Code To Focus On Input Box (disable Keypress)?
is there a code that will disable key press all together or to focus on just the input box so that i can type with the space key (space is used to pick objects up in game not in use when this menu is open anyway).

Disable Print Screen Key And Paste Into PS JavaScript Code?
I still haven't been able to figure this one out.
Does anyone know of a JavaScript code that will NOT allow people to simply press print screen, open photoshop and paste their screen grab into photoshop on both Mac and PC? I know how to disable right clicking in JavaScript, but need a JavaScript code that would bring up a window saying "All designs Copyright 2005..." whenever someone would try tro take a screen shot and would not allow people to steal my artwork. I have a few websites I've done using flash and the artwork in the swf is copyrighted work.
Thanks for any help on this one!

Code To Disable Rollover Actions On Layers Below A Graphic?
Hi there,

I have a file in CS3 with a scrolling background (a movieclip), it scrolls across the entire stage and has 4 rollover effects applied to it at different points. On one side of the stage is a solid logo graphic which sits on a higher layer. As the background passes underneath it, it's rollover effect is still active. Can anyone provide me with code that could disable the rollover effects only within the logo graphic area?

I have attached the file as it stands so far.

Thank you,

Darrylhttp://www.mediafire.com/?7mg42bu20t4

FLASH 5 Conversion
I want to make a kind of 'Translator' but not to a different language but to a differend letter.
So for example there is a input box and you type in me name "Dean" I want the out put to be "D34n"
Someone gave me this

on (release) {
str = text;
for (i=0; i<str.length; i++) {
letter = str.substr(i, 1);
if (letter == "A" || letter == "a") {
newstr += "4";
} else {
newstr += letter;
}
}
out = newstr;
}

but that only changes one letter, can you help?

EPS To Flash Conversion
Hi all,

Is there a way of converting .eps files (made in Quark) into a .swf movie? Can they be converted, or would they need to be imported, or would I have to convert them to html or something first?

Jonathen

Flash MX Conversion
can anyone please open this file in MX 2004 and save it for flash MX, i made it on a different computer in MX 2004 and i cant open it on mine, very important code inside that i need thanks so much!

Flash 6 Conversion - NOT
Hi Guys,

I'm freshening up some old code I made and stumbled into a conversion problem (and crapness at coding). The code was from the Telltarget days and has a snippet of old school code that doesn't like the flash 7 player.

Its a fairly simple scrubber designed to control a child swf. However if I try to publish higher than flash 6 it doesn't work. Could a better coder than me take a quick look at my fla?

I've attached the fla and a swf, both need to be in the same directory to run. I'd like to get up to flash 7 so a component I'm using will work, flash 8 even better!!

Thanks in advance.
MJ

Flash Conversion ?
Does anyone know of a way to convert a flash file to a pdf document ??

Can be as long winded or need any apps. The only requirement is that it keeps the vector information for the print quality.

Manic

-----------------------------
I've broken it again !!
-----------------------------


3DS Max File Conversion To Flash
Okay, i've heard about plugin that allows you to easily take my animation from 3DS max straight to flash. Does this exist?

I've had a tinker at Swift 3d but i really don't like the program. I loose too much control.

Colour Conversion Using Flash
I have a few doubts on flash colour models and objects could you please help me out with this.

1. How to convert a flash symbol in rgb mode to gray scale?
2. How to make a flash symbol apper like a floroscent image?
3. How to change brightness, saturation, contrast using scripting?
4. I would also like to know how to set the monitor brightness?
Is it possible to do all this using scripting? It would be of great help if you would help me out with this.

Conversion To Flash 5 Problems...
I have a problem in Flash 5:

when you click a button, the flash load the first 6 pics into seperate movieclips.
After clicking the button again, Flash loads the next 6 pics into the same movieclips. And so on and so on...

I attached the .fla so you can take a look and tell me what I'm doing wrong here... becaus it seems that I'm too stupid to figure it out myself... but then, I'm blond
The pics are left out because they make the .fla too big.


thank in advance!!

Annika

PPT To Flash Conversion Tools
What do you guys think the best Powerpoint to Flash conversion tool is (for the price)?

I've been checking out Macromedia Breeze. Any feedback?

Flash To Wildform Conversion Help
I set up a couple of seperate Flash files so that in frame 1 of scene 1 there contains a MC of all the content that plays in the movie.

Now i realize i would like to put these files individually into Wildform so that I can have the controll panels (play, pause, stop, etc.)

The problem is when i export the Flash file as an AVI, it only exports the first frame and doesn't play the MC that is contained in frame 1.

Could anyone help me with a solution that would include laying out the entire flash move again in the main scene? i would really appreciate it. thanks for any help in advance.

Alex

Flash Can't Add Need String Conversion Help.
I'm building a serial number validation routine for a FlashPro2004 appliction. I take a string such as:

1234-5678-9012-3456

I then do a bunch of math to see if one group of numbers calculates to equal another group of numbers. It works great in PHP, but Flash seems to think that 40 + 313 = 345, when in reality it is 353.

I'm starting to wonder if it's adding ascii codes or something.

I think the problem is in converting the string "0040" to a number and doing the addition. Here's a code snippet that has gone awry:


PHP Code:



///for sake of arguement, say group4 is the string "0040";
group4="0040";
group3 = group4.slice(0);
    
    //add a seed number
    trace("group 3 is now " + group3 + "before adding 313");
    group3 = Number(group3)+313;

    //convert back to a string
    trace("group 3 is now "+group3+" after adding 313");




That little code snippet constantly produces the wrong value. It's pissing me off. Please help.

Who'd Want To Use This Website For Flash Conversion?
I'm not sure that any of you guys have seen it. The site is called swf2fla.biz and the site claims that it can convert SWF files to FLA format for you.

Are there any Flash developers who'd be stupid enough to use this site? The first time I looked at it, I thought the site was a scam. I still think so to this day. Besides that, if you want to convert your Flash movies, it'd be better to do it yourself, right?

Flash MX To MX 2004 Conversion
Help!

I've finally gotten this great project made and scripted after hours upon hours of research, trolling, and various combinations of scripts, and all to find out it is all in Flash MX 6.0 format!

I don't have much of an issue with this, but I just want to know:

how can I convert the file to MX 2004?

Even with the SWF exported as an ActionScript 1.0 file, it doesn't work, unless I keep it exported as an Flash 6.0 player with AS 1.0

When I try to export it as AS 1.0, none of my XML graphics show up, but with it exported as all new Flash, the output screen gives me various errors.

HELP!

--iMat

Authorware To Flash Conversion
I'm starting a project that will require converting a Authorware project to Flash/swf format. Is their a fast method or a out of the box software available to convert Authorware files to swf? Or does anyone know of any software that could batch process the conversion?


Thanks


Ike

PowerPoint To Flash Conversion
I think that conversion of PowerPoint presentations to Flash format will be the simplest way of Flash creation for newbies. I tried doing this using different PPt to SWF conversion tools and some of them showed good results. I should say that the prices for such tools are very different and there is an absolutely free tool FlashSpring Lite. It generates Flash clips keeping all the elements of PowerPoint presentation but without animations and sound. For Flash clips with animations, music background and added external Flash objects I purchased FlashSpring Pro. I think that everyone should download FlashSpring Lite because it's really good and absolutely free!

Flash Variable Conversion
Hi example #1 is a piece of actionscript which works well.....except i want to change the _root.msg.text part of it into a variable.


will somebody please tell me how to change example 1 so that _roo.msg.text becomes a variable name instead of refrenceing an object?


example #1
_root.msg.text = this.valid;

example #2 is what i tried to use but it didn't work.
example#2
var username = this.valid;

What Is The Best Conversion For Flash Video?
Hey everyone,

I am working on a project where I will be importing a few small quicktime movies into Flash.

I've run some tests and the video quality of these is always poor. I've tried to bring them in at the highest quality but they are still bitmapped pretty badly.

Any suggestions?

Thanks

Dreamweaver To Flash Conversion
If this post does not belong on this forum, I apologize and understand if it needs deletion.

Q: Anyone know if it's possible, and if so, how - to import material from a Dreamweaver project into Flash?

Thanks in advance

Flash File Conversion
hi
i have a swf file which is generate in runtime with the help of php now i have to convert that swf file into pdf/jpg/gif/bmp/png format so is there may be any kind of script in flash which convert the swf file into pdf format.


pls help me i want to put that script into the button

Type Conversion In Flash
i am loading data frm asp file
the data in this format

&Output=Deewaar (U/A) - Tickets Available for 12.45pm show at Imax Adlabs, 7-7-2004
Deewaar (U/A) - Tickets Not Available for 3.45pm show at Imax Adlabs, 7-7-2004
Deewaar (U/A) - Tickets Available for 6.45pm show at Imax Adlabs, 7-7-2004
Deewaar (U/A) - Tickets Not Available for 9.45pm show at Imax Adlabs, 7-7-2004
Dolphins - Tickets Not Available for 6.30pm show at Imax Adlabs, 7-7-2004
Harry Potter (U) - Show Over for 11.45am at Imax Adlabs, 7-7-2004


in flash it is loaded

scrollingText.text = Output \ but the
is not working
it is displayed as single text line
i require multiple line so it can scroll

when i check the type of the output

scrollingText.text = typeof(Output)

it return string

plz tell me what the problem might be

plz help me out

PowerPoint To Flash Conversion
Have a PowerPoint file generated in Windows. I'm on MAC 0SX and need to convert to a Flash file for web site viewing. Anyone out there interested in doing the conversion? Or, is there any shareware or utility to do this conversion for MC 0SX?

Thanks very much,
Robert

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