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








Flash Variable -> ASP Search Result == IMPORTANT


I have a flash movie in which I need to pass a keyword variable to an ASP page that hold all of the result-writing code.

I can't seem to pass any user text from the flash movie to the ASP result page. I've created a static version of this (ref: http://www.terra-plex.com/sin/draft/...ledgebase.html) and would like to duplicate this functionality from the "Knowledge Base" section at http://www.terra-plex.com/sin/draft/

Any help in this matter would be greatly appreciated!!




FlashKit > Flash Help > Flash ActionScript
Posted on: 09-12-2001, 04:02 PM


View Complete Forum Thread with Replies

Sponsored Links:

Flash -> ASP Search Result === IMPORTANT
I have a flash movie in which I need to pass a keyword variable to an ASP page that hold all of the result-writing code.

I can't seem to pass any user text from the flash movie to the ASP result page. I've created a static version of this (ref: http://www.terra-plex.com/sin/draft/...ledgebase.html) and would like to duplicate this functionality from the "Knowledge Base" section at http://www.terra-plex.com/sin/draft/

Any help in this matter would be greatly appreciated!!

View Replies !    View Related
Search Page With Search Result From Text File
I want to make search page with search result In Flash, Data will be come frrom TXT file. can any body help my or give me source(FLA)??

View Replies !    View Related
Search Result From Data Base
Hi!
I'm in urgent need to make
search form for Jwellery exhibition for my client.
here is the description.

In search box I enter the name Delhi, then it should display list related to Delhi. ( All the companiesnames, Address , contact person, Stall

Numbers,place at Delhi) It will comw from the data base.

The results display should be in horizontal line

ContactName Company Location PhoneNumber

here I'm attaching the txt file
Help Pls !

View Replies !    View Related
Search Result From Data Base
Hi!
I'm in urgent need to make
search form for Jwellery exhibition for my client.
here is the description.

In search box I enter the name Delhi, then it should display list related to Delhi. ( All the companiesnames, Address , contact person, Stall

Numbers,place at Delhi) It will comw from the data base.

The results display should be in horizontal line

ContactName Company Location PhoneNumber

here I'm attaching the txt file
Help Pls !

View Replies !    View Related
Search Result From Data Base
Hi!
I'm in urgent need to make
search form for Jwellery exhibition for my client.
here is the description.

In search box I enter the name Delhi, then it should display list related to Delhi. ( All the companiesnames, Address , contact person, Stall

Numbers,place at Delhi) It will comw from the data base.

The results display should be in horizontal line

ContactName Company Location PhoneNumber

here I'm attaching the txt file
Help Pls !

View Replies !    View Related
SWF Shows Up In Google Search Result
Hi,

My website is made 100% in Flash. When I used to search on google, the link to the flash file SWF appeared before the generic website's URL.

I thought this problem went away for good. Today however I searched something in Google, and my website's SWF showed up! I don't know the correct terminology, but the search result displayed the SWF link first, then underneath (and tabbed to the right) it showed the generic URL.

The reason is because what I searched for was indexed in the SWF. Is there any way to prevent the SWF from directly showing up in search results? Or at least have it so that the generic URL shows up first? Of course I'd like to do this while still allowing Google to index the swf...

If that was confusing.. basically instead of www.MyDomain.com showing up first, www.MyDomain.com/mydomain.swf shows up in the search results first.

Also I found someone else with a similar problem..but it was never full explained how to remedy this issue:
http://www.wrensoft.com/forum/showthread.php?t=1373

Thanks!

View Replies !    View Related
Clearing Xml Search Result In Movie Clip
I am having a problem with my search result...when i do a new seacrh reading from the xml file it still display the old search results which had 4 search results. when i do a new search that come with 3 search results. it still show the 4th result at the end with the 3 result. Is their a way to clear the movieclip then load the new search result... I have attached the zip file with the fla and xml file..
http://www.dragonfly-ent.com/namsearchxml.zip

example 4 result returned
1
2
3
4

new search 3 result returned
1
2
3

but it show the 4 after the three which look like this
1
2
3
4

I need a way to basically clear the frame/movie when i do a new search. the code and xml file is below...help greatly appreciated...




// DisplayInfo is used when an item is pressed
// it hides the menu_mc (and the buttons) and shows the
// infobox_mc, assigning the text of the selected button
// to the textbox within.
// define basic variables for setting up the menu

String.prototype.contains = function(searchString){
return (this.indexOf(searchString) != -1);
}
Array.prototype.contains = function(searchValue){
var i = this.length;
while(i--) if (this[i] == searchValue) return true;
return false;
}
ElementsToSearch = function(){
var childElementsToSearch = [];
if (search_fields.title_check.checked){
childElementsToSearch.push("prodname");
}
if (search_fields.author_check.checked){
childElementsToSearch.push("prodnumber");
}

return childElementsToSearch;
}

SearchXML = function(nodes, query, useChildElements){

var results = [];
for (var i=0; i<nodes.length; i++){
for (var j=0; j<nodes[i].childNodes.length; j++){
currNode = nodes[i].childNodes[j];
if (useChildElements.contains(currNode.nodeName)){
if (currNode.firstChild.nodeValue.toUpperCase().conta ins(query.toUpperCase())){
results.push(nodes[i]);
break;
}
}
}
}
return results;
}
DisplayNodes = function(nodes){

var item_spacing = 28; // how far menu items are spaced veritcally
var item_count = 0; // counts menu items as they are added from the XML
item_mc.prodnam_txt.text = "";
item_mc.prodnum_txt.text = "";
item_mc.proddesc_txt.text = "";
item_mc.prodtype_txt.text = "";
item_mc.prodman_txt.text = "";




for (var i=0; i<nodes.length; i++){
//menu box
var prodnam = nodes[i].firstChild; // same as items[i].childNodes[0]
//var prodnam = nodes[i].childNodes[0];
var prodnum = nodes[i].childNodes[1]; // second child node
var proddesc = nodes[i].childNodes[3];
var prodtype = nodes[i].childNodes[4];
var prodman = nodes[i].childNodes[5];



//infobox
var location = nodes[i].firstChild;
//var location = nodes[i].childNodes[0];
var prodtitle = nodes[i].childNodes[2];
var prodmsrp = nodes[i].childNodes[6];
var prodmap = nodes[i].childNodes[7];
var prod13 = nodes[i].childNodes[8];
var prod4 = nodes[i].childNodes[9];
var prodpromo = nodes[i].childNodes[10];
var proddisc = nodes[i].childNodes[11];
var prodcust = nodes[i].childNodes[12];




// Create a menu item movie clip in the menu_mc instance on the main timeline
// for each item element offsetting each additional further down the screen
var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
item_mc._y = item_count * item_spacing;
item_count++;

// assign text using nodeValue to get the text
// from the text nodes and CDATA sections


//menu box
item_mc.prodnam_txt.text = prodnam.firstChild.nodeValue;
item_mc.prodnum_txt.text = prodnum.firstChild.nodeValue;
item_mc.proddesc_txt.text = proddesc.firstChild.nodeValue;
item_mc.prodtype_txt.text = prodtype.firstChild.nodeValue;
item_mc.prodman_txt.text = prodman.firstChild.nodeValue;

//info box
item_mc.main_btn.location_text = location.firstChild.nodeValue;
item_mc.main_btn.prodtitle_text = prodtitle.firstChild.nodeValue;
item_mc.main_btn.proddesc_text = proddesc.firstChild.nodeValue;
item_mc.main_btn.prodmsrp_text = prodmsrp.firstChild.nodeValue;
item_mc.main_btn.prodmap_text = prodmap.firstChild.nodeValue;
item_mc.main_btn.prodprod13_text = prod13.firstChild.nodeValue;
item_mc.main_btn.prodprod4_text = prod4.firstChild.nodeValue;
item_mc.main_btn.prodpromo_text = prodpromo.firstChild.nodeValue;
item_mc.main_btn.prodproddisc_text = proddisc.firstChild.nodeValue;
item_mc.main_btn.prodprodcust_text = prodcust.firstChild.nodeValue;
item_mc.main_btn.prodnam_text = prodnam.firstChild.nodeValue;
item_mc.main_btn.prodnumb_text = prodnum.firstChild.nodeValue;




// set the onRelease of the item button to the DisplayInfo function
item_mc.main_btn.onRelease = DisplayInfo;
}
}


function DisplayInfo(){
menu_mc._visible = true;
infobox_mc._visible = true;
infobox_mc.content_txt.text = this.location_text;
infobox_mc.prodtitle_txt.text = this.prodtitle_text;
infobox_mc.prodmsrp_txt.text = this.prodmsrp_text;
infobox_mc.prodmap_txt.text = this.prodmap_text;
infobox_mc.prod13prc_txt.text = this.prodprod13_text;
infobox_mc.prod4prc_txt.text = this.prodprod4_text;
infobox_mc.prodprocom_txt.text = this.prodpromo_text;
infobox_mc.proddiscom_txt.text = this.prodproddisc_text;
infobox_mc.prodcustno_txt.text = this.prodprodcust_text;
infobox_mc.proddesc_txt.text = this.proddesc_text;
infobox_mc.prodnam_txt.text = this.prodnam_text;
infobox_mc.prodnumb_txt.text = this.prodnumb_text;


}


// close_btn is in infobox_mc ands restores
// the menu (clearing the info text and hiding itself as well)
infobox_mc.close_btn.onRelease = function(){
menu_mc._visible = true;
infobox_mc._visible = true;
infobox_mc.content_txt.text = "";
}
infobox_mc._visible = false; // start the info box hidden

// manage XML
// create new XML object instance, remembering to ignore white space
var prodnamnum_xml = new XML();
prodnamnum_xml.ignoreWhite = true;
// define an onLoad to create our location menu when the XML has successfully loaded.
prodnamnum_xml.onLoad = function(success){
if (success)
{
search_fields._visible = true;
//CreateMenu(this) ;
//will call create menu later.....
}


else trace("Error loading XML file"); // no success? trace error (wont be seen on web)
}
search_fields._visible = false;

// load the xml file!
prodnamnum_xml.load("prodnamnumxmlfile.xml");
search_fields.title_check.title_txt.text = "Product Name";
search_fields.author_check.title_txt.text = "Product Number";

search_fields.search_btn.onRelease = function(){

if (search_fields.query_txt.text.length < 3){
var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
item_mc.results_txt.text = "Please use a search term with 3 or more characters.";
return (0);
}
var searchElements = ElementsToSearch();
var nodesWithQuery = SearchXML(
prodnamnum_xml.firstChild.childNodes,
search_fields.query_txt.text,
searchElements
);

if (nodesWithQuery.length)
{
DisplayNodes(nodesWithQuery);
}
else
{
var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
item_mc.results_txt.text = "No results for "+search_fields.query_txt.text+".";
return (0);
}



}


















<?xml version="1.0" ?>
- <productsearch>
- <product>
<prodname>Product1</prodname>

<prodnumber>1234m</prodnumber>

<prodtitle>Product Title</prodtitle>

<proddesc>prod desciption</proddesc>

<prodtype>prod type like Mobile video</prodtype>

<prodmanuf>prod type like JBL</prodmanuf>

<prodmsrp>$20.99</prodmsrp>

<prodmapprc>not sure what this field is can you find out</prodmapprc>

<prod13prc>$15.99</prod13prc>

<prod4prc>$13.99</prod4prc>

<prodprocom>Promotional Comments</prodprocom>

<proddsccom>Disclaimer Comments</proddsccom>

<prodcustno>1-800-dummy-numbner</prodcustno>

<prodtmbpic>prodtmbpic.jpg</prodtmbpic>

<prodpic>prodpic.jpg</prodpic>

</product>


- <product>
<prodname>Product2</prodname>

<prodnumber>1234m3</prodnumber>

<prodtitle>Product Title</prodtitle>

<proddesc>prod desciption</proddesc>

<prodtype>prod type like Mobile video</prodtype>

<prodmanuf>prod type like JBL</prodmanuf>

<prodmsrp>$20.99</prodmsrp>

<prodmapprc>not sure what this field is can you find out</prodmapprc>

<prod13prc>$15.99</prod13prc>

<prod4prc>$13.99</prod4prc>

<prodprocom>Promotional Comments</prodprocom>

<proddsccom>Disclaimer Comments</proddsccom>

<prodcustno>1-800-dummy-numbner</prodcustno>

<prodtmbpic>prodtmbpic.jpg</prodtmbpic>

<prodpic>prodpic.jpg</prodpic>

</product>


- <product>
<prodname>Product3</prodname>

<prodnumber>1234m34</prodnumber>

<prodtitle>Product Title</prodtitle>

<proddesc>prod desciption</proddesc>

<prodtype>prod type like Mobile video</prodtype>

<prodmanuf>prod type like JBL</prodmanuf>

<prodmsrp>$20.99</prodmsrp>

<prodmapprc>not sure what this field is can you find out</prodmapprc>

<prod13prc>$15.99</prod13prc>

<prod4prc>$13.99</prod4prc>

<prodprocom>Promotional Comments</prodprocom>

<proddsccom>Disclaimer Comments</proddsccom>

<prodcustno>1-800-dummy-numbner</prodcustno>

<prodtmbpic>prodtmbpic.jpg</prodtmbpic>

<prodpic>prodpic.jpg</prodpic>

</product>


- <product>
<prodname>Product4</prodname>

<prodnumber>1234m345</prodnumber>

<prodtitle>Product Title</prodtitle>

<proddesc>prod desciption</proddesc>

<prodtype>prod type like Mobile video</prodtype>

<prodmanuf>prod type like JBL</prodmanuf>

<prodmsrp>$20.99</prodmsrp>

<prodmapprc>not sure what this field is can you find out</prodmapprc>

<prod13prc>$15.99</prod13prc>

<prod4prc>$13.99</prod4prc>

<prodprocom>Promotional Comments</prodprocom>

<proddsccom>Disclaimer Comments</proddsccom>

<prodcustno>1-800-dummy-numbner</prodcustno>

<prodtmbpic>prodtmbpic.jpg</prodtmbpic>

<prodpic>prodpic.jpg</prodpic>

</product>


</productsearch>

View Replies !    View Related
[F8] IMPORTANT Variable Watching
Is it possible to watch variables while viewing a flash move (without tracing them)?

View Replies !    View Related
Expression Result As A Variable?
Hi, I have a trouble to find out how to have a value interpreted as a variable in my movie, whatever I do it is always interpreted as a string.

I need to have the result from "_parent."+"img_"+id to be treated as a variable. I tried to use eval("_parent."+"img_"+id) too with the same results.

Here'S an example of how I try to do this:

loadMovie("_parent."+"img_"+id, "container");

I have the same problem in many places, I found some work arounds in some situation but it makes the programming much more complex for nothing, I'm sure there's something I need to learn about this.

ANyone can help?

Thanks!

View Replies !    View Related
Assign Result To Variable To Use Later?
Wondering if I want to use the results of a "service call" (is that the right terminolgy?) later in a script do I need to assign it to a variable or does it already get stored as something?

ie...


ActionScript Code:
function getPeople_Result(result) {
 peoplelist=result;
}


ActionScript Code:
trace(peoplelist.items[0].name);

View Replies !    View Related
Getting A Value Based On Variable Result
Here's what I'm trying to do. I've got a movie clip that contains a varying number of text fields based on loaded XML data. The heights of the text fields will change depending on the amount of text loaded in.

Since this is driven by XML, I'm using a for loop to walk the tree and create array references for my text fields.

I need to determine the final height value of all these text fields in order to calculate the _y coordinate for another movie clip. And my natural inability to think mathematically is hamstringing my efforts.

Any solutions are welcome and appreciated!

View Replies !    View Related
Little Question. XML Query Result To Variable Tie Up
so my xml is imported to my swf:


Code:


var settingsXML:XML;
var setListXML:XMLList;

var settingsLoader:URLLoader = new URLLoader();
settingsLoader.addEventListener(Event.COMPLETE, setLoaderOnComplete);
settingsLoader.load(new URLRequest("xml-swf-settings.xml"));

function setLoaderOnComplete(e:Event):void
{
settingsXML = new XML(settingsLoader.data);
setListXML = settingsXML.specification;
}



so within function "setLoaderOnComplete" i can access every sub specification of <specification> tag, in this manner "setListXML[0].backgroundcolor". but if i define that variable within this function it will only exist in this function.

i am stuck on how to export all the sub specifications to variables to enviroment outside of that function so that i can use in later code that would define swf properties and animation

my brain stopped working, any suggestions? any tutorials on that matter?

View Replies !    View Related
Load Graphic Based On Variable Result - How?
I have a numeric variable.

If the result == 1, I would like to load GraphicA
If the result == 2, I would like to load GraphicB

.. and so on... at a particular place on the screen.

Do I insert each of the graphics on separate layers
EXAMPLE:
Layer 1 Frame1: GraphicA
Layer 2 Frame1: GraphicB

and assign the "if then else" statements to the graphics?

NEXT QUESTION.
How do I write that "if then else" statement using ActionScript?

This is a case of knowing what you want to do, but not knowing the
exact way to do it.

Thanks OODLES for any help!!!!! It is GREATLY appreciated!

View Replies !    View Related
Help On Setting Variable On A Loop From A Result Query
this is using the result query from a remoting.

i'd like to rewrite the following code into a loop:


Code:
function myResult_Result(result){
FF1_1 = result.items[0].F1_1;
FF1_2 = result.items[0].F1_2;
FF1_3 = result.items[0].F1_3;
FF1_4 = result.items[0].F1_4;
FF1_5 = result.items[0].F1_5;
FF2_1 = result.items[0].F2_1;
FF2_2 = result.items[0].F2_2;
FF2_3 = result.items[0].F2_3;
FF2_4 = result.items[0].F2_4;
FF2_5 = result.items[0].F2_5;
}


i was supposed to do this: but i don't know how to write the right side of my equation:


Code:
function myResult_Result(result) {
for (ctr=1; ctr<3; ctr++) {
for (ctr2=1; ctr2<6; ctr2++) {
tempStr = "result.items[0].F"+ctr+"_"+ctr2
this.createTextField("F"+ctr+"_"+ctr2,this.getNextHighestDepth(),50*ctr,30*ctr2,40,20);
this["F"+ctr+"_"+ctr2].text = eval(tempStr)
}
}
}


i don't know how to rewrite the code and loop the right side which is (result.item[0].F1_1) and so on.. on the right side of line 6 (this["F"+ctr+"_"+ctr2].text = ?)where you set the content from a result query

View Replies !    View Related
URGENT Dynamic Image Load - Using Variable Result
Greetings and MANY thanks for taking a look at this!!!

What I am trying to do is simply load an image based on the result of a variable. In "english" this is what I want to do:

if variableA is equal to 1 then load image01
if variableA is equal to 2 then load image02

I am not sure if this was necessary but just incase:
I have placed image01 in a movieclip, so now I have movie01
I have placed image02 in a movieclip, so now I have movie02

On frame 10 layer 1 my variableA is displayed as dynamic text.
On frame 10 layer 2, shouldn't I be able to place movie01, select it, then whip up an actionscript statement?

For example, I've tried:


Code:
onClipEvent (load) {
if (variableA==1) {
setProperty("movie01", _visible, "1");
}
}
The trouble with this is, the movie is displayed whether variableA is equal to 1, 2, 10, or even 0.

Again THANKS SO MUCH for ANY help on this. I think I've thought about this too much and am now just stuck!

View Replies !    View Related
How To Build A Search Engine To Search Ur Own Flash Site?
Hey its Stuart here again.
How do you build a search engine to search ur own flash site?
Do you guys have any links?

View Replies !    View Related
How To Build A Search Engine To Search Ur Own Flash Site?
Hey its Stuart here again.
How do you build a search engine to search ur own flash site?
Do you guys have any links?

View Replies !    View Related
Search A String Variable
I set a variable to a string of letters. And I want to create an IF statement so that if the variable does not contain the letter "a" or "A", it should do something, how would i compare the string to the letter a? Here is my pseudocode. Is there a comparison operator?

let's say that strAll = "abcdefg";
(if strAll doesn't contain the letter "a" or "A", go to the next frame)

thanks

View Replies !    View Related
How Do I Send A Variable To A 'search.cfm'?
I have a search field in flash, it has a text box with a variable name. When the user clicks the search button, I need to send whatever is in that text field to
something called 'search.cfm' . I am unfamiliar with any sort of backend coding, but I am hoping this is a fairly basic thing to do.

Wondering if someone can help me with the syntax on how I could achieve this.

Thanks.

View Replies !    View Related
How Can I Search A Variable Or Actionscript In .fla
Hi everyone!

I have a question cause i don`t know, i hope you can help me, ¿how can i search inside of a .fla a variable in actionscript?

Thanks!

View Replies !    View Related
How Do I Send A Variable To A 'search.cfm'?
I have a search field in flash, it has a text box with a variable name. When the user clicks the search button, I need to send whatever is in that text field to
something called 'search.cfm' . I am unfamiliar with any sort of backend coding, but I am hoping this is a fairly basic thing to do.

Wondering if someone can help me with the syntax on how I could achieve this.

Thanks.

View Replies !    View Related
How Do I Send A Variable To A 'search.cfm'?
I have a search field in flash, it has a text box with a variable name. When the user clicks the search button, I need to send whatever is in that text field to
something called 'search.cfm' . I am unfamiliar with any sort of backend coding, but I am hoping this is a fairly basic thing to do.

Wondering if someone can help me with the syntax on how I could achieve this.

Thanks.

View Replies !    View Related
Multi Variable Text Search (Please Help)
Multiple Variable Text Search

I was wondering how to search multiple variables for text.

For Example, I have variables in a txt file written as follows &game1=punchout &game2=metroid &game3=donkeykong &game4=doom. Now when the user inputs a game name into a text field I want it to search for it from the variable game1 to game4.

What I am doing at the moment is... if the input text is equal to the text in game1 or game2 or game3 or game4 then go to frame 3, which will display the results.

The problem here is I want to have a big database. So what I want to know is a way to automatically search through from game1 to 4 with out actually typing game1 or game2 or game3 or game4, if ya get what I mean.

I have tryed many things already but nothing seems to be working for me.

Please help me, if you know any way to search multiple variables for text then please respond.

Thanks

View Replies !    View Related
Search In Flash Using Atomz Search Services
does anyone have any information on using atomz search service using flash? please reply....
thank you

View Replies !    View Related
Search Flash Content In Search Engines
Do you have any experiance how to optimize flash site for search engines?

If swf contains text an links, how can i constrain search engines like Google,... to find this?

Thanks

View Replies !    View Related
Search Flash Content In Search Engines
Do you have any experiance how to optimize flash site for search engines?

If swf contains text an links, how can i constrain search engines like Google,... to find this?

Thanks

View Replies !    View Related
Flash Search Field - Atomz Search
I currently use Atomz for their search engine. A clients site as of now is all HTML, however I am buidling some flash elements which will incorporate a simple "search" field and submit button.

I will include the HTML, however I am unsure how to make a form in Flash to be able to include the hidden fields, etc. I hope this makes sense, and thank you in advance!

<form method="get" action="http://search.atomz.com/search/" name="search">

<input name="sp-q" class="textbox" id="sp-q" value="Search" size="15">
<input type="hidden" name="sp-a" value="sp1002ad5d">
<input type="hidden" name="sp-p" value="all">
<input type="hidden" name="sp-f" value="ISO-8859-1">

<input type="submit" name="Submit" value="Submit">
</form>

If someone could create a small file, or let me know where to place what code where, please let me know. Any help is greatly appreciated! As well, if you have paypal, I can send a little something for the help!

View Replies !    View Related
Flash With PHP Result
Hello,

i'm a new flash user, and i come from the PHP development.

So i have a text area that i want make it dynamic.

I explain, i have a text area with the "tips of the day", but this tips comes from mysql database.

So i just wanna know how the PHP script can take the value from the mysql database and send it to the FLash animation.

Plz give me some clear exemples or explain me directly on this topic.

Thanks a lot

Nerzhul

View Replies !    View Related
Flash Chat Very Important
Lets say i have a .txt file called "chattext" the information in that file is
loaded into a text box in flash. ok now i have another text box in flash but this is an
input text box called "text". how can i make the info i write on "text" get saved on the
.txt "chattext" what are the actions i will have to put on a button to make "text" get
saved on "chattext"....
!!!!!!please help me out!!!!!!!!

View Replies !    View Related
How Important Is JavaScript To Flash MX?
How important is JavaScript to Flash MX?

I am curious as to the relationship (if any) of JavaScript to using Flash MX? Is this something I am going to need when I eventually progress (hopefully) is Flash develoment?

I will be honest, I am currently taking a JavaScript class and it is kicking my butt if can image. I see functions and variables when I browse the action script library and I am a bit concerned. If JavaScript is this complicated now, what will it be like in Flash?

I would appreciate any input as to your opinions on these two programs. I want to shy away from the JavaScript class if I can and concentrate more on my Flash MX class.

Thank you

Thorrax

View Replies !    View Related
Important Flash Question
OK,

I have used flash for a very long time. And with all of my years of experience. I am very stumped by my small problem. In my past experiences with flash, every time I used the straight line tool and other line tools, it showed the actual line as I was drawing it...sort of showing a preview before I let off the mouse button to actually set the line. For some reason, that preview no longer happens on my flash. I use the same version adn everythign, but for some reason, it doesnt display anything when i try to put a line on there until i let go of the mouse. Can someone please answer this anamoly ...

BrentFlashGuy

View Replies !    View Related
*IMPORTANT* - Specify Your Flash Version
Our FlashKit tech guy, JPnyc has been kind enough to give us a new tool in the "New Post" form page that will make everyone's life easier.

So let's all please use it!

Specify the Flash Version you're using, by selecting the corresponding radio button above the Title entry box for the new post.Flash 5 (or older)
MX
MX 2004
Flash 8
CS3
The Flash version is automatically added to the title of your post where everyone can see it.
This way you'll get better and more specific help.


If your question relates to ActionScript 3, go to the ActionScript 3 forum.

If your question relates to ActionScript 1 or ActionScript 2, no matter the Flash version you're using, this is the correct forum to post it.

View Replies !    View Related
THIS IS IMPORTANT XML/FLASH Thumbnails
I can't get my images to load into the file? I even tried just using the full source FLA and when I just changed the address to an address of one of my images it didn't work. Anyone know why this happens?

The images work when I put them on my site; but shouldn't this still work without me uploading it to my site?

Also my scroll of the thumbnails does not work smoothly....

Check this out and see if you can help me out: http://beforemyeye1.temp.powweb.com/XMLFLASHTHUMB.zip

It's probably a problem with the actionscript somewhere.

View Replies !    View Related
Important Flash Resources [.fla Here]
I have some useful resources of flash tutorials which I collected form many popular site .I just wanted to share this resources. Now I have uploaded 10-zip files in a free site. Please check the link and download files.

I hope this files will be useful.

<snip>Link removed by advisor</snip>

View Replies !    View Related
Search Help Text Search In Flash
Hello, i'm realy stuck, and I need help... read dead end , i need to make a search on my site in flash, and also i need to explain ... what i need , example, whole site is in flash, and i need when someone wonna to find something just type word or sentence and then find on my site, but not google find or something like that... i wonna something easy, like CTRL + F, but label with find button... if anyone can help me or give me a guide i will be so happy, so thanks

sorry for my english... I hope it's readable )

View Replies !    View Related
Getting An Result From Cfc And Flash Remoting
I don't know how many here program in a coldfusion environment but I am pretty sick of creating an array of structs just so I can get a proper associative array in flash. Is there a new data object in AS3 that will automatically build this assosiative array for me? Sort of like a recordset? I've looked but I haven't found anything yet. I'm just trying to save myself and the server some time.

I also realize that I could just pass the query results to flash and then just build out my object by dynamically matching serverInfo.initialData to serverInfo.columnNames but I was hoping there was a dataType built into AS3 that did this. When I was programming in a .NET environment I didn't have a problem with this.

View Replies !    View Related
Flash Quiz Result Help
Hi! I'm new to Flash and I'm wondering if someone can help me with the personality test I'm doing for my personal site.

I made a quiz using the quiz template available in Flash 9. I have 15 questions which is divided to 3 questions per category...the 5 categories are: Food, Fashion, Travel, Art and Music. I already finished the questions part, my problem is how to customize the result where I can calculate the score for each category by using a bar graph.

ex: the result is
1 Food
2 Travel
2 Music
1 Art
3 Fashion

the graph wil be:
1 yellow bar, 2 purple bars, 2 green bars, 1 red bar, 3 blue bars.
If the user have no correct answer on a category no bars will appear.

I don't know what to do huhuhu...I tried searching for tutorials but no success :(

Need you expert help badly :(


-Andrea

View Replies !    View Related
IMPORTANT, All Flash Designers Please Read.
Hi, good day to you all.
I hope all is well, i, like you all, am trying my best to do something in Flash, something that might be atleast appreciated by someone, but the sad part is i'm new at this.
Well the point is, i would like to know other flash designers and would like to share views and points or even ideas with them, (them=you), this is no hoax, please get in contact with me, my site goes online by this thursday.
http://www.ex-arch.com, if you doubt me go to this site and you shall find out more about me.
I wait for your response, please all of you this might help us all.

Thank you,
Salman Abbas

View Replies !    View Related
Flash And Browsers Compatibilities - Important
Hi

I don't know if i'm the only one that has problems with that and I need to know the correct answer...

You all know, there are two main families in the browsers' world: IE browsers and non-IE browsers (Netscape, Mozilla, Firefox, Opera, etc.). There shouldn't be any problems viewing Flash files in either of these two because Flash is a plugin and thus, the content should not be altered because of the browser you're using.

However, I'm experiencing more and more problems when I'm testing my Flash files on non-IE browsers: preloaders that won't launch, movieclips that won't load, music that won't play, etc.

It's not funny, I've been doing Flash for 3 years and I can't figure out what is wrong. I tested my things on numerous computers and it does the same things everywhere.

A swf file is not browser-specific, it should work the same way in every browser on Earth. Then why am I experimenting so many problems like that? It wasn't doing that before... Am I the only one that has problems?

View Replies !    View Related
Google And Flash - Some Important Questions
Google now claims the be able to index flash content by extracting text and links from (.swf) files that it's robot encounters.

http://www.informit.com/articles/art...?p=454163&rl=1


- What I would like to know is. If your flash files are protected from import in your publish settings. Will this effect whether or not Googlebot can extract information from your files.
- Even better yet. What if the files are encrypted using 'amayeta'
http://www.amayeta.com/
- Does Googlebot follow loadmovie actions to find other flash files on your server or .txt files that contain html formatted text that loads into dynamic text fields.
- If not then could you put keywords and key text in your main .swf files but off the stage so that Googlebot can see it but not the web user.

I know this is a lot to ask for. But if it doesn't do any of these things then how useful is it?

View Replies !    View Related
In My Opinion The Most Important Question About Flash
What the hell!! For years now I have not been able to figure this one out. Probably a preference buried somewhere in flash but I cant find it.

You know when you are editing a symbol, there are three ways of doing so.
01: from the library
02: double clicking on symbol from stage.
03: com+E while symbol is highlighted jumps you straight to the symbol, or last one you worked with.

Now... Why is it that some times when you use com+E or the library to access the symbol does it lock the center point to the top left corner of the stage?

I know this is not just my computer... Does anyone have a solution to this problem, or is it just one of the many bugs in Flash?

Anyone??

coop

View Replies !    View Related
This Is Very, Very, Very, Very Important Is There Any Way To Save My Flash File?
Hey all, I'm new.
Basically, I just spent about five hours constructing an animation for a project due tomorrow. I did not save (I know, I'm extremely stupid), but it was a fantastic animation. (I know, I know, I need to get into the habit!)

I hit Ctrl+Enter multiple times to test the animation. Is that preview file saved any where?! Please help. Thanks.

Will

View Replies !    View Related
Most Important Flash Concepts BEFORE Actionscript
Hey Hey, I'm trying to get rolling w/ flash and I wanted to make sure I didn't miss some key basic concepts before trying to delve into actionscript.

Here's what I figure are some of the major basic areas I should make sure to be sharp on:

1) understanding the tools and their functions
2) understanding the timeline/layers/properties pallette basics, etc.
3) understanding the difference between shape and motion tweening
4) understanding the different sorts of symbols and their correct uses

ok...what else?!? what am I missing oh wise flashlords?!

graceth me with thine knowledge and I shall filleth thine cup with gratitude-eth

View Replies !    View Related
Flash Remoting Output Result With .NET
Hi

I wonder if someone can help me. I have written a Flash MX application which makes a call to a .NET application. The .NET application accesses a database using a stored procedure. I pass two values to the stored procedure which is fine but the stored procedure outputs two values. I now need to use these values within my Flash MX application but I am unsure how to actually send the results back into the Flash movie. Can someone give me a clue on exactly what I have to do. I understand that I could use the following in actionscript:

function CommitBooking_result(result)
{
// but what do I do here.
}

Would I have to place my output values into a dataset and then return
that as a recordset back to flash? I am using VB.NET.

I look forward to someones help!

Many thanks

Steven

View Replies !    View Related
Same Text Formatting, Different Result: -- Flash Bug Or My Bug?
This time, I will make a long story short. (I posted the same issue last week, but did not get any advice. Maybe because I did not explain the problem properly. Trying again. Please keep reading)

I have coded a text animation which consists in "one" character choosen randomly in the alphabet which loops throught the alphabet until it reaches the character it should display. As the animation loops, the fontSize is adjusted so it starts at 24 and end at 48.


The problem is that at the end of each loop of the animation, even thought the fontSize is ALWAYS set to to the SAME fontsize, the size of the caracter is inconsistant.

When the animation is done I log the height and the width of my movie clip using the getBounds methods, and the results are unpredictable:

In the following exemple, the letter to display at end is "E"

ex: log of first loop:
---------------------
curLetter = P newSize 24
curLetter = O newSize 26
curLetter = N newSize 28
curLetter = M newSize 31
curLetter = L newSize 33
curLetter = K newSize 35
curLetter = J newSize 37
curLetter = I newSize 39
curLetter = H newSize 41
curLetter = G newSize 44
curLetter = F newSize 46
curLetter = E DONE -- textsize=48
curLetter = E fontSize 48 height 58.9 width 31.7


log of second loop:
-------------------
curLetter = K newSize 24
curLetter = J newSize 28
curLetter = I newSize 32
curLetter = H newSize 36
curLetter = G newSize 40
curLetter = F newSize 44
curLetter = E DONE -- textsize=48
curLetter = E fontSize 48 height 56.55 width 30.5


And this is the bit of code i use on mc_enterframe to reformat the textField (just what is relevant to the problem)
this.letter: the ultimate character
this.tf: textFormat object
this.myletter : textField object

"percentdone" is calculated according to the number of character the mc must go through before reaching this.letter
---------------------------------------------------------------

// put the next char in the text field
this.myLetter.text=String.fromCharCode(this.curLet ter);

// if I am not on the letter I have to show
if (this.curLetter != this.letter) {
// figure out the current fontsize according to the total length of the animation
newSize = this.sizeMin + ((this.sizeMax - this.sizeMin) * percentDone);
newSize=Math.round(newSize);
trace ( this + "curLetter = " + this.myLetter.text + " newSize " + newSize);

// set the size property of the textFormat object
this.tf.size=newSize;
// apply it to the textField
this.myletter.setNewTextFormat(this.tf);
this.myLetter._alpha = 100;

}else
// I am on the ultimate letter and I am making sure it is formated the way I want it
{
this.done=1;
this.tf.size=this.sizeMax;
this.myletter.setNewTextFormat(this.tf);
this.myLetter._alpha = 100;
this.tellDone = 1;
}


The bigger problem is that if I animate more than one character, the end result looks like crap, because the characters are not even.

Hopefully, it makes sence this time. Please don't give up on me, if it does not, I am willing to explain again, more, better.

geraldine

attach is the swf so you can see what I mean. You might have to wait few loops but you'll see the problem. I put few character in the animation because it is easier to see the size differences.

not that short really

View Replies !    View Related
Keyword_search N Show Result In Flash. HOW?
i want to mk a keyword search form,and after i keyin some text n click on submit button,it will show the result,all progress are in flash.my flash is link to php.


here is my button AS:
on (press) {
keyword =this._parent.keyword.text
getURL("http://localhost/www/keyword.php?submit=Search&", "_blank", "GET");
}
but this way will link to php page to show the search result... i had no idea how could i present this in flash?
i mean all transaction is in flash..
WHo can help me??
beg beg beg....!! PLSEASE! T_T

2.another question....

AS CODE:
myData = new LoadVars();
myData.onLoad = function(){
placeTheDataIntoTheRightPlace();//call the function
};
myData.load("http://localhost/www/category.php");
placeTheDataIntoTheRightPlace = function(){
box.html = true;
var i=1;
while (i<10){
box.htmlText +="<a href="http://www."+i+".com">"+myData["data"+i]+"</a>";
i++;

}
}

the loop will produce few results.
n those are location name.when user click on it data,
it will link to a map,n point out the location.
like this:

anyone help me??
i hv no body to teach me....
ur help are very important for me..thx!

View Replies !    View Related
Run Flash Application And Get Result As Image (.jpg Etc)
Hi All,
I need an urgent help, i am creating an application where i am customizing (coloring, adding text etc) to bitmap through flash and i want the result as a image in jpg or any type of image file..

Thanks in advance....

View Replies !    View Related
Getting The Result Of A Javascript Function Into Flash?
This is driving me nuts.

So, I have a site that has a button on it and someone did a little javascript so that each time you click the button you go to a randomly selected URL from an array of links.

Now, I was told to give my flash button the same functionality. I'm not really a coder, so instead of re-inventing the wheel, I'm trying to get the result of the javascript into my action script. So far, I'm completely unlucky.

Here's the javascript:


Code:

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
var uc = 4;
var u = new Array(uc);
u[0] = "http://blahblahblah.html";
u[1] = "http://blahblahblah.html";
u[2] = "http://blahblahblah.html";
u[3] = "http://blahblahblah.html";
function pickRandom(range) {
if (Math.random)
return Math.round(Math.random() * (range-1));
else {
var now = new Date();
return (now.getTime() / 1000) % range;
}
}
function pickRandomURL() {
var choice = pickRandom(uc);
return u[choice];
}
</SCRIPT>
And here's the link that calls it:


Code:
onClick="this.href=pickRandomURL()"

I've tried the basic GetURL("javascript:pickRandomURL();"), but I guess the javascript isn't reaching the flash. I tried a loadVar, but I'm probably not doing it right...Ditto for PassFlash().

Can anyone help me with this please?

Thanks,

Rick

View Replies !    View Related
Flash To PHP - Can't Output The Checkbox Result
Hi,
I've created a Flash contact form and I wanted to add a Checkbox
(I work with Flash CS3, Actionscript 2.0)

Textfields work just fine, but I can't output the checkbox state.

Thanks!

Here's the code:

FLASH
-------
on (release) {

if (name eq "" or subject eq "" or message eq "" or email eq "" or kosvet eq "" or musa eq "") {
stop();
} else {
loadVariablesNum("php/form.php", 0, "POST");
}
{
name = "";
subject="";
message="";
email="";
kosvet="";
musa="";

if(cbox.getValue() == true){
var puma="yes";

}

-------------------
PHP
-------------------
<?php

$to = "edon.muhaxheri@gmail.com";

$namp = NAME;
$messagp = MESSAGE;
$kosvep = KOSVET;
$musp = MUSA;
$puma = false;
$stringall = $namp."
".$name."

".$messagp."
".$message."

".$kosvep."
".$kosvet."n
".$musp."
".$musa." n
".$puma;

mail($to, $subject, $stringall, "From: KOSVET.contact.form
Reply-To: $email
");
?>

View Replies !    View Related
Image Resize - The Result In Flash And PS
If you have an image with a text on it, let's say 200x200 pixels and you try to make it 400x400 in photoshop or other graphic program the result of course will be a little blury image.

If you put the same image in flash and try to make it 400x400 by resizing it or resizing the MC that contains it - there is significant anti-aliasing on the edges

Is there is a way to apply the resize with less anti-aliasing and more blury effect?

p.s. sorry, I realized it can be done with actionscript blur filter

View Replies !    View Related
Very Important - Sound/video Problems In Flash
Hi,

Sorry to bother but I am in huge need of getting this problem solved.

For some reason when I import mpeg into flash i get audio delay problems. The video seems to run okay but the audio always seems to start late. This problem gets progressively worse the further along the timeline I get. For example if I put two of the same movies right after one another the second has worse audio then the first and so on.

Could someone please help me on this! The video was recorded at 25fps. and the movie is 15 fps. I am outputing to cd and thus i don't mind a huge file.

Thanks,

SL

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved