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




Best Way To Pull Data From Xml



I'm creating a simple xml based image viewer. The xml lists the thumbnails and large images and the FLA reads it in and then loads the appropriate images.
That works fine but I'm wondering if there are better ways than what I'm doing.

Here is the code for loading the xml and putting the thumbnail names into an array:

Code:
var thumbs:Array = [];

var loader:URLLoader = new URLLoader();
loader.load(new URLRequest("images.xml"));

loader.addEventListener(Event.COMPLETE, onload);


function onload(e:Event) {
var pics = new XML(e.target.data);

loader.removeEventListener(Event.COMPLETE, onload);

for each (var item in pics..thumb) {
thumbs.push(item);
}
trace(thumbs);
loadThumbs(); //function that puts the thumbnail images in a container
}
Notice the for each...in loop. It puts the names of the thumbnails into an array.
My xml also contains two other node collections: <large> and <caption>.
Is there a simple way to create arrays from their values as I have with the thumbs?
In other words, can I loop through the entire xml tree and put the <thumbs> in one array, <large> in one array and <captions> in one array?

Does this make sense? I guess I'm trying to figure out what's efficient.



FlashKit > Flash Help > Actionscript 3.0
Posted on: 03-05-2008, 04:42 PM


View Complete Forum Thread with Replies

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

Pull Var From XML Data
Hi,

I've been given a bit of AS to to modify but I'm having trouble with one thing. I'm trying to define a variable from an XML document. The variable would be pulled from the last value val6. I really know very little in depth AS, I can get the value to be displayed in a text field and to trace but not as a variable I can use elsewhere.

Thanks in advance for any help.








Attach Code

xmlData.onLoad = function(success:Boolean):Void {
if (success) {
for (var i:Number = -1; this.childNodes[0].childNodes[++i]; ) {
var cNode:XMLNode = this.childNodes[0].childNodes[i].childNodes;
var val2:String = cNode[1].childNodes[0].nodeValue ? unescape(cNode[1].childNodes[0].nodeValue) : unknownVal2;
var val3:String = cNode[2].childNodes[0].nodeValue ? unescape(cNode[2].childNodes[0].nodeValue) : unknownVal3;
var val4:String = cNode[3].childNodes[0].nodeValue ? unescape(cNode[3].childNodes[0].nodeValue) : noLink;
var val5:String = cNode[4].childNodes[0].nodeValue ? unescape(cNode[4].childNodes[0].nodeValue) : noLink;
var val6:String = cNode[5].childNodes[0].nodeValue ? unescape(cNode[5].childNodes[0].nodeValue) : ShowoffURL;
infostruc.push({art:cNode[0].childNodes[0].nodeValue, info:val1, info2:val2, link3:val3, link4:val4, link5:val5, sitesURL:val6, loaded:false});
}
loadStat = "";
init();
} else {
loadStat = "Unable to load XML Data";
}
};

























Edited: 02/06/2008 at 12:50:24 AM by jammiejinx

How Do I Pull XML Data By A Node Name?
I am new to Flash and XML so I hope I am not asking a completely dumb question. I have figured out how to retrieve data from and XML file by the node possition but now I would like to know how to pull it by a specific node name. Here is what I currently have:

on (rollOver)
{
myLot = 1;
_root.myInfo = _root.myXML.childNodes[0].childNodes[this.myLot].childNodes[0].childNodes[0].nodeValue;
}

With XML file like this:
<SectionOne>
<Lot1>
<Lot>1</Lot>
<Price>$450,000</Price>
<Status>Active</Status>
</Lot1>
<Lot4>
<Lot>4</Lot>
<Price>$389,000</Price>
<Status>Sold</Status>
</Lot2>
</SectionOne>

What I would like is to pull instead of childNodes[this.myLot] to pull the node named Lot1. The problem I have is I don't always have consecutive lot numbers and I don't want to have to build in blank xml lines for a placeholder. I hope that makes sense.





























Edited: 01/18/2007 at 11:58:29 AM by Spidey2222

Pull And Read Data From A ComboBox
I have a comboBox that uses php to read a directory for a list of images. Each one of those images displays within the comboBox as "Sample Image1.jpg".

I would like to add a listener to ditect when that name is selected and then display other information within text boxes accordingly.

My code is flawed somewhere and any help on this would br great.


