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




Desperately Needp Help To Turn XML Into Array.



I have made the xmlObj but I don't know how to make an array out of it with attributes I can access.

here is the basic xml struct



PHP Code:


<channelData>
   
    <channel chNum="01" chType="LATIN & WORLD" chCat="music" chNew="NEW"     >SPA 73</channel>

</channelData> 



its pretty basic one value per item and array of attributes I just need to parse it into an array so I can use the sortOn() via the items attribues.



Thanks.



ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 09-16-2005, 04:19 PM


View Complete Forum Thread with Replies

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

Turn String Into Array
Hi all,
If i have the following:

Code:
sloj = "new Array(new Array(26,311,9062912,100,100,100,0,'spray',33), new Array(28,311,9062912,100,100,100,0,'spray',34));";
how can i change this so the sloj variable isn't a string but an actual multi demensional array? At the moment it is just a string.
Cheers,
macca

Turn A Func To An Array?
******compeletly forgot : AS2.0 Flash8


Hi ... I’m just starting out on really learning java scripting and flash interaction... got this little test function to work great... but I’m not sure how to turn it in to an array... I've tried and tried and have gotten no were... so i was think may-be some one could show me what a few of the ways to do it so i can see a good working model for me to go off of....

here is the actionscript (don't poke fun i'm still learning...)

Code:
import flash.external.ExternalInterface;
function getTextFromJavaScript(str:String):Void {
PG_1.APP_Email.text = "" + str;
}
ExternalInterface.addCallback("sendTextToFlash", this, getTextFromJavaScript);
function clickSend(eventObj:Object):Void {
var jsArgument:String = PG_1.APP_Email.text;
var result:Object = ExternalInterface.call("getTextFromFlash", jsArgument);
PG_1.APP_Email.text = "" + result;
}
PG_1.send_button.addEventListener("click", clickSend);
mind you I’ve work hard to get this far... just have not been able to move ahead


so the array example that I think I could get a good idea off of would be 4 items... unless some one think more makes a difference... I will be having a app to make in the near time that will have about 200 TextInput, CheckBox, ComboBox, and DataGrides so ideas would be great... they all will be much like this...

PG_1.APP_Email.text <TextInput
PG_1.APP_Yes.Boolean <CheckBox?
PG_1.APP_States.selectedItem <ComboBox?
PG_1.APP_Email.selectedItem <DataGrides?( a row of data ie: Item id, Item Name, Item Date ect)



I'm not sure about the muilt selects... and i'm not even sure about what i got lol... any examples or tips, heads up would be great...

