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




A Filter When I Get Information From A Page



I have a flash that read from a PHP file (The PHP fil read a MySQL database)
and I have this code


PHP Code:


myData.load("read.php") 



But If I want to send some information to the SQL???

I have try with


PHP Code:


myData.load("read.php?id=1234") 



but that dont seem to work?



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 04-05-2006, 09:29 PM


View Complete Forum Thread with Replies

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

Page 2 - Please Help: DuplicateMovieClip With Filter Effects
Quote: Originally Posted by Tann San you would not belive the amount I have drunk tonight, by most scientifical estimates I should be lying up in a hospital right about now, anyhow, I shall attempt to answer ye questions.
those are well deserved drinks for all of your help throughout this forum.
thank you!!

Quote:
1) "mc" is going to be different over time. You have set it up in function which is a child function of a particular MovieClip. What you should do is point it to this._parent.mc and then do the same when you're setting mc i.e. when a clip is selected. Personally I would either set a single variable each time a clip is selected and then prior to setting that variable re-scale the old clip or I'd create a function that checked all clips to see which where scaled to the big value.
actually no function was needed.
i applied this method.


PHP Code:





var scaleToggle:Boolean = true;
var scaledMC:String;
var mcName:String; //<<====================

mcTest.onRelease = function () {
    trace (scaledMC);
};

function setUpContainer (new_depth:Number):Void {
    var mc:MovieClip = this.createEmptyMovieClip ("container" + new_depth, new_depth);
    var labelFmt:TextFormat = new TextFormat ();
    labelFmt.font = "Arial";
    labelFmt.color = 0x000000;
    labelFmt.size = 10;

    var label:TextField = mc.createTextField ("label", 1, 0, 0, 0, 0);
    label.html = true;
    label.autoSize = "right";
    //label.border = true;
    label.setNewTextFormat (labelFmt);

    mc.beginFill (0xf0f0f0);
    mc.lineTo (width,0);
    mc.lineTo (width,height);
    mc.lineTo (0,height);
    mc.lineTo (0,0);
    mc.endFill ();
    mc.filters = [new DropShadowFilter (2, 45, 0x000000, 0.9, 5, 5, 1, 3, false, false, false)];

    label._x = (mc._width * 0.5) - (label._width * 0.5);

    var mcX:Number;
    var mcY:Number;
    var twSpeed:Number = 1;
    var twStyle = Elastic.easeOut;

    mc.onRelease = function () {
        if (scaleToggle) {
            scaleToggle = false;
            mcX = mc._x;
            mcY = mc._y;
            mc.swapDepths (100);
            var mcMoveUpX:Tween = new Tween (mc, "_x", twStyle, mcX, Stage.width * 0.5, twSpeed, true);
            var mcMoveUpY:Tween = new Tween (mc, "_y", twStyle, mcY, Stage.height * 0.5, twSpeed, true);
            var mcScaleUpX:Tween = new Tween (mc, "_xscale", twStyle, 100, 300, twSpeed, true);
            var mcScaleUpY:Tween = new Tween (mc, "_yscale", twStyle, 100, 300, twSpeed, true);
            mcName = mc._name;
        } else if (scaleToggle == false && mcName == mc._name) { //<<====================
            var mcMoveDownX:Tween = new Tween (mc, "_x", twStyle, mc._x, mcX, twSpeed, true);
            var mcMoveDownY:Tween = new Tween (mc, "_y", twStyle, mc._y, mcY, twSpeed, true);
            var mcScaleDownX:Tween = new Tween (mc, "_xscale", twStyle, 300, 100, twSpeed, true);
            var mcScaleDownY:Tween = new Tween (mc, "_yscale", twStyle, 300, 100, twSpeed, true);
            scaleToggle = true;

        }
    };








Quote:
2) Tween them to Stage.width * 0.5 and Stage.height * 0.5.
actually this did not work.
do you think executing the script above inside an empty mc and then centering that mc would be a more simple approach?

Quote:
3) this.textfield._x = (this.square._width * 0.5) - (this.textfield._width * 0.5); that is by having the textfield width as some tiny value like 10px at the start and then assigning the text to it and then finally using autoSize = "left" on it (maybe "right").
this was a bit confusing. because with the mc.createTextField, the width and height settings set to 0, 0 with autosize set to either left or right it does not work.
if autosize is disabled then i would have to set the height and width settings to an appropriate size to accommodate the test.

Accessing Page Information
Does anybody know a way a flash banner can pull the page title from the html page it loads on and display the title in the flash?? I have a banner running on a shared border in frontpage, I would like the banner to read the page title tag from the page and display the page title in the banner...

Send And Receive Information From A ASP Page
I have a idea how to send information to a ASP page.
But how do I receive information nice in to my flash?

I want to build a searchengine in flash and use a ASP file so I can connect to a database.

is going to be very basic, a textinput and something nice that list everything the ASP file can find

Send Form Information Without Leaving The Current Page
I have developed a Flash website with a contact us form. Does anyone know a way to submit the form and send the information to a PHP page WITHOUT leaving the current page that contains the Flash file? I hope this makes sense. Any help would be great! Here is the code I have on my submit button, but It doesn't seem to work (ctName is the name of the input text box for the name of the person):

on (release) {
if (ctName==null || ctPhone==null || ctEmail==null || ctMessage==null) {
contactError._visible = true;
} else {
var sendVars:LoadVars = new LoadVars();
sendVars.Name = ctName;
sendVars.Phone = ctPhone;
sendVars.Email = ctEmail;
sendVars.Message = ctMessage;
sendVars.sendAndLoad("contactUs.php", resultVars, "POST");
contactError._visible = false;
contactSubmit._visible = true;
btnReset._visible = false;
btnSubmit._visible = false;}
}

Sending Information From Input Text Area To ASP Page
Hi everyone, I am sending a page with a few input text boxes to a ASP page that has already been established. Is there some brilliant person out there who could post a sample script either using Get or Post? Thanks!

Help :contact Us Page...sign Up For News Letter, Getting Information From User
is there any tutorials...on making a sign up for newsletter page
or sign up to to recieve our catalog by mail...

basically creating a form to get information from user...


tutorials...for any of these pages?

i don't know how to collect the data...once the user enters it and submits it ...where does it go ? i need to learn this to.

what should i read up on to learn this ?
tutorials ?
help.
thank you in advance

FlashVars And Passing Login Information From .NET Sign In Page (StoreFront)
Hello,

I have an application that runs on Flash Communications Server MX. Now, I want to be able to pass the authentications from my signin page, which is the storefront sign in page (ASP.NET), into my flash conferecing application in order to assign unqiue usernames during the session. (use session variables in some crazy way with flash vars?!!?!?)

I am unsure, any pointing to tuts etc. on this issue as well apprcieted, thanks!

Tryintg To Set Up Password Page With No Hard-coded Information In Flash Movie
What I'm trying to do is set up a password checker in MX that has no hard-coded information in the flash movie, perhaps using two input text fields, putting the two entered values together, turning this into a variable and then comparing it the names of some .txt files.

Is that possible, or would something like that have to use php/xml or some other exterior language?

As a start, I'm thinking of setting up the adding together of the two variables like this:

code:
if ("+[_root.name.text]+[_root.password.text]+") {
}


but I'm not sure about the best way to compare these values to some other variable values without hard coding them into the script.

Any ideas, anyone?

Bitmapdata, Apply Filter To One Channel? Realease A Filter
Hi there, I have two question:

Is it possible to apply a filter only to one channel or to access only one channel?
I've found somewhere:
Display.BitmapData.Channel.ALPHA
Is it something we can access at runtime?


When I appply a filter to a Bitmapdata, the Bitmapdata isn't really modified but just filtered, so if for example I copy one of its channel to another bitmapdata, I copy the source bitmap without the filter...
What I'd like to do is "release" the filter so it definetely modify the image. Is it a function to do so or can I only perform this by doing a screenshot of my MovieClip?


Thank you inadvance for your help.

