What Is The Actonscript For Character Selection
i really need it i have the characters but i need the selection screen thanks
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 06-21-2004, 05:29 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Character Selection
Jus finished making a Character Selection scene for an educational site!
Now i want the chosen Character to appear in other scenes (could jus make a scene for all 7 Character individually but thats the hard time consuming way) so how do i call the chosen Character to the new scene and is there some type of place marker so i can still animate symple movements eventhough the Character aint on screen?
Hope someone knows what on earth im on about! LOL
Character Selection Stuff....
I have a movie clip that has an image of a different character in each frame. I want this movie clip to jump to a certain frame when a button with that character's name is moused over. How would I do that. I have my buttons outside of this movie clip, they are on their own. Can I make them change to a certain frame in this clip when moused over?
Who Really Knows ACTONSCRIPT? Help?
I'm trying to open my site in "full screen" I have a "front door" with just one button on it. I used the following script to open the site in FS.
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.jmcweddings.com/test/index2.html','James Christianson ','width=1800,height=1200,left=0,top=0,toolbar=No, location=No,scrollbars=No,status=No,resizable=No,f ullscreen=No'); NewWindow.focus(); void(0);");
}
This works in all the browsers except Internet Explorer (v. 5.1 for mac) basically nothing happens when you click on the button. The roll over action works fine but not the hit action..>Can anyone help me out??
Here's a link www.jmcweddings.com/test
thanks
Actonscript SOS Help
Hi,
I have a movie that shows the people in our company, the background is on B&W and the sliding mask is set to show the color image.
I have the mask were it slides to the location that I want, what I cant figure out is how to tell the mask_mc to stay in that location when clicked instead of going back to it's original position.
In the main time line I have the B&W_mc background, the color_mc, the mask_mc that mask's the color_mc and a series of mc's with buttons inside (one for each person, that tell the mask where to lock and go on mouse over).
CODE IN FRAME 1:
color_mc.setMask("mask_mc");
newLocation = patricia_mc;
location = eval(newLocation);
newXLoc = _root.location._x;
mOutX = _root.location._x ;
stop();
CODE FOR SLIDER:
onClipEvent (load) {
// init variables
sliderSpeed = 5;
}
onClipEvent (enterFrame) {
this._x += (_root.newXLoc-this._x)/sliderSpeed;
}
CODE IN BUTTON INSIDE MC'S:
on (release) {
_root.newLocation = jamime_mc;
trace(_root.location._name);
}
on (rollOver) {
_root.newXLoc = this._x;
}
on (rollOut) {
_root.newXLoc = _root.mOutX;
}
I guess I need a way to replace the var "newLocation" from the buttons and have the "mask_mc" listen to it!
The url where you can see an example of this is:
http://webpro.kellymarcom.com/kelly...irm_people.html
Thanks!
Need Major Help With Actonscript...
Ok... so I've been trying to get my movie online for Oh say... two months now But I'm having a lot of trouble with trying to load my movie. I'm using this actionscript... loadMovieNum("my_video2.swf", 1);
stop(); to load each one of my seperate movie clips together, which works fine on koolmoves.. but when I upload the movie to a website, the parts that are supposed to load never play. Is there somethign wrong with the actionscript, or do I need to update koolmoves... or does anyone know what could be wrong? I need help ASAP!!!!
Creating New Instances With ActonScript
Helu.
Ppl , i'm stuck here .
Could anyone give me an example of code to bring to the scene new instance of existing symbol.
Let's say , i have MovieClip symbol MC01 (it's just a shape), and i want to get it into the scene. How do i do that using ActionScript only ?
How To Update ActionScript 2.0 To ActonScript 3.0
Hi Currently i am working in Flash 8 it has ActionsScript 2.0
I want to update to ActionScript 3.0 . I couldnt find it any where in Flash 8
Please Tell me that to get ActionScript 3.0 What i have to do.?????????
Inderdeep
Actonscript Scale From Center
Hi I have a very simple page with twelve invisible buttons, I have applied actionscript to grow/shrink the movieclips below on rollover / rollout.. only problem is they are growing from the top left edge.. not the center of the MC.. how can I make the MC grow / shrink from the center??
Thanks
Martin
Can I Use Flax Classes For Actonscript Project?
Hi,
Could u Please tell me? Is there any way to use Flax Classes for an Action script Project.
For e.g. Can I use ToolTipManager class for an Action script Project for giving ToolTip on a button.
Sequential Selection Vs Random Button Selection
I am missing something here. I have several buttons associated with several movies. When the buttons are selected in sequential order they play the appropriate movies
When the buttons are selected out of order (in random fashion) the selected movie does not play.
Any solution is appreciated
Code snippet follows:
//When button1 is selected bluemovie plays and then when button2 is selected pinkmovie plays
// However if button2 is selected before button1 pinkmovie does not play.
button1.addEventListener(MouseEvent.MOUSE_DOWN,sta rtClip1);
function startClip1(event:MouseEvent):void{
bluemovie.play();
button2.addEventListener(MouseEvent.MOUSE_DOWN,sta rtClip2);
function startClip2(event:MouseEvent):void{
pinkmovie.play();
}
}
Selection.setFocus Selection.getFocus Inputting From Mc
i am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)
I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).
As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus ... I keep focus but can not add text via screen _mc
many thanks Neil
Selection.setSelection || Selection.setFocus Help?
I have text fields I want to run with a tab key in a certian order, and miss one that it seems to go to automatically.
Does anyone know how I can do this with selection.setFocus and Selection.setSelection?
heres the order and what I want it to do,
0 username (if the username has it in there already then go to password instead)
1 password (if the password is there already then go to topic instead)
2 topic (selection.setFocus to topic if the the other two are filled already, then the next selection I want it to go to message after topic)
3 message
If anyone can help me out with this I would appreciate it.
Thanks in advance
Deadsam
The & Character In Flash...how To Use URLs That Contain The & Character...
I am loading in an array or urls from my database via php into my flash movie.
the output of my script looks like this:
quote:
--------------------------------------------------------------------------------
&id=1,&imagelist=1.jpg,&urls=http://www.homemade.ch/shop/100/conliste.asp?langext=&katno=8|&titles=Silence|&com ments=Silence, a painting by Bea Fehr|
--------------------------------------------------------------------------------
problem is that the url contains the '&' character, which Flash uses to seperate the variables....
ex:
http://www.homemade.ch/shop/100/con...angext=&katno=8
but problem is that it is being read into flash as this:
http://www.homemade.ch/shop/100/con_liste.asp?langext=
becuase Flash cuts it off when he see the '&' sign.
How can I workaround this problem, has to be a common issue I would guess since lots of URLs have this format....?
Do I need to write some parsing code?
Keeping Character On Stage Plus Keeping Moving Background With Character On Stage
Im in the process of creating a superman game.. and i right now have him in walking mode .. i created him which is superman_mc . which has his waking animations etc.. inside and i have created a background mc which is level1_mc which basicly moves along with superman as he walks. .the problem i am getting is keeping the back ground from moving off the stage and superman from going off the stage i can keep superman on the stage and in one place on the stage with the code i have now but the background still moves off.. here is the code i have :
stop();
//Superman walk & flying movements
fly = "off";
_root.onEnterframe = function() {
if (Key.isDown(70)) {
_root.superman_mc.gotoAndPlay(4);
_root.superman_mc._y -= 17;
fly = "on";
}
if (_root.superman_mc, hitTest(_root.right_mc)) {
_root.superman_mc._x = 700;
}
//moves superman right
if (Key.isDown(39) & fly == "off") {
_root.superman_mc.gotoAndPlay(3);
_root.superman_mc._x += 17;
_root.level1_mc._x -= 17;
direction = "center";
//makes superman face foward
} else if (direction == "center") {
_root.superman_mc.gotoAndStop(1);
}
//moves superman left
if (Key.isDown(37) & fly == "off") {
_root.superman_mc.gotoAndPlay(2);
_root.superman_mc._x -= 17;
_root.level1_mc._x += 17;
direction = "left";
} else if (direction == "left") {
_root.superman_mc.gotoAndStop(1);
}
};
whats happening is that the background keeps going but since i have it setup to move along with superman .. if anyone can help thank you alot..
-rob-
Keeping Character On Stage Plus Keeping Moving Background With Character On Stage
Im in the process of creating a superman game.. and i right now have him in walking mode .. i created him which is superman_mc . which has his waking animations etc.. inside and i have created a background mc which is level1_mc which basicly moves along with superman as he walks. .the problem i am getting is keeping the back ground from moving off the stage and superman from going off the stage i can keep superman on the stage and in one place on the stage with the code i have now but the background still moves off.. here is the code i have :
stop();
//Superman walk & flying movements
fly = "off";
_root.onEnterframe = function() {
if (Key.isDown(70)) {
_root.superman_mc.gotoAndPlay(4);
_root.superman_mc._y -= 17;
fly = "on";
}
if (_root.superman_mc, hitTest(_root.right_mc)) {
_root.superman_mc._x = 700;
}
//moves superman right
if (Key.isDown(39) & fly == "off") {
_root.superman_mc.gotoAndPlay(3);
_root.superman_mc._x += 17;
_root.level1_mc._x -= 17;
direction = "center";
//makes superman face foward
} else if (direction == "center") {
_root.superman_mc.gotoAndStop(1);
}
//moves superman left
if (Key.isDown(37) & fly == "off") {
_root.superman_mc.gotoAndPlay(2);
_root.superman_mc._x -= 17;
_root.level1_mc._x += 17;
direction = "left";
} else if (direction == "left") {
_root.superman_mc.gotoAndStop(1);
}
};
whats happening is that the background keeps going but since i have it setup to move along with superman .. if anyone can help thank you alot..
-rob-
Selection
I have a movie clip that has an input text field named 'thename'. I have a few of this mc in one scene with different instance names. How come when I click on one of the mc every instance of that mc has a cursor in the textfield?
Selection
I made a Dinamix text box, which contains text in it. Its very diffecult to select all the text within at once (for cut and paste). I want to create a button, which allows user to "copy to clipboard" ( select all the text on one click). How do i do that? Please help.
Thanks
Help With (set Selection)
I have a movie that checks a text field for a valid email.
Then if it is valid it says "thanks" in that same text field. If it is not vlaid, it says "please enter valid email". I need the "focus" or "selection", (whatever you want to call it), to highlight the ENTIRE "please enter valid email" string.
Thanks.
Selection _x & _y
is there a way to find the _x & _y of a Selection - i refuse to believe that these properties aren't tucked away somewhere in the player.
thanks
Selection Box
I got one problem I am trying to make a selection box, like in flash itself. When you click anywhere on the screen it should show up, and scales to the distance the the mouse goes. the problem that comes up, is that it should not scale continuesly, just If the pearson has clicked and moves the mouse to a new position, on release it should scale back to original starting size.
-=Thanx in advance=-
Selection
Is it possible to make a selection with mouse.
You know, when the mouse is down you can make a rectangle when you move the mouse. And all in the rectangle will be selected.
How do I make that?
Hope you understand
Jpg Selection
I created a file in photoshop and saved it as a JPEG. I Imported that file into the stage in Flash (MX PRO 2004). Now, on the image, there is a square that I want to convert to a symbol. The problem I am having is I can't figure out how to make a selection inside of the image. Any help would be appreciated. Thank you.
MC's...selection
I want to be able for the user to click an MC from a row (pictures of different balls). Then I want this one picked to be used in the movie. The man is going to juggle what ever ball the user selects. How do I get him to juggle the specific ball?
Trying To Use .Selection
this is an old problem still yet unsolved:
I have a main movie "A" with a clip loaded into a movieclip called "B_mc"
B is trying to use the Selection method on a text field "my_text" located on "A"
...I select some text in "my_text" (on the root movie) then click on "format_mc" which is a mc on "B" that calls a function on frame 1 of "B"
//Here is part of the code that is in frame 1 of "B" :
this._lockroot = true; //
var char1:Number = Selection.getBeginIndex();//first character index of selected text
var charLast:Number = Selection.getEndIndex();//first character index of selected text
var selectionLength:Number = charLast-char1;
//char1 and charLast are always -1, that is they are not part of the selection
I've been messing with this for a month now.. any ideas?
thanks
Set Selection?
Hi,
Bit of a simple one really. I want to set the selection or focus so that the cursor is placed inside of the first field of a form that i am making in Flash MX when the user enters the form page.
The field variable name is "comments"
Can anyone tell me how to make this work as I have tried many ways without success,
many thanks
MArll
IE Selection Fix...
Hey all,
I know there is a tutorial somewhere regarding how to fix the IE security issue with Flash movies... (where you have to click the flash movie once, then you can select elements in it). I'm trying to fix some old sites I've made with the error now. thanks a bunch in advance!
Set Selection?
Hi,
Bit of a simple one really. I want to set the selection or focus so that the cursor is placed inside of the first field of a form that i am making in Flash MX when the user enters the form page.
The field variable name is "comments"
Can anyone tell me how to make this work as I have tried many ways without success,
many thanks
MArll
Selection _x & _y
is there a way to find the _x & _y of a Selection - i refuse to believe that these properties aren't tucked away somewhere in the player.
thanks
Selection Of Text....
k, someone has got to know how to do this, it's driving me mad. I'm trying to select some text from a HTML text box, and put it into a variable, so I can make it bold, italic, etc.... help!"
Selection Object
If Selection.getFocus() returns the currently selected text field, how can I grab the 'selected' text in the text field.
IE:
Say the user is asked to highlight a word/phase in a selectable text box. How does one then check:
IF all of the characters were selected?
ELSE a prompt: "please select all the text in the field".
Thanks
Selection Object
Is this possible in Flash 5? I can't get it to work!
on (rollOver) {
tText = eval(Selection.getFocus());
tField = Selection.getFocus();
tStart = Selection.getBeginIndex();
tEnd = Selection.getEndIndex();
trace ("Message" & tField );
}
//check the selected text.
on (release) {
if (tField == "1") {
selectedText = tText.substring(tStart, tEnd);
// Replace "whatever" with any text to compare with.
if (selectedText == "whatever") {
trace ("Success");
} else {
trace ("Fail");
}
}
}
Selection... How Work It?
I need, on press Tab cursor skip from one textbox to another... I use Selection.setFocus... but it does work...
New Problem With Selection
I write code in ActionScript that control a Selection(that user will can't select hiden textboxes and buttons)....
In Flash Generator it works corectly, but when i put my .swf in the Html... it don't work enimor...
Where is the problem?
Scene Selection
This is way dumb but I cant find it. Where do you go to change scene. For ex. I add scene 2 how do I get back to scene 1. Thanks David
Selection Command
hello
Can anyone explain to me how 'Selection.setFocus()' works. Whatever I do this does not result in focussing on a text field.
Thanks
Listbox Selection
hi,
I am using MX to create a front end for a database. I populate a listbox with title of some books. Then, when the user select a particular title from this listbox, I would like to display the details of the book at other fields. Can I do this without using a button?
Thanks in advance.
Joe
Selection.setFocus ----- BUG?
Hello,
Can anyone tell me if I am doing something wrong?
In frame 1 odf my movie I do a Selection.setFocus on an Input text field. This works fine, the user can start typeing into the field as expected.
BUT......
Using Selection.setFocus kills the BACKSPACE key on the key board!!
EXAMPLE:
Selection.setFocus(myTextfield);
This set the focus to the field as soon as the frame is loaded(the cursor is in there flashing),and the user can start typing away, but the BACKSPACE key is DEAD!!!
can anyone suggest a work-around to allow focus to be set and the keyboard to behave?
thanks,
Selection Object In MX
HI all,
am trying to look at if a certain text field has selection and i have the following code, but it does not seem to work and i cant see why
This is part of a looping movieClip that should jump to and stop, ((theres a new action "JumpToAndStop") - sorry!!!), at frame 4
================================
if (Selection.getFocus() == "_level0.commentField.commentInput") {
_root.commentField.commentInput = "";
gotoAndStop (4);
}
================================
anyone see where i am going wrong?
This works within my Flash 5 player, but does not seem to have any effect when published in Flash MX for the 6 player
Also another quick note
Does anyone notice that the same Flash movie when published by MX and viewed in the 6 player, runs at a higher CPU rate than when published from Flash 5 and viewed in the 5 or 6 player
any help would be greatfully received
Thanks in advance
Gilesb
Selection Object ?
I'm trying to get the hang of the Selection object in MX, but getting it wrong. To get me started does any one have an example of how to use the 'Selection.setSelection' method with a series of text fields - I don't know how you set the text field index so the Selection object can identify them.
Thanks
Selection Object... Help
I'm trying to get the hang of the Selection object in MX, but getting it wrong. To get me started does any one have an example of how to use the 'Selection.setSelection' method with a series of text fields - I don't know how you set the text field index so the Selection object can identify them. I can't much on any boards about this object or tutorials for it. Any help would be great.
Thanks
Dragable Selection Box
Hi
I am a programmer who is new to Flash, but working with a graphic designer who has basic Flash skills.
We are trying to make a dragable selection area in flash5, mouse down defines the start point, as the user drags the mouse a selection box extends from the starting point to the current mouse position. on mouse up I need to have the x,y of the start point and the x,y of the end point.
Can anyone please help us?
Nick
Dragable Selection Box
Hi
My previous posting (please read the posting below first) did not bring any response, so let me narrow it down.
I can get the x,y positions of the mouse when the drag starts(start position) and also get the mouse positions as the mouse is dragged (current position). When the mouse is released I can get the mouse positions again (end position).
I will use start - end positions to pass on to further programming, but as the mouse is being dragged I want a box to be drawn (start to current positions)
So what I need to find out is, can I draw a box on screen dynamically, starting at the start position and ending at the current position. This will be constantly updated by the mouse move event.
Any help would be appreciated
Nick
(previous posting)
Hi
I am a programmer who is new to Flash, but working with a graphic designer who has basic Flash skills.
We are trying to make a dragable selection area in flash5, mouse down defines the start point, as the user drags the mouse a selection box extends from the starting point to the current mouse position. on mouse up I need to have the x,y of the start point and the x,y of the end point.
Can anyone please help us?
Nick
Dragable Selection Box
Hi
My previous posting (please read the posting below first) did not bring any response, so let me narrow it down.
I can get the x,y positions of the mouse when the drag starts(start position) and also get the mouse positions as the mouse is dragged (current position). When the mouse is released I can get the mouse positions again (end position).
I will use start - end positions to pass on to further programming, but as the mouse is being dragged I want a box to be drawn (start to current positions)
So what I need to find out is, can I draw a box on screen dynamically, starting at the start position and ending at the current position. This will be constantly updated by the mouse move event.
Any help would be appreciated
Nick
(previous posting)
Hi
I am a programmer who is new to Flash, but working with a graphic designer who has basic Flash skills.
We are trying to make a dragable selection area in flash5, mouse down defines the start point, as the user drags the mouse a selection box extends from the starting point to the current mouse position. on mouse up I need to have the x,y of the start point and the x,y of the end point.
Can anyone please help us?
Nick
The Selection Object ?
For the life of me I can not get this thing to work or find a working example of it in use.
Does any one have or know were I can find a working example using this this Selection Object.
Every time I try to use Selection.getBeginIndex() or Selection.getEndIndex() I aways get back a -1 or a 0.
Using Selection.getFocus();
onClipEvent (mouseUp) {
textSelect = Selection.getFocus();
trace(textSelect);
}
I am using tha code above to find out what text area is selected is gives me a trace of for example:
_level0.input
When I use my var textSelect to target one of the text areas it does not work - anyone know why?
Cheers
Rich
Key Frame Selection
Alright, Im Trying To Make A stick dood on a skateboard grind a pole and i did but like when i put his skateboard on it and i try to put a 2nd Frame on the pole the key frame selector makes it select the pole two. Also I want to know how to Make The Board diagonal.
Thx,
Flashdude2k4
|