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








Super-sweet Listbox-related Question


I'm using Flash MX.

Okay, here's the scenario. I have myself a list of pieces of writing (prose, poetry, etc.), and a dynamic textbox. Each item in the list will have a corresponding external text file. My lifelong dream is to somehow have each item in the listbox display its corresponding external text file in the dynamic text box that is next to the list, when the list item is clicked and released. I'm stumped. Is there a way to do this, or do I need to come up with some other kind of navigation system?




FlashKit > Flash Help > Flash ActionScript
Posted on: 06-17-2004, 11:57 AM


View Complete Forum Thread with Replies

Sponsored Links:

Listbox Related Question
Here's the scenario:

I have a list of articles, and each item on the list has a corresponding external text file. I figured the best and most efficient way to make this list would be to use a listbox, since I don't think I can call actionscript from an external list, and since I don't want to have to create a new button somewhere whenever i add something new.

What I want is to have the user click on an item in the list box, and upon release, have the corresponding text file display in a dynamic textbox that is next to the listbox. Is this possible? I'm an ActionScript novice at this point, so any help would be appreciated.

View Replies !    View Related
Oh, Sweet Sweet Arrays ....
Ok, I admit it, I am hooked to Sudoku, but more to programming than to playing.

Therefore, I need a system to generate exact fieldnames and I decided to go for a system containing letters and numbers.


Code:
onClipEvent (load) {
// Boxbezeichnung;
box = new Array;
box[0] = "A";
box[1] = "B";
box[2] = "C";
box[3] = "D";
box[4] = "E";
box[5] = "F";
box[6] = "G";
box[7] = "H";
box[8] = "I";
// Reihenbezeichnung;
field = new Array;
field[0] = 1;
field[1] = 2;
field[2] = 3;
field[3] = 4;
field[4] = 5;
field[5] = 6;
field[6] = 7;
field[7] = 8;
field[8] = 9;
// Erstellung der Feldnamen;
for (z=0; z<9; z++) {
for (y=0; y<9; y++) {
name = new Array;
numero = new String(box[z] + field[y]);
name.push(numero);
trace (numero);
}
}
}
The code is on an otherwise empty MC.

So, this is what it shall do: The boxes shall be called "A1", "A2" ... "A9", "B1" ... till up to "I9". If you perform the script, the trace shows you perfectly, how I want to have it. It ends up with a total of 81 values.

The problem is, when the for-Loop is finished, there is only one value in the name-Array instead of 81 - the last. But I want to have them all, starting with "A1". How can I achieve this?

Is there another, maybe better way to create this array?

name[0][0] = name[box[0]] [field[0]] = equivalent to A1
name[0][1] = name[box[0]] [field[1]] = equivalent to A2
...
name[9][9] = name[box[9]] [field[9]] = equivalent to I9


Thanks for your help in advance.
SunnySideUp

View Replies !    View Related
I Am Using Flash MX, But This Is Mainly Action Scripting Related/XML Related Help ME
Hi.
I have a Flash menu that reads info from an XML file.
But I do not know how to make the links in the menu go to a certain url.
Here is my example:
http://www.digitarium.net/dnd/test/

and here is an example of the xml


menu
value id="1"
title News /title
disc Current News and 0wnage /disc
url index.asp /url
/value

I want the links to work and access the url.
Can anyone help me?
Here are links to the files.
http://www.digitarium.net/dnd/test/new.fla
http://www.digitarium.net/dnd/test/menu.xml
http://www.digitarium.net/dnd/test/xml.swf

View Replies !    View Related
SUPER ADVANCED SUPER HARD
Ok.. it's not relaly that hard... but I am lost.

Is it possible for flash to get a url and pass it some of it's vairables without the varibales being visible to the user?

Another catch is that the new page being loaded is not another swf file... it is a html file. So, is it possible to get flash to load the html file in a new window, pass it some varibales (most like to javascript) and then the javascript open the swf file passing in the varibales required? (the whole time without the varibales being visible to the user?)