Code:
image_cb.addEventListener("change", showStats);

function showStats(obj):Void {
email_box.text = obj.target.selectedItem.data.email;
phone_box.text = obj.target.selectedItem.data.phone;


The code does not kick back errors, it just simply does not preform the function... keeps kicking back "Undefined"

thank you in advanced

Pull Data From LoadVars Object
This is my first post so let me begin by greeting you all

Hi all!

My question is:

How can I access all loadVars data returned back from a server?

After sending some bogus data I can see in the debug variable window:

Variable _level0.myVars = [object #230, class 'LoadVars'] {
nick:undefined,
pds:"request.forms",
password:undefined,
onLoad:[function 'onLoad'],
<html> <head> <title>Form2pds result</title> <basefont face:""Arial"> </head> <body><h1>Request stored</h1> <hr> <p>The request has been successfully stored as <b>RQ000022</b>. <p><hr></body></html>"
}

What I want to achieve is to access the part after "onLoad:[function 'onLoad'],"

So I would like everything between the <html> and </html> tags

Is this possible?

Mx 2004 (NOT Professional): Pull In Dynamic Xml Data
Any good tutorials or instructions on how to pull in dynamic xml content (Got the xml loaded but it only shows the first record)-- for example, I have it laid out to display 1. title 2. story 3. author but only shows that info for the first record.

Also it loads the data when saved as xml but won't load as .aspx?

: (

Duplicate/loading MC Problem Using XML Data - Im About To Pull My Hair Out
I am about to pull my hair out over this. Been looking at this code for weeks and I just can't figure this last part out. I'm very close!

I have a gallery that is being loaded via XML. Thumbnails are loaded and when you click on one of the thumbnails a larger image loads in a mc above and a second image loads in a mc below. Almost everything in the gallery works fine, except I cannot get the second image that is supposed to load below to load in the data from the XML when the thumbnail from the menu is clicked on. Right now it will only load in the first image and if I click on any other images I just receive the error "error opening URL file...undefined"

I have checked my XML for errors, but everything looks good so the problem has to be in the code. This is my first workings with XML and I am still trying to wrap my head around how some of this works.

Would someone be willing to take a look at the code and see if they can spot what my problem is? I've attached both my XML and my .fla to this post. Also, I know my code is a mess as I have been messing with it for so long so my apologies.

Frame 1 code:
[code]//Load XML Data function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; image = []; large = []; txt = []; PSphoto = []; total = xmlNode.childNodes.length; for (i=0; i

Request: Simple Way To Pull Label Or Data From Combo Box
Hi,

I have been searching all over for a way to get the data from a combo box, or the label, or anything.

I am using the 'Flash Based Email Form using PHP' located on this website. So, from that, how would I add a little combo box to that form, with about 5 options. Then have the email.php send off whatever was the selection in that combo box be sent in the email.

I tried adding the labels and data fields to the combo box then naming it something like cbName. Then reference the variable in the php like
PHP Code:



$leintype = $_POST["cbName"] 




then later on for $message I put:


PHP Code:



$message = "Name: $nameType: $leintype "; 




and so on. But that just did not seem to work.

Any help would be greatly appreciated.

How To Pull This Off?
i would like to know how to make these effects.. with the flickering and the way the lines move, could someone help ?thanks




perspective

How'd They Pull It Off?
a question for all you guru's out there..

how did they get the following effect to occur?

http://www.group94.com/

>>>>notice if you click on the dates listed on the far left side-the text displays and animates with a cool text effect on the far right-hand side.

any ideas????

Any One Know How To Pull This Off?
dose any one know how to do something like :
this

with only flash but if you cant then how do you do ir wuth php



thanx

Lewy

Im Going To Pull My Arm Off
Greetings all.

I have a problem. I'm working on a client project that he started and really shouldn't be using flash for, but it's too late for that now. It's a catalog for a cd-rom with over 500 items. He wanted me to originally just add another 150 items to it - by duplicating the last frame, replacing the images , and changing the description manually. No code whatsoever. I was stunned. The FLA was over 200mb.

To the point: I am rebuilding the content area dynamically since I don't feel like cutting and pasting for 3 weeks straight. Everything works groovy - except the images. They will not load. I'm using loadMovie, since it's a cdrom I won't need to have a preloader or anything. He originally built the movie on a Mac with MX, and I am on a PC with 2004.

While debugging, I noticed that the placeholder mc's will load swf's just fine - but jpg's will not show. If you move the jpg's from the root folder, you get the 'cannot find alsdkfasd.jpg' error, so I know it's looking for it - but it won't show up when everything is where it's supposed to be.

I saved the fla's as mx 2004 - so shouldn't this work now? What am I forgetting? HELP!!!!

How Did They Pull This One?
mini cooper did a really cool navigation interface with flash back, forward and URL display in the top of the movie like a browser. Anybody know how to do this?

http://www.miniusa.com/crm/main.jsp

I Want To Pull The Trigger...
I have a swf file containing 3 scenes:

1. preloader
2. game
3. results

After the bytes are loaded the movie plays the scene "game". No prob so far.

Now I want to make the movie go to the next scene("result") when the variable "score"=0.

I tried the following:

I made an MC "trigger" with the as inside and placed it on the scene game. The actionscript in the MC "trigger" is:

if (score==0) {
stopAllSounds ();
gotoAndPlay ("results", 1);
}


The sounds do stop but the movie does not jump to the next scene "results".


I also tested:

if (gameover==0) {
stopAllSounds ();
_root.gotoAndPlay ("results", 1);
}


Can you guys help me finishing my swf.

greetings from europe

Howdy Partner, yours TrommelUndBass

How To Pull In From .txt File?
I want to have a movieclip with text in it update with news....but i want to be able to update it in a txt file and have flash pull it in....how do i do that?

any suggestions?

Loop: How Can I Pull This Off?
I had a long mess of each one of these codes done 10 times each, respectively. I want to shorten the code and thought this would work... but it doesn't!




Code:
on (release) {
//Players Stats
for (n=1; n<=10; n++) {
if (_root.PeriodsInNet[n] != 00) {
_root.GoalsAgainstAvg[n] = Number(_root.GoalsAgainst[n])/Number(_root.PeriodsInNet[n]);
_root.GoalsAgainstAvg[n] = _root.GoalsAgainstAvg1[n].toString().substr(1,4);
}
//Team Stats
if (_root.Wins[n] or _root.Losses[n] or _root.Ties[n] != 0) {
_root.GamesPlayed[n] = Number(_root.Wins[n]) + Number(_root.Losses[n]) + Number(_root.Ties[n]);
_root.Points[n] = Number(_root.Winsn[n])*2+Number(_root.Ties[n]);
}
}
}
Thanx for help.

Menu Pull Down Help
Ok I'm still pretty new to all of this but I'm having kind of a problem. I created a menu pull down using a movie clip. there are six buttons and im tryin to get them to go to certain senes. i have all the scenes set up correctly all actions or ok but the buttons will not go to the scenes. they just close the menu bar and stay in the same scene. I tried to put the same button on the scene not in the movie clip, with the actions the same: on release gotoandstop (scenewhatever) and it works. so basically the buttons dont work while in the movie clip. if anybody can help i would reallllllllllly appreciate it becasue its killing me thanks
_jesse

Pull Down Menu
I generated a pull down menu which not working
Could ne one give the tutorial

Pull Down Menu
hey, i have a problem with a pulldown menu. if you go to http://eclipsegfx.com/oor/oor.html and mouseover the "media" button, you'll see my problem. What i've done is i made a movie clip with 2 frames. one is the menu closed and the other is the menu open. i have added various actions so that it does this... it shows frame one and stops. then on roll over, it goes to frame 2 and stops. but this isn't working because it goes back to frame one as soon as you move the mouse off the area that the menu originally takes up. anyone know how to fix this? thanks

btw- if anyone has a few minutes to aim or msn message me, it would be greatly appreciated.
aim: boardin85
msn: skateweb99@hotmail.com

thanks
alex

=- Pull Go To And Play Help -0
i want to create an effect like this http://www.dotu.net/ just go there and youll see that you have to "pull" these tabs out to make the menu come up. I dont want the morphing effects just to know how to make it so you can pull on a tab a bit then it will auto matically come out the rest of the way and then only have to click to put it back in

thanks
n

Pull Down Menu Help
Ok, I've got this code:

<select style="FONT-SIZE: 10px; COLOR: #99999; FONT-FAMILY: Arial ; BACKGROUND-COLOR: #E5E5E5" onchange="window.open(this.options[this.selectedIndex].value)" name="select2">
<option>Pull...</option>
<option value="cory.html">Cory Knopes</option>

How would I designate the target for this to open in? I want it to open in the target "_content" but I can't figure out how to do that.

Thanks for any help,



Cory

OH My Pull Down Menu
I made a pull down menu, it works when i "enable simple button" , but wehn i test movie, it dont work, ...
help!

many thanks,
KC

Can Anyone Help...almost Out Of Hair To Pull...
HelP!!! Loading swf movies and getting correct scene

Ok, this is the setup, I have a flash swf movie with 5 scenes. Then I have one swf that is only one scene that I load into the existing swf window to overlap or replace the movie there. From that 1 swf, I want to return to the main swf consisting of 5 scenes and load it back in, but I want to be able to go to any scene in the movie depending on which one they pick from the nav.

The problem is, nomatter which scene they pick, it always starts me at the beginning of the 5 scene swf movie.

I have labled each start frame of each scene and tried to get back to them but it always starts at the beginning.

Any suggestions?

Anyone know the script to get me back correctly? I am pretty new at this and any help would be greatly appreciated...talk to me like I am 5!

The URL is
http://rpsweb.net/~www0088

Its the equipment request form that you cannot return from...

Pull Down Menu Help
Ok so i have made a pull down menu, all works except on the alpha 0 button i have behind the menu buttons. It has the the action script command on
(rollOut) {
gotoAndStop("1");
}
This is all good except when i put my mouse over one of the buttons on top of it, it recognizes it as exiting off the clear area when really it isn't, it is just going to something in front of it... how can i fix this?

Ugh I Can't Get A Button To Pull A Url.
How frustrating, After im done w/ this project i think im just going to stick w/ flash 5. I'm getting tired of relearning flash, its not very fun.

before you would just select an event for your button, Onmounse press, geturl blah blah blah and then you could specify a target. Im using flask mk2004 and i can't get it to pull a url to the frame i want. nothing is wrong w/ my frameset everything is named the way it should be. I would tell you what i did, but im soo freakin lost it just isn't funny. I just don't think it should be this hard to assign a url and a target to a button.

Any help is appreciated.

ded

p.s just incase you want to see what i did here it is. I checked it for errors. . . no errors but no results either

on(release) {
getURL(members.htm, "main");
}

Pull Focus
ok complete noob here...

can anyone tell me how to make certain things look out of focus (like something close to the *camera*) to create depth...

thanks.

Pull DOwn Menu HELP
Please Visit the following URL:

Mesoesetic: Radiance

Put your cursor over Products... how is this done?

I know its basic but Im a basic kinda guy hahhahahaha.

Thanks

Can I Pull Images From Outside An .swf?
I have a folder with over 500 images. I was wondering if it was possible to reference these photos based on a variable or ASP without actually loading them into Flash. Thus only 2-4 images would load per page.

I'd rather not make 100 seperate swf files if I don't have to.

Thanks

Rob Kennedy

Pull Up Menu
I am trying to build a menu that slides up instead of down. The content of the menu, links loads from a text or xml file. like this url
www.lesstone.com

any help or suggestions would be appreciated.
thanks

Pull Up MC - With ActionScript - How To?
so in my site I've got buttons when you click those button a panel with text and info pulls up from the bottom of the site - then there are 5 more.

What does the script look like for click on the button - having the panel move up then is stops - you you can read the info. then if you click on another button - the panel slides back down and out of sight and the other comes in - but I want it where you can click on any button to get the panel in no order. so I whatever was the last panel up it comes down and the other slides up.

Thanks for your time and help
JT

Pull Down Menu
how do i make a pull down menu plz help me plz

Using GetURL To Pull From API
Hello,

I am working with an elearning project. I am able to successfully send SCORM data using getURL in the format

getURL("javascript:doLMSSetValue('cmi.core.lesson_ location",'5')")

and everything works perfect. However, when I try to retrieve the data using

location=getURL("javascript:doLMSGetValue('cmi.cor e.lesson_location")")

all I get is a blank window with the result of in the window. The title bar of the window has the javascript call on it.

What should happen is the course launches and communicates with the API. So in the course page 1 should be content, press next button and page two has content, etc. The problem is page 2 is going blank like I described. This only happens retrieving the data.

Does anyone have any idea? I can post my javascript functions if they are necessary.

Thanks.

Pull Up Window
Hi all, havent been here in a while but hoping to get some help. Started working on a project for myself and wanted to implement something like this on http://www.i-kre8.com/indexFlash.htm

The secret stash tab, how its clicked and it rises and you can close it. Im trying to search for a tutorial or something on how to achieve that effect but failing as i dont know what to search for. Can someone help me out here?

thanx

Pull Down Menu
I have used the combo box component in flash mx to create a list for navigating. I know i'm missing something really simple, but how do i use the "data"/"handlers" to go to different frame labels depending on what the user chooses from the list??

I understand how to jump to different urls
how can i change this script to use gotoAndPlay ("a frame label")

function handler(instance name)
{
getUrl(instance name.getSelectedItem().data);
}


i know these questions are really basic - this is the first time ive ventured outside of basic label jumps - would really appreciate any help!
thanks in adv
lisa

Pull Down Advert. How Is It Done?
http://demo.eyeblaster.com/Europe/Of.../panasonic.htm

I am wanting to do something similar to this (click the above link).

Can anyone please advise me on where i would start to create something like this?

Hope someone can help me.

B.

Push But Can't Pull
hi guys...i wish arrays had a .pull option. I am making a calendar. The user can click days...if the day is clicked, that day is pushed to an array that collects all the selected days.

However, i would also like to give the option of taking back a selection, thus removing that from the selectedDays array. I can't use splice or pop as i know not in what order the user is going to select/deselect days. Ie...user selects 2,3,5,8 and 9 in that order. Then decides to remove 3...i want the array to read 2,5,8,9.

any ideas?


Code:
dayBox.onRelease = function() {
this.selectedDay = !this.selectedDay;
switch (this.selectedDay) {
case true :
selectedDays.push(this.txNumber.text);
this.box.colorTo(0xCCCCCC, .5, ease);
break;
case false :
//how do i take that selection out of selectedDays???
this.box.colorTo(0xFFFFFF, .5, ease);
break;
}
};

Pull A Var Value Using A String?
All right, here's my situation described as compacted as possible, I have a text string(let's say the string is "801") and I have a variable called 801. Is there any function that can find a variable name based on a text string to find the value, for instance, getVar("801") which would find the var name 801, and give me back the value in that variable?

Pull A Var Value Using A String?
I'm using Flash Professional 8.

All right, here's my situation described as compacted as possible, I have a text string(let's say the string is "801") and I have a variable called 801. Is there any function that can find a variable name based on a text string to find the value, for instance, getVar("801") which would find the var name 801, and give me back the value in that variable?

[F8] Pull Out Menus
Hello again!

I have a sub-menu on my navigation bar, when user roll over a button, a pullout appears, and the when you roll out it disapears...simple...but now when you rollout the main button, the pull out disapears and you cant click on any buttons.

How do I make it stay when they rollover the pullout and not only the main menu?

(and sorry for the bad english here...I feel like I am not that clear..)

Merci!

[F8] Pull In Effect
Hey,

I have to make a site for school about Bauhaus and I need to find a Flash Effect so i can create it.
The thing i'm looking for is, if you have a building with all windows that you should be able to click on the glass and then the image will blur a bit just like your being pulled inside of the window into another room...
Does anybody know how to accomplish this effect? =)

[MX04] Pull A .FLA From A .SWF?
hey i accidentally wrote over an important .fla but i still have the swf file...is there anyway i can get the fla file back from this swf????
thanks alot

[F8] Flash Cs3 But With As2-- Pull In Xml - Please Help
I have an xml file with the following nodes:
<daData>
<daRecord>
<daName></daName>
<daStory></daStory>
<daPhoto></daPhoto>
</daRecord>
</daData>

I am coming from mx 2004 NOT PROFESSIONAL. I now have cs3 but am using AS 2.

Can anyone walk me through the steps I need to pull this in dynamically so the records repeat? Also, daStory is different lengths so the height needs to be dynamic.

I have spent 3 days trying to figure this out...

About To Pull My Hair OUT
I am having a hard time trying to figure out how to correct this error I have in my ActionScript. It is something simple, I just don't know where the problem is...

The actual script:

on (release) {getURL("https://www.paypal.com/cart/add=1&business=ktaylorlive@aol.com&item_name=Kathy Taylor Live-The Worship Experience-2 Disc Set"
Shopping+Cart+Button&item_number=KTWE08&amount=17. 00&shipping=0.00&shipping2=0.00&handling=0.00&retu rn='http://www.paypal.com'&cancel_ return='http://www.paypal.com');
}


The Error Message:

**Error** Scene=Scene 1, layer=Pages, frame=5:Line 2: ')' or ',' expected
Shopping+Cart+Button&item_number=KTWE08&amount=17. 00&shipping=0.00&shipping2=0.00&handling=0.00&retu rn='http://www.paypal.com'&cancel_ return='http://www.paypal.com');

Total ActionScript Errors: 1 Reported Errors: 1


Please Help ME!!!!!!!!!!

Pull Information From URL
I need to pull

id = 99;
code = d02d;
pass = 32422;
user = bob;

info from a url ie:

http://www.mydomain.com/guestbook.html?id=99&code=d02d&pass=32422&&user=bo b


I would imagine pulling it into a array and cutting it up, however thats beyond me.

If anyone could help with this, or point me towards a snipt of code I could modify it would be much appreciated.

URL To Pull From Txt File
i'm trying to get these thumbnails to each have thier own URL. how could i do this?

if (minitialize != true)
{
s_position = getProperty("thumbnail0", _x);
m_thumbcount = 16;
m_thumbcount--;
loadMovie("http://www.bluetonemedia.com/images/btm/art/art1.jpg", "thumbnail0");
for (ctr = 1; ctr <= m_thumbcount; ctr++)
{
duplicateMovieClip("thumbnail0", "thumbnail" + ctr, ctr);
s_position = s_position + 139;
setProperty("thumbnail" + ctr, _x, s_position);
mctr = ctr + 1;
loadMovie("http://www.bluetonemedia.com/images/btm/art/art" + mctr + ".jpg", "thumbnail" + ctr);
} // end of for
minitialize = true;
_root.mtrapcoords = true;
_root.mscrollincrement = 0;
mremainingitems = m_thumbcount - 1;
rctr = m_thumbcount;
lctr = 0;
} // end if
if (mscrollleft == true)
{
setProperty("thumbnail" + lctr, _x, getProperty("thumbnail" + lctr, _x) - _root.mscrollincrement);
if (lctr >= m_thumbcount)
{
ncurrentitem = 0;
ngetprevitem = m_thumbcount;
}
else
{
ncurrentitem = lctr + 1;
ngetprevitem = lctr;
} // end if
for (mscrollitems = 0; mscrollitems <= mremainingitems; mscrollitems++)
{
setProperty("thumbnail" + ncurrentitem, _x, getProperty("thumbnail" + ngetprevitem, _x) + 139);
ncurrentitem = ncurrentitem + 1;
ngetprevitem = ngetprevitem + 1;
if (ncurrentitem > m_thumbcount)
{
ncurrentitem = 0;
} // end if
if (ngetprevitem > m_thumbcount)
{
ngetprevitem = 0;
} // end if
} // end of for
if (getProperty("thumbnail" + lctr, _x) < -395)
{
if (lctr == 0)
{
setProperty("thumbnail" + lctr, _x, getProperty("thumbnail" + m_thumbcount, _x) + 139);
}
else
{
ngetlastmov = lctr - 1;
setProperty("thumbnail" + lctr, _x, getProperty("thumbnail" + ngetlastmov, _x) + 139);
} // end if
lctr = lctr + 1;
rctr = rctr + 1;
if (rctr > m_thumbcount)
{
rctr = 0;
} // end if
if (lctr > m_thumbcount)
{
lctr = 0;
} // end if
} // end if
} // end if
if (mscrollright == true)
{
setProperty("thumbnail" + rctr, _x, getProperty("thumbnail" + rctr, _x) + _root.mscrollincrement);
if (rctr != 0)
{
mcurrentitem = rctr - 1;
mgetprevitem = rctr;
}
else
{
mcurrentitem = m_thumbcount;
mgetprevitem = 0;
} // end if
for (mscrollitems = 0; mscrollitems <= mremainingitems; mscrollitems++)
{
setProperty("thumbnail" + mcurrentitem, _x, getProperty("thumbnail" + mgetprevitem, _x) - 139);
mcurrentitem = mcurrentitem - 1;
mgetprevitem = mgetprevitem - 1;
if (mcurrentitem < 0)
{
mcurrentitem = m_thumbcount;
} // end if
if (mgetprevitem < 0)
{
mgetprevitem = m_thumbcount;
} // end if
} // end of for
if (getProperty("thumbnail" + rctr, _x) > 280)
{
if (rctr == m_thumbcount)
{
setProperty("thumbnail" + rctr, _x, getProperty("thumbnail0", _x) - 139);
}
else
{
getlastmov = rctr + 1;
setProperty("thumbnail" + rctr, _x, getProperty("thumbnail" + getlastmov, _x) - 139);
} // end if
rctr = rctr - 1;
if (lctr == 0)
{
lctr = m_thumbcount;
}
else
{
lctr = lctr - 1;
} // end if
if (rctr < 0)
{
rctr = m_thumbcount;
} // end if
} // end if
} // end if
if (_root.mtrapcoords == true)
{
if (_xmouse > 0)
{
mscrollright = false;
mscrollleft = true;
}
else
{
mscrollright = true;
mscrollleft = false;
} // end if
if (_root.nowincrem == true)
{
_root.mscrollincrement = Math.abs(_xmouse / 100) * 6;
}
else
{
if (_root.mninitialize != true)
{
mscrollright = false;
mscrollleft = true;
} // end if
_root.mscrollincrement = 2;
} // end if
} // end if

Pull Down Advert. How Is It Done?
http://demo.eyeblaster.com/Europe/Of.../panasonic.htm

Move your mouse over the panasonic banner.

I have created the flash movie with transparency but i would like to know how to implement the mouse over effect so when the mouse is placed over the small movie, it expands vertically and plays the whole movie without pushing the web page downwards as is the case with this effect???

I am near to finishing it, yet so far!!!!!

Please can someone help me with this?

Thanks in advance.

B.

Pull Down Advert
Hi!

I'm doing a Flash pull down advert for a search engine site, which takes ad-banners to their site. So the idea of the pull-down-advert is: the area of 468 x 60 px is always open, when u rollover it, then the Y (vertically) opens to 240 px.
So i made this for them:
http://zumgames.com/moditudvariant.swf
But the problem is, when it is on their system: IE browser wont show the banner
when refreshing the page, it opens the banner itself, but it should stay closed
Thanks in advance for your help.
Indrek.

How Do I Pull The XML Into My Flash?
Okay, so I have a basic flash file with a button, when you hover over it, an object with dynamic text appears...

Now I want text from an XML file to be pulled from it into my dynamic text box...

this is what my code in my actionScript looks like so far...

function DisplayInfo()
{
var title = items.firstChild;
var items = channel_xml.firstChild.firstChild.childNodes;
box.text1.text = title.firstChild.firstChild.nodeValue;

menu_md._visible = false;
box._visible = true;
box.text1.text = this.location_text;
}

