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




Problem In Using Senoculars FreeTransform Tool



I have a problem while using senoculars freeTransform tool. (senoculars.com)

When I import any flash components into the stage / library, the freeTransform autoremove function did not work and cause some unexpected error (e.g. scale on position 7 will make the movieclip disappear ...)

Thanks in advance.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 02-05-2007, 07:53 AM


View Complete Forum Thread with Replies

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

SizeRestrict W/senoculars FreeTransform.as
I am using the freeTransform.as script found on senocular.com. I have tried to follow the definition as closely as I can, however, it doesn't appear to be working. Can anyone help; senocular are you out there?


Code:
stop();
var restrict = {xmin:50, xmax:200, ymin:50, ymax:100};
customStyle = new FreeTransformStyle([1, 0x0000ff, 100], [20, 0xFFEEAA, 75], ["s", null, null, null, "r", null , null, null], true, 2, restrict);
customStyle.customCursor(["r", "spin", 2], ["s", "scale", 2, true], ["m", "move", 1]);
2:hide, 1:nohand, 0:hand;
//customStyle.addHandle("r", 4, 1.5);
with (square) {
myClip.onPress = function() {
this.addFreeTransform(_root.customStyle);
};
}
deselect.onRelease = function() {
customStyle.removeAll();
};
reset.onRelease = function() {
_root.play();
};
//

Skin Cursors For Senoculars Transform Tool?
Is there any easy way to skin the cursors that appear on senoculars transform tool? I can see the built in methods to skin the controls but I don't see anyway to skin the cursor. I've seen a few examples of this done on the web but I'm not sure how.

[F8] Senocular's FreeTransform.as
Hi all

Im using FreeTransform.as(http://www.senocular.com) code to create transform tool om movie clip.

But its rotation,scale and drag functions are not restricted.I want to place my movie clip with in boundary and ones any transformation reaches boundary it should be terminated.
I tried variety of code adjustment,but couldn't get perfect solution.
If any one who used above class please give me and idea how to figure it out.
Bit urgent.
Thanks.

[f8] Code Not Working For Freetransform
http://proto.layer51.com/d.aspx?f=636 Freetransform code used in this example:

Using this code below labelled (1) enables me to rotate and scale a movieclip, i want to be able to duplicate this movie so i have added the code below labelled (2), for this to take place.
But when i apply (2) code it stops the (1) actionscript from being used and continues to drag the movieclips without being able to freetransform......

(1)

Code:
stop();



customStyle = new FreeTransformStyle([3,0xFF0000,100], [20,0xFFEEAA,75], ["r",null,"r","s","s","s","r",null], true, 2);
customStyle.customCursor(["r","spin",2],["s","scale",2,true],["m","move",1]); // 2:hide, 1:nohand, 0:hand
customStyle.addHandle("r",4,1.5);
with (hands_mc){ // hands are in hands movieclip
a.onPress = function(){ this.addFreeTransform(); }
b.onPress = function(){ this.addFreeTransform(); }
x.onPress = function(){ this.addFreeTransform(_root.customStyle); }
y.onPress = function(){ this.addFreeTransform(_root.customStyle); }
z.onPress = function(){ this.addFreeTransform(_root.customStyle); }
}

deselect.onRelease = function(){
customStyle.removeAll();
}
reset.onRelease = function(){
_root.play();
}
(2)


Quote:




i=0;
hands_mc.onPress=function(){
i++;
hands_mc.duplicateMovieClip("hands"+i,i);
_root["hands"+i].startDrag(false);
_root["hands"+i].onPress=function(){
this.startDrag(false);
}
}
this.onMouseUp=function(){
stopDrag();
}

OnRollover Wont Work Using FreeTransform By Senocular
Ok, I have restled with this a hundred different ways, I don't understand why my onRollover function fails to work. Can someone please explain why and show me how I would correct it?

Code:
count = 0;
additem_btn.onRelease = function() {
var item_mc:MovieClip = pieceContainer.createEmptyMovieClip("item_mc"+count, this.getNextHighestDepth());
// create a container to load the furniture swf into
var container:MovieClip = item_mc.createEmptyMovieClip("container_mc", 0);
// setup a MCL to handle the swf's loading
item_mc.mcl = new MovieClipLoader();
item_mc.mcl.addListener(mclListener_2);
item_mc.mcl.loadClip("decals/bed.swf", container);
count++;
};
//
var mclListener_2:Object = new Object();
mclListener_2.onLoadInit = function(obj_mc:MovieClip) {
// set variables to remember the original dimensions
_global.axw = obj_mc._width;
_global.axh = obj_mc._height;
trace("width "+(((axw/2)/12)*12)+" inches");
trace("height "+(((axh/2)/12)*12)+" inches");
// center piece
obj_mc._y = -(axh/2);
obj_mc._x = -(axw/2);
// locate pieceContainer
pieceContainer._x = floor._x+(wide/2);
pieceContainer._y = floor._y+(high/2);
//
obj_mc._parent.onPress = function() {
this.addFreeTransform();
//trace(this)
};
obj_mc._parent.onRollover = function() {
trace(this);
};
//
};

Senoculars Form
I'm using sen's form on my site, but i have a problem, even if the user doesn't type anything, it still sends an e-mail, is there away to check if any of the fields are blank, and if so not to have it send..

Senoculars Portfolio
is it possible to make senoculars portfolio with images that automaticly resize?

Help With Senoculars Mp3 Player Please
hello, i've used senocular's mp3 playlist player
(at http://www.kirupa.com/web/xml/examples/MP3playlist.htm)
and it's wicked, so thank you for that, it was tough but fun!
take a look: http://www.lands-music.net - it's just a place to stick the music me and my mate make.

i have a couple of fiddly bits i can't sort out, would really appreciate a hand..

1) you have to select the track and then press the play button, how can i make it so you can just load the song by clicking on it? i've tried for so long!

2) when you click on certain tracks, sometimes one or two of them disappear, or one diappears, then you click another and another disappears... is there any way to sort that out?