Colormatrix Filter And Blur Filter Tween
Last edited by sks447 : 2006-10-17 at 15:11.
























I want to have a picture fade from blurry and grayscale to sharp and colorized. I have the blur to sharp part working ok. I have the grayscale to color to working ok. The only thing is the filters dont work together. Ive tried to push one into another with no luck yet. You can see the comments in the code below. Thanks.

ActionScript Code:
function blurFunction(myVar) {
    // init what movieclip to blur
    if (myVar == undefined) {
        myVar = promoContainer.p1;
    }
    // BLUR FILTER     
    import flash.filters.BlurFilter;
    import flash.filters.BitmapFilter;
    import flash.filters.ColorMatrixFilter;
    var blurFilter:BlurFilter = new BlurFilter(0, 0, 3);
    desaturation = 1;
    var filterArray:Array = new Array();
    filterArray.push(blurFilter);
    var blurX:Number = 100;
    var blurY:Number = 100;
    onEnterFrame = function () {
        prevPromo._visible = false;
        nextPromo._visible = true;
        if (desaturation>=1) {
            des = -0.03;
        } else if (desaturation<=0) {
            des = 0;
            delete (onEnterFrame);
        }
        desaturation += des;
        // color matrix 
        //myVar.filters = new Array(getDesaturationFilter(desaturation)); <---- I can have this....
        blurX -= 10;
        blurY -= 10;
        blurFilter.blurX = blurX;
        blurFilter.blurY = blurY;
        // blur filter 
        //myVar.filters = filterArray; <---- Or I can have this but not both.......
        if (blurY<=0) {
            blurY=0;
            blurX=0;
            //delete (onEnterFrame);
        }
    };
}
function getDesaturationFilter(t:Number):BitmapFilter {
    t = t != undefined ? t : 1;
    var r = 0.212671;
    var g = 0.715160;
    var b = 0.072169;
    trace("colormatrixfilter called");
    return new ColorMatrixFilter([t*r+1-t, t*g, t*b, 0, 0, t*r, t*g+1-t, t*b, 0, 0, t*r, t*g, t*b+1-t, 0, 0, 0, 0, 0, 1, 0]);
}

[CS3] Inputting Information And Retrieving That Information In Flash
I’m using Flash CS3 Pro and I need to create a form in which a user can input data such as their name, email and other information. Then when the user returns, they are able to input their e-mail address and pull up their information (name and other submitted data). I have search all over for a tutorial but I have had no success. I would greatly appreciate it if someone could show me how to create such a form or let me know where I can find a tutorial or information to create one. Thanks in advance.

Inputting Information And Retrieving That Information In Flash
I’m using Flash CS3 Pro and I need to create a form in which a user can input data such as their name, email and other information. Then when the user returns, they are able to input their e-mail address and pull up their information (name and other submitted data). I have search all over for a tutorial but I have had no success. I would greatly appreciate it if someone could show me how to create such a form or let me know where I can find a tutorial or information to create one. Thanks in advance.

Filter
How to make a filter, do I have to draw it, or maybe there is special Action Script.

Hue Filter And AS?
Hi guys,

I'm trying to get to grips with adjusting filters on the fly with actionscript. However I am simply lost..... Specifically I am trying to adjust the hue of a movieclip called box_mc which is on the root of the movie. I have no idea how to do this, and the help in flash has further confused me even more.

Despite my embarassment I am asking for any useful tips or advice.

Any help would be appreciated,

Steven.

XML Filter
I have a photogallery that initially loads all of my images with thumbnails. What I want is to have a checkbox next to my thumbnails that filter out certain images as well as their thumbnails. I'm not sure how to do this.

Do I have to reload the XML and with the function loading each thumbnail or is there a way to do this that simply hides/shows those images and thumbnails? I'm guessing that I have rerun through the xml so that my thumbnails are evenly spaced apart. What's the fastest way to go through the images and filter out the ones I don't want to show?

Help Kirupa!

Filter
Hi

I want to dynamicaly change the filters