button1.onRollOver = DisplayInfo;

box.closeButton.onRelease = function()
{
menu_md._visible = true;
box._visible = false;
box.text1.text =

Its this part I cant figure out...


Code:

{
var title = items.firstChild;
var items = channel_xml.firstChild.firstChild.childNodes;
box.text1.text = title.firstChild.firstChild.nodeValue;

menu_md._visible = false;
box._visible = true;
box.text1.text = this.location_text;
}



My XML looks like this:


Code:

<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title>
Travel Warnings
</title>
<link>
http://travel.state.gov/travel..._pa_tw/tw/tw_1764.html
</link>
<description>
TEXT HERE
</description>
</channel>
</rss>
Anyone know how to simply grab the info in the description tags and whack it in my dynamic text field?

Pull Information From URL
I need to pull

id = 99;
code = d02d;
pass = 32422;
user = bob;

info from a url ie:

http://www.mydomain.com/guestbook.html?id=99&code=d02d&pass=32422&&user=bo b


I would imagine pulling it into a array and cutting it up, however thats beyond me.

If anyone could help with this, or point me towards a snipt of code I could modify it would be much appreciated.

Pull Down Menu
hey people

i wanna create a pull down menu for my site any1 know any decent tutorials around not flashkit though they dont work right

-Tom

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