Simple Compontaes Question
when i use a componat and run it in exe mode on another computer, do i need to install something on the othr computer or ist being compiled into the exe and can run on any win system? thnaks PEleg
FlashKit > Flash Help > Flash MX
Posted on: 02-21-2003, 05:08 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- LoadMovie SIMPLE Question For Simple Minded Graphic Artist
- Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
- [F8] Very Simple Question, Very Simple Answer, I Hope. (Flash 8, Collisions)
- Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
- Simple Problem. Simple Answer? Arranging Windows W/flash
- Random Tweens - Simple Question, Simple Answer?
- HELP SIMPLE, SIMPLE XML-FLASH Load Into Movie Clip
- Simple Problem Neeeds Simple Answer
- Simple Question, Probable Simple Answer
- Simple Button Mouseover Effect - I Know It's Simple, Just Don't Know How To Do It
- Simple Button, Needs Simple Action Script
- Simple Question - Simple Answer FLASH MX
- Simple, Simple... Input Field Question
- Simple Question *(I Hope) From A Simple Newbie...
- Simple Questions...mean Simple Answers....right?
- Simple Question.....any Simple Answers?
- Simple Problem Simple Solution?
- Simple Problem, Simple Movie
- Simple Question - Simple Answer?
- Need A Simple Script For A Simple Button
- Simple Question With Hopefully A Simple Answer.
- Simple Problem In Need Of A Simple Solution
- Simple Or Not So Simple GetURL() Problem
- SIMPLE Simple Actionscript Question
- Simple Loadvariables Task Not So Simple... Why?
- Simple Questions From A Simple Person
- [CS3] Simple Image Loop Not So Simple
- Simple Answer For A Simple Question?
- Simple Question...simple Answer
- Simple Mathematics = Apparently Not So Simple
- Simple Button Listener Not So Simple
- Simple? Can Anyone Tell Why This Simple Btn Doesn't Work?
- Simple Problem, Simple Answer?
- Simple Question Simple Answer
- SIMPLE MATH? Isn't So Simple With Flash?
- Simple And Simple Array Question
- Simple Question? Simple Answer
- Simple Simple Radio Button [help]
- Simple Sound Question... Not Simple For Me
- Simple Problem, Simple Answer?
- Simple Question Simple Answer
- Simple Question Needs Simple Answer
- SIMPLE Problem. | SIMPLE Answer?
- Simple Problem...simple Solution?
- Simple Qestion For Simple Minded :)
- Simple, Simple Button Code ... *&^%£&
- Simple, Simple, Simple Scroller
- SImple Simple Question
- Simple.. Simple Query
LoadMovie SIMPLE Question For Simple Minded Graphic Artist
OK! So this will be EASY EASY for all of you.
I need to load a seperate SWF file onto the stage on a level above the main swf.
the seperate SWF file is in the same folder as the original all located in the "flash" folder of the root directory.
How do I get th e outside SWF to load on top of the movie.
The original movie is called grid.swf the outside movie is called liquid-print.swf
If anyone can help me with giving me the code I'd appreciate it. I really am quite dense when it comes to coding.
Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
Flash MX 2004 (mac)
******************
Hi,
I have a custom component that consists of nothing more than two dynamic text feilds and a button. I want the button to open a popup window in the browser, and it does so using javascript (an extension i found).
I put the following function in the first (and only) frame of my actual component (and its also in the first frame of my entire movie, just in case):
callPopup = function() {
getURL(popup);
};
And then on the button in my component i have this:
on(press){
callPopup();
}
and then finally,there is a variable named 'popup' within my component (which would change in each instance) which is given a value in my test instance as :
"javascript:jspw3('../vwd_scripts/','popups/acroyoga.swf',',,0,Past%20Event,index,Past%20Event ,20,0,,0,450,550,0,0.001,0.001,,,1,0,,.0.0.');"
somewhere i am doing something wrong.. ..i am not sure if its the button code, or my link (variable 'popup') syntax. Or if its impossible to use javascript in this way.
I know my html page is set up correctly (correct info in the head of the page etc), since i am able to call the javascript from a regular html link (just for testings sake) which is on the same page as my swf.
Hmm..i hope i made some sense here.
I will be very gratefull for some help...i'm totally lost on this one...
thanks in advance
Cheska
[F8] Very Simple Question, Very Simple Answer, I Hope. (Flash 8, Collisions)
Alright, so I've got my ball that moves up and down; it has gravity too. There are two things I want to do:
1. I want it to 'jump' when the UP key is pressed, rather than just accumulatively move upward.
2. I only want gravity to be applied while the ball is in the air(In other words, I basically just don't want it falling through the floor; however, want the edges to be the collision, not the center, and I also still want to be able to jump afterwards.
Thanks for any help, I don't need an explanation, I can figure it out by looking at the code. I'm going to attach a basic file with what I already have, please add the coding to it, then send the file back. Thanks for any help, and I apologise if this is hard to understand, or if I sound any bit rude to be asking how to do something; I don't mean to.
Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
Flash MX 2004 (mac)
Hi,
I have a custom component that consists of nothing more than two dynamic text feilds and a button. I want the button to open a popup window in the browser, and it does so using javascript (an extension i found).
I put the following function in the first (and only) frame of my actual component (and its also in the first frame of my entire movie, just in case):
callPopup = function() {
getURL(popup);
};
And then on the button in my component i have this:
on(press){
callPopup();
}
and then finally,there is a variable named 'popup' within my component (which would change in each instance) which is given a value in my test instance as :
"javascript:jspw3('../vwd_scripts/','popups/acroyoga.swf',',,0,Past%20Event,index,Past%20Event ,20,0,,0,450,550,0,0.001,0.001,,,1,0,,.0.0.');"
somewhere i am doing something wrong.. ..i am not sure if its the button code, or my link (variable 'popup') syntax. Or if its impossible to use javascript in this way.
I know my html page is set up correctly (correct info in the head of the page etc), since i am able to call the javascript from a regular html link (just for testings sake) which is on the same page as my swf.
Hmm..i hope i made some sense here.
I will be very gratefull for some help...i'm totally lost on this one...
thanks in advance
Cheska
Simple Problem. Simple Answer? Arranging Windows W/flash
SIMPLE problem. | SIMPLE answer?
We're trying to have a Full screen CD presentation in flash that plays .avi's in windows media player, & opens up url's in a web-browser. The problem is the URLs AND the .AVIs show up underneath the flash, is there a way to have them open on top of the presentation?
Thank you.
Random Tweens - Simple Question, Simple Answer?
Hello, I have one swf with a few different motion tweens inside their own movie clips. I want to write some code to play only one of the tweens at random. I know how to use setInterval to get the process to repeat with a delay. But I just want a different/random tween to play with each repeat. I hope that makes sense.
I imagine this must be easy, but I'm having a tough time getting it to work. Random tweens, somebody please help.
HELP SIMPLE, SIMPLE XML-FLASH Load Into Movie Clip
This is so stupid, my first dive into XML, with a company project - a tutorial/training piece which will require mjultiple screens with questions, etc.
Anwyay- I can get the XML loaded into the root, and it works pefectly, but I'd like to put things INTO a movie clip, so that each new screen or slide is just he movie clip advancing.
How the HELL do I target the movie clip? I even tried setting a NEW variable in teh main timeline once the XML was loaded, but the best I get is not the value from the XML, but the path (e.g. "level0title1")
Any help? I imagine it's a really stupid, easy question, but I can't find anythign ANYWHERE to answer it.
Simple Problem Neeeds Simple Answer
hey i figured one of u geniuses here could help me figure this out much faster than me fiddling around so here goes.
All I'm trying to do is have a button (which is loaded in an MC in _level6) allow the user to switch between languages on the website. To do this I figured all I would do is have it 2 scenes...one in English and the other in Chinese. When the user clicked the toggle button I would have it go to the current frame in _level0 but switch to Chinese scene.
Get it? basically i want it to switch between frames but remain on the same frame number. Here is the last piece of code I tried using, but nothing seems to work (this code is connected to the release of the toggle button)
Code:
_level0.gotoandplay("Chinese", _level0._currentframe)
Anybody got any idea what i need to do??
Thanks for your help!
Brad
Simple Question, Probable Simple Answer
still in my quest for new flash knowledge and being a "noobie" in the world of flash i would like help.
whats the easiest way to create a Button that upon rollover creates a text discription in a text box. just so i can give a description of what the button is going to lead to....
ohh and i will have multiple bittons on 1 frame and 1 designated box for all descriptions
thanx in advance
Simple Button, Needs Simple Action Script
Hi there,
I have made button in flahs mx. The over state of this button contains a short movie clip. My prblem is that I would like the button to remain on the down state on release (ie. once the user has released the mous button)instead of just going back to the over state as it does at present. Ideally I would like the button to go back to the up state on a second click.
I have pulled most of my hair out trying to put together the right bits of action script that would help me do this but to no avail, and having no time to learn action script properly I don't think I'll get there anytime soon on my own. Can anyone help me, pretty, pretty please ~?
Simple Question - Simple Answer FLASH MX
hi you good people out there. hope you could help me too. using flash mx, not beyond beginner yet.
about finishing my homepage with it. one problem is there:
i have a premade flash and changed graphics, etc. all no problem, the menu is included as well - i have changed the text of the 9 menus already, works fine - only when i use the preview - the original text appears when going over with the mouse... i changed the text visible to me - but cannot locate and change the text for the mouse over.
for instance the first two of the menu named
start
gallery
i changed it to
home
pictures
in the prview it show again
start
gallery
upon mouseover.
so i need to locate where to change also that hidden text (only active upon mouseover) to the same word.
if anyone of you could help me - i would be going into learning faster and finally getting my homepage up and running. if needed please e-mail me at
harton@harton.at
thank you so much!
....................I have uploaded a screenshot of it - clearly you can see, I changed the text yet have to located the original text below of it (?) and write the same text so that it shows up correctly upon mouseover.....
Simple, Simple... Input Field Question
OK, I have two input text fields, one is var x1 and another is var x2
onRelease I`m trying to use this code
score = Math.sqrt (x1+1) - Math.sqrt (x2)
It`s not working, check out attached fla file
Thanks folks
Simple Question *(I Hope) From A Simple Newbie...
Hi All... well, since this is my first post, I'll be cordial by saying hey and how are ya and all that later (sorry) but I'm in a bit of a pickle, or at least a cucumber that's been sweatting his luck for a while. I'm trying to create a news ticker that autoscrolls events accross the bottom of a movie, and allows users to click the text to take them to the appropriate page / site / picture or what ever (just need the link. I'm running into issues with the xml connector loading data dynamicly, I can get the file loaded, but I can't move it accross the screen. Basicaly, I'm looking for a basic news ticker tut or else the appropriate google keywords. Anyone? Anyone? Bueler? Please?
Thanks in advance.
Rick
Simple Questions...mean Simple Answers....right?
I just have a question about the various ways to loop in Flash.
now I know the for, and the while, and the do while,etc. My question is I can never get any of these loops to work unless they are on the main timeline. If I put a for loop inside a movie clip, i get nothing, or errors of the script continually running.
Just wondered if and how to use a loop script inside a movieclip without generating errors, and not having to revert to making the movieclip continually play two frames to get what I want.
curious.........
dduck1934
Simple Question.....any Simple Answers?
Hi...
A simple question...
From a button in a standalone Projector ( Flash) file how do I open an external HTML file....called ...xxx.html??
Can anyone ease my pain??..
THX
Simple Problem Simple Solution?
Can someone who is smarter than me (plenty of you out there ) solve my problem. I have a button on the timeline that has a gotoAndPlay action. I have another action that advances the timeline to the nextframe to execute some actionscript then it returns to the previous frame where the button is. The button works the first time but after going to the nextframe and then coming back it loses its functionality. What can I do to restore functionality in my button. Oh i'm using MX but publishing in 5. Can someone please save the day?
million thanks
Simple Problem, Simple Movie
i have a simple movie (using MX) with one scene and a handful of movie clips on individual layers. i am using this to jump from clip to clip in main timeline
_root.MCmyclip.gotoAndPlay (1);
the movie plays fine the first time through. but when i need to return to the first MC again it plays but then stops and does not move on to the next clip? like this:
in the final MC i have:
_root.MCfirstclip.gotoAndPlay (1);
it goes to first clip and plays but does not moveon when encountering this action for the second time:
_root.MCsecondclip.gotoAndPlay (1);
i don't understand why this is happening. it should just loop continuously...right?
Simple Question - Simple Answer?
I'm looking to do something basic to start off with Flash - and I'm hoping this is the project. Basically, I'm looking to have a movie with an image (or images) that will fade in and out over a set period of time - as seen in this website.
http://www.westonfl.org (The pictures on the left - yes I know, this was done by 2advanced....)
Any help you can give, would be great. The more detailed the better.
Talk to me like I'm 5.
Need A Simple Script For A Simple Button
Hi,
I've got this simple button, that when I roll over it has a clip that fades in to orange, but it won't fade out when I roll off the button. How do I get the "orange" to fade out when I roll off the button?
I've attached the file.
Thanks for your help.
Blastbum
Simple Question With Hopefully A Simple Answer.
Ive only just started making games in flash and im wondering how i can make it so my little birds eye view character can be stopped from running into buildings... in other words i want to make my buildings so you CANT walk on em or under em!..
haha im hella nOOb i probably sound like a loser.. but if you could waste your time on me it would be greatly apreciated!
CHEERZ 1337 Hax0rz.
Simple Problem In Need Of A Simple Solution
I know this is long...grab the FLA and test it, and it will all make perfect sense. Thanks in advance for the help.
I have a vertical menu that has one arrow (A1) that eases to the selected section after you click on it, and another arrow (A2) that eases to each button when you rollover it. So you rollover a button, A2 eases to it, click it, and the A1 eases to that. I have A1 and A2 set to ease to the y value of the button onPress. Here's where I run into the problem...The menu items slide up and down to reveal the content, so when I click on a button that has moved down to the bottom, the button itself eases up back into it's orignial position, as each arrow does the same thing. The way the functions are written to control all the motion only controls movie clips by buttons...so the top item in my menu is a button and works fine, since it never moves down. But I had to creat invisible buttons to control the motion of the other "buttons" in the menu. So pretty much to keep the right actions with each button, after pressing it, the invisible button moves to the new position of the menu item. This is what causes the problem. A2 is set to ease back to the y value of A1 on rollout, pretty much moving it back to the current menu item. So after pressing the buttons, A2 wants to ease right to the y value of A1, not to the y value it was told, which means the arrows don't line up like they're supposed to. This can be fixed by using onPress and holding it down. The clips ease right into position, but obviously this can't be used realistically. In theory all that would need to be done is to have the invisible buttons wait until the arrow was in position to move up there, that way the clip wouldn't react to the OnRollout before the OnPress.
I know this was long and confusing...I appreciate all your help very much, this has been stumping me for a while now!
Simple Or Not So Simple GetURL() Problem
ok basically i am trying to link a button so that when pressed it will bring up a javascript window, i have tested it and it the button works fine when used with regular sites
i.e.
on (release) {
getURL ("http://www.watever.com");
}
but when i try to implement Javascript into the code it just does nothing here is what i am using :-
on (release) {
getURL ("Javascriptopupwindow(1)");
}
<head>
<script language="javascript">
function popupwindow(index)
{
if(index==1)
{
site="http://www.whatever.com"
}
window.open(site,"newwindow","toolbar=0,location=0 ,directories=0,status=0,menubar=1,scrollbars=0,res izeable=1,width=100,height=200")
}
</script>
</head>
any help would be greatly appreciated cause i'm stuck
Rich
SIMPLE Simple Actionscript Question
Hey guys this is an easy one, but I don't know it.
I want to create a dynamic text box that says page 1 (or just 1). And every time I click the next button (which also controls something else), it should add 1. The limit is 4 pages so, if it exceeds 4, it should back to 1.
Thanks for the help
Simple Loadvariables Task Not So Simple... Why?
So I've got a site that I've built (see it here: http://www.artinmusic.com) and it uses a function I've written called 'changer()' to swap out different events using a folder with textfiles inside. So I plug in the name of the folder and the function pulls the info from "folderName/title.txt" , "foldername/description.txt" etc. Nevermind that I probably should have done this (much easier and less painless) with XML, that'll have to wait for the next round.
So- I want to have a variable that selects which event to display first, and I've stored that variable in a text file called featured.txt. It reads: featured=20050916
I figured I could just go :
loadVariables("events/featured.txt",this);
changer(featured);
but not so. I got a string of errors, as changer tried to load 'undefined'. ( Error opening URL "C:/etc/etc/undefined/description.txt")
Here's the code:
function changer(changerVar) {
/* DESCRIPTION BOX */
descriptionVar = "events/"+changerVar+"/description.txt"
getDescription = new LoadVars();
getDescription.load(descriptionVar)
getDescription.onLoad = function (success) {
if (success) {
/*trace("description Loaded")*/
descriptionBox.htmlText = this.description;
descriptionBox.scroll = 0;
} else {
trace("not loaded")
}
}
/* NOW TITLE BOX */
titleVar = "events/"+changerVar+"/title.txt"
getTitle = new LoadVars();
getTitle.load(titleVar)
getTitle.onLoad = function (success) {
if (success) {
/*trace("title Loaded")*/
titleBox.htmlText = this.title;
/*titleBox.scroll = 0;*/
} else {
trace("title not loaded")
}
}
/*now Date box */
dateVar = "events/"+changerVar+"/date.txt"
getDate = new LoadVars();
getDate.load(dateVar)
getDate.onLoad = function (success) {
if (success) {
//trace("date Loaded")
dateBox.htmlText = this.date;
/*titleBox.scroll = 0;*/
} else {
trace("date not loaded")
}
}
arImageVar = "events/"+changerVar+"/arImage.txt"
getarImage = new LoadVars();
getarImage.load(arImageVar)
getarImage.onLoad = function (success) {
if (success) {
arImagebase.loadMovie(this.arImage);
} else {
//trace("not loaded")
}
}
image = "events/" + changerVar + "/" + changerVar + ".jpg"
loadMovie(image, imagebase);
}
loadVariables("events/featured.txt",this);
changer(featured);
A friend of mine said he got it to work by using the code I'm using to load these variables into text files and putting the featured variable into a dynamic text file in the _root level and then calling the function like this:
featVar = "events/featured.txt"
getFeat = new LoadVars();
getFeat.load(featVar)
getFeat.onLoad = function (success) {
if (success) {
trace("featured Loaded");
_root.featured = this.featured;
trace(_root.featured);
/*titleBox.scroll = 0;*/
} else {
trace("featured not loaded")
}
}
changer(_root.featured);
And it does load the variable in the dynamic text box, but it comes back with the same error, except instead of undefined it comes back with "cannot load URL C:/etc/etc/events/_level10.featured/description.txt"
Anybody have any idea? PLEASE somebody help me out...
Simple Questions From A Simple Person
Hi all...
I am new to flash... The only actionscript I have actionally used is "stop ();" Anyway... I'm using flash cs3... It seems a fantastic tool to a newcomer like me!! Firstly, I'll show you what I've managed to do so far...
This is my first movie...
http://www.allnationschessleague.com...tpagewhite.swf
An this is the header I would like to put at the top of the website pages:
http://www.allnationschessleague.com...ANCLHeader.swf
Well, my first question (for I am sure to return to this site for more advice, is how do I link the flags at the top, to the relevant pages. Please check out the following page to see how it should work:
http://www.allnationschessleague.com
So as you can see, the flash needs to link to php pages... for example the British flag needs to link to 'setlanguage.php?lang=en' etc... so how do I set those links for the flags?
Thank you for answering my post )
Jeff
[CS3] Simple Image Loop Not So Simple
I'm relatively new to Flash - I can do some basic animations but very little actionscript.
I'm looking for a tutorial to have a set of images scroll across and repeat themselves.
this is what I'd like... example
I can do a continuous loop of a simple background image with the 'goto' function, but I can't even find a tutorial on how to repeat individual images.
Any suggestions?
Thanks,
JTN
Simple Answer For A Simple Question?
ok what this code does is it rotates my mc (mainclip)(it has 3d objects) as the mouse moves left or right on the x-axis.... and it works:
stage.addEventListener(MouseEvent.MOUSE_MOVE,myFun );
function myFun(event:MouseEvent):void
{
mainclip.rotationY= stage.mouseX;
}
...but what if i wanted to stop it rotating after it has rotated a certain amount to the left or to the right?
at the moment it rotates 360degrees in each direction, and i want it to rotate about 60degrees in each direction........
thanks.
Simple Question...simple Answer
ActionScript Code:
var prslide:slide1 = new slide1;
ok, say i din't want to have it always be slide1. how can i change it at runtime.
for instance make a loop that incremented the value of and did something like
ActionScript Code:
i++
var prslide:("slide"+i.toString()) = new ("slide"+i.toString());
this used to be easy in as2
Simple Mathematics = Apparently Not So Simple
I'm really having problems with the simplest of conversions here. All I want to do is get a number from a text box and convert it.
I have this var at the top: var Speed:String;
(I tried putting number instead of string, but it threw up errors all over me)
Then inside a function I have...
ActionScript Code:
continueButton2.addEventListener(MouseEvent.CLICK,secondStage2);
function secondStage2(Event:MouseEvent):void {
Speed = speedInput.text;
if (speedUnit.value == "Knots"){
var speedConversion1 = (Speed * 1.85);
Speed = String(speedConversion1);
}
}
I've tried a lot of different variations and are yet to have any luck, can someone tell me what I'm doing wrong?
Oh yeah, the error I keep getting is 1067: Implicit coercion of a value of type String to an unrelated type Number.
Cheers
Simple Button Listener Not So Simple
Here is code that works fine without the Listener:
myButton_Zoom = function () {
bt_zoombig_mc._visible = !bt_zoombig_mc._visible;
};
Now when I try to add a listener it will not listen. Here is the code with the Listener:
listener = new Object();
listener.myButton_Zoom = function(objEvt) {
bt_zoombig_mc._visible = !bt_zoombig_mc._visible;
};
myList.addEventListener("myButton_Zoom",listener);
Can anybody please tell me why?
Edited: 12/25/2008 at 11:26:59 PM by W_Bell
Simple? Can Anyone Tell Why This Simple Btn Doesn't Work?
Trying to write my own simple disabling button class (with some help from friend - thanks LuigiL)
So, why does my button not turn off when clicked? it runs the deinitializeBehavior function but the removeEventListeners are not actually being removed...
I don't know why but could this possibly be a graphics issue?
Thanks in advance
Attach Code
package
{
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
[Event(name="newSelection", type="flash.events.Event")];
public class SelectOButton extends MovieClip
{
public static const NEW_SELECTION:String = "newSelection";
public function SelectOButton()
{
super();
initializeBehavior();
}
//------------------------------------------------INITIALIZE
private function initializeBehavior():void
{
buttonMode = true;
addEventListener(MouseEvent.CLICK, onClick);
addEventListener(MouseEvent.MOUSE_OVER, onOver);
addEventListener(MouseEvent.MOUSE_OUT, onOut);
addEventListener(NEW_SELECTION, selectHandler);
trace("INIT RUNS");
}
private function deinitializeBehavior():void
{
removeEventListener(MouseEvent.CLICK, onClick);
removeEventListener(MouseEvent.MOUSE_OVER, onOver);
removeEventListener(MouseEvent.MOUSE_OUT, onOut);
buttonMode = false;
trace("DE-INIT RUNS");
}
//------------------------------------------------PRIVATE
private function onOver(e:MouseEvent):void
{
gotoAndPlay("over");
trace("OVER RUNS");
}
private function onClick(event:MouseEvent):void
{
deinitializeBehavior();
gotoAndPlay("disable");
dispatchEvent(new Event(NEW_SELECTION, true));
trace("onCLICK RUNS");
}
private function onOut(e:MouseEvent):void
{
gotoAndPlay("out");
trace("OUT RUNS");
}
private function selectHandler(event:Event):void
{
if (this != null)
{
unselectCategory();
trace("Handler RUNS");
}
}
private function unselectCategory():void
{
play();
initializeBehavior();
trace("UnSelect RUNS");
}
}
}
Simple Problem, Simple Answer?
I've just successfully completed replicating your tutorial for a simple drop-down menu ( http://www.kirupa.com/developer/mx/dropdownmenu.htm ) which works perfectly... almost.
In my Flash movie, I've created three scenes (...Scene 1, Scene 2, and Scene 3...). In my drop-down menu movie, there are three buttons that corrispond to the three scenes. I've dragged my 'drop-menu' movie onto each scene.
Here's the problem. Inside the movie that creates the drop-down menu, I have attached the following action script to the 'Scene 1' button:
on (release) {
gotoAndPlay("Scene 1", 1);
}
I've attached a "Scene 2" actionscript to the 'Scene 2' button, and a "Scene 3" actionscript to the 'Scene 3' button.
Yet, when I play my primary Flash movie, the drop-down menu buttons don't take me to the corrisponding scenes. What am I doing wrong?
Simple Question Simple Answer
I want my button to go to a particular frame on release, can someone please show me the AS for this? I am using Flash MX for reference.
SIMPLE MATH? Isn't So Simple With Flash?
I was thinking, how do you do a simple math equasion... or not so simple...
say I had 4 imput texts, and I wanted to have them add up and give me the total cost in another imput text... how would I do that, I'm thinking though, If say ordering six muffins cost $12 dollars, and ordering 12 muffins cost $20 dollars, how would you do that, if 6 then $12 if 12 then $20 THEN if 18 then $32? like see my problem, i'd have to work out every variable right?
oh well even if nobody knows what im talking about, could someone direct me to math with flash?
Simple And Simple Array Question
Hi all
Do Flash understand array list items that uses paths?
Example:
Code:
var submenus:Array = new Array( "sub_menu.portfolio" , "sub_menu.contact" , "sub_menu2.about" );
for(var i:Number = 0; i<submenus.length; i++) {
this[submenus[i]].onRollOver = function(){
this.colorTo("0xAAEEFF",0, 0.0);
trace("dfklgödfk")
}
}
Simple Question? Simple Answer
Hi i am creating a navigation menu and has a rectangular border around it. The menu has buttons e.g home, about etc. However the border is not a symbol, if i convert the border to a movie clip say, how do i ensure that the border still becomes underneath the buttons?
Every time i convert it to a symbol, the border is always on top of the buttons.
Thanks
Simple Simple Radio Button [help]
Hi all,
I have an annoying problem that requires a simple solution. I need a radio button to do the following function when clicked;
on(click) {
trace("hello");
NewCharity = "Focus";
}
The trace function works fine but the word "Focus" is not printed into the dynamic text box named "NewCharity". I cannot figure out why and can't find a simple solution to it.
A good example of what I need can be seen working in WebWasp at : "http://www.webwasp.co.uk/tutorials/c04-radio-active/index.php"
Any help would me of much assistance..
Simple Sound Question... Not Simple For Me
Hi all, so I'm busting in here with a simple question about a sound overlapping problem - I'm no coder and certainly very unfamiliar with AS3, so any help is greatly appreciated.
I have several buttons that each link to a different external mp3 file. Problem: If audio button B is pressed after you have pressed button A (and vice versa), the audio overlaps. I have a stopallsounds button, but this does not quite solve the issue. I need each clip to play individually, no overlapping. Some swfs will have two audios clips, some as many as five or six, if that makes any difference.
This is my code which is probably extremely clunky (but error free):
Code:
//sound one
var mySoundReq:URLRequest = new URLRequest("audio/md_unexpected.mp3");
var mySound:Sound = new Sound();
var mySoundChannel:SoundChannel = new SoundChannel();
mySound.load(mySoundReq);
function playSound(event:MouseEvent):void {
mySoundChannel = mySound.play();
}
audio1.addEventListener(MouseEvent.CLICK, playSound);
//sound two
var mySoundReq2:URLRequest = new URLRequest("audio/md_change.mp3");
var mySound2:Sound = new Sound();
mySound2.load(mySoundReq2);
function playSound2(event:MouseEvent):void {
mySoundChannel = mySound2.play();
}
audio2.addEventListener(MouseEvent.CLICK, playSound2);
//stop all sounds
function stopSounds(event:MouseEvent):void {
SoundMixer.stopAll();
}
stopsound.addEventListener(MouseEvent.CLICK, stopSounds);
Simple Problem, Simple Answer?
I've just successfully completed replicating your tutorial for a simple drop-down menu ( http://www.kirupa.com/developer/mx/dropdownmenu.htm ) which works perfectly... almost.
In my Flash movie, I've created three scenes (...Scene 1, Scene 2, and Scene 3...). In my drop-down menu movie, there are three buttons that corrispond to the three scenes. I've dragged my 'drop-menu' movie onto each scene.
Here's the problem. Inside the movie that creates the drop-down menu, I have attached the following action script to the 'Scene 1' button:
on (release) {
gotoAndPlay("Scene 1", 1);
}
I've attached a "Scene 2" actionscript to the 'Scene 2' button, and a "Scene 3" actionscript to the 'Scene 3' button.
Yet, when I play my primary Flash movie, the drop-down menu buttons don't take me to the corrisponding scenes. What am I doing wrong?
Simple Question Simple Answer
I want my button to go to a particular frame on release, can someone please show me the AS for this? I am using Flash MX for reference.
SIMPLE Problem. | SIMPLE Answer?
We're trying to have a Full screen CD presentation in flash that plays .avi's in windows media player, & opens up url's in a web-browser. The problem is the URLs AND the .AVIs show up underneath the flash, is there a way to have them open on top of the presentation?
Thank you.
Simple Problem...simple Solution?
ok i could really use a hand here. im trying to make a preloader out of the loader and progress components in 2004 pro. so i think i can load an swf into my html file that would contain a progress bar, a loader window, and a movie clip that will ply while the main movie is being loaded. i think i can get that much to work(although im not sure this is the best way to do it
), but how do i go about removing the movie clip once the the main movie is loaded. (how can i coordinate the loading of a movie to a removemovieclip command or something similar)
you guys are a great help
Im also trying to get a _mc to to act as a progress bar, but the first part is the important part for now
thanks.
Simple Qestion For Simple Minded :)
Ok here it is this always drives me nuts
if I have an fla file where there is only 1 frame, I like keeping the main timeline short so I make use of MC when I can, hence 1 frame. When the swf plays it runs through the MC one by one, how I can I tell AS to gotoAndPlay(1) when the maintime line is already at 1? Right now if I have a button in a MC and I tell it to _root.gotoAndPlay(1); nothing happens?
Simple, Simple Button Code ... *&^%£&
I have some buttons on my movie that are instances of SimpleButton. I have labelled one of them 'photo' - I want my buttons to register EventHandlers so that I can use them to load movies. I'd prefer to use 'frame code' if possible ...
For some reason (which I can't imagine), it seems that SimpleButton doesn't have an onClick/onRelease or equivalent event handler.
Do I have to write my own class just to get a button which has a proper EventHandler ? I know that can't be true. Who would provide a button class that doesn't have a mouse.click event handler in the standard libs ?
What do you do for this ? Help !
I wrote this code which seems to add an eventhandler and doesn't throw up any errors. Unfortunately it won't link to google either though ...
Code:
function photo_link(event) {
getURL("http://www.google.com","_blank");
}
photo.addEventListener(MouseEvent.CLICK, photo_link);
Simple, Simple, Simple Scroller
Hi all,
I am trying make a simple sliderbar to scroll the content of a my dynamic textfield.
what is the simplest way to do this?
i don't want any clever buttons, any inertia or even html formatting - just a simple little scrollbar to the right of my field
tnx
SImple Simple Question
IN MX version
What do you use instead of TellTarget command that you use in 5 (I know I can use TellTarget in MX, but isn't there anew way to do it)
Say... I have a mc on stage and I want to make this clip jump to a labelled frame from another MC, that's on stage what do I use instead of TellTarget or may be I do use telltarget...?
Thanks in advance!
Simple.. Simple Query
sorry a really easy and boring question, but, does speeding up the frame rate of a movie affect its download time?????
|