For example imagine we have a picture and we want to blur it or drop shadow and etc... BUT not in our work space... I want to have a dynamic one and change the filters in my swf file.something like scrolling and changing the filters from our swf file.


Please help me


Best regards
Ali

Filter?
how can i do this:

I have 2 text boxes, original and filtered.

original is an input text box and when u type for example "what the hell" in it, and u want "hell" to be filtered,, it will come up as "what the bleep" in the filtered text box...?

thanks.

[AS3] Filter Bug
I have just run into a bug when using filters in AS3. I'm not sure if this is just related to the DropShadowFilter class or not but you can see it here. Drag 'n' drop the blocks and you will see that the drop shadow isn't cleared from the screen until the bounding box of another display object is moved over it.

I was just adding some extra 'spice' to my drag manager class when I ran into the problem. What the drag manager does is remove a component from it's original display list and add it to the stage, this allows the component to be freely dragged around from display list to display list.

However, it seems that Flash is getting confused when a display object is moved from one display list to another. Does anyone else know about this problem, or does anyone know how to 'fix' it?

Language Filter
Hi actionscript gurus... I'm lost again.
Pretty easy I hope. How can you (and is it possible to) filter an input text form in flash.
I currently have something like this:


Code:
} else if (comment eq "***" or comment eq "***" or comment... etc...){
status = "Please no - bad words !";
But this only seems to work if I type "***" in the text field, and only "***". So if I type "you're such a ***" It won't recognise it.
I there a way to make it search the whole text field for a certain word?
Thanks,
-Laz-

Greyscale Filter
Does anyone know a way of using the advacned color settings to make symbols appear greyscale...

Thanks

Gareth

Photoshop Filter
anyone knows this photoshop filter name in english "gerissene kante"?

Flash IP Filter
Hello
i am trying fo make an IP filter but i have bumped into some difficulties

at my movie at the first frame i have code loadVariablesNum("ip.php",1);
_level1.onData=function(){
gotoAndPlay(this.myvar);
}

and at my ip.php

<?php
$CheckIP = $_SERVER["REMOTE_ADDR"];

if ($CheckIP =='217.11.238.194') { $myvar="3"; }
else{ $myvar="500"; }

?>

but unfortunatlz i have some mistakes here so this system does't work i need some help on this one
Any advices are welcome

Thanks!

Filter Effects
Any help would be very, very welcome,

I'm a bit new to this fangled flash thingy. My background is PhotoShop and photography, video and still.

I've notice in flash there are some that apply "shimmer" and "ripple" effects to photos..

How is this done, it looks like a photoshop plugin, but then exported to flash...

Can anyone shed some light on this?

Thanks......

Filter Funk
I'm trying to filter a v2 dataset with the following function:
Code:
function selectCoverage( option:String ):Void {
trace( "Coverage option selected: " + option );
xmlDataSet.filtered = false;
if( dataFilter == option ) {
dataFilter = "";
} else {
xmlDataSet.filtered = true;
xmlDataSet.filterFunc = function( item:Object ) {
trace( item.coverage.attributes.type == option );
return( item.coverage.attributes.type == option );
}
dataFilter = option;
}
ListBox.refreshFromSources();
}
The idea is that the user clicks on one of three buttons, and the data is than filtered to show only the fields with a particular attribute set to that value (passed to the function as the variable "option"). A listbox (called, imaginatively enough, "ListBox") is then refreshed with the name of each record. Both the dataset and the list are sorted alphabetically.

That's the theory, anyway. What actually happens is that all the records remain visible, but the sorting in the list gets toggled on and off each time you press one of the three buttons. I know the function is returning the trues and falses correctly, because I had trace statements in there to test it.

If anyone has any thoughts on this, it would be very helpful.

Rys

Filter Transitions
Hello, can anyone give me a code example of transitioning the filters? is there a way to work with the filters using transition codes similar to the mx.transitions of mx 2004? it would be great if you could give a start value and end value for the parimeters of the filters such as blur/glow, and a time value. if there is examples of this, please post here! thanks.
quentin

Blur Filter
Hey everyone,
I am trying to get my file so that when I click a button named "button 2" the instance named "big" gets a blur filter, slides to the right 100 pixels, and then the blur filter turns off....... Can anyone PLEASE help? I've been trying to do it all night... Thanks in advanced!


-Joe

PLEASE HELP Trying To Filter XML List Box?
I am using Flash MX Pro 2004 and I am trying to populate a list box with XML data using the standard XMLConnector etc - of which I am having

no problems.

The problem I'm having is trying to filter this data. It's driving me round the bend. I've tried all the "use path expression" variations i can think of still

with no joy.

I have attached a sample "trips" application which I built from a tutorial. It is not the application that i'm working on but the principles are exactly the same (i.e need to filter an XML list box).

In the sample that I have attached I would like to filter the Trip list box to only contain the trips where the travel xml field = "boat".

Anyone have any Ideas I'm really struggling?

I had to rar then zip the file because the max size is 300Kb and winzip only managed 450Kb and rar was an invalid file upload format.

Or there is a link here..XMLFilterHelp.zip

Thanks in advance people!

Blur Filter
Hi,

i am trying to use the blur filter.. myMc is blurred fine untill i load a new swf into it, than the blur filter is removed.. is there any way to avoid this?


PHP Code:



  import flash.filters.BlurFilter;
var filterArray:Array = new Array();
var filter:BlurFilter = new BlurFilter(100, 100, 2);
filterArray[0] = filter;
myMC.filters = filterArray;




many thanks,
Gareth

Filter Button
Got a list of MCs being populated from an XML file. Basically a list of two different types of information. Some are type A, some are type B.

Want to have a couple buttons that filter based on type (so if I push the button for type A (called "typeAbtn" below), only those MCs appear, type B MCs go to _alpha = 0 or something).

Can't seem to come up with a function to do it.

terrible attempt:

Code:
function showMCs() {
for (var j = 0; j<stuff.length; j++) {
MC = timeline_mc["MC"+j];
MC.type = xml.blahblah.attribute.type;
...

typeAbtn.onPress = function() {
if ( MC.type == "B" ) {
MC[?].alpha = 0;
}
}

Easing On A Filter
playing with filters today...i totaly get the concept, adding, removing, different kinds, etc. However, can i get a lead on how to gradually add a filter? I.E> click a button, and a filter will easeOut/easeIn (depending)....right now, i can't think outside of the "instant on/off" process! I came up with this, but i am sure how to add in the ease...

Code:
import flash.filters.BlurFilter;
var afFilter:Array = [];
var xO = 0;
var y0 = 0;
function addBlur(targetBlur) {
xO++;
yO++;
var blr:BlurFilter = new BlurFilter(xO, yO, 2);
afFilter.push(blr);
mc.filters = afFilter;
if (xO>=targetBlur) {
clearInterval(nBlur);
}
updateAfterEvent();
}
nBlur = setInterval(addBlur, 15, 14);

[F8] Filter Dataset (XML)
I'm trying te load tour-dates from an XML-file into Flash using XMLConnector and a DataSet. So far...no problems. Now I want to filter out all dates prior to the current date. A Zip-file with the currnet .fla and .xml is included.

Any suggestions?

[F8] Glow Filter Help
Hi,
I have an earth glowing this is the action script i used to do that...

Code:
var Glow:Number=150

import flash.filters.GlowFilter;
color=0x0066FF;
alpha=20;
blur_X=Glow;
blur_Y=Glow;
s=2;
q=2;
ig=false;
k=false;

var filter:GlowFilter = new GlowFilter(color,alpha,blur_X,blur_Y,s,q,ig,k);
var filterss:Array = new Array();
filterss.push(filter);
r.filters = filterss;
So with the glow i want it so that if the user presses a button it decreases the blur_X and blur_Y value, so i have used a variable called glow.

Now what i have on a button is

Code:
on (release) {
Glow-=100
}
To test wether the value is decreasing i have used a dynamic text box (and it is going down) but the problem is that the glow still remains the same

How do i make it so that when the button is pressed the glow decreases, does it need to loop the frame somehow so it reloads the script?

Filter Vs Texture
I'm trying to add some effects to some text to spas the text up. I have 3 different effects that I want put on. 2 of them are flash filters and the other one is a texture. I'm using the perlinNoise function to create the texture and then I'm using a mask to apply it. My problem is when I try to apply the mask to add the texture, the filters disappear and the only thing that is remaining is the texture.
With filters: http://www.typhoonent.com/genesislogo.swf
With texture: http://www.typhoonent.com/genesislogotextured.swf

The filters: I'm using a glow filter to color it but since the texture colors it then I remove it.
code: var counter:Number = 1;
var nDec:Number = 0;
var gf:GlowFilter = new GlowFilter(0x01A954, 100, 100, 100, 400, 0, true, false);
onEnterFrame = function () {
if (--counter == 0) {
var dsf:DropShadowFilter = new DropShadowFilter(10, nDec, 0x000000, 100, 10, 10, 1, 3, false, false, false);
var bf:BevelFilter = new BevelFilter(5, nDec, 0xFFFFFF, 100, 0x000000, 100, 10, 10, 1, 1, "inner", false);
holder.filters = [gf, bf, dsf];
delete bf;
counter = 4;
nDec += 4;
if (nDec>359) {
nDec = 0;
}
}
};
This code attaches each letter and places them and then applies the texture
letterArray is pointing at each individual letter.
code: var bitSource:BitmapData = new BitmapData(sWidth, sHeight, true, 0xFFFFFF);

for (i=0; i<letterArray.length; i++) {
holder.attachMovie(letterArray[i],letterArray[i],++d);
holder[letterArray[i]]._xscale = holder[letterArray[i]]._yscale=scale;
if (i<1) {
holder[letterArray[i]]._x = xPos[i];
holder[letterArray[i]]._y = yPos[i]+stageBorder/2;
} else {
holder[letterArray[i]]._x = holder[letterArray[i-1]]._x+holder[letterArray[i-1]]._width+xPos[i]*scale/100;
holder[letterArray[i]]._y = yPos[i]+stageBorder/2;
}

//Texture
_root.createEmptyMovieClip("sourceClip"+i,++d);
bitSource.perlinNoise(random(30)+20,random(30)+20, random(23)+1,1,true,true,2,false);

this["sourceClip"+i].attachBitmap(bitSource,10,"auto",true);
this["sourceClip"+i]._width = holder[letterArray[i]]._width;
this["sourceClip"+i]._height = holder[letterArray[i]]._height;
this["sourceClip"+i]._x = holder[letterArray[i]]._x;
this["sourceClip"+i]._y = holder[letterArray[i]]._y;
this["sourceClip"+i].setMask(holder[letterArray[i]]);
}
Any ideas on how to fix this?

A-i Filter Question
seen this? http://www.a-i.tw/root.html?lang=en#pos=20

just curious about the mouseOvers when a project loads...what kind of filter is that? or is it?

Displacement Map Filter HELP
Hi! I want to make a movieclip look like a sphere, and then paste an image (like the earth) onto it, and then rotate, giving the effect of a rotating planet. I want to be able to rotate it in all directions. I've heard about Displacement Map Filter, and I have no idea on how to use it. I've already checked Flashkit for info, and all the links...but I still can't get a hang of it.

Can someone PLEASE explain it to me, and maybe provide a bit of source code so I have something to work with? This is really slowing down my big game project!!! Please help!

[F8] Filter An Array
I have an array that looks like this:
100_0061.JPG,100_0064.JPG,100_0068.JPG,100_0069.JP G,test.swf,test.fla

and the code that is building it:
//jpgs to load
basePath = mdm.Application.path + "presFiles/"
var myFiles:Array = mdm.FileSystem.getFileList(basePath, "*.*");
numberOfFiles = myFiles.length

How can I remove the swf and fla files and update the length of the array.

Thanks in advance!

Filter XML Attributes
Hey,
I'm working on an site with XML driven data. I have some actionscript that returns attributes from a childnode in the xml file. This pulls attributes from many different entries, and some are duplicates. I am trying to create a filter that will return each entry only once and reject it if it already exists in the list. Any suggestions on this? Hopefully my description isnt too vague. I can attach an example if needed. Thanks!

Blur Filter.....
I came across a web site and am wondering how they blurred the whole screen. I have Flash 8 and I can blur each MC but I don't know how to do a full blur effect that covers all images, text, mc's, and layers of the Flash file. Any help?

www.firstbornmultimedia.com and the effect I am referring to is in the portfolio section then click on a thumbnail and then click to see the project and the portfolio is screened and blurred out of focus.

Thanks for the help!!!!

Filter Failure
well, I encountered a problem when I tried to apply the filter effecct on one image. But, suddenly there is this debug problem that came out. I tried the same thing on a lower sized picture but the same problem occur while processing the image. How can I deal with this problem

Filter Years
Hi,

Basically i'm trying to filter dates from a database via asp into flash. Initially It works by getting the current date and month from flash and passing everything through, but if I try and dynamically change the year and month by pressing a button (see last piece of code) nothing happens,

Any ideas


Code:
function newsload(thismonth,thisyear){
newsData = new LoadVars();
newsData.load("getdetails.asp?Year=" + thisyear + "&Month=" + thismonth );
newsData.onLoad = function (success)
{
if (success == true)
{
_root.info.text = unescape(this.thetitle) + unescape(this.Name);
} // end if
};
}
else
{
info.text = "Cannot load data...";
} // end if
};
};
newsload(firstthismonth,firstthisyear);

Code:
on(press){
_root.newsload("4","2006")
}

Blur Filter Help
I am trying to apply a blur to a movie clip and 'unblur' it on a RollOver of the macro_btn, It is blurred at first but doesnt unblur.

Im not sure what's wrong with my code:


Code:
import flash.filters.BlurFilter;
var blurred:BlurFilter = new BlurFilter(5, 5, 4);
var storedBlur:Array = [blurred];
bug_mc1.filters = bug_mc2.filters = storedBlur;
macro_btn.onRollOver = function() {
_root.bug_mc1.filters = null;
}
macro_btn.onRollOut = function() {
bug_mc1.filters = storedBlur;
}
any ideas?

many thanks

Blur Filter Help
Hi,

I want to put on a blur filter using actionscript.

Here is the code i used


Code:
//BLUR FILTER
var windowBlur = new flash.filters.BlurFilter();
window_mc.filters = windowBlur

var myTempFilters = window_mc.filters;
myTempFilters.push(windowBlur);
window_mc.filters = myTempFilters;

windowBlur.blurX = 50;
windowBlur.blurY = 50;
does anyone know why this is not working?

thanks

dan

Adjusting MC´s Hue Filter
Hi, I was wondering if there is a simple way to control the "Adjust Color: hue" - filter of a MovieClip?. Is it possible to adjust it with a single variable(with AS2)?

Can anyone help me?

E4X XML Filter + Switch
Hi,

this is my first positing here..
I found a strange behaving of E4X when filtering:


ActionScript Code:
var novel:XML = <BOOKS>
        <BOOK ISBN="01234">
            <TITLE>Ulysses</TITLE>
            <AUTHOR>
                <NAME>Joyce, James</NAME>
                <BIRTHDATE>February 2 1882</BIRTHDATE>
            </AUTHOR>
            <PUBLISHER>Penguin Books Ltd</PUBLISHER>
        </BOOK>
        <BOOK ISBN="987">
            <TITLE>The Bible</TITLE>
            <AUTHOR>
                <NAME>God</NAME>
                <BIRTHDATE>December 24 0000</BIRTHDATE>
            </AUTHOR>
            <PUBLISHER>good question...</PUBLISHER>
        </BOOK>
</BOOKS>;

var filterA:XMLList = novel.*.(@ISBN == "01234");
trace ("filterA: " + filterA); // filterA: <BOOK ISBN="01234">...

var test:String = "test";
if (test == "test") {
    var filterB:XMLList = novel.*.(@ISBN == "01234");
    trace ("filterB: " + filterB); // filterA: <BOOK ISBN="01234">...
}

switch (test) {
    default:
        var filterC:XMLList = novel.*.(@ISBN == "01234");
        trace ("filterC: " + filterC); // filterC: null !!
}

switch (test) {
    case "test":
        var filterD:XMLList = novel.*.(@ISBN == "01234");
        trace ("filterD: " + filterD); // filterD: null
    break;
}

I didn't know if this has already been known, so I decided to post this.
Funny thing, that the filters won't work in switch-statements.

cheers
han

Depth Of Filter
how would I change the depth of this?
I want it to appear underneath my existing layers


ActionScript Code:
import flash.display.BitmapData;
import flash.geom.Point;
import flash.filters.DisplacementMapFilter;
import flash.filters.DropShadowFilter;
Stage.scaleMode="noScale";

var baseX           :Number = 90;
var baseY           :Number = 90;   
var nOctaves        :Number = 4;
var randomSeed      :Number = Math.random()*10;
var bStitch         :Boolean = false;
var bFractalNoise   :Boolean = true;
var nChannels    :Number = 1;
var bGreyScale      :Boolean= true;

var p1 = new Point(45, 34);
var p2 = new Point(50, 60);
var p3 = new Point(55, 34);
var p4 = new Point(10, 50);

perlinOffset = new Array(p1, p2, p3, p4);

bmp = new flash.display.BitmapData(300,250,true,0x000000);

_root.createEmptyMovieClip("perlin", 100);
perlin.attachBitmap(bmp, 1, "auto", true);
perlin._alpha = 60;

onEnterFrame = function (){
    perlinOffset[0].y+=0.125;
    perlinOffset[0].x+=0;
    perlinOffset[1].y+=.25;
    perlinOffset[1].x-=0;
    perlinOffset[2].y+=.5;
    perlinOffset[2].x+=.0;
    perlinOffset[3].y+=1;
    perlinOffset[3].x+=.0; 

    bmp.perlinNoise(baseX, baseY, nOctaves, randomSeed, bStitch, bFractalNoise, nChannels, bGreyScale, perlinOffset);

}

E4X Filter Not Working
Hi All,

I've been reading trough this forum quite a bit since my move to 3.0 and it helped me a lot. Thanks!

I'm trying to filter an XML file and after loads and loads of tutorials and threads I'm still not sure what's wrong with the following.

I am trying to filter out some case studies based on what categories they belong to.
I need the full CASE element to load and display everything properly.

The filter I use (look under the XML) DOES return an XMLList with full CASE elements, but does NOT filter out elements not containing "Web".
I've tried just about everything and I still don't know what I'm doing.

Anyone care to help/explain what's going on here?
Thanks a million!

Greets,
Wannes



The XML :

HTML Code:
<CASES>
<CASE V="1" NAME="Name One" BODY="Body text one.">
<CATEGORIES>
<CAT NAME="Art Direction" BY="green" />
<CAT NAME="Graphic Design" BY="yellow" />
</CATEGORIES>

<IMAGERY>
... a list of images here
</IMAGERY>
</CASE>

<CASE V="1" NAME="Name Two" BODY="Body text two.">
<CATEGORIES>
<CAT NAME="Strategy" BY="pink" />
<CAT NAME="Art Direction"BY="green" />
<CAT NAME="Graphic Design" BY="yellow" />
<CAT NAME="Web" BY="blue" />
</CATEGORIES>

<IMAGERY>
... another list of images here
</IMAGERY>
</CASE>
</CASES>
The filter action :

ActionScript Code:
xml.CASE.(CATEGORIES.CAT.(@NAME == "Web"));

Filter Question
ok, i make my mc using filters but when i use addChild the child isnt made with the filters, just the mc without filters. how do i add filters to addChild?

Filter To All Textboxes
I want to create a glow filter and apply it to all the textboxes i have. Is this possible?

I tried, something like that "TextField.prototype.filters = [filter];" but....

Any help?

Thank u

Convolution Filter
i want to capture the edge of an image and allow the user to fill inside the edges
help please

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