Combo Box Item Selection
Hi,
I have a combo box. I want to have diffrent things happen depending on what is clicked. This is the direction I am going in buty no luck
function changeHandler(){ if(my_cb.getValue=="some particular selected item"){ gotoAndStop(1); }else{ gotoAndPlay(2); } }
How do I denote which item has been selected in the combo box? .getValue is not working in the if statment.
Thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 02-26-2004, 10:04 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Listbox-multiple Selection, Last Selected Item
I have a listbox with that has the multiple selection working.
I can change the color of the selection using
sf = new FStyleFormat();
sf.selection = 0x87CEEB
but I want to be able to highlight(or show something besides the selection color) on the Last selected item.
Is there anyway this can be done?
Dynamic Menu Selection Of Active Item
Hello,
Please help me.
I'm working on a dynamic menu. This works, rollovers and rollouts work but if I click on an item, the item doesn't stay selected. How can I tell Flash that when I click on an item, that the clicked item stays selected until I click on another item?
I've attached the file.
Thank you.
Luna
Selecting An Item In A Combo Box
I have a combo box with a whole bunch of items, that look like this.
(Data, Label)
(1,A)
(2,B)
(3,C)
(4,D)
How do I make it start with (2,B) selected?
Thanks,
Rachel
Detecting An Item In A Combo Box
Anybody recently moved from FlashMX (ActionScript1) to MX Pro 2004 (ActionScript 2)?
I've got some problems getting older scripts to work. In this case, the user picks "Saturday" from a combo box listing days of the week in order to move ahead to frame 10 of a parent movie. In the example below, I cut some of the code out and put in a trace to determine where the problem is, and it seems as if get.SelectedItem no longer works. Has anybody else encountered issues using "get" ?
<snip>
combo.setChangeHandler("selectCombo");
function selectCombo(component) {
if (Combo.getSelectedItem().label == "Saturday") {
//_root._parent.gotoAndStop(10);
trace ("hello");
</snip>
Many thanks...
Highlighting Item In A Combo Box
Hello,
I was wondering if anyone new how to populate a combobox and, at the same time, hightlight a specific combobox item?
I know it's probably simple but, I can't find anything on it on the web.
thanks,
Clem C
Combo Box Item Array
When the combo box is changed it will add items to another combo box, i.e if africa is chosen, all the countries in africa will be listed in the second combo box.
At the moment i am manually adding in all the countries,
_root.combo1.addItem("Label", "Data");
for 60 countries that would be messy code, is there a way to do it in an array cause my advanced actionsript isnt that good.
But i will need to be able to get the data of a country out later ....
Any ideas
Please help me
Highlighting Item In A Combo Box
Hello,
I was wondering if anyone new how to populate a combobox and, at the same time, hightlight a specific combobox item?
I know it's probably simple but, I can't find anything on it on the web.
thanks,
Clem C
[MX] Getting Selected Item In Html-combo Box
I need to know which item is selected in a combo box outside my movie and I have no idea on how to do this.
I also need to know when the value on this combo box is change.
Could someone help on that.
Thanks
Set Fontweight On A Specific Item In Combo Box
How do you change the text weight on an item in Flash combo box?
I only want to change the font to bold at certain index, not the entire combo box. Is it possible?
// where the trace is. I would like to set that label to bold
for (var i=0; i<info.length; i++) {
if(info[i].attributes.label=="This is bold"){
trace(info[i].attributes.label);
}
dispatcher.addItem( {label:info[i].attributes.label, data:info[i].attributes.data} );
}
}
any help always appreciated!
Combo Box - Un-Highlight Selection...
Ok, So what i want to do is this: I have a combo box filled with values, and I go to select one. Now I assume the part that you can always see next to the arrow is the label. If not I am going to call it the label. So Once I select something from the drop down list The label becomes the highlighted text. I tried something like this:
Code:
function fieldID() {
selected = _root.testList.getSelectedIndex();
testList.setSelectedIndex(selected);
}
where the change Handler in the component is "fieldID" but I get this error in the optput window:
"256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie."
I'm kinda at a loss here... I just want it not to be Highlighted once I make a selection from the list.
Thanks for you help!
LoadMovie On Combo Box Selection. How?
Grateful if somebody can help on this :
I want to load a particular movie when an item in a combo box is selected. Grateful if somebody can tell me how to do it
Loadmovie With Combo Box Selection.How?
Can anybody tell me as to how to load a movie when user selects an item from combo box. Need this very urgently. I could not get answer to this from any printed document, hence approaching here
Text In Box After Combo Box Selection
I was given this code by a member of another forum and cant seem to get it to work properly:
myCombo.setChangeHandler("showText");
function showText(){
var x = myCombo.getSelectedItem().data;
switch (x){
case 1: mytextbox.text = "The brown lady of raynham";
break;
case 2: mytextbox.text = "Probably the most well known instance of a haunting in the UK, is that of Borley Rectory. You can find loads of information on this around the web.";
break;
default: mytextbox.text = "test";
}
}
I have set my combo box to myCombo, my text box is mytextbox, the data is in the case for the combo box, yet it only shows the default message that is there. When I take out the default one it shows nothing when i selected the other two options!
Can anyone help?
Text In Box After Selection From Combo Box
I was in another forum for heklp and was given the following code to get text to appear in a text box after i have selected and item from a combo box:
myCombo.setChangeHandler("showText");
function showText(){
var x = myCombo.getSelectedItem().data;
switch (x){
case 1: mytextbox.text = "The brown lady of raynham";
break;
case 2: mytextbox.text = "Probably the most well known instance of a haunting in the UK, is that of Borley Rectory. You can find loads of information on this around the web.";
break;
default: mytextbox.text = "test";
}
}
At the moment all it does is show the test message no matter which item i select from the combo box, any help?
Cheers
a frustrated Jo
Combo Box Scene Selection
hi all,
i'm creating a scene where the user selects an item from a combo box then clicks the 'go' button and the project moves to the selected scene.
i've searched tutorials but cannot find anything for this, its more than likely staring me in the face but can anyone guide me on this one.
all help well appreciated
Combo Box Scene Selection
hi all,
i'm creating a scene where the user selects an item from a combo box then clicks the 'go' button and the project moves to the selected scene.
i've searched tutorials but cannot find anything for this, its more than likely staring me in the face but can anyone guide me on this one.
all help well appreciated
[F8] Combo Box Label Selection...
Hi,
I have 4 movie clips which act like buttons on a stage along with another movie clip and a combo box.Let's call the button movie clips as 1_mc,2_mc,3_mc,4_mc. Let's call the 5th movie clip as all_mc. This movie clip,"all_mc" has 4 keyframes inside of it,placed at a distance of 10s from each other.There is some content on each of these keyframes.I have labelled these keyframes as "1","2","3","4" respectively. Now when 1_mc,2_mc,3_mc,or 4_mc is clicked, the movie clip "all_mc" shows the content belonging to the appropriate movie clip released by showing the contents of the key frames labeled "1","2","3","4" respectively.
Now the combo box has labels "1","2","3","4".With the data being "1","2","3","4" respectively,so that if item 3 is selected in the combo box, the contents belonging to the key frame labeled "3" are displayed in the movie "all_mc".So in short,in this way,i have created a navigation wherein one could watch different content either by clicking the individual movie clips or by merely selecting a different label from the combo box.
The problem is that when ever i click the 1_mc,2_mc,3_mc,or 4_mc movieclips, the content of "all_mc" changes but the selected labels of the combo box does not change.For example,if i click on 3_mc,the contents of "all_mc" with keyframe labelled "3" is displayed but at the same time,i want the combo box to display "3" in the visible label rather than the default label,whcih is "1".In short,i need a relationship between the movie clips 1_mc,2_mc,3_mc,4_mc and the combo box so that when 2_mc is clicked,the combobox label changes to 2, when 3_mc is clicked,the combobox label changes to 3,when 4_mc is clicked,the combobox label changes to 4,when 1_mc is clicked,the combobox label changes to 1.The default visible label which appears in the combo box when the movie loads is "1".At the same time no matter what movie clip is clicked or no matter what label is selected in the combo box, the contents of "all_mc" belonging to that particular number are shown.
I would highly appreciate it if anyone could come up with a solution for this.I have tried to look up everywhere especially in Adobe help docs,but no use. Thanks in advance.
Combo Box Not Registering First Selection
Could someone please take a look at the code below and let me know why when
this is first encountered it does not trace when the first item in the list
is selected. If you select another item, it traces, and then select the
first item, it traces.
But when you select the first item (before anything else has happened) it
does not trace. This must be a bug, is there a workaround?
Please could anyone help, would really appreciate the input.
import mx.controls.ComboBox;
createClassObject(ComboBox,"cbTREATMENT",5,{_x:100,_y:100,fontSize:"13",color:"0x000000",fontWeight:"bold",fontFamily:"arial",rowHeight:30});
vTREATMENT="item2";
cbTREATMENT.dropdown.rowHeight = 18;
cbTREATMENT.dataProvider=["","item1","item2","item3"];
cbTREATMENT.text=vTREATMENT;
var listenerObject:Object = new Object();
listenerObject.change = function(eventObject:Object) {
trace("Selected item="+cbTREATMENT.text);
}
cbTREATMENT.addEventListener("change", listenerObject)
Combo Box Label Selection...
Hi,
I have 4 movie clips which act like buttons on a stage along with another movie clip and a combo box.Let's call the button movie clips as 1_mc,2_mc,3_mc,4_mc. Let's call the 5th movie clip as all_mc. This movie clip,"all_mc" has 4 keyframes inside of it,placed at a distance of 10s from each other.There is some content on each of these keyframes.I have labelled these keyframes as "1","2","3","4" respectively. Now when 1_mc,2_mc,3_mc,or 4_mc is clicked, the movie clip "all_mc" shows the content belonging to the appropriate movie clip released by showing the contents of the key frames labeled "1","2","3","4" respectively.
Now the combo box has labels "1","2","3","4".With the data being "1","2","3","4" respectively,so that if item 3 is selected in the combo box, the contents belonging to the key frame labeled "3" are displayed in the movie "all_mc".So in short,in this way,i have created a navigation wherein one could watch different content either by clicking the individual movie clips or by merely selecting a different label from the combo box.
The problem is that when ever i click the 1_mc,2_mc,3_mc,or 4_mc movieclips, the content of "all_mc" changes but the selected labels of the combo box does not change.For example,if i click on 3_mc,the contents of "all_mc" with keyframe labelled "3" is displayed but at the same time,i want the combo box to display "3" in the visible label rather than the default label,whcih is "1".In short,i need a relationship between the movie clips 1_mc,2_mc,3_mc,4_mc and the combo box so that when 2_mc is clicked,the combobox label changes to 2, when 3_mc is clicked,the combobox label changes to 3,when 4_mc is clicked,the combobox label changes to 4,when 1_mc is clicked,the combobox label changes to 1.The default visible label which appears in the combo box when the movie loads is "1".At the same time no matter what movie clip is clicked or no matter what label is selected in the combo box, the contents of "all_mc" belonging to that particular number are shown.
I would highly appreciate it if anyone could come up with a solution for this.I have tried to look up everywhere especially in Adobe help docs,but no use. Thanks in advance.
Making A Selection Automaticly Appear In A Combo Box
I want to make it so when you click on lets just say a television show, you can see the day the show appears in a combo box. So if the show is on Tuesday, I want the combo box to reflect that, instead of always showing the first item on the combo box.
Can someone please tell me how that's done?
Thank you so much for any help!
Need Advice On Saving Combo Box Selection.
HI! I need some advice on how to save the users combo box selection on a
form. My form validates fields and then combo as well and then IF the fields
info are NOT correct it goes to another frame telling the user so then the
users click a button to return.
Now all works and the users previously entered text is also saved on return
but now I want to also save the combo box selection ( if the users did
choose a selection) but I don't know how to go about it. Can someone help me
with this?
below is the code that I am using to populate the combo box.
var user_combo_selection
ccbdepartment.addItem("Please Choose A Department", "");
ccbdepartment.addItem("Webmaster", webmaster@123.com);
ccbdepartment.addItem("Sales", sales@123.com);
ccbdepartment.addItem("Accounting", accounting@123.com);
ccbdepartment.addItem("Pre-sales", presales@123.com);
// establish component listener
lo = new Object();
lo.change = function (evt) {
user_combo_selection = (evt.target.selectedItem.data);
}
ccbdepartment.addEventListener("change", lo);
Paul
Need Advice On Saving Combo Box Selection.
HI! I need some advice on how to save the users combo box selection on a
form. My form validates fields and then combo as well and then IF the fields
info are NOT correct it goes to another frame telling the user so then the
users click a button to return.
Now all works and the users previously entered text is also saved on return
but now I want to also save the combo box selection ( if the users did
choose a selection) but I don't know how to go about it. Can someone help me
with this?
below is the code that I am using to populate the combo box.
var user_combo_selection
ccbdepartment.addItem("Please Choose A Department", "");
ccbdepartment.addItem("Webmaster", webmaster@123.com);
ccbdepartment.addItem("Sales", sales@123.com);
ccbdepartment.addItem("Accounting", accounting@123.com);
ccbdepartment.addItem("Pre-sales", presales@123.com);
// establish component listener
lo = new Object();
lo.change = function (evt) {
user_combo_selection = (evt.target.selectedItem.data);
}
ccbdepartment.addEventListener("change", lo);
Paul
Changing The Default Combo Box Selection
I've got a flash movie that's using SlideShowPro for a photo gallery. On the main stage of my Flash movie, I have 4 buttons that call up the movie clip that holds the slide show. There is a combo box on the slide show clip that lists all the XML galleries and lets the user load different galleries into the slide show.
What I'm trying to figure out is, is there a way to ActionScript a button to select which Album ID gets loaded when you click the buttons on the home page?
The working file is online at: http://www.pearsonimages.com/main.html.
Thanks
Combo Box Selection Goes To Specific Frame
Combo Box Selection Goes To Specific Frame
I have a combo box that I want to populate from a database so the options can be modified through the database. Based upon the selection, the flash movie would jump to a different frame either by frame number or labeled frame.
I've seen Oldnewbie's example using a changing scene, however, I want to keep in the same scene, just jump to a different frame.
Any ideas?
PJ
Combo Box Selection Loading A Movie Clip
Hello and thank you all for your time and knowledge. I am attempting to use a combo box in the following manner. Upon selecting a label from the box, i would like to load a movie clip of a photo gallery, at which time the photos would be available to click and enlarge. I am very new to this component and I am not sure how to code the selection to load a movie clip. Thanks for any input!
Regards,
Mark
Add Item After Selected Item In Tree Component?
I've got a tree component which works great, but I'm trying to add an item at a particular location (immediately after the item they select) into the tree.
The problem is that I'm trying to add an item within a branch. I'm using myTree.getDisplayIndex(myNode) to get the position within the tree, but it gives the location relative to the entire list, but I need to get the position relative to the parent (which is what myNode.parentNode.addTreeNodeAt is trying to write to)...
Anyone know how I can get the position of the item the user selects relative to it's branch???
Thanks!!
How Do I Stop Carousel On Item When Item Is Clicked On?
Yeah ...some of us are still trying to tweak the carousel... I need to know how to stop the carousel when an item in the carousel is clicked on. Of course I'd also like to have that item come to the front and center as well. This carousel is done without XML.
Any help would be greatly appreciated.
here's my current code:
var numOfLogos:Number = 6;
var radiusX:Number = 300;
var radiusY:Number = 50;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;
for(var i=0;i
{
var t = this.attachMovie("item"+(i+1),"item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfLogos);
t.onEnterFrame = mover;
}
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y /(centerY+radiusY);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}
this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/1500;
}
//INFO PANELS//
phInfoPanel_mc._visible = false;
//NOW FOR THE CLICK ACTIONS//
item0.onRelease = function () {
phInfoPanel_mc._visible = true;
phInfoPanel_mc.swapDepths(Math.round(this._xscale) + 1000);
}
Make Item Grab Another Item
I am working on a game right and i want oneitem that when it touches the other stays with it like glue here is my code:
instance name:
i have a guy _root.player.hand
A ball _root.ball
so I put on the ball this code....
onClipEvent(enterframe){
if(this.hitTest(_root.player.hand)){
this._x = _root.player.hand._x;
this._y = _root.player.hand._y;
}
When the hand touches the bal he ball goes where the hand was originaly and that is it it never moves again.
can some one help ???
}
Sequential Selection Vs Random Button Selection
I am missing something here. I have several buttons associated with several movies. When the buttons are selected in sequential order they play the appropriate movies
When the buttons are selected out of order (in random fashion) the selected movie does not play.
Any solution is appreciated
Code snippet follows:
//When button1 is selected bluemovie plays and then when button2 is selected pinkmovie plays
// However if button2 is selected before button1 pinkmovie does not play.
button1.addEventListener(MouseEvent.MOUSE_DOWN,sta rtClip1);
function startClip1(event:MouseEvent):void{
bluemovie.play();
button2.addEventListener(MouseEvent.MOUSE_DOWN,sta rtClip2);
function startClip2(event:MouseEvent):void{
pinkmovie.play();
}
}
Selection.setFocus Selection.getFocus Inputting From Mc
i am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)
I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).
As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus ... I keep focus but can not add text via screen _mc
many thanks Neil
Selection.setSelection || Selection.setFocus Help?
I have text fields I want to run with a tab key in a certian order, and miss one that it seems to go to automatically.
Does anyone know how I can do this with selection.setFocus and Selection.setSelection?
heres the order and what I want it to do,
0 username (if the username has it in there already then go to password instead)
1 password (if the password is there already then go to topic instead)
2 topic (selection.setFocus to topic if the the other two are filled already, then the next selection I want it to go to message after topic)
3 message
If anyone can help me out with this I would appreciate it.
Thanks in advance
Deadsam
Populate Combo Box Values Using Another Combo Box Instance
Hi,
I have two combo boxes. The first combo box's data is added through an XMLConnector object, the second combo box, I would like to populate through an on (change) event in the first combo box. The items in the second combo box would relate to the selection made in the first combo box.
I have attempted the following within the Actions for the first combo box:
on(change) {
switch(this.value) {
case "value1":
comboBox2.addItem({Label:"Label",Data:"Data"});
break;
} // end switch
} // end event
which is not working.
should an event be dispatched by comboBox1 and a listener be attached to comboBox2? I can't find any examples of this on the internet.. but i might be using the wrong search terms. any help with this would be greatly appreciated. Seriously, i'll buy beers.
-Thanks
Var A:Item = New Item("Business", "+", Textsize, Color, Alignment)
Hi all,
I am new to AS3 and have spent a few weeks to figure out how to create a class which have 2 TextFields - the first textfield is either a "+" or " " and the second one is some text ... Since there are over 50 items, I think it will be good to create a class instead of using symbols in flash. I need to adjust the font size, font color, alignment, rotation inside the class.
Example :
var a:Item = new Item("Business", "+", textsize, color, alignment,rotation)
I have the following code which works in timeline but don't know how to put it in a class...
Can anyone help me out... Thanks in advance !!!
--------------------------------------------------------------------------------------
var element01:Sprite = new Sprite();
addChild(element01);
var cFont:String = "Arial";
var cTitle:uint = 0x999999;
var cContent:uint = 0xc4b789;
var cContainer:uint = 0x7c7f4f;
var c12:uint = 12;
var c10:uint = 10;
var myFont:Font = new EmbedArial();
var txtFmt_gContainer:TextFormat = new TextFormat();
txtFmt_gContainer.font = myFont.fontName;
txtFmt_gContainer.size = 24;
txtFmt_gContainer.font = cFont;
txtFmt_gContainer.color = cContainer;
txtFmt_gContainer.size = c10;
txtFmt_gContainer.align = "right";
var item:TextField = new TextField();
item.autoSize = TextFieldAutoSize.LEFT;
item.defaultTextFormat = txtFmt_gContainer;
item.embedFonts = true;
item.text = "business";
element01.addChild(item);
item.x = 10;
item.y = -10;
item.rotation = -8;
var sign:TextField = new TextField();
sign.autoSize = TextFieldAutoSize.LEFT;
sign.defaultTextFormat = txtFmt_gContainer;
sign.embedFonts = true;
sign.text = "+";
element01.addChild(sign);
--------------------------------------------------------------------------------
Florence
First Item (XML)
Hey there,
Now I've been building a huge XML and Flash project and I want to know how to point to the first item in an XML project.
Because if I just call it normally it puts the last item on.
Here's the code I want to load the first item in the XML document into the info movie clip.
AS Code:
#include "mc_tween2.as"
var menu:ContextMenu = new ContextMenu();
menu.hideBuiltInItems();
var pageID:Number = 0;
var xOffset:Number = 2;
var yOffset:Number = 2;
var columns:Number = 5;
var rows:Number = 999999999;
var colWidth:Number = 152;
var rowHeight:Number = 120;
var amount:Number = 0;
var yPos:Number;
var maxY:Number;
var minY:Number;
upArrow.useHandCursor = false;
downArrow.useHandCursor = false;
var x:XML = new XML();
x.ignoreWhite = true;
var items:Array = new Array();
x.onLoad = function() {
items = this.firstChild.childNodes;
for (i=0; i<items.length; i++)
{
var header = items[i].attributes.header;
var desc = items[i].attributes.desc;
var urls = items[i].attributes.urls;
var icons = items[i].attributes.icons;
var type = items[i].attributes.type;
var p = items[i].attributes.p;
var slider = items[i].attributes.slider;
_parent.projects.tp.text = "Total Projects: " + items.length;
createItem(i, header, desc, urls, icons, type, p, slider);
}
setupScroll();
};
function createItem(index:Number, header:String, desc:String, urls:String, icons:String, type:String, p:String, slider:String):Void
{
var itemClip:MovieClip = loadInit.attachMovie("linkage", "item"+index, index);
itemClip._alpha = 0;
itemClip.alphaTo(100, 1.2, "easeinoutQuart");
itemClip._x = (index%columns)*colWidth+xOffset;
itemClip._y = Math.floor(index/columns)*rowHeight+yOffset;
itemClip.header.text = header;
itemClip.holder.loadMovie(icons);
_parent.info.header.text = header[0];
_parent.info.desc.text = desc[0];
_parent.info.pt.text = type[0];
_parent.info.holder.loadMovie(p)[0];
_parent.info.links._x = slider[0];
_parent.info.links.onRelease = function()
{
getURL(urls[0], "_blank");
}
itemClip.onRelease = function()
{
_parent.info.alphaTo(0, 1.2, "easeinoutQuart");
_parent.info.onTweenComplete = function()
{
_parent.info.header.text = header;
_parent.info.desc.text = desc;
_parent.info.pt.text = type;
_parent.info.holder.loadMovie(p);
_parent.info.links._x = slider;
_parent.info.links.onRelease = function()
{
getURL(urls, "_blank");
}
delete this.onTweenComplete;
}
_parent.info.alphaTo(100, 1.2, "easeinoutQuart", 1.2);
}
}
function setupScroll()
{
minY = yPos=loadInit._y;
maxY = yPos-loadInit._height;
upArrow.onRelease = function()
{
if (yPos<minY)
{
yPos += 120;
loadInit.ySlideTo(yPos, 1.5, "easeOutQuart");
}
}
downArrow.onRelease = function()
{
if (yPos>maxY+240)
{
yPos -= 120;
loadInit.ySlideTo(yPos, 1.5, "easeOutQuart");
}
}
}
x.load("projects.xml");
stop();
XML Code:
<?xml version="1.0" encoding="UTF-8" ?>
<projects>
<entry
header = "Stage Resizer"
urls = "http://flashblog.deepdesigners.com/posts/StageResizer/"
icons = "icons/sr.jpg"
p = "photos/sr.jpg"
type = "Flash Project"
slider = "720"
desc = "I saw this project on Brain Giants.com, and I saw their Bounce Resizer and I thought I'll try and do it too!
So I used MC Tween to change the size of the resizer movie clip so that movie clips and photos can be loaded in really easily using the loadMovie() function.">
</entry>
<entry
header = "Tarifa 2005 DVD"
urls = ""
icons = "icons/tdvd5.jpg"
p = "photos/tdvd.jpg"
type = "DVD Project"
slider = "820"
desc = "To go along with the web site, some of the group he went on holiday with wanted a DVD with some of the photos and videos they took on holiday from 2005. So we started making the DVD, it has a fully functional DVD menu, with Clip Selection and Extras.
The videos we're all edited and cut down so they gave off the best way it can. Also some of the photos are used to show off the backgrounds of the beautiful town and beach.">
</entry>
<entry
header = "Kite Surf Sussex"
urls = "http://www.kitesurfsussex.com"
icons = "icons/kss.jpg"
p = "photos/kss.jpg"
type = "Web Design"
slider = "720"
desc = "Kite Surf Sussex, is the website of Kite Surfer and Instructer: Robin Hallett. He wanted a site to be made for him, so that he can have more clients so more people can learn to Kite Surf.
Robin really wanted the site to have a fluid feeling to it. And wanted it to be fun and intresting. I made the site be able to Pan around, so that it gave the fluid effect he wanted.">
</entry>
</projects>
If you could help it would be great.
Rotating An Item
How do you rotate an item so that it stays in one spot? I need to pivot it or something.
Taz
Remove Lib Item
need to remove a png from library in MX2004 pro. crashes app when selected. assume corrupted. any ideas?
Trying To Add Another Item To A Menu
I have a menu that I did not create that I am trying to add another menu item to. I have the fla file and thought it would be a simple task but I've had nothing but headaches so far.
The menu is set up so that when you hover on a link, it increases in size, then decreases when you take mouse off it.
In Scene 1, it shows a list of each menu item (home menu, benefits menu, contact menu, etc.). It also has the same menu items listed in the Symbol Definitions.
Thinking it would be simple to modify, I tried copying and pasting a menu link and altering it to make another. What happens is when I try changing the link name, it changes the original I copied from as well.
I tried to insert another menu item to the scene but I'm lost on how to do this and can't figure out a fix. Any takers?
If this is too brief, my apologies, I know about 2% of flash...
1 Item Remaining
Hi folks,
I'm having a little problem loading some Flash files here: http://www.landscapeservicesinc.com
The files seem to load completely and work fine, but the browser gives the message "1 item remaining" instead of "Done", no matter how long I stay on the page. If I refresh the page it shows "Done". This only happens on the pages that have more than one .swf file, like the home page. Does anyone know what I've done/not done here?
Thanks
Target The Next Xml Item?
Hey everyone
I have an xml file with a couple of items tags inside a pojects and a root tag like this:
<root>
<projects>
<item .....>
<item ....>
I target the first item in falsh like this and it works:
_root.xml.root.projects.item
But what if I want to read the next item?
- Rune
Getting _x Value Of Array Item
Hello,
I am writing a script to shift the MC's in my movie to the right and down when I run a PrintJob(since it left justifies everything). I have created an array with all my MC's and then I am looping through and adding 40 to the _x and _y values. Problem is it is not working because when I loop through "shiftPrintClips[i]._x" comes out as undefined when I trace it. Any idea why? I can trace "shiftPrintClips[i]" and the value of the MC shows fine, just not when I try to get the location. (it works when I hard code the MC name)
Thanks!!
Here's the code:
var shiftPrintClips:Array = ["top_mc", "audio_onoff_mc", "heading_txt", "indexName_mc", "narration_mc", "mediaControlOutlines_mc", "pageNumber_mc", "glossary_mc", "presentation_mask_mc", "back_mc", "glossary_btn", "index_read_mc", "print_button", "print_btn", "next_mc"];
f
or (i=0; i<shiftPrintClips.length; i++) {
shiftPrintClips[i]._x = shiftPrintClips[i]._x + 40;
shiftPrintClips[i]._y = shiftPrintClips[i]._y + 40;
trace(top_mc._x);
trace(shiftPrintClips[i]);
}
Referencing An Item
Hello
I know there is a way to do it because I saw it once, a while ago, but I can not remember how to do it...
I would like to reference the shape on the stage based upon a variable. For example, let us say I want to set the alpha of the shape named: <rect1_mc> but instead of using the digit 1, I would like to use a variable: <shapeSelected>. So it would give us something like:
rect[shapeSelected]_mc.alpha = 0.5;
I know it is not the correct syntax, but I included to explain what I am looking for.
Does it ring any bells to somebody?
Thanks
Rick
Display Item One By One.
Hey,
Yesterdag I created this: http://www.freshface.be/work/bookmarks/
I created some site's and other flash apps. witch use and xml file that contains the content.
But now I want to add an effect.
I'm not sure how to do so I need your help.
I used this code to display the items:
ActionScript Code:
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
if (success) {
menuItem = this.firstChild.childNodes;
for (var i = 0; i<menuItem.length; i++) {
item = content_mc.attachMovie("itemClip", "itemClip"+i, i) item._x = 0;
item._y = 14*i;
item.useHandCursor = true;
// Info in sublist
item.myName.text = menuItem[i].attributes.myName;
item.myCat.text = menuItem[i].attributes.myCat;
// Info in info panel
item.myUrl = menuItem[i].attributes.myUrl;
item.onRelease = function() {
getURL(this.myUrl,"_blank");
};
item.onRollOut = function() {
this.back._alpha = 100;
};
item.onRollOver = function() {
this.back._alpha = 80;
};
}
}
};
menuXml.load("bookmarks.xml");
How do I display the items one by one?
Thx in advance.
XML List Item
Hola,
I am making a presentation with flash and XML,
now I want to use list items in my presentation,
but when I use
<li>blabla</li>
I dont see the dics that I want to see.
How can I fix this?
Library Item ?
Hello everyone,
I am currently working on a project that contains a significant amount of library items(around 700). Does anyone know if this will affect the performance of the movie?
Thanks in advance!
SunsFan13
duvalldesigns.com
|