Incase it matters.. here is the javascript... (which also need to be an array i'd asume)

Code:
<script language="JavaScript">
function getFlashMovie(movieName) {
var isIE = navigator.appName.indexOf("Microsoft") != -1;
return (isIE) ? window[movieName] : document[movieName];
}
function formSend() {
var text = document.htmlForm.m7feu_input_email_address.value;
getFlashMovie("v2.d").sendTextToFlash(text);

}

function getTextFromFlash(str) {
document.htmlForm.m7feu_input_email_address.value = "" + str;
return str + "";
}
</script>
I'm a designer not a coder ... I just wish my bosses would stop trying to save money by haveing a crapy coder code crap... lol... Please any help would be great thanks....

Turn Array Values Into Strings
I was wondering how you make sure an Array has quotes around each value.

simply, I'd like:
array_1 = new Array(cat,dog,the green frog)

to turn into
array_1 = new Array("cat","dog","the green frog")

Turn Part Of Array Into Button...
i was wondering if there's a way to change the last bit of the array (name@place.com) into a button with actionscript? or any other suggestions?

here's a still of what it looks like:


ActionScript Code:
contactInfo = [["Location", "NW" + newline + "Portland, OR"
+ newline + "97209"], ["Telephone",
"555.555.5555"], ["Email", "name@place.com"]];

xPos = 20;
yPos = 20;

for(i = 0; i<contactInfo.length; i++){
attachMovie("conBox","new"+i, i, {_x: xPos, _y: yPos});
xPos += this["new"+i]._width + 50;
this["new"+i].head.text = contactInfo[i] [0];
this["new"+i].content.text = contactInfo[i] [1];
}

Turn Array Values Into Variable & Value
Hi there - fairly simple question - i want to turn the value of two arrays into a variable and value:

ie:


Code:
name[2] = value[2]

say for example - name[2] is "Address" and value[2] is "23 new street"

how can i write it so that flash creates a new variable called Address, with the value "23 new street" ?

Cheers

[F8] Function To Use 1 Element In Array & Turn The Rest Off?
I have a list of mc's in an array. When one is turned on (say visibility), I'd like the others to turn off. I know it's probably a for statement, but I can't wrap my head around this one.

Any help is appreciated. Thanks...

Turn A Array Of Variable Names Into Actual Variables
Hi all,

I have an array filled with the names of variables I created dynamically. I am trying to get these array items to act as the name of the variables while running through a loop but I get the error. "ReferenceError: Error #1069: Property text not found on String and there is no default value".

Flash sees the array items as strings rather than a list of variable names. I tried this a couple of ways but no matter how I hold these variable names they are in string form. So I guess what I really need is a way to convert a string to a variable name.

Here is the code I am using right now.


ActionScript Code:
for (var i=0; i<myMCArray.length; i++){
            outXML += "<display_obj>";
            outXML += "<value>"+myMCArray[i].text+"</value>";
            outXML += "<pointX>"+myMCArray[i].x+"</pointX>";
            outXML += "<pointY>"+myMCArray[i]y+"</pointY>";
            outXML += "</display_obj>";
        }

Thanks for the help my transition to AS3 has been a bumpy one.

Flash In Kiosk Mode - Turn Off / Turn On Launch Schedule
Hi Forum

I am creating a little flash app for a kiosk. We will be using a Mac. (not sure about OS yet, but probably 10.4 or up. )

1) Is there a way to automatically launch the flash app on startup on a mac?
2) Is there a way to schedule a shut off and launch time on a mac? We'd like the machine to automatically shut down at midnight and relaunch at 7am for example. Is there an application that handles tasks like these built in the OS or is there some application out there that would handle this?

Any advice or insight appreciated.

Thank you

Best

Stephan K

Changing Instaint Turn To Gradual Turn
I have this code that makes object one turn and face another object. They both move. How could I change this code so instead of the object instantly facing the other object, it gradually turns to face it?

k = Math.atan2(_root.man._x-this._x, this._y-_root.man._y);
g = k*180/Math.PI;
this._rotation = g;

Is It Posible To Turn The Turn The Visibility Of A Whole Layer Off?
I kniow you can set the visibility of individual symbols in a layer by targeting their instance names, but is it possible to target the whole layer?

Page Turn Effect / Turn Off
Is anyone familiar with the page turn effect here: http://www.iparigrafika.hu/pageflip/?

If so, do you know how I can turn off the effect? What I want is to be able to go directly to page 14, for example, without having to wait for all the pages to turn to get there. Thanks for any help.

My goal is to offer the "turn off" option for users with slow processors.

http://www.iparigrafika.hu/pageflip/

Desperately In Need Of Help
I have some actionscript to find a number...
I want to compare this number (represented as date1) to a bunch of other numbers that are in the movie... Each number will be in the same place, and is not going to change.

How could i accomplish this? Do I use labels, amd make each number in the movie its own layer???
Or some other mystical command I have yet to find?

then, how would i then use the results from that to make it so that an "X" would appear right ontop of that number. [the number on the movie]

Help Desperately
does anyone know how i can make flash remember a nmae inputed in a text box?

this is the link to the example...
http://bubblegum.parsons.edu/~mykim/.../test_pre.html

thanks
you will be helping a lot!