I am a strong believer that there is nothing flash cannot do... but this seems a bit hard

Thanx for any help you can toss my way

-Ryan

View Replies !    View Related
Listbox /combobox Help, Linking Combo And Listbox To Call Url W/ Flash 7
Seeking:
I'm want to be able to select an item from a combobox, that will call a list into a listbox, and then be able to click on that link to navigate to a URL.

Purpose:
I have a list of over 80 blog urls from the past several year, a monthly release. I would like to be able to select the year in a combobox which will trigger the 12 url from that year to appear in a listbox, when an item from the listbox is selected I want that url to open. This has proved to be quite difficult in in Flash 7. Any assistance, link, or tutorials would be greatly appreciated.

View Replies !    View Related
Load Swf File From ListBox, When Close Swf ListBox Disappear
Hello all,

I seemed to have problems with Listbox for days now. I managed to write actionscript to load external swf file when selecting a choice from the listbox. However, when the close the swf file by writing the script 'unloadmovie'. It returns to the main scene however, the problem is the ListBox disappears!... anyone advice me please what I did wrong

Thank you very much
Any help appreciated.

Peddie

View Replies !    View Related
It Would Be So Sweet...
If you could load fonts into flash externally at runtime. I haven't seen it done yet. I mean is there a way to dynamically load fonts that haven't been embedded and compiled? I wonder if there is anyone who has an open source font format that can be read from server side? Sounds like a cool project.

View Replies !    View Related
Sweet Graphics..... How Are They Done?
Hi people.

This is just a quick query, but something that has been bugging me.

As always within the Flash community, there are numerous georgous sites always going live!

One such site is http://www.realityslip.com

How do they get those nice smooth blends on the boxes, even on just the Homepage.

I realise that it is possible to create gradients in Flash, but theirs just seem so smooth, I can never get anywhere near that!

OR, am I looking into this too much, are the boxes just JPEGS created in Photoshop/Fireworks, and inserted into Flash with animations on the text on top?

If it is possible to do this in Flash, could someone direct me to a tutorial/book on how to get such smooth subtle graphics.

Cheers

Deadhands

View Replies !    View Related
The Whole Sweet Package
Okay, I have always been a person that was very intuitive and outspoken but now in a world no longer seperated by distance I have decided to make a website. Given I have a made a few before, and have had many people tell me they were very good, but I have been seeing these flash/animated websites with awsome intros and incredible naigation and layouts. So I was wondering if you could NAME every program/application that I would need to make one of these awsome sites. Not just free ones either, I am willing to pay any amount.

View Replies !    View Related
Check This Sweet Fla Out
check this sweet fla out!!!

<a href="http://www.flashkit.com/board/showthread.php?threadid=502928">decoy.fla</a>

View Replies !    View Related
A Sweet Lady Needs Help...
Can anyone tell me the scripting or otherwise of this menu on the diesel site....http://www.diesel.com/jewellery/

thank you

View Replies !    View Related
Sweet Girl In Need Of Help....
Can anyone tell me the scripting or otherwise of this menu on the diesel site....http://www.diesel.com/jewellery/

thanks xxx

View Replies !    View Related
Sweet Girl Needs Help...
Can anyone tell me the script or otherwise for the menu on the diesel website.....http://www.diesel.com/jewellery/

Thanks xxx

View Replies !    View Related
Sweet Girl Needs Help...
Can anyone tell me the script or otherwise of the menu which is employed on the diesel site....http://www.diesel.com/jewellery/

thanks xxx

View Replies !    View Related
So Simple And Sweet
Does anyone know how this piece of scripting was done?

Man THIS is so damn simple but so effective!!!! Anyone know how it was done?

That is damn good !!

View Replies !    View Related
I Need This Explained, Because Its Sweet
could someone please explain in detail, or with a working example for me to follow, how to do the image section of this website: http://mullerphoto.com/

