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




Pulling Taffy



I'm looking for an AS solution to creating an elastic screen transition. I want the screen to stretch and snap into position, before loading the contents any ideas on where to start?



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 06-13-2004, 06:03 PM


View Complete Forum Thread with Replies

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

Pulling Taffy
I'm looking for an AS solution to creating an elastic screen transition. I want the screen to stretch and snap into position, before loading the contents any ideas on where to start?

HELP Pulling Url From XML
Hello,
First of all in the attachment is the flash that connects to the XML below.

In the flash AS i have setup the XML connection etc which works but when i put an onRelease function for the image to retrieve an url from the XML, it fails to do so.

Is it at all possible that someone can help me?
Thank you,
Carl

XML----------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>http://www.carltaylor.eu/untitled.JPG</image>
<link>http://www.carltaylor.eu</link>
</pic>
<pic>
<image>http://www.carltaylor.eu/untitled2.JPG</image>
<link>http://www.carltaylor.eu</link>
</pic>
</images>

HELP Pulling Url From XML
Hello,
First of all in the attachment is the flash that connects to the XML below.

In the flash AS i have setup the XML connection etc which works but when i put an onRelease function for the image to retrieve an url from the XML, it fails to do so.

Is it at all possible that someone can help me?
Thank you,
Carl

XML----------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>http://www.carltaylor.eu/untitled.JPG</image>
<link>http://www.carltaylor.eu</link>
</pic>
<pic>
<image>http://www.carltaylor.eu/untitled2.JPG</image>
<link>http://www.carltaylor.eu</link>
</pic>
</images>

HELP Pulling Url From XML
Hello,
First of all in the attachment is the flash that connects to the XML below.

In the flash AS i have setup the XML connection etc which works but when i put an onRelease function for the image to retrieve an url from the XML, it fails to do so.

Is it at all possible that someone can help me?
Thank you,
Carl

XML----------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>http://www.carltaylor.eu/untitled.JPG</image>
<link>http://www.carltaylor.eu</link>
</pic>
<pic>
<image>http://www.carltaylor.eu/untitled2.JPG</image>
<link>http://www.carltaylor.eu</link>
</pic>
</images>

Pulling Rgb Hex
HI,

I am using the tutorial on:

http://www.kirupa.com/developer/actionscript/color.htm and I am wondering if it is possible to put a dynamic text box on that page, and when you initally load the page, it will give the hex value, and when you rollover the "new color" that dynamic text box will change real time.

thanks

fyl

Is Pulling Sound Out Of A .swf Possible?
Can you pull a sound track or sound effects out of a SWF file? is this even possible? I know its in there, but cna it be salvaged?

many thanks-

Pulling Variables From A URL:
Is this possible? Example:

someone goes to

http://www.server.com/flashmovie.html?variable=value

The .swf examines that URL, and parses it (is parse the right word?) such that the variable and value are extracted and used in the movie.

Maybe this is what generator is for, but I'm just looking for a way to get dynamic text into a movie..

Pulling From .txt File?
hello, I need to know how to pull from a file called amount.txt and put it into my movie in the dynamic text box called getamount .... If anyone can help that would be good.

thanks,
kal

Help Help Help, I'm Pulling My Hair Out
just to quickly outline the problem

need two buttons (next and previous) which can control a tweened timeline by playing the playhead backwards and forwards but will also stop at certain keframes to allow the user to read the content.

i don't want to use the old 'reverse frames' trick.

can anyone help?
ste

//////////below_ is the actual problem i have

lets say my movie clip is called 'myMC'

myMC has 40 frames and two layers

layer one has the text context i want to scroll. it will scroll top to bottom. the text content has four 'sections' these are;

text one
text two
text three
text four