Help Need Desperately
hi all, i reali reali need help badly in a major assignment again..=( and this is crucial..im doing a drag n drop kinda ting on decorating a snowman..wat happens is, after decoratin the snowman with different elements i create , im required to have the decorated snowman appear in the next scene with a different background and removing those elements which i never used and drop it on the snowman...
i need to detect which elements i drag n drop on the snowman itself and have the exact decorated one reappear in the next scene but i duno how and im going nuts! this required complex action script thats y im posting here for help...=( im using flash 8 btw...thanks alot to those who can reali help mi help! :crazy: :crazy: :crazy:

HELP NEEDED DESPERATELY
How do i pass a session ID within a flash interface?

Is flash to java scripting communication reliable if so please could you tell me how to do it

THANKS

Newbie Desperately Needs Help
Ok, here is what I am wanting to do:

I want to create a html editor in Flash that can open, edit, save, and upload html pages, images, etc to their server. I want the user to be able to switch between views (i.e. between viewing the html code, and viewing what the page actually looks like).

I would like it to have all of the normal functions of an html editor like adding images, setting page properties (bg color, text color, basic page properties), adding links, adding tables, etc, etc.

I would like it to be saved as a projector file afterwards to that they can run it easily. (I know how to do that part-LOL!)

CAN THIS BE DONE????? The reason I am wanting to develop something like this is for my design clients who wish to make changes to their sites themselves after having their site initially constructed by me. I am not planning on charging them for this extra little program. I would just like to offer it to them as a free service.

CAN ANYONE GIVE ME SOME TIPS ON WHERE I SHOULD START??? I haven't really used Flash much, I usually use Swish, but I know that Swish won't be able to do all of the things I need it to.

If anyone would be willing to work with me one on one to develop this, I would be happy to include their logo etc as a credit in the final program.

Thanks so much for reading my post! Have a great weekend!

Monica

Help Desperately Needed
I have posted this before but got no helpfull respons.

Is there code that I can use for a double click action in flash

Because the Instance is dragable so (press) and (release)
has been used already.

???????????? WHAT DO I DO ?????????????????

Desperately Confused...
I have a movie with 7 scenes, in each scene there is a drop down menu inside a movie clip, each button in the menu is assigned a script to be sent to a scene ie.
button titled-"profile button" is sent to the scene titled-"profile", but...
here's my problem, after the button is clicked, I need the movie to play on the timeline a certain amount of frames. Each button in the menu movie clip has to play the same frames before departing to different scenes.

In this example I want the button "profile button" when clicked to play the timeline untill it reaches the frame labeled "contact exit", then go to and play scene titled "Profile" on frame labeled "profilestart"

*script atatched to "profile button" (which is in a movie clip):

on(release){
_level0.section="profilestart";
tellTarget("_level0") {
gotoAndPlay("Contact, "Contact exit");
}
}

*scene: "Contact"
*frame label: "contact exit"
*script atatched to that frame:

gotoAndPlay(section);

This works if I play 1 scene only, when I play the whole movie it skips parts and gets confussed.
I have tried changing the level numbers, but I'm stumped.

I hope someone can make sense of this.
Please Help

Help Desperately Needed
Can anyone tell me if there is a way to pause my flash movie so that it will not start until the webpage has completely loaded?

Thank you in advance

Desperately Need Preloader Help
Can anyone help me with a preloader problem that I am having? I am working on a site

www.putthecameraonme.com

I have tried about 5 different preloader techniques but keep getting the same problem; The preloader doesn’t appear until the site is almost completely loaded. Has anyone else encountered this problem? If ANYONE can help me I would appreciate it. If you can help please email me at cam@blueninja.net

Thank you

Desperately Seeking Help On ...
Hi all,

Problem 1) I cant figure out WHY I cannot launch my own exporting swf file from my fla. I am using MX exporting my movie with flash 6 option and I have flash 6 installed. I sent it to other people, they have the same problem playing it. It keeps saying "failed to open document" when I try to "double click" on file name. It's OK if I "right click" and choose "OPen with". What the heck am i doing wrong?

Problem2) I try to open a full size window for another swf clip (from the main swf via a button) using:
On Release {
getURL("javascript:void(window.open('volley-0304.swf','volley','fullsize=yes'));");
}
It opens the first window (not full size) with content but it also tries to open more windows (not full size) and give me lots of clicking noises and hang the computer? Did I correctly code this?

Thanks

Desperately Seeking Help...
Hi...
I'm trying to set up a portfolio site and I've tried two methods for dynamically charge my pics in a MC, one with an array, the other with loadMovieNum.
However, there seems to be some problems I can't find...
Maybe some of you guys could take a look at my files. You'll have to play around with it a little with some pics of yours to test arrays and images to be loaded but I don't think I'm that far... the other thing I'd like to be check are the section buttons (illustration, sketchbook, and so on...). I'd like'em to stay lighted when pressed and back to normal when another button is pressed (and lighted).
Thanx you guys... i really need that help.

Help Desperately Needed
So, i've got a character that moves around the screen, and i'd like it to shoot a bullet (a simple circle or square) in the direction that it's facing. Below is the code attatched to the character movie, any suggestions on what to do?

onClipEvent(enterFrame){

// VARIABLES
this.xspeed = 0;
this.yspeed = 0;

// LEFT
if (Key.isDown(Key.LEFT)) {
this._rotation += -15;
}

// RIGHT
if (Key.isDown(Key.RIGHT)) {
this._rotation += 15;
}

// UP
if (Key.isDown(Key.UP)) {
this.yspeed += Math.cos(this._rotation*Math.PI/180)*-5;
this.xspeed += Math.sin(this._rotation*Math.PI/180)*5;
}

// DOWN
if (Key.isDown(Key.DOWN)) {
this.yspeed += Math.cos(this._rotation*Math.PI/180)*3;
this.xspeed += Math.sin(this._rotation*Math.PI/180)*-3;
}

// UPDATE MOVEMENT/DIRECTION DATA
this._x += this.xspeed;
this._y += this.yspeed;
}


The bullet will be shot when the player presses space. I'm desperate for help, so any would be greatly appreciated.

Desperately Need Some Help With A MP3 Problem
Ok, here's the deal. I have this video player, and I have an swf that I'm loading it, and an mp3 that I'm also loading at the same time. Then when the user hits play, they both start. This works fine.

My problem is the fast forward and rewind buttons. The way I have them setup for the swf is that there is an onEnterFrame handler that checks to see if the ff button is pressed. If it's pressed, the onEnterFrame function adds two to the swf's currentFrame property. It works great, but how do I fast forward the sound as well? I could calculate the milliseconds that the sound needs to start at by basing it off of the frame rate (36 fps) and the current frame. The problem is that the start function of the sound object only takes seconds.

Any thoughts on this?

Desperately Need Some Help With A MP3 Problem
Ok, here's the deal. I have this video player, and I have an swf that I'm loading it, and an mp3 that I'm also loading at the same time. Then when the user hits play, they both start. This works fine.

My problem is the fast forward and rewind buttons. The way I have them setup for the swf is that there is an onEnterFrame handler that checks to see if the ff button is pressed. If it's pressed, the onEnterFrame function adds two to the swf's currentFrame property. It works great, but how do I fast forward the sound as well? I could calculate the milliseconds that the sound needs to start at by basing it off of the frame rate (36 fps) and the current frame. The problem is that the start function of the sound object only takes seconds.

Any thoughts on this?

I Desperately Need Some Help For A New Site.
Ok I have a mailing company that sends out tens of thousands of direct mail, postcards, greeting cards, holiday cards, etc to other companies customers. And I am building a new site for the business, I am in need of something I dont know if is a script I need or what, but I need something where my customers can go to my site, and fully be able to customize their card to their needs, and I want the card to be able to be seen as they are building it. Like what verbage they want on the card templates they can choose from for the card different designs, and such. I would like them to be able to fully place a order on the site.

So if anyone knows what I am needing please feel free to feel me in, on what to do.


Thanks,

David Adams

I Desperately Need To Solve This Problem :(
Salutations!

What are the major reasons why:

1) a getURL command to fetch a php document results in an alert box saying the file does not exist or is not accessible (when it is)

and

2) a loadMovie command to a swf results in a blank page?