i dont know how to make the mouse control the mask when entering from different sides and coordinates. i also dont know how to magnetize that same mask to the side as that does. and i also dont know how to make the photos swap out upon a new rollover. so pretty much i need to know everything for that photo section. you help would be much appreciated. thanks!

View Replies !    View Related
[MX04]Sweet
ive been working on this for hours and i just figured it out and i wanted to share it with everyone just put his on the first frame:
////////////////////////////////////////////////////////////////////////////////////
var size = 2;
var alpha = 100;
var color = 0x000000;
createEmptyMovieClip("line", 1);
line.lineStyle(size, color, alpha);
createEmptyMovieClip("line2", 2);
line2.lineStyle(size, 0xCCCCCC, alpha);
onMouseDown= function(){
var x =_xmouse;
var y =_ymouse;
line.moveTo(_xmouse,_ymouse)
line2.moveTo(_xmouse,_ymouse)
onMouseMove= function(){
line2.moveTo(x,y);
line2.lineTo(_xmouse,_ymouse)
line2.clear();
createEmptyMovieClip("line2", 2);
line2.lineStyle(size, 0xCCCCCC, alpha);
line2.moveTo(x,y);
line2.lineTo(_xmouse,_ymouse)
}
}
onMouseUp= function(){
line.lineTo(_xmouse,_ymouse)
onMouseMove = null;
line2.clear();
createEmptyMovieClip("line2", 2);
line2.lineStyle(size, 0xCCCCCC, alpha);
}

////////////////////////////////////////////////////////////////////////////////////
weeeeeeeeee!! awsome!! !!! !!!

View Replies !    View Related
Pretty Sweet
I guess if you have cleared all your intervals this is a nice way to reinitialize an swf.
Code:
loadMovieNum(this._url,0);

View Replies !    View Related
HOw Do You Do This Sweet Transition?
Hello Everyone,

I'm new here but always have questions regarding Flash MX.

Does anyone know how the transitions on this site were created.
http://www.gavindegraw.com/. The designer who created it is very inspiring, has used this effect before. Anyone have a clue on how that transition between sections is done?

Any help is greatly appreciated.

Thanks
C

View Replies !    View Related
CRAZY SWEET NAV
how did they do this? trig?

http://www.screenvader.com/root.html

View Replies !    View Related
HOw Do You Do This Sweet Transition?
Hello Everyone,

I'm new here but always have questions regarding Flash MX.

Does anyone know how the transitions on this site were created.
http://www.gavindegraw.com/. The designer who created it is very inspiring, has used this effect before. Anyone have a clue on how that transition between sections is done?

Any help is greatly appreciated.

Thanks
C

View Replies !    View Related
Holy Cow This Is A Sweet Technique
Does anyone know how to do this naviagtion technique. The links drop down smoothly. How is that done?

http://www.valentinassecret.com/main/main_low.html

View Replies !    View Related
Sweet Frame Scrolling
My flash brethren,

http://stevenegordon.com/animation.html (or as seen in attachment) has a novel "horizontal scrolling" feature flowing through its middle HTML frame. How are they forcing the horizontal scroll? Is it done in flash or HTML? Please advise. I need to create an extended timeline ... and it would absolutely ROCK with this effect.

Thanks!

j

View Replies !    View Related
Sweet Effect (like Water
can any1 please tell me how this lovely effect is done,i just think its scrumptious and very useable http://www.neave.com/
thanks for any help .cheers

View Replies !    View Related
AS3: Using Super.super.someMethod();
I am trying to extend the new AutoComplete component from Adobe. In two different places I need to bypass the AutoComplete methods and get right at the ComboBox methods.

I was told that super.super.someMethod() works just like it does in Java. But I keep getting Compiler errors:1084: Syntax error: expecting identifier before super.
Any suggestions other than just cutting and pasting the code and extending the AutoComplete superClass?

View Replies !    View Related
NEED A GURU FOR SWEET MASKING EFFECT
can someone tell me how this masking effect is done used by

http://www.oversee.net

http://www.bsfllp.com

any help would be greatly appreciated!!!

View Replies !    View Related
Need Some Sweet Links - Good Examples
I need some godo examples of tutorials in flash

View Replies !    View Related
Making Ever So Sweet Downloads. Te Quiero.
hello, Im fairly new to this Flash MX lark and I'm trying to create something like that of

http://www.maroon5.com (click on the multimedia tab)

where the user can download songs to Real Audio and Windows Media, Id really appreciate anyones suggestions.

View Replies !    View Related
Sweet Jesus What Happend To My Flv Files
I'm about to wet myself. Seriously..... I spent a bunch of time updating a variety of things on my .fla file and then did a test export before I was set to publish. Much to my ultimate dismay in the test export every single .fla file is gone!!! WTF! In every single scene and I only fixed stuff on about three pages. What happend. Did I turn some kind of crazy setting on that's called "freak the heck outta the new kid on the block by not putting any flv files in the test export"? I can still see them all in the working file!!!
Please flash gods tell me I can fix this easily.
Crying in Cali
Nic

View Replies !    View Related
Sweet Blog For All Flash Developers
Hey, I made a blog to help out other flash developers. I had a difficult time when I was first learning flash, and I've had a lot of help from people in various forums (especially this one). This is my way of saying thank you! I update this everyday with tips, tricks, and just general stuff about flash and actionscript 3.0. Enjoy!

http://flashdevz.wordpress.com/

View Replies !    View Related
Sweet Jesus Help? Resize And Expanding Issues
I'm trying to produce a dynamic timeline that expands horizontally when you click on a year to allow you to drill down through the years. Can anyone give me an idea as to where to start?

I am also interested in creating an effect similar to that used on the egomedia site whereby they scale the background swf to full screen yet keep the objects at 100% of their original sizes (they don't scale up with the rest of the movie). Can anyone give me any ideas, or starting reference points please.

View Replies !    View Related
Sweet Drawing Guest Book, Idea.
Could someone help me. I want to make a guest book that gives you a little area to draw and a little area to type. SO when you hit "Sign/Submit/Send" You see a little picture and a little phrase.

Can you make that?

View Replies !    View Related
ListBox, Create My Own ListBox...
Hi there…
I need to create my own list box (no components). With the scroll bar, and the selected item option with the highlighted option too. Basically with all the options that the ListBox component provides.
What I am trying to do, is a light (very light) version of the existing ListBox.
Can anyone help me out?
Thanks.
Cheers.
Leo.

View Replies !    View Related
One ListBox Which Populates The Second ListBox
my brain is mush. I've been staring at this for nearly 10 hours straight and I'm more confused now than ever. Someone with fresh eyes please look this over and help me out. Ugh.

I'm trying to make an mp3 player catalogue for sound effects. It has a listbox for the main categories and a second list box for all the sounds found in that category.

I have data coming in from an external xml file here:

Code:
<soundfx>
<sounds>
<category label="Animals">
<sound name="Cow" file="cow.wav" />
<sound name="Chicken" file="cow.wav" />
<sound name="Pig" file="cow.wav" />
</category>
<category label="Cartoons" >
<sound name="Bugs Bunny" file="cow.wav" />
</category>
<category label="Crowds">
<sound name="Football Crowd" file="cow.wav" />
</category>
</sounds>

</soundfx>
Here is my entire AS3 code.


Code:
import flash.display.Loader;
import flash.events.*;
import flash.net.*;

var categorySel:String;

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);

category.categoryList.addEventListener(Event.CHANGE, getSounds);
//sounds.soundList.addEventListener(Event.CHANGE, getSoundFiles);
//sounds.soundList.text = category.categoryList.selectedItem.data;
function getSounds(e:Event):void
{
sounds.soundList.removeAll();
categorySel = category.categoryList.selectedItem.data;
var sl:XMLList = xml.sounds.category;
for(var i:uint=0; i<sl.length(); i++)
{
sounds.soundList.addItem({data:sl.sound.@file [i],
label:sl.sound [i]});
}

}
var xml:XML;

function onLoaded(e:Event):void
{
xml = new XML(e.target.data);
var cl:XMLList = xml.sounds.category;
for(var i:uint=0; i<cl.length(); i++)
{
category.categoryList.addItem({data:cl.sound.@name[i],
label:cl.@label[i]});
}

}
loader.load(new URLRequest("soundfx.xml"));
I'm too exhausted to continue tonight. I sure hope someone out there can help tackle this one. There is nothing on these forums, or any other forums I could find, that discusses 2 listboxes, one populating the other.

View Replies !    View Related
Super Newb With A Super Newb Question.
Ok. So i just joined today. Ok so if i download a sound loop and i want to use it in my flash animation, do i have to get permission from the creator? Im talking about Freeware loops.

View Replies !    View Related
Its All Related
I know this is not a direct flash problem but i hope someone can advide.

I have a browser containg a link which opens my flash site in the centre of the screen...no problems there...

however! what i would like to do is make my browser containing my link to the site go straight to full-screen...any ideas...

but also i have a title on the screen...say it says "My Site.com". what i would like to do is position this title so that it always appears above my centered website regardless of screen resolution just for cosmetic looks. I assume that part will have to do with tables and alignment...so my main problem is the full screen...

if someone can advise on all or part of my problem i would be exteremly grateful.

View Replies !    View Related
Hex To Dec (not RGB Related)
Hi

I'm doing a simple hex converter with a input window(hex) and output window(dec)

Currently i'm using a simple script on a button to covert the hex to dec

on (release) {
outputBox = parseInt(inputBox, 16);
}

This is ok if you want to convert one hex number at a time, what i want to do
is input lots of hex values (in the input window) and convert them to dec (to
the output window) in one go.

All help is appreciated

4Real

View Replies !    View Related
Related To .flv
I am working at a flex project . There are variuos vide files and variuos .swfs , suppose any user choose a video file and put some effects over that video file (.flv) effects are in .swf format , now i want save all that effects and a .flv video file in a single .flv file . Is it poosible? if yes how? please reply me as soon as poosible

thanks

View Replies !    View Related
Hex To Dec (not RGB Related)
Hi

I'm doing a simple hex converter with a input window(hex) and output window(dec)

Currently i'm using a simple script on a button to covert the hex to dec

on (release) {
outputBox = parseInt(inputBox, 16);
}

This is ok if you want to convert one hex number at a time, what i want to do
is input lots of hex values (in the input window) and convert them to dec (to
the output window) in one go.

All help is appreciated

4Real

View Replies !    View Related
A Related Question
i have a related question... i was wondering about this the other day, and i think i am talking about the same thing here, but once a person fills out a form and clicks a submit button, where does that info go? where can you retrieve it? can you set it up to go to a specific email address or anything? any explaination available here? thanks.

View Replies !    View Related
Not Exactly Flash Related But~
correct me if I'm wrong, but I heard that flash takes in math equations/formulas and displays that graph into the flash player as shapes...
if this is true, is there any way we can export the equations? or am I just dumb ^^;;

View Replies !    View Related
OnMouseEvent - Related
I made buttons in flash, and I gave them 3 events...
OnMouseOver
OnMouseOut
OnMouseRelease
The Over and Out commands work, however, I can't get the release event to work properly. It for some reason, instead of going to 10, goes back to frame 1. Any ideas why? Anyone know the correct scripting? I am honestly, very new to Flash Mx, and I am trying to teach myself. So any input is greatly appreciated! Thank you!

View Replies !    View Related
Help With Zooming On Two Related MCs
Hi,

I tried posting this question a bunch of times in the MX forum but got no response, so I'll try here since I'm a total NOOB!

My flash file is here:
www.humboldt.edu/~mgk9/Test2.fla

Here is my situation:

When you use the zoom slide a frame appears in an inset that corresponds to the zoom level on a big map. The frame can be dragged and the view updates on the big map.

Here is my problem:

If you click anywhere in the frame that is NOT the exact center and start dragging, then the frame jumps to center in on the mouse. So the big map doesn't correspond to what is viewed in the frame. In general, the view in the frame doesn't seem to match the view on the big map. It's almost as if the frame covers more "ground" than the big map, especially when zoomed or dragged.

Thanks in advance to anyone that can help!

View Replies !    View Related
Not Related But Interesting
http://costofwar.com/

Imagine how many Flashers could of been helped!

View Replies !    View Related
Maze Related
Hi all,
I need a help from you flashguru's.
I have a maze. Now in that maze, I have a MC. That MC should move anywhere whithin the maze. It will not move on a key press but on enterframe.
So for example, if the MC hits any maze border, it should move in another direction. It can move up, down, right or left.
So how do I tell my MC to move within the maze, and when it hits any border, how do I tell it to move the other way?
Plz help as this is urgent.
Thanks

View Replies !    View Related
Got Some MC Related Problem...Help Me, Please:)
Well, what follows is the code I made, and the clips are well generated...still, thereis a problem: it does not generate the textfields inside the MC's...could any of you, gods of ActionScript show me the way this problam can be solved?
By the way, the variables are well passed, and the matrix exists(proved).

matriz = new Array();
myStr = results.toString();
matriz = myStr.split(";");
matriz.pop();
var pos = 0;
for (i=0; i<_root.contador; i++) {
_root.holder.attachMovie("square", "square"+i, i);
this.mc = _root.holder["square"+i];
this.mc._x = 0;
this.mc._y = _root.pos;
this.mc.createTextField("texto"+i+"o", 1, 0, _root.pos, 120, 25);
contenido = "texto"+i+"o";
contenido.text = matriz(i);
contenido.html = true;
contenido.background = true;
myformat = new TextFormat();
myformat.font = "Arial";
myformat.bold = true;
myformat.url = "";
contenido.setTextFormat(myformat);
_root.pos += 24;
}

View Replies !    View Related
Internet Related
I am wondering how to make pop-up windows for my movies or games that are the same size as my swf. files (550 by 400 pixels)... If you've seen pop-up windows, like on newgrounds, thats what I'm aiming for...

I am using Flash MX 2004 Pro.

If there is actionscript or javascript, please tell me how to use it and paste the code in your response.. Thank you.

View Replies !    View Related
Drawing Related
How to draw Rectangle or Oval, so that it starts from center (the point where I click the mouse) but not by the edge.

View Replies !    View Related
Not Sure If This Is Actionscript Related
Hi,

I'll get right to the point, as I have said in the topic name, not sure if this is AS related. But im working in AS2.0 CS3.

I've run into a problem. My project has keylisteners, so pressing letters activate certain functions. But there is one area where I need to put an Input Text box.

My question is, how do I make it so, when im in the text box and typing, the key listeners wont activate. Second part, how do I get out of Text box mode when im done?

Thanks in advance.

View Replies !    View Related
Another Xml-related Question..
I have this script:

var temp:String;
var config:XML = new XML();
config.load("config.xml");
config.onLoad = function(success) {
if (success) {
temp = config.firstChild.firstChild.firstChild + "";
trace("temp parsed from config.xml:"+temp);
}
};
trace("temp:"+temp);

The problem is that the second trace statement executes first and then executes the other in the onLoad method body. I thought that code execution would freeze until xml has completely loaded and then it would go on processing the rest statements. Is there any way to achieve that?

View Replies !    View Related
IMG Related Question
Hi, I know this doesn't have much to do with Flash. But my purpose does. How can I convert a bitmap image to jpeg?

Thanks in advance

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