3) is there any way of making the track stay lit up when you have selected it?

Tried uploading an fla of my file at the moment, but it's a massive 876k... i can mail it if any brains could help this tired one!

Cheers,
Micke

Senoculars Drawing API
I am currently interested in developing a drawing application and have come across this by Senocular:

http://www.senocular.com/demo/ASDRec...DRecorder.html

Files can be found here:

http://www.senocular.com/demo/ASDRecorder/

What I'm struggling with is removing the file selection part of the application. I just want to be able to set whichever file is loaded myself not allow people to choose. i.e drawing1.data

The loadfile part of the AS is this:


ActionScript Code:
dialogs.LoadFile = function(){    var file = this.loadlist.getSelectedItem();    if (!file){        msg_txt.text = "Invalid Selection.";        return false;    }    this.selectedfile = file.label;    this.loading_anim.animate(true);    this.cancel_btn.enabled = this.load_btn.enabled = false;    msg_txt.text = "Loading...";    Recorder.clear();        delete drawing_lv.onLoad;    drawing_lv.onData = onLoadHandler;    drawing_lv.load(file.data);}


How can I change this Loadfile function to just load drawing1.data instead of the variable file.data


Any help with this would be greatly appreciated. Thank you.

Senoculars Form
I'm using sen's form on my site, but i have a problem, even if the user doesn't type anything, it still sends an e-mail, is there away to check if any of the fields are blank, and if so not to have it send..

Senoculars Portfolio
is it possible to make senoculars portfolio with images that automaticly resize?

Question About Senoculars 3d Engine
Hello, I'm trying to make a regular tetraeder in 3d with seoculars 3d engine. In this engine you have to use make3DPoint (x, y, z)

Now for this tetraeder I want to use a variable s that is the length of one rib. so this was the code I wrote with help from Voetsjoeba


ActionScript Code:
focalLength = 300;make3DPoint = function (x, y, z) {    var point = new Object();    point.x = x;    point.y = y;    point.z = z;    return point;};make2DPoint = function (x, y, scaleFactor) {    var point = new Object();    point.x = x;    point.y = y;    point.scaleFactor = scaleFactor;    return point;};ConvertTo2D = function (pointIn3D, scale) {    var pointIn2D = new Object();    pointIn2D.x = pointIn3D.x*scale;    pointIn2D.y = pointIn3D.y*scale;    return pointIn2D;};RotatePointsAndConvert = function (points, axisRotations) {    var TransformedPointsArray = [];    var sx = Math.sin(axisRotations.x);    var cx = Math.cos(axisRotations.x);    var sy = Math.sin(axisRotations.y);    var cy = Math.cos(axisRotations.y);    var sz = Math.sin(axisRotations.z);    var cz = Math.cos(axisRotations.z);    var x, y, z, xy, xz, yx, yz, zx, zy, scaleFactor;    var i = points.length;    while (i--) {        x = points[i].x;        y = points[i].y;        z = points[i].z;        // rotation around x        xy = cx*y-sx*z;        xz = sx*y+cx*z;        // rotation around y        yz = cy*xz-sy*x;        yx = sy*xz+cy*x;        // rotation around z        zx = cz*yx-sz*xy;        zy = sz*yx+cz*xy;        scaleFactor = focalLength/(focalLength+yz);        x = zx*scaleFactor;        y = zy*scaleFactor;        z = yz;        TransformedPointsArray[i] = make2DPoint(x, y, scaleFactor);    }    return TransformedPointsArray;};var s = 200;cube3D = [make3DPoint(0, -2/3*Math.sqrt(s-1/2*s*1/2*s), 0), make3DPoint(-1/2*s, 1/3*Math.sqrt(s-1/2*s*1/2*s),1/2*s), make3DPoint(1/2*s, 1/3*Math.sqrt(s-1/2*s*1/2*s), 1/2*s), make3DPoint(0, 1/3*Math.sqrt(s-1/2*s*1/2*s), -1/2*s)];cubeRotation = {x:0, y:0, z:0};this.onEnterFrame = function() {    this.createEmptyMovieClip("cube", 1);    cube.lineStyle(0, 0x000000, 100);    if (Key.isDown(Key.LEFT)) {        cubeRotation.y += 0.05;    }    if (Key.isDown(Key.RIGHT)) {        cubeRotation.y -= 0.05;    }    if (Key.isDown(Key.UP)) {        cubeRotation.x += 0.05;    }    if (Key.isDown(Key.DOWN)) {        cubeRotation.x -= 0.05;    }    cube2D = RotatePointsAndConvert(cube3D, cubeRotation);    for (var i = 0; i<cube3D.length; i++) {        cube2D[i].x += 350;        cube2D[i].y += 250;    }        cube.moveTo(cube2D[0].x, cube2D[0].y);    cube.beginFill(0x0000FF,20)    cube.lineTo(cube2D[1].x, cube2D[1].y);    cube.lineTo(cube2D[2].x, cube2D[2].y);    cube.lineTo(cube2D[0].x, cube2D[0].y);    cube.endFill()    //    cube.moveTo(cube2D[0].x,cube2D[0].y);    cube.lineTo(cube2D[3].x, cube2D[3].y);    cube.lineTo(cube2D[2].x, cube2D[2].y);    //    cube.lineTo(cube2D[3].x, cube2D[3].y)    cube.lineTo(cube2D[1].x, cube2D[1].y)};
I dunno why but there seems to be a problem with it cu nothing appears when I push test movie, not even an error.

Anyone have an idea what the problem is?

O and I'm very very noobish at AS so plz don't laugh at me when it's something stupid

Greetz and thanks.

EDIT: O and don't worry about the names that state cube cuz that's only because I edited some code by Voetsjoeba.

Senoculars Loading Thumbnails
I need to dynamically preload my thumbs ,,,but i think its going to be kind of tricky since I'm using XML for all my images..and I don't know how to tweak the code even though there's comments for everything in the AS.
Senocular has a folder for his .jpgs.
I have the gallery.xml & folder named pics w/ all my thumbs & jpgs in there..so what do i need to change?

THANK u!!!

CODE 4 THE PRELOADING THUMBS

Code:

var baseurl = _url.substr(0,_url.lastIndexOf("/")+1);
h_spacing = 130; // horizontal spacing
v_spacing = 110; // vertical spacing
h_count = 4; // number of thumbnails horizontally
v_count = 3; // number of thumbnails vertically
h_pos = 20; // starting horizontal position of grid
v_pos = 20; // starting vertical position of grid
count = 0; // counts clips added in the grid when created and for loading
thumb_clips = new Array(); // movieclips to contain thumbs
thumb_graphics = new Array(); // urls of the jpgs to be loaded as thumbs
for (i=1; i<=12; i++) thumb_graphics.push(baseurl + "gallery/thumb"+i+".jpg"); // populate thumb_graphics with jpg urls
// CreateThumbContainers creates the grid of thumb_clips
function CreateThumbContainers(){
var x, y, initObj, curr;
for (y=0; y<v_count; y++){
for (x=0; x<h_count; x++){
count++;
initObj = {_x: h_pos + x*h_spacing, _y: v_pos + y*v_spacing};
curr = this.attachMovie("thumb_container", "tc"+count+"_mc", count, initObj);
curr.progress_mc._xscale = 0;
thumb_clips.push(curr);
}
}
}
// ThumbLoadingEnterFrame is the onEnterFrame handler to be used
// for preloading each thumbnail and driving the progress bar
function ThumbLoadingEnterFrame(){
var lod = this.loader_mc.getBytesLoaded();
var tot = this.loader_mc.getBytesTotal();
if (lod && tot){
var percent_loaded = lod/tot;
this.progress_mc._xscale = 100 * percent_loaded;
if (percent_loaded == 1){
LoadNextThumb();
delete this.onEnterFrame;
}
}
}
// LoadNextThumb, called by ThumbLoadingEnterFrame, loads the next
// thumbnail in the thumb_clips list when the current one is complete
function LoadNextThumb(){
if (count >= thumb_graphics.length) return false;
var imgURL = thumb_graphics[count];
thumb_clips[count].loader_mc.loadMovie(imgURL);
thumb_clips[count].onEnterFrame = ThumbLoadingEnterFrame;
count++;
}
// create grid
CreateThumbContainers();
// reset count
count = 0;
// initiate loading of thumbs
LoadNextThumb();
// LoadNextThumb(); // <- using 2 LoadNextThumb() calls will load 2 at a time

CODE 4 MY Gallery

Code:
dest1 = dest2 = dest3 = dest4 = dest5 = gal1_btn._y;
var tnNr;
spacing = 10;
var curLength;
easeAmount = 3;
MovieClip.prototype.loadPic = function(pic, id) {
delete burn();
info.text = "";
this.loadMovie(pic);
temp = this._parent.createEmptyMovieClip("temp2", 998);
temp.onEnterFrame = function() {
var t = container.getBytesTotal(), l = container.getBytesLoaded();
bar._width = ((l/t)*100);
var percentage = (Math.round(l/t)*100)+"%";
if ((l/t) == 1 && container._width != 0 && container._height != 0) {
var w = container._width+spacing, h = container._height+spacing;
bar._visible = false;
container._visible = 0;
border.resizeMe(w, h, id);
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.resizeMe = function(w, h, id) {
var speed = 2;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {
this._width = w;
this._height = h;
container._x = this._x-this._width/2+spacing/2;
container._y = this._y-this._height/2+spacing/2;
info._y = Math.round(this._y+this._height/2+spacing/2);
if (this._width>=w) {
burn(255);
container._visible = 1;
info.text = id;
delete this.onEnterFrame;
}
}
};
};
burn = function(ori) {
this.ori=ori;
this.jj = new Color(container);
this.col = this.jj.getTransform();
this.col.rb = this.col.gb = this.col.bb = this.ori;
this.jj.setTransform(this.col);
this.val = 0;
this.col.aa = 100;
this.onEnterFrame = function() {
if (this.val!=this.col.bb) {
this.col.rb = this.col.gb=this.col.bb += (this.val-this.col.bb)/20;
this.jj.setTransform(this.col);
}else {
delete this.onEnterFrame;
}
};
};
function galleryChoice(q) {
pArray = new Array();
tArray = new Array();
iArray = new Array();
my_xml = new XML();
container._alpha = 0;
for (var j = 0; j<curLength; j++) {
this.scroll.th_nav["thmb"+j].removeMovieClip();
}
my_xml.ignoreWhite = true;
my_xml.onLoad = function(loaded) {
if (loaded) {
gallery = this.firstChild.childNodes[q];
curLength = gallery.childNodes.length;
for (var i = 0; i<gallery.childNodes.length; i++) {
pArray.push(gallery.childNodes[i].attributes.source);
tArray.push(gallery.childNodes[i].attributes.thumb);
iArray.push(gallery.childNodes[i].attributes.title);
}
}
delay = setInterval(makeButtons, 50);
};
my_xml.load("gallery.xml");
}
function makeButtons() {
tnNr = 0;
clearInterval(delay);
for (var i = 0; i<tArray.length; i++) {
var thb = scroll.th_nav.thmb.duplicateMovieClip("thmb"+i, 1000+i);
thb.id = i;
thb._x = i%3*50;
thb._y = Math.floor(i/3)*50;
}
loadButtons();
}
function loadButtons() {
var tbox = scroll.th_nav["thmb"+tnNr].box;
tbox.loadMovie(tArray[tnNr]);
temp = this.createEmptyMovieClip("tmp"+tnNr, 999);
temp.onEnterFrame = function() {
bt = tbox.getBytesTotal();
bl = tbox.getBytesLoaded();
if (bt == bl && bt>4) {
nextButton();
delete this.onEnterFrame;
}
};
}
function nextButton() {
if (tnNr<tArray.length-1) {
tnNr++;
loadButtons();
} else {
activateButtons();
}
}
function activateButtons() {
mainButtons();
for (var i = 0; i<pArray.length; i++) {
var but = scroll.th_nav["thmb"+i];
but.id = i;
but.onRelease = function() {
container.loadPic(pArray[this.id], iArray[this.id]);
disButtons2(this.id);
}
}
container.loadPic(pArray[0], iArray[0]);
disButtons2(0);
}
butArray = new Array();
butArray = ["gal1_btn", "gal2_btn", "gal3_btn", "gal4_btn", "gal5_btn", "gal6_btn", "gal7_btn"];
function mainButtons() {
for (var i = 0; i<butArray.length; i++) {
this[butArray[i]].id = i;
this[butArray[i]].onRelease = function() {
galleryChoice(this.id);
disButtons(this.id);
}
}
}
function disButtons2(d) {
for (var i = 0; i<tArray.length; i++) {
if (i != d) {
this.scroll.th_nav["thmb"+i].enabled = 1;
this.scroll.th_nav["thmb"+i].box._alpha = 100;
} else {
this.scroll.th_nav["thmb"+i].enabled = 0;
this.scroll.th_nav["thmb"+i].box._alpha = 50;
}
}
}
function disButtons(d) {
for (var i = 0; i<butArray.length; i++) {
if (i != d) {
this[butArray[i]].enabled = 1;
this[butArray[i]]._alpha = 100;
} else {
this[butArray[i]].enabled = 0;
this[butArray[i]]._alpha = 50;
}
}
}
disButtons(0);
galleryChoice(0);

Thumbnails For Senoculars XML Portfolio --- HELP PLEASE
(FLASH 8)

I only have today to get this done!
PLEASE HELP ME!

I have forged senoculars XML Portfolio into a site, one thing I need to add to make me (and my boss) happy is a scroll function to the thumbs at the bottom. I have everything working super cool except for the scroll, my boss is starting to get antsy in the pantsy...

I am not awesome at AS, But know enough to implement any suggestions you might have.

the effect i am trying to get is similar to the XML gallery with thumbs mousover effect, accept with a little bit o' easing.

The XML is set up differently, so I don't know if I can gut the one and implement it in the other...

Question About Senoculars 3d Engine
Hello, I'm trying to make a regular tetraeder in 3d with seoculars 3d engine. In this engine you have to use make3DPoint (x, y, z)

Now for this tetraeder I want to use a variable s that is the length of one rib. so this was the code I wrote with help from Voetsjoeba


ActionScript Code:
focalLength = 300;make3DPoint = function (x, y, z) {    var point = new Object();    point.x = x;    point.y = y;    point.z = z;    return point;};make2DPoint = function (x, y, scaleFactor) {    var point = new Object();    point.x = x;    point.y = y;    point.scaleFactor = scaleFactor;    return point;};ConvertTo2D = function (pointIn3D, scale) {    var pointIn2D = new Object();    pointIn2D.x = pointIn3D.x*scale;    pointIn2D.y = pointIn3D.y*scale;    return pointIn2D;};RotatePointsAndConvert = function (points, axisRotations) {    var TransformedPointsArray = [];    var sx = Math.sin(axisRotations.x);    var cx = Math.cos(axisRotations.x);    var sy = Math.sin(axisRotations.y);    var cy = Math.cos(axisRotations.y);    var sz = Math.sin(axisRotations.z);    var cz = Math.cos(axisRotations.z);    var x, y, z, xy, xz, yx, yz, zx, zy, scaleFactor;    var i = points.length;    while (i--) {        x = points[i].x;        y = points[i].y;        z = points[i].z;        // rotation around x        xy = cx*y-sx*z;        xz = sx*y+cx*z;        // rotation around y        yz = cy*xz-sy*x;        yx = sy*xz+cy*x;        // rotation around z        zx = cz*yx-sz*xy;        zy = sz*yx+cz*xy;        scaleFactor = focalLength/(focalLength+yz);        x = zx*scaleFactor;        y = zy*scaleFactor;        z = yz;        TransformedPointsArray[i] = make2DPoint(x, y, scaleFactor);    }    return TransformedPointsArray;};var s = 200;cube3D = [make3DPoint(0, -2/3*Math.sqrt(s-1/2*s*1/2*s), 0), make3DPoint(-1/2*s, 1/3*Math.sqrt(s-1/2*s*1/2*s),1/2*s), make3DPoint(1/2*s, 1/3*Math.sqrt(s-1/2*s*1/2*s), 1/2*s), make3DPoint(0, 1/3*Math.sqrt(s-1/2*s*1/2*s), -1/2*s)];cubeRotation = {x:0, y:0, z:0};this.onEnterFrame = function() {    this.createEmptyMovieClip("cube", 1);    cube.lineStyle(0, 0x000000, 100);    if (Key.isDown(Key.LEFT)) {        cubeRotation.y += 0.05;    }    if (Key.isDown(Key.RIGHT)) {        cubeRotation.y -= 0.05;    }    if (Key.isDown(Key.UP)) {        cubeRotation.x += 0.05;    }    if (Key.isDown(Key.DOWN)) {        cubeRotation.x -= 0.05;    }    cube2D = RotatePointsAndConvert(cube3D, cubeRotation);    for (var i = 0; i<cube3D.length; i++) {        cube2D[i].x += 350;        cube2D[i].y += 250;    }        cube.moveTo(cube2D[0].x, cube2D[0].y);    cube.beginFill(0x0000FF,20)    cube.lineTo(cube2D[1].x, cube2D[1].y);    cube.lineTo(cube2D[2].x, cube2D[2].y);    cube.lineTo(cube2D[0].x, cube2D[0].y);    cube.endFill()    //    cube.moveTo(cube2D[0].x,cube2D[0].y);    cube.lineTo(cube2D[3].x, cube2D[3].y);    cube.lineTo(cube2D[2].x, cube2D[2].y);    //    cube.lineTo(cube2D[3].x, cube2D[3].y)    cube.lineTo(cube2D[1].x, cube2D[1].y)};
I dunno why but there seems to be a problem with it cu nothing appears when I push test movie, not even an error.

Anyone have an idea what the problem is?

O and I'm very very noobish at AS so plz don't laugh at me when it's something stupid

Greetz and thanks.

EDIT: O and don't worry about the names that state cube cuz that's only because I edited some code by Voetsjoeba.

Senoculars PHP Form - Not Sending Variables?
hi guys, i've been looking around everywhere and i can't find an working answer for my problem. 1st off, i downloaded the source files for the tutorial, uploaded them to my server to see if they worked:
http://www.nerdperfect.net/test/email.swf
and tested it out and it works fine! BUT!
then i created my own form using the tutorial.
My form is in a movieclip (_root.formMC.form) within a swf file (contactForm.swf) that loads into a container clip (_root.ccontainer) in my main movie (website.swf). The submit button is in the same movieclip as my form moveclip (_root.formMC.submitB).

My form consists of only text Input fields. I've named each field 2 different ways and tested each. first by instance names and then by var names.

the variable names for the fields are as follows:

Quote:




customerName
customerEmail
bandName
bandMemNum
metalType
hailFrom
msn
currentSite
likeDislike
fiveSites
serviceType
metalMuse
fiveCovers
existingContent
mp3s




I've then created a PHP file that emails the variables to my email address and to the user's email address.

here is the php script:

Code:
<?php
//variables aquired from the form
$custName = $_POST["customerName"];
$custEmail = $_POST["customerEmail"];
$bandName = $_POST["bandName"];
$bandMemNum = $_POST["bandMemNum"];
$metalType = $_POST["metalType"];
$hailFrom = $_POST["hailFrom"];
$msn = $_POST["msn"];
$currentSite = $_POST["currentSite"];
$likeDislike = $_POST["likeDislike"];
$fiveSites = $_POST["fiveSites"];
$serviceType = $_POST["serviceType"];
$metalMuse = $_POST["metalMuse"];
$fiveCovers = $_POST["fiveCovers"];
$existingContent = $_POST["existingContent"];
$mp3s = $_POST["mp3s"];
//end variables aquired from the form
//
//auto-responder
$to = $custEmail;
$subject = "?????????? Contact Form - Auto Responder";
$body="Thank You $custName for submiting your request, Mobius received the following information:

Your name: $custName

You are part of a band named $bandName which has $bandMemNum members and you play $metalType style music

Your Email Address Is: $custEmail

You Hail From: $hailFrom

Your MSN email address is $msn so we can chat business.

Your current web site is: $currentSite

You said you like and dislike this about your current website: n
$likeDislike. n
Your 5 favorite websites are:

$fiveSites

You requested this service of Mobius:

$serviceType

You said that when you think of metal, these images come to your mind:

$metalMuse

Your 5 favorite Album covers are:

$fiveCovers

When asked if you have any existing content, logo's etc that you would like us to add to your site, you listed:

$existingContent

Your site will definantly be way narlier if you add you tunes to it, do you have MP3's you can contribute? You said:

$mp3s

Thank you again for your request. You should be contacted within 48 hours of Mobius recieving your email.
";
mail($to,$subject,$body);
//end auto-responder

//email send to nerdperfect
$to_2="????????????@gmail.com";
$subject_2="??????????? Contact Form - Customer Request Enclosed";
$body_2="$custName has submited a request:

Customers name: $custName

$custName's part of a band named $bandName which has $bandMemNum members and they play $metalType style music

$custName's Email Address Is: $custEmail

$custName Hails From: $hailFrom

$custName's MSN email address is $msn so we can chat business.

$bandName's current web site is: $currentSite

$custName said you like and dislike this about your current website: n
$likeDislike. n
$custName's 5 favorite websites are:

$fiveSites

$custName requested this service of Mobius:

$serviceType

$custName said that when $custName thinks of metal, these images come to $custName's mind:

$metalMuse

$custName's 5 favorite Album covers are:

$fiveCovers

When asked if $custName has any existing content, logo's etc that they would like us to add to their site, $custName listed:

$existingContent

$bandName has MP3's they can contribute?

$mp3s

Contact $custName within 48 hours from recieving this email.
";
mail($to_2,$subject_2,$body_2);
//end email send to nerdperfect
the actionscript on the submit button is:

Code:
on (release) {
form.loadVariables("contactForm.php","POST");
}
the confirmation that the email was sent/actionscript is on the MC called form (_root.formMC.form):

Code:
onClipEvent (data) {
_parent._parent.gotoAndPlay("11");
}
Now, here's my problem. The form does send the email, this is what i recieve:

Quote:




has submited a request:

Customers name:

's part of a band named which has members and they play style music

's Email Address Is:

Hails From:

's MSN email address is so we can chat business.

's current web site is: http://

said you like and dislike this about your current website: n
. n
's 5 favorite websites are:



requested this service of Mobius:



said that when thinks of metal, these images come to 's mind:



's 5 favorite Album covers are:








When asked if has any existing content, logo's etc that they would like us to add to their site, listed:



has MP3's they can contribute?



Contact within 48 hours from recieving this email.




So what gives, obviously the sumbit button is calling up my php.script and my php scriipt is sending the email, but where are the variables?

I've added the FLA to look at. Keep in mind this fla produces a swf that loads dynamicly into a section swf that loads into a main swf so the total path to the form would be something like this:
mainmovie.swf.ccontainer>
contact.swf.contactcontainer>
strippedcontactForm.swf.contactFormMC.formMC.form

if that makes sense (i know that wouldn't work in AS this path is more a windows meets AS )

If any of you can figure this out i will HUG the snot outta you!!!!

Lostinbeta And Senoculars XML Drivin Navigation
Hey guys, first off thanks, great job on this. However I'm a little confused. Why doesn't my links work? When i test my flash movie it outputs the correct url, but for some reason the links just don't work. grrr. Not sure what I am doing wrong, I really don't knwo XML very well at all so maybe I am making ht elinks wrong in the script.

here's what I got for the XML file:


PHP Code:



<?xml version="1.0"?>
<MENU>        
    <ITEM NAME="Home" URL="index04.htm" />
    <ITEM NAME="Publications">
        <SUBITEM NAME="Mail" URL="mail.asp" />
        <SUBITEM NAME="Forms" URL="sublink22.html" />
        <SUBITEM NAME="Correspondence" URL="sublink23.html" />
        <SUBITEM NAME="Publications" URL="sublink23.html" />
    </ITEM>
    <ITEM NAME="Links">
        <SUBITEM NAME="Army Library Links" URL="sublink21.html" />
        <SUBITEM NAME="Other Library Links" URL="sublink22.html" />
    </ITEM>
    <ITEM NAME="FAQ's">
        <SUBITEM NAME="View FAQ's" URL="sublink21.html" />
        <SUBITEM NAME="Post A New FAQ" URL="sublink22.html" />
    </ITEM>
    <ITEM NAME="Site Map" URL="link1.htm" />
    <ITEM NAME="Contact">
        <SUBITEM NAME="Help With Site" URL="sublink31.html" />
        <SUBITEM NAME="Questions" URL="sublink32.html" />
        <SUBITEM NAME="Suggestions" URL="sublink32.html" />
    </ITEM>
</MENU>



I only tried the first two and couldn't get them to work so I copyied your code, and still no dice.

index04.htm is in my folder, it shoudl work. I also tried inserting full url links and still no good.

Any help would be highly appreciated

How To Close Folders In Senoculars Xml Tree
Hi,
I am trying to use senocular's exellent xml based tree view code( http://www.kirupa.com/web/xml/exampl...4ASclasses.htm )for one of my projects. What I would like to implement it the way senocular is proposing in his note "Class listing lag" so that the folder will be unfolded from the beginning. I have no problems to load the icons when folded, but how making the folders unfolded from the beginning? I have been pulling my hair for several days now, but the double recursion make it very hard for me. Have anybody been doing this or know how to succeed?

/Frank

Senoculars Layout Class And Error 1119
Hello,

I was playing around with Senoculars Layout Class again, but ran into a wierd problem.

Code that I'm using is below. The Error I'm getting is that the 'children' property of the _layout instance is undefined

Quote:




DESC:
1119: Access of possibly undefined property children through a reference with static type com.senocular.display:LayoutConstraint.
Source:
_layout.children = new LayoutConstraint();




.....but that's not so, as the Layout Class has a property called children.

I can bypass the strict compiler using _layout["children"], but I'm trying to understand why this is going on. am I missing something?


ActionScript Code:
function setupLayout():void
{
    LayoutManager.initializeAutoUpdate( stage );
   
    _layout = LayoutManager.registerNewLayout( this );
    _layout.percentWidth = 1;
    _layout.percentHeight = 1;
   
    _layout.children = new LayoutConstraint();
}

Senoculars Event Bubbling With Buttons Issue
Here's some neat coding developed by senocular (thanks a lot!), that "allows child clips to receive events despite the fact that a parent might make use of them as well, something not possible with the normal convention of handling button events where no child movie clip ever receives button events if a parent has any button event handlers defined for it."

Yeah! It's neat.

But I can't really figure out how to attach an event to an mc called "child_next" within "parent1".

Can anybody help me out?









Code:
import com.senocular.events.*

function handleEventMethod(eventObject:ButtonEvent):Void {
// trace event
if (eventObject.type != "onMouseWithin") trace(eventObject.type +"("+this+")");

// stop event from bubbling up to parent clips if this clip is parent2.child
if (this.target == parent2.child) eventObject.stopPropagation();

// react based on which event is being received.
switch(eventObject.type){
case "onRollOver":
case "onDragOver":
// this.target.gotoAndStop(2);
this.target.play();
break;
case "onDragOut":
case "onRollOut":
case "onReleaseOutside":
// this.target.gotoAndStop(1);
this.target.play();
break;
case "onMouseWithin":
break;
//
}
}

// clips to receive events from ButtonEventHandler
var clips:Array = [parent1, parent1.child_prev, parent1.child_next];
var clip:MovieClip;
var buttonEventObj:ButtonEvent;

// allow events to pass through despite overlapping
ButtonEventHandler.overlapBlocksEvents = false;

// assign handleEventMethod as handleEvent handler for each clip in clips
for (clip in clips) {
// get ButtonEvent object for each clip and assign handleEvent function
buttonEventObj = ButtonEventHandler.getEventObject(clips[clip]);
buttonEventObj.handleEvent = handleEventMethod;

// for parent1, set overlapping to block events
if (clips[clip] == parent1) buttonEventObj.overlapBlocksEvents = true;

// enable the hand cursor by providing a null onPress event handler
clips[clip].onPress = null;
}

Senoculars 'Perlin Flag Wave' To AS2 Class
I've been trying to encapsulate Senoculars brilliant PerlinNoise Flag Wave example into a self contained AS2 class.

The original Fla example is here:

http://www.senocular.com/flash/source.php?id=0.188

I've tried to remove the need for having displacement Maps and bounding boxes in the target movieClip, by dynamically drawing them within the class itself.

I have so far succeeded and the effect works almost perfectly. However, the original example uses the alpha values of the displacement map to determine where, and how much displacement should take place. In my version though, I can't seem to tie the alpha values to the displacement. The noise happens uniformly across the displacement map, no matter how much alpha there is. (Should be none from the left edge where there is 100% alpha).

My Class is contained below, and still needs a lot of refactoring and openness to dynamic values, but if anyone can help me figure out why the displacement seems uniform, I'd very much appreciate it.


ActionScript Code:
/** * @author d.robert hall */ import com.bourre.commands.Delegate;import com.bourre.log.PixlibStringifier;import com.bourre.transitions.FPSBeacon;import com.bourre.transitions.IFrameListener;import flash.display.BitmapData;import flash.filters.DisplacementMapFilter;import flash.geom.Matrix;import flash.geom.Point; class com.skivecreative.effects.FlagRipple     implements IFrameListener{    private var speed:Number;    private var channel:Number;    private var baseX:Number;    private var baseY:Number;    private var octs:Number;    private var seed:Number;    private var stitch:Boolean;    private var fractal:Boolean;    private var gray:Boolean;    private var flapX:Number;    private var flapY:Number;    private var mode:String;    private var offset:Point;    private var displaceBitmap:BitmapData;    private var displaceFilter:DisplacementMapFilter;    private var ramp:MovieClip;    private var noiseBitmap:BitmapData;    private var shift:Matrix;    private var onEnterFrameHandler:Function;    private var target:MovieClip;    private var displace:MovieClip;    private var perlin:MovieClip;    private var ripple:MovieClip;    private var maxWidth:Number;    private var maxHeight:Number;    private var clampBox:MovieClip;    /* CONSTRUCTOR ********************************************************************************/    public function FlagRipple( target:MovieClip, maxWidth:Number, maxHeight:Number ) {        this.target = target;        this.maxWidth = maxWidth;        this.maxHeight = maxHeight;        speed = 3; // speed at which noise is shifted (causes flap)        channel = 1; // red - red used to displace pixels along         baseX = 80; // size of noise in x axis        baseY = 0; // size of noise in y axis        octs = 1; // noise functions for noise (smaller = faster)        seed = 20; // random seed for noise        stitch = true; // stitching makes the noise wrap making it easy to repeat        fractal = true; // use fractal noise        gray = false; // grayscale is not used because the red channel is        flapX = 0; // power of pixel displacement along x axis        flapY = 20; // power of pixel displacement along y axis        mode = "clamp"; // clamp the image so none of the original is seen        offset = new Point( 0, 0 ); // displacment map offset                init();    }    /* PUBLIC METHODS *****************************************************************************/    public function init()    {        ripple = target.ripple_mc;                drawDisplacementMap();        setClampBox();        displaceFilter = new DisplacementMapFilter(             displaceBitmap, offset, channel, channel, flapX, flapY, mode );                    shift = new Matrix();                noiseBitmap = new BitmapData( 500, 1 );        noiseBitmap.perlinNoise( baseX, baseY, octs, seed, stitch, fractal, channel, gray );                FPSBeacon.getInstance().addFrameListener( this );        onEnterFrameHandler = Delegate.create( this, update );    }        public function onEnterFrame () : Void    {        onEnterFrameHandler();        }        public function flush () : Void    {        ripple.removeMovieClip();        ripple = target.ripple_mc;        ripple.swapDepths( target.getNextHighestDepth() );        setClampBox();    }        /* PRIVATE METHODS ****************************************************************************/    private function setClampBox () : Void    {        clampBox = ripple.createEmptyMovieClip( "clampBox", ripple.getNextHighestDepth() );        clampBox._x = -( maxWidth / 2 );        clampBox._y = -( maxHeight / 2 );        clampBox.moveTo( 0, 0 );        clampBox.lineStyle( 1, 0xFF0000, 0 );        clampBox.lineTo( 0, maxHeight );        clampBox.lineTo( maxWidth, maxHeight );    }        private function drawDisplacementMap () : Void    {        displace = target.createEmptyMovieClip( "displace_mc", target.getNextHighestDepth() );        ramp = displace.createEmptyMovieClip( "ramp", displace.getNextHighestDepth() );        displace._x = -60;        displace._y = -25;                var dFillType:String = "linear";        var dColors:Array = [0x800000, 0x800000];        var dAlphas:Array = [100, 0];        var dRatios:Array = [255, 0];        var dMatrix:Object = {matrixType:"box", x:0, y:0, w:180, h:50, r:0/180*Math.PI};        ramp.lineStyle(1, 0x000000, 0);        ramp.beginGradientFill( dFillType, dColors, dAlphas, dRatios, dMatrix );        ramp.moveTo( 0, 0 );        ramp.lineTo( 180, 0 );        ramp.lineTo( 180, 50 );        ramp.lineTo( 0, 50 );        ramp.lineTo( 0, 0 );        ramp.endFill();                perlin = displace.createEmptyMovieClip( "perlin", 1 );        displaceBitmap = new BitmapData( ramp._width, ramp._height );                    displace._visible = false;    }        private function update () : Void    {        shift.translate( speed, 0 );        perlin.clear();        perlin.beginBitmapFill( noiseBitmap, shift );        perlin.moveTo( 0, 0 );        perlin.lineTo( ramp._width, 0 );        perlin.lineTo( ramp._width, ramp._height );        perlin.lineTo( 0, ramp._height );        perlin.lineTo( 0, 0 );        perlin.endFill();        displaceBitmap.draw( displace );        ripple.filters = [displaceFilter];    }        /* DEFAULT ************************************************************************************/    public function toString() : String    {        return PixlibStringifier.stringify( this );    }        public function destroy()  : Void    {        FPSBeacon.getInstance().removeFrameListener( this );    }}

Brush Tool And Eraser Tool Troubles
i've been using flash for over a year and a half and i've NEVER came across this problem.

when i go inside a movieclip to edit it, it won't let me use the brush tool or eraser.

unless i draw a circle around the area i want brushed or erased.

what the crap did i do?

keep in mind that it works normal when i'm on the main timeline.

thanks for any help!

-nolen

Fill Tool - THE MOST ANNOYING TOOL EVER
I'm trying to draw stuff, but the fill tool never works when I want it to. I try to fill something in, so I mess with the options till it works, but sometimes.. I CANT FILL IT IN AT ALL! Soo, then I have to do it manually which is really annoying. I CANT WORK LIKE THIS! Is there any way to make it not stupid?

A Simple Zoom From Senoculars Advance Zoom-and-pan Script
Hi guys,

I've tried to modify the zoom script on senoculars website to a total simple zoom function.

http://www.senocular.com/flash/source.php?id=0.76

I want to use the slider, but without the pan-function and zooming in on different places on the main window.

Only thing I need is the slider to zoom in on the center of my main movieclip. I need to have a max. and min. _xscale and _yscale...

Can anybody help me out here... It should be pretty simple, but never used the slider thingy before, so I'm all lost here...

thanks

Line Tool/ Pen Tool
hello all i am obviously new to flash and my question is this. i want to be able to draw lines with the line tool and pen tool that do not have rounded edges. i want the edges to be flat with two sharp corners. is this at all possible using the line tool or pen tool? thank you.

Pen Tool
You know when you draw something with the pen tool, and then scale it smaller the lines start to bunch up and mess up the drawing.
Is there a way of keeping that from hapening?
Thanx!!!

The Pen Tool
When I use the pen tool in Illustrator, I have the option of creating lines, where the ends are sharp and boxy.

When I copy/paste into Flash 5, the ends of the lines turn soft and rounded. Is there any way to get the ends sharp and boxy?

If you need clarification of what I mean, I can send you a *.gif by email.

Thanks.

Using The Pen Tool
When I use the pen tool in Illustrator, I have the option of creating lines, where the ends of the lines (they call 'caps') are sharp and boxy.

When I copy/paste into Flash 5, the ends of the lines turn soft and rounded. Is there any way to get the ends sharp and boxy? I haven't used Flash 6 yet, but has this feature been added to Flash 6?

If you need clarification of what I mean, go to this page:
http://www.penque.com/tutorial.gif

Pen Tool
I have tried Preferences--> Editing Pen Tool--> Smooth Curves to draw a very curvy lines... it doesn't help at all... at last the curvy lines that I drew would change to staight lines? Why??? How to solve this problem?

FTP Tool
Hi

Anyone recommend an excellent FTP tool. I have been using FTP Explorer for a while now but it isn't really that good but I have just never got around to doing anything about it.....???

Pen Tool
Does anyone have any tricks on using the anchor feature in the pen tool? I find it if not a user friendly as it is in Flash.


http://www.spybot-search-destroy.com

Pen Tool
Hi I'm using the pen tool to edit some think black lines and just wondered if I can change the colour of the pen tool as I am finding it hard to see what state I am in.. eg when it is hoving over a point I can't see what state it is displaying as the pen is black and so is the line.
cheers
Frances

What's The Right Tool For The Job?
I was thinking about a app where a user could take their picture load it to the website and then see what they would look like in a clothing item, like a shirt. Now I'm imagining you would need sliders on the shirt to make it size correctly, to the picture, also the shirt whould then have to be draggable. Is this something thats do able in FLASH or is there another app out there that might be better suited?

[F8] Pen Tool
Hail doods.
I wanna ask whether it's possible, to change the manipulator of Pen tool in Flash 8. Like in Photoshop, when you hold ALT and click you can adjust pen tool's wave. Cuz here's what I wanna do.

I want to continue the curve, as indicated with red line, not as green makes me.

FPS - Tool Bar
On the same bar as the onion skin button is a FPS number. It changes when the playhead is run even though I have set my frame rate. What does it means?

Tool Tip
I have serious of buttons. Those buttons are done as icons without names. so is that possible in flash to give tool tip, below the cursor, as it is done in softwares.(i know the option of givining the required text in the over state, it will not be below the cursor.)
do help me to perform this task.
thanx

CS3 Pen Tool
Has anyone been able to get the pen tool in CS3 to automatically fill a closed path, as it did in Flash 8? I went through preferences, but it didn't seem that there was an option to turn this on.

-Adam

The Pen Tool
I have a real newbie question. I have line with two anchor points. I want to add an anchor point to a line so I can do some tweeks. How the heck do you do that with flash.

Tool Tip HELP PLEASE
i try to write in the tool type box more text like :

(Please note - you must complete this last step to become a registered
member. You will only need to visit this url once to activate your
account.)
but its not working.
how i enlarge the tooltip please

tnx

Best Exe Tool
Which is the best tool for cross-platform(win/mac) flash executable. I have heard about mprojector and zinc. Which one is the best? Can Director do this job?

Is There Any Tool For Me?
Hello everybody, there are a lot of sites that offer different videos. What I do, is collect the most interesting videos that are available online. Often, the ones I check out are good but many times I land up on a page that has no video or nothing to match my interest. I am looking for a solution to this, a tool that can help me to make my browsing more specific and can prevent the openings of non-related sites.

Tool Tip
hi all
does anyone know where i can get the toop tip that is used on the macromedia website. for example on the login page when you roll over the speech bubble help tip comes out, also does anyone know how they get the tooltip to work in red when you have fill in the grid wrong
cheers

Tool Tip
I have serious of buttons. Those buttons are done as icons without names. so is that possible in flash to give tool tip, below the cursor, as it is done in softwares.(i know the option of givining the required text in the over state, it will not be below the cursor.)
do help me to perform this task.
thanx

Paint Tool
Who ever seen any paint redactors, that made in flash to
use in web? I v seen one, that you can paint curves , I mean like in Paintbrush. The problem is now to save
this picture somehow on disk, so that I can attach it for example to site also.(like result of the work) It can be
just seemple paint redactor with one color(but as I now color is not a problem)
Tnank everybody

Pen Tool Question 1
How do you change a straight line to a curved line with the pen tool? Thanks,

Pen Tool Question 2
Along with the basic pen tool question I asked earlier, does anyone have a "quick list" of helpful pointers on ways to utilize the pen tool? I have not used it much before, and would like to get a better understanding of what it can do and the uses for it. Thanks,

One Last Pen Tool Question:
Once you insert a couple points along a line using the pen tool, is it possible to drag those points from their original location? For instance, if I wanted to move the top point on my line a little to the right (and lengthen the line from the previous point), how would I do that? Thanks again,

Where's The Masking Tool?
I haven't been able to locate the mask function. I want to create a banner logo that stays within fixed boundaries, but I need to mask off the outer areas of the animation.

Help?

Eraser Tool
Hi

Does anyone know how i can make a rectangular selection in wich i can use the eraser tool, like in photoshop?

thx

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