Create A Menu Inside A MC
Hi
I have a MC name mcCat I like to create a menu inside that MC
I have a XML file that read in a other MC so I like to take some info from that and put that inside the mcCat and create a menu
Right now I have a list and that is not so nice
Right now I have CODE_parent._parent.listcat.addItem(currentCategory);
Tek-Tips > Adobe(Macromedia): Flash Forum
Posted on: 22 Dec 05 7:28
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Create A Menu Inside A MC
Hi
I have a MC name mcCat
I like to create a menu inside that MC
I have a XML file that read in a other MC so I like to take some info from that and put that inside the mcCat and create a menu
Right now I have a list and that is not so nice
Right now I have
Code:
_parent._parent.listcat.addItem(currentCategory);
I have try a little with attachmovie but that was not so easy
Rotating Movieclip Inside A Button, Inside A Scrolling Menu Bar
Hi all,
I'm pretty new to actionscript, and I'm kinda moving along; up until now.
I've used the the infinite scrolling menu tute at kirupa.com, created my own button graphics, and have a nice scrolling menu. On the buttons, I'm adding an image (which seems to need to be a movie clip to work), so when you rollover the button, the image will spin.
The code for the spinning works. I've tested it on the root frame of a new movie, and in the button of the infinite scrolling menu movie. I've added the code to spin the image on the "over" frame of the button timeline. With the button scene open, I run "test scene", stop it, and move between the frames. When I advance to the rolloever frame, the image spins like a top, but when I test it from the root of the movie, the image does not spin. I've also added a color change "that works" from the root when you rollover the button, but the not the spinning image.
I've added the image by editing the button from the library. I select the image, and add the code inside an onClipEvent(enterFrame) action.
I've also tried adding the code to the keyframe of the root scene in layer 1, and tried calling the image by the full path (_root.one_button.buttons.button1.spin1._rotation= blah) thinking it needs to know exacty where the image(movie clip) is at in the heirarchy to no avail. I've even went back and gave everything an instance name up unto the button I'm trying all this on.
Any help would be appreciated, since I'm about ready to shed tears over this.
Thanks!
-Sam
Rotating Movieclip Inside A Button, Inside A Scrolling Menu Bar
Hi all,
This question is going ignored in some other boards, so I thought I'd try here....
I'm pretty new to actionscript, and I'm kinda moving along; up until now.
I've used the the infinite scrolling menu tute at kirupa.com, created my own button graphics, and have a nice scrolling menu. On the buttons, I'm adding an image (which seems to need to be a movie clip to work), so when you rollover the button, the image will spin.
The code for the spinning works. I've tested it on the root frame of a new movie, and in the button of the infinite scrolling menu movie. I've added the code to spin the image on the "over" frame of the button timeline. With the button scene open, I run "test scene", stop it, and move between the frames. When I advance to the rolloever frame, the image spins like a top, but when I test it from the root of the movie, the image does not spin. I've also added a color change "that works" from the root when you rollover the button, but the not the spinning image.
I've added the image by editing the button from the library. I select the image, and add the code inside an onClipEvent(enterFrame) action.
I've also tried adding the code to the keyframe of the root scene in layer 1, and tried calling the image by the full path (_root.one_button.buttons.button1.spin1._rotation= blah) thinking it needs to know exacty where the image(movie clip) is at in the heirarchy to no avail. I've even went back and gave everything an instance name up unto the button I'm trying all this on.
Any help would be appreciated, since I'm about ready to shed tears over this.
Attached is the zipped fla file
Thanks!
-Sam
Create Mc Inside Mc
hello all. i try to create a movieclip through a function. that clip should contain another clip where a jpg is loaded into. why is it not possible to set the inside clip to _visible=false? the idea is to have a mc with an animation and a mc with a picture in it, all contained by one mc. when the mouse rolls over this mc the picture is visible and the animation not, when the mouse rolls out the picture is not visible and the animation plays once. onRelease and the picture stays...
createButton = function (btName, xpos, ypos) {
this.createEmptyMovieClip(btName, this.getNextHighestDepth());
with (this[btName]) {
_x = xpos;
_y = ypos;
createEmptyMovieClip('pic', this.getNextHighestDepth());
}
with (this[btName].pic) {
loadMovie('pic.jpg', this);
_xscale = 10;
_yscale = 10;
_visible = false;
}
};
createButton('buttonName', 10, 10);
any help is highly appriciated!!
thanks,
sdii
How Do I Create This? - Example Inside
I want to create a animated slide show (I think that's what its called) on my site, how would I go about learning how to do this? I'm learning flash currently
http://www.templatemonster.com/flash...tes/17062.html
(see how the pictures slide and change
How To Create A GIF From Inside An SWF?
I have a Flash application that allows users to arrange images, in the form of imported SWF MovieClips, into a scene of their choosing. I would like to save these custom scenes into static GIF files on the webserver. I'm not sure if this is possible solely with ActionScript or if I'd have to do some work with PHP/GD or Java, but I have seen it done before (Yahoo! Answer avatars) so I know it's possible.
I'm very new to actionScript. So far I've found the functions for dealing with bitmap data but none for file creation. Can anyone point me in the right direction? As you may guess, it's hard to Google for variations of "flash create gif" because this is also a function of the development tools.
Thank you for your advice and suggestions!
Create Inside?
Hello,
I found this tut from another forum but I can't get it
Quote: I created a new movieclip linkaged as "tank" and inside this movieclip I created another one instanced as "cannon".
Create inside? Thus this mean I have to double click the movieclip "tank" and create another layer named "cannon" from that symbol?
How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?
I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?
Thx
How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?
I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?
Thx
How Can I Create Animation Like This? Look Inside.
it sorta like 3d mixed with 2d,
if you look at the matrix has you, the burly brawl scene, you'll know what i mean, can someone help plz..
you can see the matrix has you at newgrounds.com
http://www.johnandrichie.com/
Create MC Inside A MASK
Easy when you use the stage but I need to do it dynamically:
To create different container inside a mother container I use:
MC_Container.createEmptyMovieClip("MC_" + i, 10+i);
How can define a mask for each of the containers?
Create Mc's Dynamically Inside A Mc
What I want to do is create a number of movie clips dynamically, inside one main clip. I want to be able to apply one mask to this main clip (and therefore i'm masking all the mc's inside it).
kind of like using loadMovie to load a swf to a target clip?? except using attachMovie instead? (cos when I used loadMovie to a target clip another time it totally didn't work on Mac and it was dodgy as).
Some help please?
Thanks!!!
Nick Fracture
Create And Draw Inside MovieClip
Im messing about with a simple starfield type script, but I want each "star" to be inside a movieClip so I can mess with it's properties.
Any ideas as to why this isn't working:
Code:
/*************************************************
DECLARE VARIABLES
*************************************************/
var go_btn:Button;
var lineWidth:Number = 2;
var lineColor:Number = 0xFFFFFF;
var lineAlpha:Number = 100;
this.lineStyle(lineWidth, lineColor, lineAlpha);
/*************************************************
RUN NOW
*************************************************/
go_btn.onPress = function() {
for (var i:Number = 0; i < 500; i++){
var nextDepth:Number = this._parent.getNextHighestDepth();
var instanceName:String = "star_" + i;
var startX:Number = Math.round(Math.random() * 540) + 10;
var startY:Number = Math.round(Math.random() * 390) + 10;
var stopY:Number = startY - 1;
this._parent.createEmptyMovieClip(instanceName, nextDepth);
this._parent[instanceName].moveTo(startX, startY);
this._parent[instanceName].lineTo(startX, stopY)
}
}
Create Variable Inside MovieClip
Hi ..
this seems relatively straight forward but i can't seem to get it to work. I have a loop that creates a container_mc that increments each time ( container_mc1, container_mc2 etc ) and inside that another movieClip called property_mc. I am wanting to create a variable inside property_mc that gets a propertyID assigned to it during the loop.
Anyone have any idea bout how to go about this ?
Code:
var i;
for (i = 0; i < propertyDetails.length; i++) {
trace(propertyDetails.getItemAt(i).propertyID);
var container_mc:MovieClip = this.createEmptyMovieClip("container_mc" + i, i);
var property_mc:MovieClip = container_mc.createEmptyMovieClip ("property_mc", i);
var myText_txt:TextField = property_mc.createTextField("myText_txt", getNextHighestDepth (), 0, 80, 100, 20, [myText_txt.htmlText = '<a href="http://www.linkhere.com.au">' + propertyDetails.getItemAt (i).suburb + '</a>']);
formatText ();
createPropertyBox ();
loadPropertyImage ();
container_mc._x = (i % 5) * 120;
container_mc._y = Math.floor (i / 5) * 120;
}
is the loop code that creates the clips.
It means you would have a variable created each time within property_mc, it can use the same name as it's unique within the incremented container_mc's
That variable would be assigned the value of (i) each iteration.
Any help GREATLY appreciated
How Would I Create A Flash Generator (example Inside)?
http://www.blingpixie.com/Generators/Dark-Angel/
I am looking to create a flash generator that is similar to the one above. It doesn't have to be animated or anything.
If anyone can help me, that would be awesome!: )
Thanks a lot.
Create Controls Inside A Container?
So I am now creating a checkbox at runtime with the following code:
import mx.controls.CheckBox;
createClassObject( CheckBox, "button2", 5, { label:"Test Checkbox" } );
Is there a way to create a button inside another object like a ScrollPane (or something else?)? I created a ScrollPane at designtime, and would like the checkboxes, as well as text and perhaps draw lines within it at runtime. Is this possible? If not, is there another container which would allow this?
I am trying this with the following code:
CounterScrollPane.createClassObject( CheckBox, "button3", 5, { label:"Test Checkbox" } );
but that doesn't work.
Any thoughts?
Thanks!
Create Textfields Inside A New Movieclips?
Hi !
Still have problems with this after several hours of blood, sweat and tears .
My goal is to make a interface where you can input text, push a button and the text appears in the center of the stage. After that the text can be rotated, moveable, you can change font, size and color. As it is now you can create only one textfield and change color of the text, nothing more...
Im having problems. Works fine when I create the first textfield, but when the button is pushed the second time it just overwrites the first field. Im using getNexthighestDepth to get a new clip with new text in it everytime I push the button. It´s also not possible to drag the text around the screen.
So my questions are, how do I create a new textfield everytime I push the button without overwriting the old one and why does not the drag function work? Code below.
Code:
//When the button called "knappast" is pushed a movieclip is created
//and also a textfield inside the movieclip. The textfield contains the text
//from the textinput field called "textin".
//Problems with this: Everytime you push the button it overwrites the last
//created text.
createEmptyMovieClip("mc", getnexthighestdepth());
mc.createTextField("txt1", 0, 200, 175, 200, 35);
mc.txt1.border = true;
mc.txt1.background = true;
mc.txt1.autoSize = "left";
mc.txt1.selectable = false;
mc.txt1.text = textin.text;
}
//You are then supposed to be able to drag the movieclip with the
// textfield, but that isnt working.
mc.onPress = function() {
this.StartDrag();
};
mc.onRelease = function() {
this.StopDrag();
};
Can You Create A <form> Tag Inside Flash?
Hi, are you able to create a <form> tag inside a flash movie....if I wanted to create a feedback form, driven by php, how could I insert the form tag and all the <input> tags into my flash movie?? any help thank you
Is It Possible To Create Buttons Inside Scrolling Text Box?
Hi -
I have built a scrolling text box. I want it to act as a menu for other parts of the site, so that it's contents can contain links, and even call functions. But, I can't seem to figure out how to do it, or even if it is possible.
Any suggestions?
Thanks!
Jeff
Help Needed To Create Popups Inside Flash
hey guys,
can someone help me make some nice popup windows that can have scrollbars and all for my flash? i dont know how to do it and i was wondering if it was hard to make a nice animation for its appearance on the screan
i know its hard to understand (im strage )
thanks in advance cya guys
How To Create A Preloader Inside A Movie Clip?
Hello anybody!! :P
Well, i am triying to make a preloader inside a movie clip...
In the movie clip i load a jpg file whit this script:
on (release) {
gotoAndPlay("f2");
}
on (release) {
loadMovie("fotoindoor2.jpg", "foto 2");
}
How To Create A Preloader Inside A Movie Clip?
Hello anybody!! :P
Well, i am triying to make a preloader inside a movie clip...
In the movie clip i load a jpg file whit this script:
on (release) {
gotoAndPlay("f2");
}
on (release) {
loadMovie("fotoindoor2.jpg", "foto 2");
}
the problem is that the jpg is a bit large and it takes time to load...
What can i do to make a preloader, which would be activated when the jpg is "called"????
Thanks!!
Daerion! :P:P
Delegate.Create For An Mc Inside A Class [DEADLINE] Pls Help
PHP Code:
import mx.events.EventDispatcher;
import mx.utils.Delegate;
class main_movie extends MovieClip
{
public var pbSend:Button;
public var my_mc:MovieClip;
public var my_button:MovieClip;
// constructor
public function main_movie()
{
super();
EventDispatcher.initialize(this);
my_mc = attachMovie ("my_mc", "my_mc", getNextHighestDepth(), {_x :100, _y:50} );
my_button = attachMovie ("my_button", "my_button", getNextHighestDepth(), {_x :100, _y:50} );
my_button._x = 100;
// I want to avoid doing this function here..
/*this.onLoad = function()
{
// this is the only line that works and it does add the event.
pbSend.addEventListener("click", Delegate.create(this, checkFields));
// doesn't work
my_mc.addEventListener("onRelease", Delegate.create(this, checkFields));
// doesn't work
my_button.addEventListener("onRelease", Delegate.create(this, checkFields));
}*/
//this["my_mc"].addEventListener("click", Delegate.create(this, checkFields));
}
// I would rather do it here...
private function onLoad ()
{
// doesn't work, this line doesn't work in the onLoad function if its placed here !
//pbSend.addEventListener("click", Delegate.create(this, checkFields));
// doesn't work This is the most important one I really need to get it to work
my_mc.addEventListener("onRelease", Delegate.create(this, checkFields));
// doesn't work
my_button.addEventListener("onRelease", Delegate.create(this, checkFields));
}
private function checkFields():Void
{
trace("check");
}
}
Hi I need help, all I want to do is to create an onRelease event for the my_mc
clip which is being attached within the main_movie class.
it works for the button component but not for the mc clip... please advice
thanks
Create And Insert Info Inside A Datagrid
I have try to find any good information how I can insert information inside a datagrid.
I think I maybe going to use that to create a nice chat with ASP and MS-SQL
I going only use columns "time" "user" "message"
I like to set a width on time column and user
Do anyone have any good link or can give some information how to do this?
How Do I Create A Flash Slideshow Inside An Image?
Hi, I would like to create a flash slideshow inside an image of an lcd tv, how do I go about this? When I add the tv to the stage and add the images I want displaying on the tv, I try the movie and it fades my tv out along with the pics. I would like my tv to be the background and stay still whilst the pics fade in and out.
Many Thanks
How Do I Create A Textfield Inside A Movieclip At Runtime?
I thought this would be simple, but it has proven not to be.
I have a Movie Clip on my stage called contentMC.
With ActionScript 2.0 I can create a textfield inside this MC at runtime using: contentMC.createTextField("contentText", 1, 0, 0, 300, 200);
With ActionScript 3.0 I can create the same textfield using:
private var contentText:TextField = createTextField(0, 0, 300, 200);
but I have no idea how to create it inside contentMC?
Please help.
Please, Help Me To Create An Event Handler Inside The Loop
Hi Guys...!
Ok, I already received some help to make this loop code works, so now
I can load my external pics (jpg files) into my swf using this loop code scripted below. But how can I create an event handler (onPress, onRollOver...)for these 6 pics loaded ?
I already put my var loadMe:MovieClip outside the loop, and I tried to script "loadMe.onPress = function():Void { callling other function } and
holder.loadMe.onPress = function():Void { callling other function } " inside the loop as in other codes but it did not work.
Does anybody know any solution for this case ?
My target is: make all pics loaded available to event handler... !
var numberOfPics:Number = 6;
var holder = this.createEmptyMovieClip("holder", 1);
holder._x = 10;
holder._y = 250;
function initialize():Void {
var loadMe:MovieClip;
var startX:Number = 0;
var startY:Number = 0;
var mc_width = 80;
var mc_height = 53;
for(i = 0; i < numberOfPics; i++) {
loadMe = holder.createEmptyMovieClip("loadMe" + i, i+1);
loadMe._x = startX;
loadMe._y = startY;
startX += mc_width + 10;
var MCLoader:MovieClipLoader = new MovieClipLoader();
var picToLoad = "image_"+(i+1) + ".jpg";
MCLoader.loadClip(picToLoad, loadMe);
}
}
initialize();
Well, I saw an example from Adobe book similar to mine, but it loads movie clips from the library using an event handler inside the loop.
This is the code from the book. It was modified by me, but it is still working.
var linkageArr:Array = ["A", "B", "C", "D", "E", "F", "A", "B", "C", "D", "E", "F"];
initialize();
function initialize():Void {
var depth:Number;
var clip:MovieClip;
var card:MovieClip;
var x:Number = 10;
var y:Number = 10;
for(var i:Number = 0; i < linkageArr.length; i++) {
depth = this.getNextHighestDepth();
clip = this.attachMovie(linkageArr[i], "clip" + depth, depth, {_x: x, _y: y});
clip.onPress = function():Void {
onCardClick(this);
};
if((i + 1) % 3 != 0) {
x += clip._width + 5;
}
else {
x = 10;
y += clip._height + 5;
}
}
}
function onCardClick(cardClip:MovieClip):Void {
trace(cardClip._name)
}
How Do I Create A Textfield Inside A Movieclip At Runtime?
I thought this would be simple, but it has proven not to be.
I have a Movie Clip on my stage called contentMC.
With ActionScript 2.0 I can create a textfield inside this MC at runtime using: contentMC.createTextField("contentText", 1, 0, 0, 300, 200);
With ActionScript 3.0 I can create the same textfield using:
private var contentText:TextField = createTextField(0, 0, 300, 200);
but I have no idea how to create it inside contentMC?
Please help.
Create Layers And Frames Inside A MovieClip
Well, I guess the subject is pretty self-explanatory, but I'll clarify: I'd like to dynamically create MovieClips and then create layers (and frames, but for now my interest is in layers only) inside them. The only solution that comes to mind is to create additional MovieClips inside the main MovieClip to pose as layers. Any suggestions?
Thank you in advance.
Create Circle Inside External .as File
I have an external .as file which generates a whole bunch of lines randomly and i need some help in creating a circle and attaching the circle to the X,Y position of the line which im calling through a loop.
i know the loop works as i get the X,Y coords so thats working perfectly
all thats left is to create a function that draws a circle so that i can attach it to the x,y coords.
if (cheese < 10){
cheese = cheese+1;
}else{
trace("x");
trace("y");
cheese = 0;
}
Code:
public function drawDot():Void {
trace('dot magically appears on stage');
}
I have never dealt with external .as files like this before and im stumped as how to go abouts creating a function that i can call in the loop.
Any help is appreciated and excuse the crappy explanation.
Cheers
How To Create A Printable Form Inside A Swf File
I would like to create several dynamic/input text fields and then have a button to create a quote based on the info in the fields. Then the final step is to give the user the ability to print a report/form based on the quote.
Any suggestions?
Thanks
Jim
Create Link Inside Dynamically Created Texfield
Hello world, I have the below dynamically created textfield:
PHP Code:
_root.createEmptyMovieClip('label', 1002);
_root.label.createTextField("insidelabel",1003,-30,-30,200,100);
_root.label.insidelabel.background = true;
_root.label.insidelabel.selectable = true;
_root.label.insidelabel.multiline=true;
_root.label.insidelabel.wordWrap=true;
_root.label.insidelabel.font="Tahoma";
_root.label.insidelabel._x=581;
_root.label.insidelabel._y=120;
_root.label.insidelabel.text = "Juliet Howard's Illustration website, constructed in HTML and Flash. Date of creation: February 2006. Online on www.julietillustration.co.uk";
Is it possible to make "www.julietillustration.co.uk" clickable as an html link or is this feature just reserved for textfields created through the text tool?.
As always, any help much appreciated.
Txusm
How To Create A Class Which Extends MovieClip Inside A Function
Hi,
I am new to ActionScript. i am trying to write an example which extends a MovieClip class. Here is the code, but I can't get it to compile.
Can you please help me?
class Tuto {
static var app : Tuto;
function Tuto() {
trace( "start !");
trace( "end !");
}
// entry point
static function main(mc) {
app = new Tuto();
myMovie extends MovieClip;
var v2 = v1.prototype;
v2.setMovie = function (_video_id, image_url, movie_url, l,
_track_id, eurl, append_vars) {
trace( "setMovie !");
}
}
}
Thank you.
Create Movie Clip Wont Work Inside Loop...
So I created a do while loop that will execute onLoad of an xml document. The onLoad function is working and the xml is loading correctly. However I want to also create a movie clip during this loop cycle. I have tried attachMovie and createEmptyMovieClip and nothing seems to happen when it is inside the loop. Taking it out of the loop however and the statements work fine.
What is going on here? I'm pulling my hair out over this one. The code if you need it:
Code:
//=============================================== create dynamic text obj w/scrollbar
this.createTextField("assetTitle_txt", this.getNextHighestDepth(), 10, 10, 120, 300);
//assetTitle_txt.html = true;
assetTitle_txt.multiline = true;
assetTitle_txt.wordWrap = true;
//why does this stop any text from showning up?
//assetTitle_txt.embedFonts = true;
// format the text
var assetTitle_fmt:TextFormat = new TextFormat();
assetTitle_fmt.size = 14;
assetTitle_fmt.color = 0xFFFFFF;
assetTitle_fmt.font = "Berlin Sans FB";
assetTitle_txt.setNewTextFormat(assetTitle_fmt);
//attach scroll bar
this.createClassObject(mx.controls.UIScrollBar, "mainVert_sb", this.getNextHighestDepth());
mainVert_sb.move( this._width - 5, assetTitle_txt._y);
mainVert_sb.setScrollTarget(assetTitle_txt);
mainVert_sb.setSize(4, assetTitle_txt._height);
//populate text box xml method
//=============================================== create new xml obj
var my_xml:XML = new XML();
// Set the ignoreWhite property to true (default value is false).
my_xml.ignoreWhite = true;
//=============================================== set up xml onload function
my_xml.onLoad = function(success) {
var countA = 1;
do {
//construct a seperate movie clip
this.attachMovie ("dateMarker_mc", "marker1_mc", 1000);
marker1_mc._x = 0;
marker1_mc._y = 0;
//position movie clip relative to previous clips y value + size
//load asset titles into txt object
assetTitle_txt.text += my_xml.firstChild.childNodes[countA].childNodes[1].firstChild.nodeValue + newline + newline;
countA++ ;
}
//eventually the cond for this will be a test to see if more elements exist
while ( countA < 2 ) ;
};
//=============================================== Load the XML into the my_xml object.
my_xml.load("all_titles.xml");
Menu Button Inside Menu, Can You Do It?
I am trying to create a dropdown menu when you rollover a menu more menus appear underneath. I have my top menu with this code. The menu is a mc symbol. The "on" and "off" activate the other menu fade in.
on(rollOver){
gotoAndPlay("on");
}
on(rollOut){
gotoAndPlay("off");
}
Now here is where I'm having problems. I cannot get the menus inside the movieclip (which are also mc's)to work. I want them on rollover to change color and on click go to a url. I 've tried giving them an instance name, a function, _root., nothing. Can this be done?
How Do I Dynamically Create Radio Buttons And Text Inside Input Boxes
I have been working on some code that will create input boxes dynamically set up to look like table. The code looks like this:
Code:
//attach header movieclip for NA
naHolder_mc.attachMovie("naHeader", "naHeads",getNextHighestDepth(), {_x:95, _y:8.4});
//code to create multi array through for loop
var row:Number = 15;
var col:Number = 15;
var depth:Number = 0;
var rowArr:Array = new Array(row);
var i:Number;
var j:Number;
for (i=0; i<row; i++) {
rowArr[i] = new Array(col);
for (j=0; j<col; j++) {
rowArr[i][j] = "["+i+"]["+j+"]";
}
//trace(rowArr[i]);
}
//code to iterate through multi array elements
var outerArrayLength:Number = rowArr.length;
for (i=0; i<outerArrayLength; i++) {
var innerArrayLength:Number = rowArr[i].length;
for (j=0; j<innerArrayLength; j++) {
var tableFormat:TextFormat = new TextFormat();
tableFormat.font = "Arial";
tableFormat.bold = true;
tableFormat.size = 11;
tableFormat.align = "center";
_root.createTextField("NAr"+i+"_c"+j, depth,95+(33.5*j), 30+(i*20.7), 28.1, 16.2);
var _box:TextField = _root["NAr"+i+"_c"+j];
_box.type = "input";
_box.selectable = true;
_box.restrict = "DdEeNnXx";
_box.border = true;
_box.multiline = false;
_box.maxChars = 1;
_box.textColor = 0xff0000;
_box.setNewTextFormat(tableFormat);
depth++;
trace(_box);
//trace(rowArr.length);
}
For a couple of days now I have been trying to create radio buttons along with the input boxes that will sit on the left side of the text boxes 3 on each row that have the labels D, E, and N. So far I have come up with nothing. I also need to have the row headers placed in the first column of the input boxes saying NA 1, NA2, NA 3, inside the input box. Does anyone have an idea on how to do this or where I should start?
I have been able to create radio buttons by using the import mx.control.radiobutton code and then createClassObjects class but don't know what type of loop to use to align the 3 radio button on the yaxis of each of the rows.
Create Three Instances Of A Library Item Inside A Parent Movie, Then Assign Behaviors
I want to create three instances of a library item inside a parent movie, then assign behaviors to those three items...
My brain tells me this code would work, but the reality is it doesnt, even though the debugger lists the objects exactly like I set them up:
ActionScript Code:
// create the parent movie
var Movie1:MovieClip = new MovieClip();
addChild(Movie1);
// use a loop to load in the cloned library items, name them, and assign behaviors
for (var i:int = 1; i < 4; i++) {
var subMovie:MovieClip=new libraryClip;
subMovie.name="sub"+i;
Movie1.addChild(subMovie);
subMovie.x=i*20 // this spaces them apart on the stage
subMovie.addEventListener(MouseEvent.MOUSE_OVER,showName);
function showName(e:MouseEvent){
trace(this.Movie1.subMovie.name)
}
}
I'm banging my head against this, and I feel like the solution is going to be a fundamental breakthrough for me...
Help?
How Can I Create A Menu Like This?
Does anyone know where I can download a menu similar to this one: http://www.arsonists.net/flat.html (in the PICTURES section you can drag the menu out and it has momentum if you fling it out really quick. Does anyone know where you can download one similar to this? Thanks for your help.
Trying To Create A Menu............
I need some help with a flash project that I'm working on. It will probably be something very simple for most of you.
Basically, I am trying to build a flash tour that has an interactive "pull-out" menu that can be pulled out at any time for navigation. An example is something like this: http://www.macromedia.com/software/f..._feature_tour/
Notice that at any time during the tour you can pull out the menu and jump around the tour. How do they do that and still keep the tour playing? I have created a simple flash button that pulls out a menu and I wonder if anyone would be willing to tell me how to make it so that the menu can pull out during a tour, without interrupting the tour.
Thanks
Does Anyone Know How To Create A Menu Like This?
Hello all. I have always wanted to be able to create a menu like they use in the site below. Basically what happens is that the menu MC's are all the same size but when interacted wih they expand pushing the surrounding menu's over, anyone know how it's done?
http://www.showlogic.com
any help is greatly appreciated
How To Create Such Menu ?
love the menu on the right on:
http://www.f1play.com/main/index.html
how do you create this ? any fla files similar that can be edited to my needs ?
How To Create This Menu
Came across this website and wondered how to do a menu system like this so if any of you can help me if you have any examples or how to get started would be great thanks.
How To Create This Menu...
Does anyone know where I can find a tut or sample of how to create this type of menu system.
http://www.homeinitaly.com/home.html
I've seen it in a couple places and want to learn how to create it so I can use it for a project I'm working on.
Thanks
I Need To Create A Menu Like This..
The menu that i want is similiar to this. But it has to have 8 buttons, with text, when it strechs the button that i select it has to have more buttons inside like one of the pictures that i send. I hope i explained myself, because my english sucks , but i am desesperated
If someone coul help please, i am really lost
|