layer one (still inside "myMC') has 4 keyframes, the text content is a symbol which is tweened between 4 keyframes (over the 40 frames of the timeline) to make it look like it is scrolling, when masked.

layer two is a mask
this masks off all the text content, so the viewer can only see one section at a time.

where do the buttons need to go? On the _root timeline or can they be inside "myMC' i only want two buttons controlling the text content, next and previous.

i need the buttons to be intellegent enough to know where the user is on the (myMC)time line so they can scroll the text content up and down.

the scrolling is simulated because all i want to do is make the buttons play the tween forwards or backwards and stop at the right place.

can you help?

i would be very very grateful if anyone could offer a solution to this problem, i've been tearing my hair out for four days on this one!

ste

Pulling Info Out Of URL
is there a way to get the _url property and strip off everything after a particular character and the file suffix?

So that all of the following would = "people"

people.asp
people_nameone.asp
people_nametwo.asp

so that no matter what the url is i just get the first word?

would appreciate the help.

Phatius

Pulling Out Hair
I have this damn code at home and I thought I remembered how to do it but it isn't working. I am trying to create and empty movieclip with actionscipt and then fill it with a graphic from my library. So I made the graphic ready for export for actionscript and gave it the name border. Then I wrote this code on the first frame of my movie:

Border.createEmptyMovieClip("newBorder",1);
newBorder.attatchMovieClip("border","newB",1);

I know I am really close but the damn thing won't work. I have it right at home but I don't want to go there to figure it out. Thanks

Pulling My Hair Out
ok, i know this has a simple solution but i just am unaware of it.

my problem is with loading movies. if i load them on to a seperate layer (exam: the main is on layer 0 and the rest are on 1) then the main page on layer zero flashes up in between loads.

i am now trying to use a holder but am having probs with it. do i want to load to different levels or use a holder in some way?

if i want to use the unloadmovie then how do i factor that in?

please please help!!!!!!

thanks,
lawrence

Help Pulling Lines From A Cgi Doc
Hi. I'm making a screensaver for a chat-centric website. I would like to build one that pulls random lines from our "quotes" page. The quotes are sitting on a document on the save server. How can I pull a random line every few seconds to display somewhere in the screensaver? I would also like this to reflect any changes made to the original quote doc in real time.

Thank You.

Pulling My Hair Out
http://www.itclimate.com/test/index.htm

I really don't know what's going on here and I'm starting to think I've bitten off more than I can chew!

This site works perfectly when I test it locally (using Flash 5) but when I upload it, the buttons just point to any old page in no particular order. "Downloads" is the main problem. If you click this button it always seems to take you into the case studies and then the case study buttons won't work. Once the user has clicked a few times it seems to rectify itself but initially, it's a real mess. Every time I upload it, the worse it gets!

I'm quite new to Flash, so I've tried to keep the site as simple as possible. Each section is a new 5-frame scene (with the exception of the case studies - these are much longer but also broken up into scenes). The only Actionscripting I have used is to tell buttons to point to a specific scene. Once they're in that scene they will always start at Frame 1.

I've also noticed in the How It Works section that when the user clicks the last button (Security) it closes the window. This button is meant to work as the rest do and go to the section on Security. I have tried deleting the button and uploading the site without it but then the same thing happens to the next button (i.e. Time).

Has anyone experienced this type of thing before? Can anyone help me??? Pleeeeease?

P.S. The login button takes you out of the website into another one, so don't click it.

Hairless From Pulling.
You guys said there are no dumb questions...well here is one.

In the "Swish" application there is an effect you can apply to text called "Transform". I have seen this used in many flash presentations. the letters appear as if hovering above the page for a second and then fall to the final position in rapid succession as if someone where dealing them out like a deck of cards.

I have spent a painful amount of time trying to duplicate this effect in MX, by trying breaking appart the letters and putting them on layers and then transform the size and use motion tweening. I have tried different lengths of the tween.. i have changed the fps setting. I have tried different amounts of overlap... nothing seems to work. It never plays fast enough and I cant get the fade-in effect to look correct. I am using a font called Black Adder II.

If anyone knows the secret to this, simple, I am assuming, Technique, can you please post. or email me at mr65mike@comcast.net before i need a toupe`

Pulling First Later Out Of A Variable?
Hello,

I need the ActionScript to pull the first later out of a variable.

Ex. Var1= "Hello"

I need to pull the "H" out of Hello ---Var2 = "H"

Thanks for the help!

Pulling My Hair Out
i have a question about loading movies and how their timelines work.
i have am almost finished this movie and have taken my self and AS to a new personal.

my movie is quite smart (my opinion) but has a little bug.

is anyone here on im ...i just dont know if i can ask my question right here.


i have two actually. one i dont think i can explain here.
and the other is this.

can i dynamically load a dir of images. i am pulling in a lot of jpgs dynamicall and want to know if i can load them witha preloader movie clip.

thanks
my icq is #34491500

Pulling In Variables...
I'm using a piece of code in a banner ad I'm working on that would normally look like this:

Code:
http://********found.com/bin/gethtml...p?affid=405&mt=<%=term%>

Notice the .asp call to pull a search term using the variable "term" on an .asp page. The problem is that I have been having a hard time making flash clickable. I can create an alpha 0% button but then I need to pass the the varible "term" into the actionscript using the getURL function. Can this be done? I'm assuming actionscript has escape characters just like the
Code:
<% %>
tags in .asp but I can't find them.

Any Takers???

Pulling Sounds Out Of Fla's.
I'm working on a flash project and one of the guys helping me sent me a fla file. The sound file he used in it, he lost it, but its still inside the fla. Is there any way to pull it out?

Pulling My Hair Out
I'm completely lost.
I'm trying to create a simple email form from this tute.

http://www.actionscript.org/tutorials/intermediate/php_send_mail/index.shtml

From what I gather all need to do is change the email addy in the php file to my own and upload both the swf and php files to my server.
But I've done this on 2 different servers and changed the email addy to 3 different ones and it wont work.
I cant get it to work.
I've tried for days before I decided to throw myself at the mercy of the board.

I'd be eternally greatfull for any help I could get.

Pulling My Hair Out
I am trying to do some (what I thought) was easy error checking on a form.

Here is my code:
code:
if (_root.hello.helloForm.name.cName=="") {
_root.txtStatus="please enter your name";
}
//_root.txtStatus=_root.hello.helloForm.name.cName;
//selection.setFocus("_root.hello.helloForm.name.cNa me");


the commented out lines work just fine. But the if statement does nothing. There is something SIMPLE that I am overlooking here. I just can't seem to see it. Thank you for your time and help!

Pulling My Hair Out
Hello, I hope there is somebody out there with enough knowledge to help sort out the problem I am having with this movie.

Attached is a movie and on it's own in flash player or even in a browser it works great. If I introduce the movie into my site www.gtgrafix.com and view it again then a certain part of the actionscript fails to work. The bit I am talking about is the number (101) will no longer change with the loading of the images. Like I say, viewed on it's own in flash player it works fine.

The images are externally loaded so they will not appear. Can somebody please help.

Cheers
Gary

Pulling My Hair Out
Hello all,

I want to make a song player/m3player on my flash site.

the details:
All i want is a play, stop, next, and previous button while you can view the song being loaded/played. Thats all!!!! I dont' want a song list, i just want it to just skip to the next song i have. No volume button.

I can't find a tutorial anywhere.

I am trying to accomplish the player similar to the one below (please click). Notice: where it says "Audio".

http://www.bimarkinc.com/website/index.htm

PLEASE HELP ME SAVE MY HAIR!!!! Thank you all

Pulling My Hair Out
So glad you're here!!!

Here's the problem:

I have five buttons - each has the same audio "bleep" sound on the over state.

My problem is that when I click on my button, the over sound plays again.

My Over keyframe contains the little one second audio file. My Down keyframe is blank. So is the hit. So I can't figure out why it would play twice.

any ideas? I've been troubleshooting this glitch for 2 hours

cheers
jen

Still Pulling Hair Out
I have attached a preloader (5kb) that needs fixed! I cannot figure it out! It is in MX format. Right now the preloader sits in the first frame and runs untill all frames have loaded. Not all the content! So basically the preloader says its done loading the site, and then you sit there waiting for the site to actually load!

Very easy for someone here so please take a look see. Basically I want the preloader to load 100% of the movie.

My grads go out to all that are here and helping!

Im Pulling Out My Hair.......
ok i have an xml file loading images....works great....it also makes thumbnails....also works great. But when i mouse over the thumbnails....i want a fade transition....this is where i blow it.....it works some of the times....what is wrong with this code? im i retarded? or what?



PHP Code:



thumbHolder.onRollOver = function() {
                    inte.loader2.loadMovie(this.main);
                    pic = this.main;
                    alpha = 10;
                    inte.loader2._alpha = 0;
                    onEnterFrame = function () {
                        
                        _root.inte.loader2._alpha +=10;            
                        if (_root.inte.loader2._alpha>=99) {
                            inte.loader.loadMovie(pic);
                            
                            
                            onEnterFrame = null;
                        }
                    };
                };

Pulling Text
Hi. I'm new to both the forums and actionscripting.

I'm creating a Menu that I need to perform the following actions.
1. Open a submenu.
2. Have links on that sub menu pull from a txt file so that I (or others) can update them easily.
3. Set the menu at a certain width and height in pixels and then have it expand over the page to the length of the Menu + The Submenu without pushing down the rest of the page. To overlap it so to speak.

Anyway. I have looked through the tutorial and found what appears to be a good one with regards to Number 2.
http://www.flashkit.com/tutorials/Dy...-988/index.php

I've tried to replicate the tutorial but am encountering an error.

I create a text file called textfile.txt with the following text.


Code:
"myText="This is a test. <a href="test.asp">Test Link</a>&
I create a new flash document using Flash MX Pro 2k4 and call it test.fla.
I save it to the desktop where the text file is located.

I add a dynamic text box and name it textbox, and then on the first frame I add the following action script.


Code:
System.useCodepage=true;
textbox.html=true;
myLoadVar = new LoadVars ();
myLoadVar.load("textfile.txt");
myLoadVar.onLoad = function (success) {
if (success == true) {
textbox.htmlText=myLoadVar.myText;
}
}
When I save and view the .swf all i see is the word undefined.

The first and third problem I can probably resolve at a later date, but i mentioned them just incase anyone reading this can point me to a good tutorial for that. My real concern is getting it to pull text from a txt file. As soon as I figure this out I can start fiddling with it to, so that it will format properly. Also as a side note will I have to create a different text file for each submenu? Or just a different variables for each submenu heading within the same file.

Edit. Here is an example of the menu I'm working on. http://www.geocities.com/bebarce/menuflash.html

Pulling Several Images
How can I pull several images from a specific folder?

[MX] Help Please I Am Pulling Out My Hair Here.....
I have more than one .swf and I have set it up to where you click and it opens to the next .swf but the problem is i need the 2nd .swf file to open with the navigation buttons and logo still on the top. right now it is just blank on top because it is opening but all by it's self? So, basically...I am trying to figure out how to have the navigation buttons and logo at the top?

[F8] Pushing/Pulling.
Well... I wasn't sure if I should post this in newbie section because I am a noob or in the regular flash help section, I decided to play it safe and go with the former, obviously.

Anyways I've searched for about an hour and a half, I thought I found a few helpful things but not enough to satisfy my question. Search has failed me ):

I am making a side scrolling-platform sort of story. I have some questions. I hope nobody minds.

1) All right -- Uh, first -- I am curious to a "push" and "pull" sort of command. But it's kind of complex. Think Valkyrie Profile for those who have ever played it. Let's say the key to start is "Z". When pressing Z, I want it to check if there is an object that the character can grab onto. If not it just does nothing.
Now say there is an object. Character presses Z. This will make the Character have the "GrabWait" graphic.


Code:
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if (Key.getCode() == 90) {
// GRABBING ON
this.characterMC.gotoAndStop("grabWait");
}
};
Key.addListener(keyListener);
The above is only checking if person pressed Z and the character is grabbing on despite checking if an object is in front of him -- so how to do that?

2) Ok so he's grabbed onto something. I want the Left and Right arrow keys to make him either push or pull. But -- He has to be holding "Z" key all the while, while he holds down left or right arrow to push or pull. If he lets go of Left or right arrow, he will return to "grabWait" graphic. If he lets go of "Z", he will return to regular standing position.

3) Yeah, and the last bit is -- so if he's pushing/pulling, how do you make the object he is pushing/pulling move?


Is this too much to ask? Thanks in advance. I am a freaking noob.

Edit: yeah... and that code is probably wrong |: I don't know how to use that stupid keylistener thing.

Add A Swf To Actionscript Pulling In Xml
I followed the kirupa portfolio tutorial to have scrolling thumbnails that when you click on them brings up the large image. I also wanted to add a description, but in the form of a scrolling swf.

I tried to add it but just can't get it to work. If anyone can help me I would deeply appreciate it, I've been working on this forever!

The flash:http://64.85.1.68/richmondhistorycen...-scrolling.fla
XML: http://64.85.1.68/richmondhistorycen...udioscroll.xml
SWF: (two examples)
http://64.85.1.68/richmondhistorycenter/studiotext1.swf

http://64.85.1.68/richmondhistorycenter/studiotext2.swf

Pulling Text Into An FLA
Does anyone know of a tutorial of how to pull text (for webpage content) into a swf from a txt file?

I want to make a flash site that will be easy to update by saving .txt files and reuploading.

Any help would be appreciated.

Pulling HTML From XML
extraInfo is a textField, and I want to assign it text that might have html formatting:

ActionScript Code:
extraInfo.htmlText=info.info[0];

This is the entry in my XML:

ActionScript Code:
<info>Testing the <i>italics</i> in html.</info>

But what the textField ends up displaying is:

Quote:




Testing the
italics
in html.




What should I do to avoid those extra lines?

Pulling My Hair OUt
Hi,

I have been through all loadvars, loadvariables, loadvariablesnum postings and have not seen anyone with the problem that I am having.

Running Flash MX 6 and Coldfusion 5.

I have a flash file in which I am want load a variable from a CFM.

loadvariables("http://servername/flash/_flashrights.cfm",0);

Contents of _flashrights.cfm
============================================
<cfsetting enablecfoutputonly="Yes">
<cfoutput>&MenuRights=11112111&EOF=true&END&</cfoutput>

If I go to the physical drive using My Computer and double click the HTML file with the embedded flash object everything works!

If I run the flash movie (Crtl-Enter) from within Flash MX 6 everything works.

If I open IE6 and type in the URL http://servername/flash/some.html the flash will not load the variables.

Pulling my hair out!!!!

Would appreciate the help. Thanks.

Pulling My Hair Out
I'm completely lost. In Tutorial 06 in the intermediate section, a simple flash/php email form is explained. From what I gather, all I need to do is change the email to my email and upload onto the server. I've tested this on 2 different servers with 3 different email addresses and I can not get it to work. Both servers do have php installed. Any ideas??

Pulling Ads From A Server
help me understand how to make requests over http to services that serve up advertising assets ( mult-media , banner gif ) that can be displayed in a flash widget. My understanding is that the pattern of exchange used in normal web pages (non flash) for services like Commission Junction uses JScript that is not workable inside a more opaque flash object. Is anyone using flash to pull ads from some 3rd party affiliate program that connects advertisors with publishers?

more details below:

can you offer any advise on this..

--------------------
Normal model

user page includes || <-- when a browser requests the page
Jscript chuck || the java script means that when the page loads, the block of the page enclosing the banner loads from a 3rd party


---------
Flash

user page includes an opaque flash object that needs to know what to display ahead of time.

prior to the request for the page including the flash object, that object needs to make a separate request ( a pull ) to the advert provider so that flash can load the banner/MM before rendering it on flash platform to the end user.

Pulling Xml Info From One MC To Another
this is going to be tough to describe in words, but i'm gonna try...
i have a 'slideshow' that is pulling info from an xml file and some txt files. the user sees a thumbnail (that is just in the library), which is located within a MC. when the user clicks on the thumbnail, i need it to load a series of images from the xml file and place them into another MC, and at the same time also place text from two different txt files into two separate textfields. here is the code I'm trying to use:









Attach Code

vtPhoto = new XML();
vtPhoto.ingnoreWhite = true;
vtPhoto.onLoad = function(success) {
numimages = this.firstChild.childNodes.length;
spacing=78;
for (i=0; i<4; i++) {
this.picHolder = this.firstChild.childNodes[i];
this.picHolder.onLoad = this.firstChild.childNodes[i];
this.thumbHolder = _root.thumbnails.creatEmptyMovieClip("thumbnail"+i, i);
//'thumbnails' is the MC on the root level that i need the xml images loaded into //
this.thumbHolder._x = i*spacing;
this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
this.thumbHolder.loadMovie(this.picHolder.attributes.noythmb);
this.thumbHolder.noymain = this.picHolder.attributes.noymain;
this.thumbHolder.onRelease = function() {
titleTxt.load("http://www.pathtourl.com/file.txt");
descrTxt.load("http://www.pathtourl.com/file2.txt");
factTxt.load("http://www.pathtourl.com/file3.txt");
};
}
};
vtPhoto.load("http://www.pathtourl.com/xmlfile.xml");
stop();

Pulling My Hair Out Over Nothing?
I think i am having some issues concatenating and calling the instances in my for loop here....can anyone see anything wrong with the syntax or any other reason why this might not work? Anything that would make this thing not work? Ive been trying for hours, can figure it out

for(i=2; i<=10; i++){
duplicateMovieClip(mask0_mc,"mask"+i+"_mc", 1)
j=i-1
trace(["mask"+j+"_mc"]._width)
trace("mask"+j+"_mc")
["mask"+i+"_mc"]._width = (["mask"+j+"_mc"]._width*1.1)
["mask"+i+"_mc"]._x = (["mask"+j+"_mc"]._x - ["mask"+i+"_mc"]._width);
}


tracing the width gives me underfinded while tracing the mask+j+_mc, gives me the instance names of the clips :?

please tell me that Im lame and this is an easy syntax thing :?

thx in advance for any help.

Pulling Hair Out HELP
Ok, I've developed my first entire Flash site and I've come across a problem that I can't figure out.... I have an entire swf as the site and within it, it loads external movies for the content. On one of the pages it's covering sun safety but for some reason the page isn't reading correctly.

The site is www.hawaiianblend.com

Please ignore the blatent "what not to do" stuff and check out the "SAFETY" page. yet, if you load the swf by itself of the safety2.swf it works fine.

Any help would be greatly greatly appreciated!!!!!

thanks

Pulling XML Data
I created a file that pulls data from the worldofwarcraft.com serverstatus xml page.

The data populates a dropdown list and you can choose the server and it tells you if its up or down. The mini app works great on my desktop, when I upload it to my server it no longer retrieves the data.

Is Bliz blocking my server address from recieving the data? Anyone know how to navigate around this.

Here is the swf on my server http://www.elusiveform.com/serverStatus.html

If you want to test it grab the swf out of your cache and load it from your desktop, it will work.

Pulling Curtain
Hi,
I would like to create a pulling curtain (pull a string, the curtain goes upward) in Flash AS2. I wonder how can I go about doing it. Can it be done with timeline animation with minimum of AS2? Because I am not familiar with AS.
Thank you in advance for any help.

Sean

Pulling My Hair Out Over Nothing?
I think i am having some issues concatenating and calling the instances in my for loop here....can anyone see anything wrong with the syntax or any other reason why this might not work? Anything that would make this thing not work? Ive been trying for hours, can figure it out

for(i=2; i<=10; i++){
duplicateMovieClip(mask0_mc,"mask"+i+"_mc", 1)
j=i-1
trace(["mask"+j+"_mc"]._width)
trace("mask"+j+"_mc")
["mask"+i+"_mc"]._width = (["mask"+j+"_mc"]._width*1.1)
["mask"+i+"_mc"]._x = (["mask"+j+"_mc"]._x - ["mask"+i+"_mc"]._width);
}


tracing the width gives me underfinded while tracing the mask+j+_mc, gives me the instance names of the clips :?

please tell me that Im lame and this is an easy syntax thing :?

thx in advance for any help.

Pulling Out My Hair
Allright... I know I've asked a lot of questions already, but I am once again stuck.  After hours of work I finally figured out how to load a check box into the datagrid (easy to do once you know how, but learning wasnt fun.... all i was missing for hours was adding a checkbox to the library.. feel free to laugh).  So, I've got all my information to load into my datagrid just the way I want.  I have the "status" field setup to use checkboxes.  (this is my first time using action script to do binding and loading of xml data, and I have ADD so I get overwhelemed easily).  So, with teh following code I load my xml document, which is just a basic database of trail names, their ability levels, and whether or not they are open to ski.  I want the status column (ie is the trail open or not) to be the checkbox column.  Got that to work finally.. except for the fact that every box is always checked as true when the xml loads, even though about half are set to false.  I did some research and I'm still lost.  Here is the code.  As you can see I have set up my currentStatus variable as a Boolean value, but that doesnt seem to work.  BTW I am using the built in CheckCellRenderer Class.  And I am in the middle of setting up a window to display trail info, so I have a few trace statments in their that dont pertain to this question.

// Set the initial text for the combo box to "Please Select"
import mx.controls.gridclasses.DataGridColumn;
dataGrid_dg.selectable = true;
// make the first selection of the comobo box temporarily <please select>
level_cb.text = "<please select>";

//setup the datagrid with columns, and make the status column a checkbox
var statusColumn = new DataGridColumn("status");
statusColumn.cellRenderer = "CheckCellRenderer";
statusColumn.width = 50;
statusColumn.headerText = "Open?";
dataGrid_dg.addColumn(statusColumn);
var nameColumn = new DataGridColumn("name");
dataGrid_dg.addColumn(nameColumn);
nameColumn.width = 200;
nameColumn.headerText = "Trail Name";
// event listeners for the combo box (change)
comboListener = new Object();
comboListener.change = function(evt) {
        //load the xml document
    loadReport();
    function loadReport() {
        var snowReportXml = new XML();
        snowReportXml.ignoreWhite = true;
        snowReportXml.onLoad = onSnowReportXmlLoaded;
        snowReportXml.load("snow_report12.xml");
    }
    // function for when the xml doc is fully loaded
    function onSnowReportXmlLoaded() {
        // grab arroy of child nodes of the root node
        // (children should be the name nodes
        var arTrailNodes = this.firstChild.childNodes;
        // for each child node
        myDP = new Array();
        for (var i = 0; i<arTrailNodes.length; i++) {
            //set variables for the data from the xml
            var currentName:String = arTrailNodes[i].firstChild.firstChild;
            var currentLevel:String = arTrailNodes[i].firstChild.nextSibling.firstChild;
            var currentStatus:Boolean = arTrailNodes[i].lastChild.firstChild;
            //if the string from the combo box selection is equal to the
            //level element of the current loaded trail....
            if (String(level_cb.selectedItem.label) == String(currentLevel)) {
                //creates myDP array, and adds the current name and status
                //of all trails in that ability level to teh array then puts
                //the data into the dataset, which then populates the datagrid
                myDP.addItem({name:currentName, status:currentStatus});
                dataSet_ds.dataProvider = myDP;
                dataGrid_dg.dataProvider = dataSet_ds.dataProvider;
            }
        }
    }
};
level_cb.addEventListener("change", comboListener);
var myDataListener = new Object();
myDataListener.change = function() {
    trace("the selecttion has changed to "+currentName);
};
dataGrid_dg.addEventListener("change", myDataListener);


Pulling Sql Variables Into Flash - How?
how do I pull variables from a database into flash?
can I write to the database from flash afterwards?

Pulling Variables In From Different Apps
Is there any other apllication that you can pull variables in from apart from text files.

Pulling Data Out Of Arrays
Okay so what I want to do is this:

I have an array pulled in from a .csv file.
Looks something like this after I turn the String into an Array:

myArray =["productA"|"companyA"|"myProductA"|"productB"|"com panyB"|"myProductB"] etc... etc....

What I want to do is only List the "myProductA" out of this Array. All of the myProducts actually: myProductA, myProductB, etc.

How would I go about extracting a list from the Array and creating a newArray? How would I loop it maybe? Say every 3rd item pull somehow?

Time is of the essense here for me so I appreciate all of your help!!

Thanks!

Pulling From A Query String
alright I've fidgured some things out and this is what I am currently doing.

I am attempting to load variables placed into the query sting (url) into a dynamic text field with the same variable name. Currently it is effecting the variable but it is not putting the values into the text field
Here is my code:

loadVariablesNum ("void", 0, "POST");
to = "0";
from = "0";

I have attempted sending the variables using "GET" as well as "Don't send" with the same results

the page is
http://www.familyties.com/dogDaystes...=josh&from=bob

If you remove the "to" and "from" on the query string the default value of "0" appears in each variable

What am I doing wrong?

Pulling ASP Information Into Flash
Hi all,

I have the following HTML based code below that displays the latest news headlines. These are updated by the BBC on a regular basis.


<script src=http://www.linkyournews.com/doapplet.asp?appletid=72634080&SelReg=UK>
</script>

Can the contents of what is received be fed into a flash file - so for example, they could be scrolled across the screen in one continuous line?

Many thanks,

MacLemming

Pulling Info From Database
How can I pull information from a database and load images from a file based on the info retrieved to display constantly chaing image files?

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