all groups > flash actionscript > march 2004 > threads for thursday march 4
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Keypress captures
Posted by Parag Shah at 3/4/2004 11:31:36 PM
Hi All,
I have 2 mcs. I want the visibility of both of them to toggle upon pressing
F1 and Spacebar respectively. How do I do that?
Regards,
Parag Shah
... more >>
shared objects in slides - a screen too far?
Posted by Conor at 3/4/2004 10:26:46 PM
Hello,
Finally got shared objects working from this example
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictiona
ry/actionscript_dictionary651.html
(thanks for the pointer Urami (I had posted in general flash forum (sorry,
only saw this forum for a.s. today)))
Exa... more >>
How do I do this?
Posted by bunny5619 at 3/4/2004 10:21:48 PM
I'm trying to make a simple game where you move around trying to find stuff
that people have lost, but I cant figure out how to make it so that when you
press an arrow key (let's say the right one) he moves right. Can anyone help me?
... more >>
Help with GotoAndPlay.
Posted by cazwazere at 3/4/2004 9:54:54 PM
Can anyone help me? I want my button to go to scene 31, frame 1 when you click
it, but at the moment, it just goes to the next frame. Here is my current code:
[hr]
on (release) {
gotoAndPlay("31", "1");
}
[hr]
Why isn't it working? Thanks.
... more >>
Referencing Objects using 'This'
Posted by 0Visual at 3/4/2004 9:42:32 PM
Here is my problem i have a class called test and in that class I have a
function called loadxml. So it looks something like:
class test
{
var username:String = 'vince';
function loadxml()
{ var moxml:XML = new XML();
moxml.onLoad = handlereturn;
moxml.load('uic... more >>
Determining if a var is a number
Posted by mitsubishi at 3/4/2004 8:51:55 PM
This probably is a simple problem but I have been struggling with it for some
time. I am trying to determine if a user supplied variable is a number. The
user inputs a value (their age) in an input text box. This means the value is
of type 'String". Using various functions, such as typeof, pa... more >>
Contolling a button instance
Posted by J-DAX at 3/4/2004 8:34:01 PM
I thought that one of the new things in scripting w MX was the ability to talk
to button instances just as you do to Movie clip ones. For some reason I am
having a hard time getting this to work.
I am trying to move the play head in a button instance to oh lets say the 6th
frame
(obvious... more >>
Substitute for mod function
Posted by mrmille at 3/4/2004 8:27:12 PM
Hi all!
I need to find a substitute for the mod function which can be found in
vbscript and so on.
Example:
for i = 0 to 100
if (i mod 2) <> 0 then
do some magix stuff
end if
next
------
This example shows how to do something every second time the loop goes.
Is the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
I want to load a swf from another swf?
Posted by foulem at 3/4/2004 8:22:27 PM
I want to build a preloader in a movie that loads another hidden movie. After the hidden movie is loaded it become visible and the preloader invisible. Do you know how to do that?
than you... more >>
link to open external file - another beginner one
Posted by dimitri at 3/4/2004 7:10:40 PM
another beginner question.
how can i link a button (or anything) to open a pdf file in acrobat (or
any other file in it's own thing.)
i have done it now with the getURL comand, what works but opens first
the browser. and it is not right, is it?
cheers dimitri
... more >>
action script window - normal / expert mode
Posted by dimitri at 3/4/2004 7:07:45 PM
hi there, with my action script window, i have the problem that i can't
switch between normal and expert mode. it is always in expert mode.
i am a visual designer and with out this feature it is getting a bit
hard. i work on a apple, g5, osX and have flash MX 2004 installed.
the short cuts... more >>
removeMovieClip changes levels and doesn't remove
Posted by khamstra at 3/4/2004 7:06:37 PM
I'm trying to remove a movie I attached from my library and it will not work,
what's worse yet is when I try to remove it it changes it's levels and leaves
it there.
the following code"
trace("d = "+MovieHolder.VideoDisplay.getDepth());
MovieHolder.VideoDisplay.removeMovieClip();
trace... more >>
tricky disable button problem
Posted by sid vishus at 3/4/2004 6:56:15 PM
Ok, I need to know a little actionscript and hope you will be able to help - I
have always found replies here.
I have my main movie with home, contact and links buttons (in fact they are
movie clips with buttons in them - I intend to animate these buttons
eventually) - my home button movie... more >>
Anti Alias HTML text
Posted by Mark at 3/4/2004 6:27:39 PM
I'm importing some HTML text from an XML file.
The import works fine.
When I embed the fonts to make it look better, text within HTML isn't
displayed e.g.
<myText><![CDATA[This is text with a <b>bold bit</b> in the
middle. ]]></myText>
gets display as
This is text with a in the mid... more >>
Need some help with buttons in MC's
Posted by randycrews at 3/4/2004 6:16:11 PM
--------------------------------------------------------------------------------
Hello all,
I placed a button deep within some MCs here is the path
_root.folder_nav.tbar.b1mc
So, on the main time line I have a MC called folder_nav within folder_nav is a
MC called tbar. Wihtin the t... more >>
checking for null
Posted by jones74 at 3/4/2004 5:48:07 PM
Hello
Im a action scripting newbie please help.
I am using the following script to pass a color to a layer from the qstring,
this works ok as long as I pass a color, i am trying to check if it is null
then populate it with the default color but it does not work
======================... more >>
dynamically obtaining movie width/height
Posted by asiabackpacker at 3/4/2004 5:22:53 PM
is there a way to dynamically obtain the width/height of the movie (.swf) I am working in?... more >>
RollOut too quick?
Posted by liangshun at 3/4/2004 5:05:53 PM
Hello everyone, I have a question about RollOut .... I created some expand
menu, which's rollOver and rollOut action is controlled by
ActionScript.......
But it seems like sometimes if the rollOut action is too quick , the
rollOut function is not activated at all, which means the m... more >>
preloader problem
Posted by dewgg at 3/4/2004 4:59:25 PM
I have a flash movie (flash mx) that will not preload.
I believe the issue stems from the fact that I have a bunch of movies linked
from the library as export for actionscript and export in firstframe.
I've placed my preloader on the first scene and my entire movie on a different
scene... more >>
the "I" scope in (for....) statement
Posted by liangshun at 3/4/2004 4:55:24 PM
Hello everyone, I have some problem with the (for ... ) statement.. Basically,
I have 4 invisible movie clip in the stage, they are named b1, b2, b3, b4,
and another 4 movie clip in the stage, they are named m1, m2, m3, m4.
What I want to achieve is when I rollover those invisible movie c... more >>
Images display poorly using LoadMovNum -Quite bad
Posted by rmletc at 3/4/2004 3:42:37 PM
Hi, my images are displaying poorly in MX when I pull them from the server
using LoadMovie. They look great when I view them via a browser. Is there
something I am doing wrong?
Thanks.....
on (release) {
loadMovieNum("images/food/food1.jpg",1);
}
... more >>
Javascript back button
Posted by therm_91 at 3/4/2004 3:23:28 PM
A client wanted a simple flash button adding to an html page to use as a 'back'
button.
I've used the script:
//Goto Webpage Behavior
getURL("javascript:history.back()","_self");
//End Behavior
for this .. but the button only works after it's been pressed twice?
Can anybody hel... more >>
for kglad with thanks
Posted by geut at 3/4/2004 3:12:27 PM
Thank very much, i got it.
The thing is i needed a [u]continuous[/u] scroll on rollOver.
The scroll has to stop on rollOut... more >>
request for a .fla with scroll
Posted by geut at 3/4/2004 2:36:18 PM
Can someone send me a .fla file containing code for scrolling (texts or movie clips)?
Thanks in advance.... more >>
targeting movieClip in mx dataGrid
Posted by mhumes at 3/4/2004 2:29:59 PM
Hellooo all,
I am in a pinch. I have a Flash MX dataGrid that uses
grid.getColumnAt(2).setCellSymbol("progressbar");
this is putting a movieClip inside the dataGrid.
My question is how do I dynamically target this "progressbar" movieClip in
the dataGrid?
What's the syntax to target eachClip... more >>
getUTCMilliseconds() -vs.- setInterval
Posted by MyFlashMXIN at 3/4/2004 2:01:45 PM
Hi I'm currently using setInterval in a script to show my SubMenu system for 5
sec, and then remove it...
This setInterval seems to work on some systems but not all annd has a horrable
bug in it.
Below is the current code (located in the main time line):
Is it possable to use the ge... more >>
Input text deletion question
Posted by lagunahair at 3/4/2004 2:00:09 PM
Here is what I am looking for:
I have an input text box (txtbox1)
and that is where the user inputs the answer to the question
once the game is over, we have an option to go back and try the game again
but what happens is when you go back, the text you have previously typed is
still the... more >>
setInterval: been there, done that
Posted by geut at 3/4/2004 1:42:36 PM
The problem is i want to scroll a text using two objects: buttonUp and
butonDown.
I have done as i have been told:
on the buttonUp (which is a movie clip) actions i have written:
[b]on (rollOver)[/b]
[b]{[/b]
[b] qwer=setInterval(scrollF,1000);[/b]
[b]}[/b]
and in its... more >>
How to compare 2 arrays
Posted by MacroSteve at 3/4/2004 1:39:30 PM
Hi,
I am making a quiz and one of the questions has a combination answer. There
are 5 options and options C and E (and nothing else) must be selected to be
correct. In the first frame of the movie I have set up 2 arrays:
questionOutput = new Array (0, 0, 0, 0, 0); //sets blank combinati... more >>
Animating text from a external text file
Posted by decenttp at 3/4/2004 1:18:27 PM
Hi, can someone please guide me on how to animate text in flash which is loaded
from a external text file. The way we load text in dynamic text box and scroll
it, is it possible to animate the text thus loaded into the dynamic text box.
Also how to load an external image file in flash?
... more >>
problem with preloader
Posted by batteryboarder at 3/4/2004 1:07:21 PM
hi all,
i am having trouble with me sites preloader,its behaviour is as
follows:
upon entering the swf file my loader doesnt begin immediately, there is a
pause of 5-10 seconds.When my load bar
appears it has already loaded 60-70% of the site ie my load movie shows 60% of
14... more >>
Drag within a drag, is this possible???
Posted by james karsberg at 3/4/2004 12:24:21 PM
Hi there,
I've got an horizontal action script scroller containing buttons which works
fine (which uses a start drag command). I have also got a script that creates a
really nice alt tag style roll over for the buttons which follows the mouse,
fades in, floats and fades out etc... (Which al... more >>
Lander
Posted by Stephen Savage at 3/4/2004 12:09:55 PM
Anybody know of a "Lander" open source game code?
... more >>
Shared Objects & Browser Framesets
Posted by grob at 3/4/2004 12:02:32 PM
Do Shared Objects work across browser framesets? If so, is it compatible to
most browsers?
I would like some variables to talk to each other in different browser
frames.
Thanks
Geoff
... more >>
256 levels of recursion??
Posted by floyduk at 3/4/2004 11:56:33 AM
I've just started trying to write some games in flash. It seemed the ideal
language since it's cross platform, ubiquitous and highly functional.
However, after banging my head against problems for the last day and a half
I'm starting to get frustrated with the language. There are all these a... more >>
HELP PLEASE!!! Exporting for Flash 5 player
Posted by Brian at 3/4/2004 11:55:41 AM
I am trying to export a movie I build in Flash MX to the Flash player 5
format. I been giving buttons actions by targeting them from the root
timeline like so:
this.previous_btn_mc.previous_btn.onRelease = function(){
whereTo = "previousSection"
engine.gotoAndPlay("fadeOut");
trace("pre... more >>
EMail straight from Flash
Posted by Nocky35 at 3/4/2004 11:48:49 AM
Hi, hope you can help!
I have created a support system that will tell the user (by a green or red
light) that a range of devices work (by pinging them from vbscipt).
What I want now, is when a device suddenly becomes offline, I will be e-mailed
straight from within Flash.
I've tried ... more >>
MC Loading an External File
Posted by tyberius7 at 3/4/2004 11:45:18 AM
I have a flash website which I want it to load an external swf file and show
its loading progress.
I created a movie clip (my_mc) and use the loadmovie command to load the
external.swf. I placed a dynamic text (var: Progress) to display BytesLoaded.
The problem is that the var Progress ... more >>
RS232 input
Posted by Karl at 3/4/2004 11:36:20 AM
is it possible to read serial data (rs232) and move graphics / change text
dependant on it ?
... more >>
repeat motion
Posted by XFlashmanX at 3/4/2004 10:50:26 AM
Hi.
My question is best pesented on the project....
I would like that a graphic 'flies' from one end of the stage to another. And
then again. And again...5 times.
I made a motion tween from one side of the scene to another. Is there a
posibility, that I can write somthing into action scrip... more >>
problem with buttons
Posted by stefsin at 3/4/2004 10:12:32 AM
Hi,
I just received flash mx 2004, I'm used to work with flash 5 ! Normally when I
assign an action to a button, I select the button on stage and add
actionscript, it wil automatically add :
On release ......
Now when I do the same thing in 2004 I don't get 'on release' ... Am I doing... more >>
Scrolling _MC on x axis on mouse and stopping it
Posted by Hitby at 3/4/2004 9:12:53 AM
Hi all,
I'm trying to create a flash movie where a movie clip scrolls horizontally
depending on the position of the mouse. Using a tutorial on the interweb I've
managed to do this but the tutorial was for a movieclip that would scroll and
repeat. I need my MC to stop scrolling when it reac... more >>
how to keep fullscreen!
Posted by Tran Hoa Binh at 3/4/2004 8:54:55 AM
hi guy,
i would like to keep fullscreen(the keyboard can't restore the normal mode)
Thanks
... more >>
loadMovie and memory usage
Posted by notaus123 at 3/4/2004 8:50:31 AM
Dear Developers,
I have a big problem with Flash 7 (and 6):
I need to attach a movieclip which contains a jpeg image several times (up to
50 times!). But I want to do this dynamically on the fly without changing the
fla-library, compile it, upload it,....
So my problem is: If I first l... more >>
dynamic text inside mask
Posted by turbomerl at 3/4/2004 8:47:04 AM
i am trying to place a piece of dynamic text inside a mask, but it is not
visible. its fine with normal text and the variable is definitely being set
correctly. has anyone experienced this problem? if so, is there a solution?
any help very much apprecieated.
... more >>
changing List component background colour.
Posted by jsawatzky at 3/4/2004 6:53:39 AM
Hello, I am using the List component in flash movie and I want to change the
background colour from white to black. I tried:
_global.style.setStyle("backgroundColor" , 0x000000);
but that doesn't seem to do anything.
Thanks for your help.
... more >>
using embedded fonts with components
Posted by jsawatzky at 3/4/2004 6:51:42 AM
Hi. I embedded a font in my flash file, I exported it to be used in
actionscript using "EightTrackEmbedded" as the identifier.
When I try to set the default font for my flash components using:
_global.style.setStyle("fontFamily" , "EightTrackEmbedded");
It doesn't work.
What am I doin... more >>
ScrollPane, HTML Rendering with CSS
Posted by ChrisHomer44 at 3/4/2004 4:32:43 AM
Alright, so I am loading an swf into the scrollpane with a dynamic textfield as
the only content. I am then setting the textfield to render html and all that
jazz. I then import the html code and extend the textfield and for some
reason, the vert scrollbar doesn't always lengthen to cover th... more >>
open sys. file browser for jpg selection
Posted by rrhyne at 3/4/2004 2:22:11 AM
Hi all,
In HTML form i have a file browsing window opening which allows users to
select a jpg from their hard drive.
Can this be done through flash?
The application is as follows: I am creating a CMS solution and have written a
php script which resizes and uploads a jpg to the server. It... more >>
Make a button for Exitting?
Posted by pmxgvn at 3/4/2004 1:54:35 AM
I'm using Flash MX 2004 software. Can you help me: How can i make a button on
interface for exitting (close all to return window2000) my program (a interface
by FlashMX)? Thank you. My E-mail: princevn@asia.com
... more >>
actionscript newbie trouble
Posted by dr_ross at 3/4/2004 1:40:51 AM
hi there, i'm trying to trigger a colour change in an movie clip as i drag it over another on, sounds simple but its driving me mad, any help would be great
... more >>
How can I control the loadMovie()?
Posted by timedrive at 3/4/2004 1:04:30 AM
I am buliding a flash-web with FlashMX and I found that the swf which loadMoive() has loaded is invalidation!! All AS in it lost their effect! Help me~ Thank you~... more >>
attaching "do-all" function to button
Posted by asiabackpacker at 3/4/2004 12:56:29 AM
not sure how to phrase this, but i hope it makes sense::
Is there a way to have one function attached to a button that will apply to
all the different button states (and do different things)? Right now, I have to
write one function for the over state, one for the down, one for the release,
... more >>
Has anyone seen the "Mad Mad House" banner or the Pizza Hut banner? [video]
Posted by Jeff at 3/4/2004 12:21:57 AM
Has anyone seen these two banners anyplace? I've run into both of them on
Yahoo and am desperately seeking a tutorial or any resources on how these
banners are done.
1. They start off as normal (say, 640 or so by 60) traditional banner ads
enticing the user to "roll over for more info".
2. Wh... more >>
|