Please respond!!

Thanks!

Preloader Help Desperately Needed
well, i have never used actionscript in my entire life untill now....i am working on a preloader and learning from the tutorials section in fk. in the tutorial, some codes were given like "loadpercent" and i tried to insert that code in the scene put i could not find any place where loadpercent was there.

this are the codes i need to use:


Code:
loadpercent = "0%";
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000
+ " Kb";

and:

loadPercent = (Math.floor (_root.getBytesLoaded() / _root.getBytesTotal() *
100) + "%");
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " Kb
of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb total Loaded.");

and also:

this._xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
there are other codes like gotoandplay and i was able to find that under basic actions but actions such as loadpercent and all, that i was not able to locate from the actions menu. what do i do?
for more information go to this link:
Creating an Advanced Preloader in Flash
i understand everything else put i dont know how to insert the actionscript if it aint in the actionscript menu. help please!

Desperately Needs Help Html Codes.
After making a text animation in FLASHtyper, and downloading it onto your pc, how do you use it on a webpage? Where can I get the html code to put onto my page? AHHH this is driving me crazy lol, I've been trying to figure this thing out for 2days now. Can someone help?
-DanO

Button Mx Help Desperately Needed
Hi I need serious help. I am loading external swf files that are in the same folder as the opening swf. On the buttons I have the code

