Need Assistance With Combobox Navigation
Hi,
I want to use Flash MX 2004 combobox component for my navigation.
What I want to achieve is that when making a selection in combobox,
a specific external xml file is loaded into the textarea component and a
specific photo is loaded into the scrollpane component.
How can I acheive this? Some code examples or links to information pages would be great
Sven
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 05-11-2004, 10:06 AM
View Complete Forum Thread with Replies
Sponsored Links:
Need Assistance With Combobox Navigation
Hi,
I want to use Flash MX 2004 combobox component for my navigation.
What I want to achieve is that when making a selection in combobox,
a specific external xml file is loaded into the textarea component and a
specific photo is loaded into the scrollpane component.
How can I acheive this? Some code examples or links to information pages would be great
Sven
View Replies !
View Related
Working Out Navigation With MX... Assistance Please
I am a designer not a programmer and I am just learning AS now...
I am trying to figure out how to create a subtle interactive navigational element such as on this site: http://www.rayoflight.net/
the arrow mc is activated when your cursor rolls over the text and fades when the when you roll out...
can someone explain the action script behind this to me? I am having a hard time wrapping my brain around this one...
also... is there a way to restrict where the arrow will travel such as between x/250 & x/500 (rather then the entire x-axis of the movie itself which would be 500px)
hope that all makes sense... any help would be appreciated
thanx!
View Replies !
View Related
Navigation Assistance Needed
I have a navigation that is working great. It passes a numerical variable that determines the type based on a frame in a movie clip and section that it loads by similar means for another movie clip. And that part of it works fine.
My problem is taking it to the next step. I need one of the navigational links to have a drop down menu. I thought adding it into the rollover state would be the right solution, but it is not working the way I had hoped. I will be linking the sub navigation to added frames within the same movie clip that the sections are in.
Things to help get you where you need to be in the .fla file navProblems2.fla.
Menu layer has the nav MC in it called Symbol 29. Within that there is butt 2 copy. and two others. On layer "item 2" is butt2 copy2. That is the MC that I have attempted to put in the sub navigation. Which is only one link so far.
Any advice with this will be greatly appreciated. Thank you.
Build file: http://dev.insightspotlight.com/misc/navProblems2.fla
View Replies !
View Related
Navigation Concept Assistance
Hi,
I am trying to build a nav system for an application that requires both x & y nav capabilties, without having to create 16 different MC's (one for each possible option). Here is a link to the first screen where you make a selection from the grid.
http://home.comcast.net/~sswoboda_99/matt_app.html
Now, based on the users first selction, I want to load a new MC with just a dynamic text-box that will pull some text from a text file, but I need to make the nav posibilities such that the user is able to select any one of the options/categories on the x or y axis and then have it load the appropriate MC with text.
For instance, if the user selects the option for Manager (x axis) and Focus on Results (y axis) on the first screen, it loads that MC with the appropriate text for Manager >> Focus on Results. From there if they selcted Director and Above (x), it should then load the MC with the text for Director and Above >> Focus on Results. Then if they selected lets say Character, it would then load the MC text for Director and Above >> Character.
I think I could build this type of app without having to create a MC for all the possible options but am not sure how I should approach it. I'm thinking I could split the nav into two MC's and have the big space in the middle load the MC with the text-box (or grid if they decide to go back to it).
Any assistance you can provide is appreciated.
View Replies !
View Related
ComboBox For Navigation?
Hello,
I am need of help using the ComboBox for navigation in my presentation. I need to link to actual slides in my file not frames. The only tutorials I can find are either goingto specific frames or external URL's.
PLEASE HELP!
I also need help with the handler and function scripts.
--
Thank you in advance, Frank
View Replies !
View Related
ComboBox Navigation Help
I am new to your forum and new to ComboBoxes. I'm hoping to find some help. If this is not the right place, I appoligize.
I am curious if you can use a combobox to navigate a movie and in addition to navigation from the combobox also have it track what frame you are on. In other words if you navigate to a frame from a button, can the combobox update to show the current frame you are on?
Another question: When changing the font size on the combobox why does it only update in the dropdown menu and not the main distplay.
And yet another question... Is it possidle to have child labels. What I mean is something like "Services" as the parent then under that "Services 1" "Services 2" and so on then the same for "Products" and blah blah blah where the child labels are indented?
I'm using FlashMX Pro '04 V7
I have a sample file but its to large to attach. send me a message and I can send it to you
Thank You for any help anybody can provide.
Paul
View Replies !
View Related
ComboBox Navigation HELP
I need help really quick. I realize now that ActionScript is important and I plan on learning ASAP. But right now I need your guys' help.
I designed a presentation, and now my client wants navigation for the "main" sections in the presentation. I figured the ComboBox component is the best for this job, due to the fact that I have no space for a complicated nav bar, etc.
What I need is help in having a user click on a selection in the ComboBox and being brought to that specific slide.
My deadline is today, it would be great if I could have sample code to go by.
--
Thank you in advance!
Frank D.
View Replies !
View Related
Combobox For Slide Navigation
I'm having a lot of newbie troubles with my combobox. I'm trying to use a combobox as a means of navigating to different nested slides. Here's what I want: the user clicks on an item in the combobox, let's say "nebraska," and that action calls forth the nebraska slide. If the user then clicks on "new york," they will have called forth the new york slide. It seems like this should be easy enough, but I haven't found any tutorials that help.
I don't want any other navigation besides the above. Any suggestions or links? Thanks for the help.
View Replies !
View Related
The ComboBox Component: How To Use It As Means Of Navigation Throughout A Flash Movie
Hello, everybody.
Could anyone please suggest their ActionScript solution for the following idea: I should like to create a Flash movie featuring a few separate sections, essentialy a number of keyframes with distinctive labels (say, "reviews", "interviews", "recommendations", etc.), each having a stop(); action. The means of navigation ought to be an instance of the Flash MX 2004 ComboBox component. The idea is that it should be present independently in the foreground, not only in the first frame, but throughout the entire movie, regardless of the section (i.e. the labelled keyframe) the playhead has reached; perhaps it could be done using the swapDepths(); method or something to that effect. The ComboBox should then be able to forward or rewind the movie playhead whenever an item has been chosen from the drop-down menu by the user clicking it. I suppose the mere gotoAndPlay action would not be functional without there having been established a component listener, something I have read about but have not been to implement successfully myself.
If anyone cared to supply the code (possibly with comments), detailing how to add items to the ComboBox component and make the movie reach any desired keyframe (labelled as above) after an item has been selected, I should be greatly obliged to them.
View Replies !
View Related
ComboBox Doesn't Use ComboBox Assets
I've been customizing some components, and discovered that the ComboBox doesn't actually use the ComboBox Assets, but instead uses the ScrollBar Assets. I need to have a slightly different design for the ComboBox down button. Does anyone know how to make the ComboBox use it's own assets, perhaps by editting the ComboBox.as or ComboBase.as file?
Thanks.
View Replies !
View Related
ComboBox Problem, Displays A "text Box Like" Object Instead Of A ComboBox
Hello friends,
A friend of mine is having a tough time getting a ComboBox integrated into an existing flash movie, to work right.
Here's the story so far.....
The ComboBox when tried out in a sample new file works absolutely fine, but when the same thing (see code below) is added to
an existing movie (which has a preloader in Scene 1) does not work at all. Instead, it displays a "text-box-like" object in place of a
ComboBox...
Code:
form = new Object();
form.change = function (evt){
trace(evt.target.selectedItem.label);
}
comboBox.addEventListener("change", form);
Now, is there a possibility that because a preloader exists in the movie, the ComboBox does not work, not sure on this reasoning!
If someone could help out here, I'd really appreciate it!
View Replies !
View Related
[b]need Some Assistance?[/b]
picture this:
scene1; 2 layers: first layer 'actions', second layer MC's; now frame 1 holds 'movie' frame 5 holds 'movie02'(actual names of MC's). from inside 'movie02' i have a button that when released should take me out of that movie back to the _root.movie("start");
this works fine but, i need to go to a specified frame label inside that 'movie' that is on the _root, in frame1 (as mentioned above).
summary-
so on the main timeline, going from frame 5 'movie02' to frame 1 'movie'.
but inside 'movie' to a specified frame label or frame 60 which is the same place.
?
any questions, just ask.
zeb00
View Replies !
View Related
Ack Assistance Please
hey there!
I have what either could be a very simple question or perhaps not so simple...
I want to import a graphic that is not a rectangle! how does one make it so that graphics/pictures/other flash can be seen behind non rectanglular pictures. whenever i import the picture it seems impossible to do this. but that cant be true.
It is really really frustrating.
View Replies !
View Related
Need Assistance
I have a Button thats takes the user to my other website but i need the button when pressed to promp the user for a login name and password. how is this done? I dont know where to start.
View Replies !
View Related
I Think I May Need Some Assistance
Hello,
I am making a movie that has a ball that randomly moves about the screen. I want it so that when you click it five times, it goes to frame 3. That's it. For some reason, it's not working. Maybe I have all the right script in all the wrong places. Here is my script.
Main Timeline:
Frame 1: num=0
Frame 2: stop()
Frame 3: stop()
Ball Instance in Main Timeline:
onClipEvent (enterFrame) {
if (hit=1) {
num+=1
}
if (num=5) {
gotoandPlay(3);
}
}
Ball Timeline:
Frame 1: _x=250; _y=250;
Frame 2:
random1 = 2*Math.random()-1
random2 = 2*Math.random()-1
xvel = random1*10
yvel = random2*10
_x+=xvel
_y+=yvel
if (_x>=500) {
_x+=-50
}
if (_x<=0) {
_x+=50
}
if (_y>=500) {
_y+=-50
}
if (_y<=0) {
_y+=50
}
Frame 3:gotoandPlay(2);
Invisible Button Instance on ball:
on (release) {
hit = 1
}
The ball moves around exactly how I want it. But, no matter how many times I click the ball, nothing happens. I am not sure what I am doing wrong. In theory, it seems like it shoudl work, but...nothing.
I would really really appreciate any help.
View Replies !
View Related
I Need Some Assistance
I downloaded a menu from ultrashock.com...the actual file can be found here:
http://www.ultrashock.com/cgi-bin/flas/jump2.cgi?ID=84
i checked out there forum and someone asked the same question i needed answered: "How do I change the "option" links to the text i want for my site?" somebody answered it with this reply:
The labels themselves are not dynamic, so you can't set them to different values. Therefore, i just made them dynamic (click on the text field and goto the text field options panel and choose dynamic from the pull down menu). I also had to give and instance name the movieclip containing the "option" button and text field (click the movie clip and goto the instance panel and type in the instance name). Now the movie clip can be referenced in relation to the rest of the movie.
Now i notice in Odendaal's code he used this:
while (count < VerticeNum) {
count ++;
duplicateMovieClip("Vertex", "Vertex" add count, count );
}
This means that all the movieclips are just going to be "vertex" plus the number that count is equal to. Examples of these names are vertex1, vertex2, and vertex3.
So the path to the "option" button is now vertex1.option.label. The instance name i gave the "option" movieclip was indeed option and the dynamic text field i called label. With this information, we can now set the text fields of each variable.
vertex1.option.label = "Home"
vertex2.option.label = "About Us"
vertex3.option.label = "Contact"
for linking to a url, you could simply add a link variable to the movieclip being duplicated. Then, simply have the button:
on (release)
{
getURL (_parent.link, _blank)
}
Then, simply manually enter in the links as you did the names.
so what exactly does this mean?...i've spent 3 hours trying to figure this out and am getting really frustrated...can someone please help me?
BlAcKjAcKRFD@msn.com
View Replies !
View Related
In Need Of Assistance
Hi =)i have a problem (obvious).
I'm trying to make a "box" to follow the mouse cursor but only in a horizontal rectangle and only when the cursur is in the same height as the rectangle, now i have a box as a movie clip and has this script to it:
onClipEvent (enterFrame) {
_x+=(_parent._xmouse-_x)*.3;}
it makes the "box" follow the mouse in a horizontal way all right but it do so no matter were i have the cursor on the sceen and i have no idee how to make the box to stay in the rectangle.
I hope that some one off u script masters understood my problem (and my english) =P
(i attach a fla file that maybe explain it better )
(FLASH 5)
View Replies !
View Related
A Little Assistance If You Please.
Flash MX 2004 Pro.
I'm in the middle of a game that needs a certain mechanic while playing.
A grid of 5x5 squares:
X,X,X,X,X
X,X,X,X,X
X,X,X,X,X
X,X,X,X,X
X,X,X,X,X
Each square can have a value of 1 to max_prize.
I'm looking for a function that will select a random grid number and give it a random value between 1 & max_prize. Easy until you realise that there must never be a line of 3 like values in the grid (horizontally, vertically or diagonally).
It would also be handy if I could trigger a line of 3 like values at some point within this function.
Any ideas?
I know that it would probably be best using an array for the grid and perform checks to see what values are already around the grid number.
Many thanks in advance.
Gav
View Replies !
View Related
In Need Of Some Assistance
Hello, im relativly new to flash and am usin Flash MX
I am making a website and have come accross a few problems
1 -I have a symbol which has several buttons inside it, there is script attached to these buttons, currently it is "on (release) {gotoAndStop('Scene 1',7)}". What i want it to do is to, in scene 1, goto frame 7. However it just goes to frame 7 of the Symbol.
Why is this and could someone please assist me with my script, as i believe it is currently wrong?
2 -in the same symbol there is flickering when i "test movie", is this normal and can it be stopped?
3 -when i attempt to open my flash project in internet explorer i get a security warning, i am making this web site for a business so it would be desirable for this to not comme up, is there a way of avoiding this?
View Replies !
View Related
Please, Please Help Need Assistance
Hi,
HELP, I NEED SOME PRO FlashMX 8 ASSISTANCE!!
I'm currently working on a website for a Jimmy Buffet type band.
Here is the link:
http://www.AltGraphicDesign.com/Mr_Myers/Mr_Myers.html
Is there anyone out there that can help me with a certain scrolling text box inside a movie! I have spent HOURS upon HOURS literally trying to make a certain scrolling text box in my movie.
HERE IS THE BIG PROBLEM I'M HAVING!
The site loads and you then click on the MAP that the parrot is holding in his mouth for the dropdown navigation. All is good so far. Click on "Band Bio" button from the list. The bandbio.swf file loads into a Container in Main Movie Mr_Myers.swf
A bottle comes up with a scroll rolled up inside. You pop the cork and out comes the the paper scroll. Inside the large scroll, when it drops down, I 'm trying to create a scrolling text box on top of the paper scroll. However I am very poor with communicating to target movies etc. and I have spent countless hours trying to get this too work, without loading it externally, to no avail! The text is already there. All I need is for the text to be be able to scroll when the paper opens up.
(I KNOW HOW TO MAKE TEXT SCROLL BY ITSELF. BUT FOR SOME REASON THIS TEXT WONT DO IT BECAUSE ITS INSIDE A MOVIE CLIP)
I have the .fla files. if you need me to email!
The "bandbio.swf movie loads into an empty movie clip with an instance called .Container in the main movie.
"bandbio.swf file doesn't need to load into via .Container. It can just load through a simple loadMovie function.
PLEASE HELP!!!! I WILL PAY $ IF NEED BE IT!!!
I need to get this done very soon! My client awaits, and I'm tired!
Thank You!
http://www.AltGraphicDesign.com/Mr_Myers/Mr_Myers.html
View Replies !
View Related
Some Assistance Please...
Population keeps coming up undefined in the popup but traces the correct values. I'm stuck on how to write it properly to display in the dynamic txt field. Thanks guys.
Code:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("stats.xml");
popup._visible = false;
function loadXML(loaded) {
if (loaded) {
state = new Array();
population = new Array();
for (i=0; i<3; i++) {
state[i] = this.firstChild.childNodes[i].childNodes[0].childNodes[0].nodeValue;
population[i] = this.firstChild.childNodes[i].childNodes[1].childNodes[0].nodeValue;
trace(state[i]);
trace(population[i]);
}
for (i=0; i<state.length; i++) {
_root[state[i]].onRollOver = function() {
popup._visible = true;
popup.statename.text = "State: "+this._name;
popup.population.text = "Population: "+population[i];
};
_root[state[i]].onRollOut = function() {
popup._visible = false;
popup.statename.text = "";
popup.population.text = "";
};
}
}
}
XML File...
Code:
<?xml version="1.0"?>
<country>
<state>
<name>California</name>
<population>33,871,648</population>
</state>
<state>
<name>Arizona</name>
<population>5,130,632</population>
</state>
<state>
<name>Texas</name>
<population>20,851,820</population>
</state>
</country>
View Replies !
View Related
Need Assistance Please
Hello I need some assistance with getting the whole opening a custom browser window in Flash 8.
Here's the thing I have a web page which I want to use as a gallery for photos. I have links which when pressed I'd like a centered browser window to open with the photo in it. I kknow there are many tutorials on this but Im trying really hard to follow them and getting no where.
I've got the whole concept of placing the get URL script on the button but after that Im lost.
I know you have to place code in the HTML file also but it just doesn't seem to be working for me can someone please give me a step by step on this. just where I should be placing everythinng and in which HTML file.
I know I should have an swf file which has my button with the script in it, a HTML file which when I publish the SWF should be generated but that's about all I know. Can someone please assist me I really could use the help.
Thanks much .
View Replies !
View Related
Looking For Any Assistance
see script below.. for some reason the createTextfield command does not
display the text but does create the box. any ideas? I am also trying to
repeat the movie clip with dynamic text in it to scroll up the screen but it
is not creating the next instances of the clip when the repeater is called.
please let me know what you would do. thank you!
SW = Stage.width; // scene width
SH = Stage.height; // scene height
_global.MSG_SPEED = 3;
var lvl:Number=0;
MovieClip.prototype.Txt = function(){
trace("clipName:"+clipName)
trace("LVL:"+lvl)
mc.createTextField("mytext",this.getNextHighestDepth(),100,100,300,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
mytext._alpha = 100;
mytext.text = "Text Goes Here";
trace(lvl+" - "+ smText);
};
MovieClip.prototype.Move = function(){
if (mc._y > -100) {
mc._y -=_global.MSG_SPEED;
trace("mc._y:"+mc._y);
} else {
mc.removeMovieClip();
trace("FireFly:remove");
}
};
setInterval( MovieClip.prototype.Move , 20 );
Repeater();
//Repeat interval to write text to screen
function Repeater(){
//Call the new message function every X Seconds
lvl= lvl+1
clipName = "msg"+lvl
trace(" clipName:"+ clipName);
trace(" lvl:"+ lvl);
var mc = this.createEmptyMovieClip( "mc",clipName,
this.getNextHighestDepth());
mc.beginFill (0x666666, 20);mc.lineStyle (1, color, alpha); mc.moveTo
( 200, 200); mc.lineTo ( 200 + 400, 200 ); mc.lineTo ( 400 + 400, 200 +
200); mc.lineTo ( 400, 200 + 200 );
mc.endFill();
mc._x = 30;
mc._y = SH;
mc.Txt();
};
setInterval( Repeater , 2000 );
View Replies !
View Related
Looking For Some Assistance
I would be classified as a beginner when it comes to flash. When searching around in the forums, I feel completely lost when I see a huge list of actionscript. However, I was hoping someone would be able to direct me to some great beginner tutorials or assist me right in here. What i'm trying to do is build a website to showcase my work as a game designer; mainly artwork, movies, flash games, and user downloadable modding/mapping files. What I'm looking for is....
1) How to load images/movies from external sources. I managed to find a resource that explains using "load external movieclip". It works perfectly for the images, and seemed to work for .swf files. However, what can I use to load other movie types such as (.wmv, .mpg, .avi)?
2) How to add a simple preloader to the images/movies that will be loading.
3) How to load flash games. I'm not certain, but my best guess is that I could use the "low external movieclip" behavior.
4) The last thing I want to know is how I can allow users to download files from my flash site. I'm going to use a simple button, but I'm unsure of how to set that up.
Like I said, I'm only a beginner, so any tutorials related to what I need or code samples of what might work would be greatly appreciated. Thank you!
View Replies !
View Related
Re.: Need Assistance
Dear all,
hope that someone out there could help me with the following queries:
I am a new Flash user and currently using MX2004 Pro. I encountered some problems creating hyperlinks and Contact Me button.
I was following the instructions laid out in
(1) Creating Email Button:
http://www.kirupaforum.com/forums/newthread.php?do=newthread&f=35
Under Mail Button, Step 2
I was unable to find Basic Actions>on mouse event then go to Basic actions> get URL as the menu in Flash MX has changed.
(2) Linking a Button:
http://www.kirupa.com/developer/flash5/buttonlink.htm
Step i
I was unable to locate Basic Actions>Get URL as well..:'(
Would someone help me??
Thank you in advance.
Regards,
ernie
View Replies !
View Related
XML Assistance ~ PLEASE
Here are the files...
http://www.truthchurch.com/test/
I dont want to use the "title" attibute because I want the ability to write 5-6 lines of text (not all on one line) in a nice format...
I want this only to have nice formatted text and I am having difficulties...
If there is a simple way to do this please let me know...
I have the gallery exactly how i want it...but now my challenge is displaying the text to look like this...
Giggle Moon
Love, Cherish, Joy
3pc Set (top, leggings, minki dot skirt)
Sizes 3M, 6M, 9M, 12M, 18M, 24M
Available in Pink and Lavender
Price: $48
Rather than what it is currently looking like (non formatted)
I hope I am explaining it well enough. any help would be very much appreciated as I have spent a lot of trial and error time on this today.
thanks a mill!
View Replies !
View Related
Me Again... Need Some More Assistance If You Please
thanks to kax i got my flash menu to work! thanks kax. but i added a couple things onto it, i added a rollover onto the buttons. and this is what happened
does anyone know why the buttons are flashing?? i double clicked on the button so it showed the hit states, and i added another layer. and added a frame to the over state. then added a keyframe on the over state for the second layer and then placed my rollover button on that keyframe.... if it's not one thing, it's the next... OY!!!! thanks in advance
View Replies !
View Related
Need Assistance Here
Hey guys,
Can one of you talented folks help me out here? I'm having problems stopping this motion blur. I've tried all the tutorials but like I was saying my AS skills are out of date.
Here is what I have so far...
Code:
import flash.filters.BlurFilter;
import mx.transitions.Tween;
import mx.transitions.easing;
new mx.transitions.Tween(myClip, "_y", mx.transitions.easing.Elastic.easeOut, -200, -10, 2, true);
var myBlurFilter = new BlurFilter(BlurX, 10, 50);
var myFilterArray = new Array();
myFilterArray.push(myBlurFilter);
myClip.filters = myFilterArray;
I got all the effects to work including the blur but for some reason I can't get rid of the blur once the easing is done.
I thought I needed to use the "onMotionFinished" function but that doesn't seem to work either.
Thanks in advanced!
View Replies !
View Related
Need Little/big Assistance
here i have a movieclip which is been duplicated and they moves randomly inside the screen but all they have the same motion and the same direction.. i want the duplicated movie clips to have different motions and to be in different directions and they should be coming towards the center.... can any one pl guide me whether i am going in correct direction or not.....
i need the need help for this
Code:
CODE USED FOR THE FRAME
i = 0;
while (i<10) {
duplicateMovieClip(dot, "dot"+i, i);
//dot.duplicateMovieClip("dot"+i, i);
i++;
}
Code:
// USED FOR THE MOVIE CLIP
onClipEvent (load) {
//data you may want to change
width = 300;
height = 200;
speed = Math.round(Math.random()*2)+1;
//speed = 5;
//initial positions
x = Math.random()*width;
y = Math.random()*height;
this._x = x;
this._y = y;
x_new = Math.random()*width;
y_new = Math.random()*height;
}
onClipEvent (enterFrame) {
//x movement
if (x_new>this._x) {
sign_x = 1;
} else {
sign_x = -1;
}
dx = Math.abs(x_new-this._x);
if ((dx>speed) || (dx<-speed)) {
this._x += sign_x*speed;
} else {
x_new = Math.random()*width;
}
//y movement
if (y_new>this._y) {
sign_y = 1;
} else {
sign_y = -1;
}
dy = Math.abs(y_new-this._y);
if ((dy>speed) || (dy<-speed)) {
this._y += sign_y*speed;
} else {
y_new = Math.random()*height;
}
}
View Replies !
View Related
Re.: Need Assistance
Dear all,
hope that someone out there could help me with the following queries:
I am a new Flash user and currently using MX2004 Pro. I encountered some problems creating hyperlinks and Contact Me button.
I was following the instructions laid out in
(1) Creating Email Button:
http://www.kirupaforum.com/forums/newthread.php?do=newthread&f=35
Under Mail Button, Step 2
I was unable to find Basic Actions>on mouse event then go to Basic actions> get URL as the menu in Flash MX has changed.
(2) Linking a Button:
http://www.kirupa.com/developer/flash5/buttonlink.htm
Step i
I was unable to locate Basic Actions>Get URL as well..:'(
Would someone help me??
Thank you in advance.
Regards,
ernie
View Replies !
View Related
Just About There Need Some Assistance Please [pre]
frame 1:
ActionScript Code:
itemArray = new Array();
xmlObj = new XML();
xmlObj.ignoreWhite = true;
xmlObj.load("data.xml");
xmlObj.onLoad = function() {
for(i=0; i<xmlObj.firstChild.childNodes.length; i++) {
itemArray.push(xmlObj.firstChild.childNodes[i].attributes.file);
}
}
frame 2:
ActionScript Code:
count=0;
frame 3:
ActionScript Code:
createEmptyMovieClip("item_"+count, count)
loadMovie(itemArray[count], _root["item_"+count]);
frame 4:
ActionScript Code:
loadedBytes = _root["item_"+count].getBytesLoaded()
totalBytes = _root["item_"+count].getBytesTotal();
percent = (loadedBytes/totalBytes)*100;
frame 5:
ActionScript Code:
if(loadedBytes<totalBytes) {
_root.preloader.bar._xscale = percent;
if(percent<100){
gotoAndPlay(4);
}
}else{
if(count<itemArray.length-1) {
count++
gotoAndPlay(3);
}else{
stop();
}
}
Problem is my preloader.bar doesn't scale cause something is wrong of coarse. Can someone point out what need to be done so the script will work. I have the first three frame working fine not too sure about frame 4 and frame 5 could be examined by someone who knows where I'm going wrong. Your assistance is much appreciated,
thanks Kirk
View Replies !
View Related
Need Some Assistance...
Hi , recently i was surfing 2advanced.com and thought the into was cool as heck. I really loved the lines and graphics flying around so i was wondering how it was done.
Besides the graphics , how did the lines (or are those graphics as well) created? Through actionscript? the movement and loading bar etc. , how is it done? I always wondered how things were done in Flash but when i pick up a book , i cant find what i want and get bored with it fast.
Anyone got any ideas?
View Replies !
View Related
Tell Target Assistance?
I'm trying to use the tell target action to target a movie clip in a frame and play the clip. I gave the clip an instance name, and have the button calling the target on it's own layer in the same frame. What am I doing wrong?
View Replies !
View Related
Flash 5 Assistance
I am trying to fade an image out. To do this, I am motion tweening the image and using the Alpha effect at 0% on the last frame of my tween. However, the image seems to like squish together a little bit when I do this. I'm not sure where I have gone wrong, I have even tried breaking apart the image and I still get the same result. Any help would be greatly appreciated.
View Replies !
View Related
Assistance In Clearing MC's
Ill simplify me earlier question.
How does one clear a swf loaded movie clip?
I dont want to unload the movie and I dont want to have
the visibility set to nothing.
I tried putting another blank frame in the MC and when i directed to play that frame, the loaded swf was still displayed. Confused. Please help.
Nathan
View Replies !
View Related
Newbe Needs Assistance
I am new to this process and I became enamored with the following site:
http://www.swishzone.com/index.php?d...8&swfbgcolour=
Can any one please provide assistance as to how it was done?
Any and all tips are appreciated. My thining is that by obtaining bits of info from lots of people, I will be able to learn from all of you. Thanks in advance.
Ham
View Replies !
View Related
Assistance With Function()
Hi all!
List1 = new Array ("tb1", "tb2");
List2 = new Array ("_root.a1", "_root.a2");
function convert() {
for (z=0; z<=42; z++) {
if (List2[z]==0 || List2[z]==undefined) {
List1[z]._visible=false;
}
else List1[z]._visible=true;
}
}
unfortunatly this script is not working. Whats wrong?
the paths are all ok.
Thanks,
----va
View Replies !
View Related
Need Some Menu Assistance
Hello,
I could use some help.
Here is the general structure of the flash piece.
1. Main.swf is the backdrop of the piece that does not change.
2. Navigation.swf is loaded onto main.swf (it is a menu) The menu names are generated dynamically from a .txt file. Attached to each menu name is a .swf file name.
.txt Example:
ITEM NAME="Menu 1"
SUBITEM NAME="Submenu Link 1" Link="lesson1.swf" /
3. When the user clicks on a subitem name I need the corresponding .swf to open in the main.swf.
The code:
// variables:
menuSpeed = 8;
arrowSpeed = 25;
vSpacing = 13;
scope = this;
scope.createEmptyMovieClip("mainMenu",2);
/*** mainMenu controls menu movement in onEnterFrame ***/
mainMenu.onEnterFrame = function(){
if (this.onClosedMenu || this.pos != this.offset){
if (Math.abs(this.pos - this.offset) <= menuSpeed){
this.pos = this.offset;
this.SlideButtons();
if (this.onClosedMenu){
this.onClosedMenu();
delete this.onClosedMenu;
}
}else{
this.pos = (this.pos > this.offset) ? this.pos - menuSpeed : this.pos + menuSpeed;
this.SlideButtons();
}
}
}
/*** used in mainMenu onEnterFrame ***/
mainMenu.SlideButtons = function(){
// starts at the dropstart clip (ID) as set by mainMenu.onClosedMenu
var i;
for (i=this.dropStart+1; i<menuItem.length+1; i++){
var currButton = this["button"+i];
currButton._y = currButton.homePosition + this.pos;
}
}
/*** used in menu button onReleases for arrow rotation ***/
MovieClip.prototype.setToRotateTo = function(rotation){
this.rotateTo = rotation;
this.onEnterFrame = function(){
this._rotation = (this._rotation > this.rotateTo) ? this._rotation - arrowSpeed : this._rotation + arrowSpeed
if (Math.abs(this.rotateTo - this._rotation) <= arrowSpeed){
this._rotation = this.rotateTo;
delete this.onEnterFrame;
}
}
}
GenerateMenu = function(success) {
if (success) {
menuItem = this.firstChild.childNodes;
for (i=0; i<menuItem.length; i++) {
/*** make a button for each itme layed out in the XML ***/
myButton = mainMenu.attachMovie("button", "button"+i, i);
myButton.ID = i;
myButton.buttonLabel.text = menuItem[i].attributes.NAME;
myButton.subMenus = menuItem[i].childNodes.length;
/*** if has sub menus ***/
if (myButton.subMenus){
myButton.subMenuItem = menuItem[i].childNodes;
/*** used in mainMenu.onClosedMenu to generate the new submenu ***/
myButton.createSubMenu = function(){
mySubMenu = scope.createEmptyMovieClip("subMenu",1); // lower than main menu
mySubMenuMask = scope.createEmptyMovieClip("menuMask",3);
for (j=0; j<this.subMenus; j++){ // create each submenu button
mySubButton = scope.subMenu.attachMovie("button", "button"+j, j);
new Color(mySubButton).setTransform({rb:33, gb:33, bb:33});
mySubButton.buttonLabel.text = this.subMenuItem[j].attributes.NAME;
mySubButton.myLink = this.subMenuItem[j].attributes.Link;
mySubButton.onPress = function() {
//getLink(this.myLink);
trace(this.buttonLabel.text+" : "+this.myLink);
}
mySubButton.onRollOver = function() { this.glare.play(); }
mySubButton._x = this._x;
mySubButton._y = this._y + vSpacing*(j+1);
mySubButton.arrow.swapDepths(0);
mySubButton.arrow.removeMovieClip();
}
}
/*** drop-down menu release actions ***/
myButton.onRelease = function() {
if (mainMenu.currentSubMenu != this){
mainMenu.currentSubMenu.arrow.setToRotateTo(0);
mainMenu.currentSubMenu = this;
/*** set new menu positioning ***/
var currButton = this;
mainMenu.onClosedMenu = function(){ // runs when menu closes
this.offset = vSpacing * currButton.subMenus;
this.dropStart = currButton.ID;
this.currentSubMenu.createSubMenu();
currButton.arrow.setToRotateTo(90);
}
mainMenu.offset = 0; // set offset to 0 to close, when closed it runs onClosedMenu
/*** if this menu is open, close ***/
}else{
mainMenu.currentSubMenu = null;
this.arrow.setToRotateTo(0);
mainMenu.offset = 0; // set offset to 0 to close
}
}
/*** if no submenus, make a normal link button ***/
}else{
myButton.myLink = menuItem[i].attributes.Link;
myButton.onRelease = function() {
//getLink(this.myLink);
trace(this.buttonLabel.text+" : "+this.myLink);
}
myButton.arrow.swapDepths(0);
myButton.arrow.removeMovieClip();
}
/*** all menu buttons ***/
myButton.onRollOver = function() { this.glare.play(); }
myButton._x = myButton._y = 16;
myButton.homePosition = myButton._y += vSpacing*i;
}
/*** attach dummy button below menu to cover underlying submenus ***/
myButton = mainMenu.attachMovie("dumbutton", "button"+i, i);
myButton._x = myButton._y = 16;
myButton.homePosition = myButton._y += vSpacing*i;
/*** if no success ***/
} else {
trace("XML File Loading Failed");
}
};
/*** retrieve XML data then generate menu ***/
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = GenerateMenu;
myXML.load("XMLMenu_MX.xml");
How would I call on this variable to get it to open?
What would be the onRelease script to get this to work?
View Replies !
View Related
Need Urgent Assistance
Do you any of you guys now how to capture the current picture on your screen.
Ie I need to capture an image for instructional purposes. ie picture of desktop, file search through Windows 2000.
Can anybody please inform me I have seen it done various times before in company instructional mannuals on PC opertion.
I am thinkng of creating an instructional movie instead of just typing the content, make it a little different and interesting.
Could you please email the response to SJones@KraftAsia.com
View Replies !
View Related
Experts Need Assistance
Hi,
I'm new at flash animation, I currently own Flash MX, and i know pretty much the basics, motion tween etc. I would like to learn how to make the flash cartoons in flash, but don't know how to start. Most tutorials, don't really teach you about how to animate like the people of newgrounds. If anyone would be kind enough to be sort of a tutor that i can apprentice off of that would be great. We could communicate through MSN messenger. Add me at kevx25@hotmail.com. This will be alot of help. Thank you
Kevin
View Replies !
View Related
Platformer Assistance
sorry if some of you noticed i posted this in the flash forum first, i didnt notice there was an actionscript thread, new to these forums anyways,
i have been trying to make a platformer for quite some time, ive tryed everyway possible, but i just cant do it, i cant get a good jump script for starters, can anyone help?
View Replies !
View Related
Assistance With Grid
Hello
I am wondering how I can create a grid of squares that when I click on them I can switch the color between black and white.
Imagine a chess board, but all squares are white to begin with. Each square when clicked should turn black. If clicked again, they should revert back to white and so on. The matrix of squares I plan to use is quite large so obviously an array should be used to store the on/off state of each square.
Any help on this matter would be great.
View Replies !
View Related
I'm In OVER MY HEAD Will Pay To Get Assistance
I have built a presentation in Koolmoves, becasue i know so so so little about flash. I am almost dome designing the frames, and i realize that i reall don't know what to do when it comes to animating the frames...
tell me ur price per hour and we may have a deal!
(hope this is ok - according to the forum rule, i am desperate)
sevenseaspub@aol.com
View Replies !
View Related
Flash MX AS Assistance...
I had asked this question in the Newbies section, since that is what I am, and they suggested I ask for more detailed assistance within this Forum for my needs.
NEEDS: I would like to "draw lines" in the way that you see in affect on some Flash websites when the movie starts, outlining the actual design and creating it's final form.
QUESTION: Since I am such a Noob at this, how can I achieve this result (someone suggestion a "lineto" command - however I have no idea what this is - Examples of AS code would be most helpful)?
Thank you in advance for your assistance, and of course your patience for dealing with me.
View Replies !
View Related
Assistance With Coding?
I’m in desperate need for some help in a game that I’m working on. Well, actually I’ve been working on a layout and screenplay for a game and I’ve been studying different methods of using coding in the action scripting, but I seem to be stuck and I need help. What I need to know is for one;
1. How do I make it to where I can press the right arrow and the character will walk that way.
I’ve been trying it like; onClipEvent(enterFrame){
Fi(key.isDown(key.RIGHT)){
_root.maincharacter._x=_root.speed;
And a little more coding that I use. I got it from this tutorial. I also make a dynamic text box with; speed=10;. To create the variable that speed is equal to the number 10. A good theory, but it doesn’t work for me. I hope there’s a person out there that could help me.
2. How do I make it to where the person is pointing toward my mouse at all times.
What I mean here is like I’m using the arrow keys and he’s running around (top view like early zeldas) and the character has a gun and the gun is pointing where ever the mouse is.
3. How do I make a gun that shoots?
I’m pretty sure on how to make health for every character. (Kind of) but I need to learn on how to make a gun where the bullets actually spread and damage anything it touches.
4. I want to give this game a bit of randomness to it. Like Npc’s running around doing there thing and getting attacked and stuff like that.
This is only a small amount of troubles I’m having. I’ll take advice from anyone about anything to do with coding. Please just help me. I’m becoming so freak’n frustrated on all of this. Half the tutorials are cool, but they miss something in there coding or what have you that makes it confusing. Like dynamic text boxes. I can’t figure out how to make the coding actually turn the numbers and words into variables. I’ve done everything I was told to do, or I think I did. Anyway help me.
View Replies !
View Related
Preloader Assistance..please
Hi All,
I have a movie clip that is made up of numerous layers. The very last frame of the clip is 217. I have a preloader in the first frame. All the other images start on frame 2 or higher. On the action layer, the code is:
if (_framesloaded>=_totalframes) {
gotoAndplay (2);
} else {
gotoAndplay (1);
}
When I test the move and stream the content, the preloader loops maybe twice, and then the actual clip starts. Since the clip is still loading, the clip stutters along and looks horrible. The preloader doesn't seem to function, no matter how many setting changes I make. I tried specifying the actual frame # in the code, I tried labeling the Preloader frame and updating the change in the code, etc. The preloader still loops maybe twice and then the actual clip starts to load. Can anyone shed light on what I maybe missing?
Any help is GREATLY appreciated!
View Replies !
View Related
|