on(release){
loadMovie("drops.swf","empty");
}
drops.swf is a small movie created in Mx. Opening also was created in MX. "empty" is the target movie clip area of the opening swf. What have I missed its due soon and I used this code in Flash 5 without any problems but now I can't get external swf files to load and play.

Please help me designitall

Help Desperately Needed With Arrays
I have created an array like this:

myArray[0] = "January"
myArray[1] = "February"
myArray[2] = "March"
myArray[3] = "April"

Now I would like to know the array position where, say, "March" resides. I can see with my very own eyes that it is [2], but how do I tell Flash (mx) to find this position easily ?

Any help greatly appreciated.

- Harry S

Desperately Seeking For An Answer : (
Hello Ladies & Gentlemen....

Need help for my simple(maybe dumb) question...

Have 'html' page... containing 4 frames... one is named 'frame0' ...

thats the 'main page' which contains embedded flash movie...

in another frame i have my html with 'flash botton movie' embedded

as well....

i tried this actionscript to one of my flash bottons... but DOES NOT

work....


on (release) {
getURL ("about.html", frame0);
}


Coul you kindly let me know what is 'correct actionscript' when a one

of my "flash button" is clicked ... it will load another html page

that contains another embedded flash....


Waiting for your QUICK respond...

Thank YOU in advance...

Desperately Script Needed
Hi everyone...i'd really appreciate it if someone can help me out. what i need to do is the following: i have my flash movie in which i need to place an actionscipt at different places that will make the movie stop at these places for a time of 20 seconds and then continue regularly until the next frame where it will have the same script and so on.....
how can this be done??
thanks in advance for your help!

Desperately Quick Answer
I need a desperately quick answer here.

How do I reference dynamic fields to correspond with input fields on another frame?

Thanks

Desperately Seeking...hitTest
Okay, I'm pretty horrible at doing Flash. I'm taking a class in it and I have this homework assignment that involves using the hitTest function. Now, I've used this one before with no problem. However, as soon as we get to a group assignment and someone else's grade is depending on me...I can't do anything. So I'm really really hoping someone will know what to do.

Here's the deal--
I'm making this Harry Potter quidditch game (don't laugh, it's a group-decided theme! ;D), and I want to cut to a different frame and/or scene when Harry (the cursor) collides with the snitch. I've only seen hitTests where something additional shows up on the screen. For instance, I could make Harry say "Ouch!" if he got hit with something no problem. But I can't make an entirely new screen. Apparently

if (this.hitTest(_root.thing)) {
gotoAndStop ("Scene 2");
}

Doesn't work. I've tried everything... Please help. =/

Thanks,
Ali

Desperately Need Assistance With Instances
i have created a flash file to show information about credit cards. there are three main types on the first screen. if you click on the middle one you are shown 2 new cards on a second screen. you can view information about each card by clicking on it.

everything seems to work until you open a card on the second screen , close it, return to the first screen by hitting [Back], then return to the second screen, open the same card and trying to close it, but it won't close

i have found that new instances are being created with '..instance#' names. the [X] used to close the card info window is supposed to send each clip back to the first frame and stop, but i think its not pointing to the correct instance

will someone please take a look and give me your thoughts. i am about to go over my deadline and need help desperately

thanks

Mouseover Help Needed Desperately
I am new here and glad there is no such thing as a dumb question!

I have a gallery I am working on for a friend and I am new to Flash. I am really stuck. He is pretty set on having the gallery do a mouseover to open the pics and not a click action.
Tried quite a few things and cannot get it to work.
Also tried writing to the person who created the gallery and he said no it isn't possible because it woudn't be easy.

I feel like thyat was a bogus answer but I am not knowledgable enough at Flash to make it work. Here I have added the code and also a link to what this all does.

Would sure appreciate any and ALL help!!!!
Thanks in advance.

Di'
Link
http://www.h2einteriors.com/siteredo...y/gallery.html


Code:

MovieClip.prototype.fadeMc = function (targ, speed) {

if (targ > this._alpha) {

this.dir = 'plus';

} else {

this.dir = 'minus';

}

this.onEnterFrame = function () {

if (this.dir == 'plus') {

this._alpha += speed;

if (this._alpha >= targ) {

this._alpha = targ;

delete this.onEnterFrame;

}

} else {

this._alpha -= speed;

if (this._alpha <= targ) {

this._alpha = targ;

delete this.onEnterFrame;

}

}

};

}



//create new text format object

myGallery.autoLoadXml = false

myGallery.navFormat = new TextFormat()

//assign styles

myGallery.navFormat.font="standard 07_57" // make sure font is in library

myGallery.navFormat.size = 8





myGallery.captionFormat = new TextFormat()

//assign styles

myGallery.captionFormat.font="standard 07_54" // make sure font is in library

myGallery.captionFormat.size = 8



myGallery.linkFormat =myGallery.captionFormat



moniello.txt.txt.text = moniello.txt1.txt.text = "MONIELLO"

harriger.txt.txt.text = harriger.txt1.txt.text = "HARRIGER"

bergin.txt.txt.text = bergin.txt1.txt.text = "BERGIN"

taylor.txt.txt.text = taylor.txt1.txt.text = "TAYLOR"

sing.txt.txt.text = sing.txt1.txt.text = "SING"

smith.txt.txt.text = smith.txt1.txt.text = "SMITH"

people.onRollOver = moniello.onRollOver = harriger.onRollOver = bergin.onRollOver = taylor.onRollOver = sing.onRollOver = smith.onRollOver = rollOverB

people.onRollOut = moniello.onRollOut = harriger.onRollOut = bergin.onRollOut = taylor.onRollOut = sing.onRollOut = smith.onRollOut = rollOutB

people.page = "people.xml"

moniello.page = "moniello.xml"

harriger.page = "harriger.xml"

bergin.page = "bergin.xml"

taylor.page = "taylor.xml"

sing.page = "sing.xml"

smith.page = "smith.xml"

btns = [people, moniello, harriger, bergin, taylor, sing, smith]

people.onRelease = moniello.onRelease = harriger.onRelease = bergin.onRelease = taylor.onRelease = sing.onRelease = smith.onRelease = getPage

function getPage(){



myGallery.loader.clear()

for(var i=0; i<btns.length; i++){

btns[i].enabled = true

btns[i].onRollOut()

}

this.onRollOver()

this.enabled = false

myGallery.loadXml(this.page)

}

function rollOverB(){

this.bg.fadeMc(0, 20)

this.txt1.fadeMc(0, 20)

}

function rollOutB(){

this.bg.fadeMc(100, 20)

this.txt1.fadeMc(100, 20)

}

people.onRelease()



// create event listener object

var mylistner:Object = new Object()



//set roll out and click behavior

mylistner.thumbClick = function(eventObject:Object){

var tmp = _root.createEmptyMovieClip("tmp", 1000)

myGallery.loader.clear()

myGallery.loader.drawRect(eventObject.thumb._x, eventObject.thumb._y, eventObject.thumb.mask._width+6, eventObject.thumb.mask._height+6, 0xFFFFFF, 20)

tmp.onEnterFrame = function(){

eventObject.thumb._alpha+=10

if( eventObject.thumb._alpha >= 100){

this.removeMovieClip()

}

}

eventObject.thumb._alpha = 0

eventObject.thumb

}



// Add event listeners to instance of component

myGallery.addEventListener("thumbClick", mylistner)

Publishing Help Desperately Needed
i am trying to set up an easing image system, similar to that of the tutorial of the easing menu system, (except that instead of menu items there are images). (this tutorial is by comciGeek | www.KELdesigns.vze.com). everything looks really good in the .fla and .swf files, but when i go to publish it to an html nothing works. i am currently using flash mx on a windows xp o.s. can anybody please help me... i am desperate, and i am not sure what the heck is going on. i would appreciate any help you could give me,
thanks,
jeff bergeron
run77@juno.com

Desperately Need Remoting Assistance
We are trying to write a Flash application that accesses a Coldfusion component which queries an SQL Server database and returns the results to the Flash app. I know this can’t be as difficult as it seems to be. All of the solutions that I find on the web have to do with PHP and MySQL. Can anyone help us? Please don’t assume that we are gurus if you respond. I realize that it is highly unlikely that you will given our present cluelessness, but one never knows. In other words, please keep it as simple as you can.

We are programming in Flash 9.0 (ActionScript 3.0) under CS3. We are running Coldfusion 6.1.

Please help!

Thanks in advance,

Gary

Desperately In Need Of Flash Assistance.l
What can I do to reduce the size/increase the loading speed of my flash file? My sites always come out taking around a minute or two to load, and it PISSES ME OFF! hehe Thanks for the help guys

Desperately In Need Of ASP Contact Form
Hi there, I made a contact form based on PHP, which works fine, but it turns out the server only works with ASP. I really need a good tutorial to rebuild the contact form based on ASP. This is it:


HTML Code:
http://www.debranding.eu/sw_form.html
THANKS!

Desperately In Need To Optimize A Cycle
I am making a Connect Four game with some variations, using MiniMax for the Computer Algorithm, the thing is, the cycle that creates the decision tree is way too slow, cant really calculate much.

Here is the code I am talking about:


Code:
function construirArbolJugadas(nodo:TreeNode, prof:int){
constructAttemptTree()
{
for(var i:int=0;i<13;i++)
for(var j:int=0;j<9;j++)
{
var currentAttempt:Attempt = new Attempt(0,i,j);

if( Maps.isValid(currentAttempt)==false )
{continue;}

var destinationAttempt:Attempt = Maps.getDestination(currentAttempt);

if(prof%2==1)
{Maps.blueMap.set(dJ.X,dJ.Y,true);}
else if(prof%2==0)
{Maps.redMap.set(dJ.X,dJ.Y,true);}

currentAttempt.val = Maps.getScore();

var attemptNode:TreeNode= new TreeNode(currentAttempt,node);

if( !(currentAttempt.val==1000||currentAttempt.val==-1000||depth==maxDepth) )
{constructAttemptTree(attemptNode,depth+1);}

if(depth%2==1)
{Maps.blueMap.set(dJ.X,dJ.Y,false);}
else if(depth%2==0)
{Maps.redMap.set(dJ.X,dJ.Y,false);}
}
}
}
I am using Polygonal´s AS3 data structures.

Attempt is an object that stores an integer X and Y to point at a gridsquare.

If you see something obvious that makes the recursive call so slow I would really appreciate the mention.

Thank you in advance!

Desperately Lossed My Scope, Please Help.
I just don't get it. I have downloaded every sample fla file and every tutorial on the web that I can find to create the simplest elastic menu and yet I can't get it to work.

I have a horizontal menubar with a centerpiece navigational symbol. The centerpiece is a moviescript with a button in it as are each of the menu items.

the basic idea:----------------------------------------------------------------
PASSIVE STATE: the only part of the menu visible is the navbutton.
EVENT: MouseOver - causes the menu to become active (see below)

ACTIVATING STATE: this is the time when it is animating into active state (see below) *** this is where I am lost.

basically, of the six menu options, the two closest to the navbutton bounce up from below the stage (the navbutton resides near the bottom of the stage). Then the next two bounce up and then the last two until they are all lined up close to the bottom of the stage.

ACTIVE STATE: all menu items are present and act like a regular menu.

EVENT: MouseOut - causes a timer to start
EVENT: Timer >3 seconds reverse the ACTIVATING STATE

--------------------------------------------------------------------------------

I started by creating a movieClip with the navButton using the attachMovie function to attach each of the arrayed menu items. I used the initObj property of the attachMovie function to initialize all of the menu options and was able to get them to appear nicely in their inverted parabolic state like I suppose they should be to start (when hidden).

I have created events using hitTests, button actions, etc. etc. and yet I cannot get the individual menu items to rebound up when I roll over the NavButton or when I click it, threaten it, scream at it, cry to it, beg it... etc. I feel like a complete imbecile that I can't make this work. PLEASE HELP.

Linking Help Needed Desperately
how to link a swf file to another swf file? cus i tried linking using scenes but it's giving mi bug problems...urgent,,,

Turn Off And Turn On Again SetInterval
sorry , here is the file...

Timing. Turn By Turn.
Question:

if you have played the game FINAL FANTASY (any of them) you'll have a better understanding of what i am talking about. there is a think called ACTIVE TIME BATTLE (ATB) this is timing for u and your enemy.

when it is your turn to attack, the enemy's "clock stops" so u can decide what attack you want to use. then once you have cosen it, your character will attack, and then the enemy will attack before its your next turn again. then the process is continued until 1 character faints.

my question is i need to learn how to make the enemy only attack once after my character attacks, basicaly i need to know how to make the 2 (or however many characters there may be)
(no more then 6 in 1 battle)

good guy, enemy, good guy, enemy

basically like taht. if any1 has any tips or scripting they'd likde to help me with it would be highly appreciated.

thankyou.

P.S. if more explanation is needed of the topic just reply and i'll try to clear it up.

Turn Off And Turn On Again Set Interval
Hi all...

I have a problem with setinterval :

I have 4 frame , 1st frame :

stop();
setInterval(slideshow,3000);
function slideshow(){
nextFrame();
}


At frame 3 I have a mc , in that mc I have a button. If I click
it mc move right. So I want when I click the button in the same time I turn off setinterval (time line stop at frame 3) , then when I click the button in the second time (mc at right) I reactivate setinterval. Here is I attach the file......


many thanks

Sending Variables Help Desperately Needed
My problem is that I have two seperate flash movies (.swf) embedded into an html page. I want one movie to cause the other movie to go to a certain scene. Can anyone help me out???


Sean

DESPERATELY SEEKING SCRIPT HELP PROS ONLY
Hello forum and thank you,

Let me get down to the nitty gritty...

I have a menu system making up the MAINTIMELINE. After you press button 1 it loads company.swf into level 10 and moves the MAINTIMELINE to a space where none of the existing buttons are. My problem is when I go back to the menu system and press button 1 it RELOADS company.swf into level 10 all over again... How do i get it to play a second time around?? like i know you gotta do a IF statement.. but I don't know how! I'm over my head...please help

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