all groups > flash actionscript > may 2004 > threads for tuesday may 25
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
cant get seamless loop in animation
Posted by AnotherHell at 5/25/2004 11:12:28 PM
I have a movie that is 125 frames so far,
and right now when you push the test button, ive set it to play to frame 124,
then goes back to frame 85 and loops 85-124 continueously.
thats what i want, but there is a little pause in the loop that is to
noticible, and i know its not the anima... more >>
as2.0 class event handler code not accepted
Posted by xyz123 at 5/25/2004 11:08:11 PM
Hello,
In my search to redefine attachement behaviour for movie clips using a new
class definition for a Symbol1 movieclip(library), I run into a strange error.
If anyone can tell me what is wrong.....?
The following code just works right......if I do uncomment the
onClipEvent(mouseMov... more >>
Correct way to close a browser window from Flash?
Posted by dgh1943 at 5/25/2004 10:29:34 PM
Could somebody perhaps tell me what code I could use on a button to close the
browser window from the SWF without getting the Internet Explorer alert, "Do
you want to close this window?" ... any help would be highly appreciated and I
thank you in advance. dgh
... more >>
Why won't my square move? _x help pleas.
Posted by Habitmaster at 5/25/2004 10:22:49 PM
As I trace _x I see that it isn't changing.
The following code is in a loop. The value of _x gets traced successfully but
doesn't change.
// quad_mc is the instance name for my movi clip.
on(release) {
quad_mc._x = _x + ((_x * 10) / 100); // the idea is for _x to increase by
10% o... more >>
Collision detection with random shapes?
Posted by Kevin Price-Ward at 5/25/2004 10:13:40 PM
Hi all,
I'm developing a football game. I have two movie clips, a ball and a boot.
The ball is obviously a circle but the boot is a non regular shape. How do I
detect when their outlines touch or overlap to trigger an event. I've seen
plenty of collision detection examples using two balls or t... more >>
problems with opening browser window
Posted by buck love at 5/25/2004 9:42:11 PM
when my preloader decides that the movie is loaded and it is ready to go to the
second scene i have a little code:
getURL("javascript:open()"); //where open() is a function defined in the
javascript on the page containing the flash
just before it switches to the next scene.
what then... more >>
preloader for streaming audio
Posted by dergarten at 5/25/2004 9:28:32 PM
I have tried several ways... Failed... My problem is that I was using the
progress bar component with a loader loading the mp3. However, the progress bar
works the first time but when returning to that frame from another frame, the
sound loads againg but the progress bar stops working.
So ... more >>
Formatting a telephone number in a Flash form
Posted by cnetech at 5/25/2004 9:11:57 PM
I've created a basic form that has a number of text input fields within it
(e.g. first name, last name, etc.....).
One of the fields asks for the user's telephone number.
I'm curious if there is a way to format the telephone number after the user
clicks on the 'Submit' button to send the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
keypress only works first 3 times
Posted by kimG at 5/25/2004 9:01:40 PM
My company recently upgraded from Flash MX to 2004 Pro. I am revamping a Flash
presentation I originally created in MX. The scene to scene navigation no
longer works.
It's very simple script.
on (keyPress "<Right>") {
nextScene();
stopAllSounds();
}
It will work the first 3 tim... more >>
set initial state of movie clip
Posted by buck love at 5/25/2004 8:20:08 PM
i could do this in previous versions of flas but i can't find how to set the initial visibility of a movie clip (besides using an actionscript to do so);... more >>
What happened to TextFormat.textHeight
Posted by BackBayChef at 5/25/2004 7:41:28 PM
I have some old code that uses TextFormat.textHeight and then
someTextField_txt.setTextFormat(begin, end, myTextFormat);
This has broken in Flash MX 2004. Any ideas where this has gone to?
BackBayChef
www.backbaychef.com
... more >>
When is a MovieClip really loaded?
Posted by BobK101060 at 5/25/2004 7:37:09 PM
I have a controller movie in which I dynamically add a movie clip
(createEmptyMovieClip and loadMovie) based on a click of a button. What I have
noticed while stepping through the debugger is that the full definition of the
dynamic movie clip is not defined until after control is returned to t... more >>
Tennis Game scoring logic - aaargh
Posted by Anth2003 at 5/25/2004 7:31:39 PM
OK so I'm writing a little tennis game (still) and I've been trying to write
the scoring system. Unfortunately its driving me absolutely mental as no matter
how I write it it's glitchy as hell.
I am using a couple of variables called p1score and p2score which increment by
one each time the r... more >>
Screen problem
Posted by Tmac at 5/25/2004 7:12:30 PM
When working with screens and you create a child screen and after working
with that screen you find that it should have been a nested screen is there
a way to convert it to a nested screen?
... more >>
movieclip loading problem
Posted by PeaceKeeper at 5/25/2004 6:57:42 PM
how can we load a movieclip in a differnt swf from another swf?... more >>
Button problem
Posted by clvrmonkey at 5/25/2004 6:10:50 PM
I created a simple navigation with 4 buttons (first, prev, next, last) and
everything seems to work fine, except that when the movie is first loaded you
have to click twice on each button for anything to happen. Anybody know why
this would be? I've attached the AS below.
Any help would b... more >>
creating a graphic equalizer in-sinc with music
Posted by Dreamer_of_zion at 5/25/2004 6:05:50 PM
Hey, anyone out there no how make a "real" graphic equalizer that goes in-sinc
with the audio? It's a piece of cake making an equalizer that mimics the real
thing, but.............
Any comments would be appreciated.
Thanks
-Dreamer
... more >>
passing info from one swf to another
Posted by redronw at 5/25/2004 5:57:28 PM
if you take a look at the graphic i included...
i am using the getURL ("javascript:Feedback('something')"); code to send out
a variable in the graphic .swf in the hopes that the menu .swf can read a
javascript varaible. that particular variable will enable/disable navigation
buttons tha... more >>
referencing an array alement using varialbe pro
Posted by Mike7222 at 5/25/2004 5:08:13 PM
HI there,
I am running this code beloow to loop through the elements of an array.
In the "for" statement, a variable n is generated to repretsent the number
elements of the array as it loops through. i have noticed that the value for
variable n gets lost and returns undefined after the o... more >>
preloaders and reading external jpg files
Posted by qwerty10001 at 5/25/2004 5:06:45 PM
Hi there
I have two movies, one is the master movie and this loads a second movie using
'loadmovie'.
The second movie that loads, reads jpeg images that are stored on the
harddrive. I created a preloader for this movie, when I execute this movie the
preloader indicates that all the fra... more >>
onLoad not working
Posted by _jrh_ at 5/25/2004 4:35:03 PM
Here's what I have. For some reason, the onLoad always fails. The mailer code
works and always sends the variables to me. I know that the likeliness of such
a small form failing to mail is small, but I want to be failry positive. The
browser's status bar, upon clicking the button, reads "Trans... more >>
radioButton
Posted by Branching at 5/25/2004 4:31:45 PM
I have two groups of radio buttons, 4 buttons each group, I want to click
radio button 1 in group 1, and radio button 3 in group 2 for example, and have
it sum up the number into text field totalSum (1+3=4), and so on. Any idea how
to achieve this? thanks.
... more >>
Help with Movie Clip Navigation on Timeline
Posted by Mizzouman6 at 5/25/2004 2:54:00 PM
Hi.
I'm attempting to create some online Flash training. My problem is with movie
clips. In an effort to streamline my timeline, I wanted to take a quiz and take
it out of the timeline and insert it as a movie clip. My problem is when I try
to get that clip to navigate back to the original... more >>
Rotating a Movie Clip with a button?
Posted by Xealos at 5/25/2004 2:22:25 PM
Hey guys, I'm trying to rotate a movie clip to a specific degree of rotatation
(120, for example). I can do that fine with Set Property, but I want it to go
smoothly.
My menu will be a TV-type dial, when you click on a certain menu item, I want
the dial to smoothly rotate to the position o... more >>
file browser
Posted by dr_ross at 5/25/2004 2:11:10 PM
hi all,
i'm producing a module based program with the ability to add in more modules
to choose from over time, i'm having issus's getting flash to read how many
..swf's there are in a folder with their filenames, then let you choose which
one to load, at the mo i'm using a .txt file to cont... more >>
2 Sound same frame in an MC
Posted by Loopkit Pro v1.0 at 5/25/2004 2:05:20 PM
I'm stumped. I am using code that is connected to a button that takes a user to
a random frame within an MC. There are 11 frames within that MC. Now, within
that same MC's 11 frames I want one sound to play, (I have 11 seperate audio
files sitting in those frames in which they play and stop), ... more >>
Passing a command as a variable to a function
Posted by alx88 at 5/25/2004 2:01:13 PM
I am trying to pass a command as a variable to a function to execute within the
function. For example:
myCommand("_root.myClip._alpha = 25");
would pass the above alpha setting to the function to execute:
function myCommand (doThis) {
// need to know what should go here
}
... more >>
Dynamic .as files
Posted by jbuckle25 at 5/25/2004 1:52:50 PM
Hello,
I am not sure if this has ever come up before (I did try searching), but I was
wonder, can you use a server-side language like PHP/ColdFusion, etc. to
dynamically render an .as file at runtime?
For instance, I have my .swf file that is told to import myactionscipt.php,
which p... more >>
Receiving vars from MySQL to Flash
Posted by kafir at 5/25/2004 1:45:13 PM
I have a MySQL database from where i need som info. presented in flash.
Here's my PHP code. E.g. i need the info(vars) of $europePercentage to be
presented in my movieclip in flash.
Can anyone help me with the AS (flash) code to make this possible?
Hope someone can help
/Kafir
... more >>
Copy Protection
Posted by matt NO[at]SPAM bellatlantic.net at 5/25/2004 1:41:32 PM
I'm trying to find a way to copy protect a flash product I'm selling.
I have a simple local SharedObject that contains an activation code
but I'm wanting the next level. I'd like to "serialize" it to a user
and machine so the sol file can't be simply copied.
My plan was to get the path of the ... more >>
Passing info. from flash to php
Posted by kafir at 5/25/2004 1:37:50 PM
I have a simpel bottom function that needs to pass variable to a php search
page. I have listed the vars:
NAME="newSearch" VALUE="1"
NAME="searchType" VALUE="1"
NAME="searchArea" VALUE="0"
NAME="pictureReq" VALUE="0"
NAME="fromYear" VALUE="0000"
NAME="fromMonth" VALUE="00"
NAME="fr... more >>
Converting old Scripts into MX
Posted by Johannes Ohlsson at 5/25/2004 1:10:13 PM
I need some help converting this old script into one that works with MX.
On (Release)
Set Variable: "counter" = counter+1
End On
There seems to be some compatability problems with the new version of
ActionScript.
/Johannes
... more >>
# include file path problem
Posted by S4Potential at 5/25/2004 1:08:58 PM
I would like to be able to use a variable for the file path with the #include
statement but when I do this:
#include include_path_str+"frame1_root.as";
I get that:
**Error** Scene=intro, layer=scripts, frame=1:Line 19: Malformed #include
directive
#include include_path_str+"frame1... more >>
New Window
Posted by Rob_jones732000 at 5/25/2004 1:06:35 PM
I've created a opening page in flash and put a button on it, i then put this in
dreamweaver. How do i make it so when the user clicks the button it will open a
new window with the site in it? What actionscript do i need to put on the
button so it opens a separate file?
Exactly like this si... more >>
Movie sound scripting issue
Posted by Blaknight at 5/25/2004 12:28:24 PM
I currently have 12 buttons in one section of my flash file controlling music.
6 buttons to PLAY the music and 6 buttons to STOP the music, using the
following scripts.
PLAY SCRIPT
on (release) {
with ("replace with instance name") {
play ();
}
}
STOP SCRIPT
... more >>
XMLSocket data string to hex
Posted by embeddy at 5/25/2004 9:02:03 AM
I have made a XMLSocket connectoin with actionscript between a client and a
server. The server sends codes back.The data that is send back are hex numbers
(0x00 to 0xFF). I catch this data with onData() witch gives my a string back.
How can I get back the hex values from this string?
I tried... more >>
Named Anchors
Posted by Apheresis at 5/25/2004 7:28:00 AM
I have a site that has named anchors and I have published it using the
"Named Anchors" template.
When I hit the back button on the browser, the flash goes to the previous
named anchor on the timeline, not the last navigated to in the browser....
what am I doing wrong?
thnx
... more >>
external parameter
Posted by cupotico at 5/25/2004 4:59:32 AM
hi,
i have a scenario I?m trying to work around:
i have a flash object loading in my home page and on every page on my site, i
want the flash to play the intro only the first time it is opened and later on
in the inner pages i want it to skip the intro. ( but i want it to be the same
file ... more >>
ScollPane background color
Posted by kol_korivo at 5/25/2004 2:48:14 AM
Hi,
How to make the ScollPane background color transparent?
Thanx... more >>
platformer game:enemy AI and going up ramps
Posted by hellspawn666 at 5/25/2004 1:37:07 AM
this is what my level looks like so far
______________/----------\_________
/=going upper right
\=going upper left
--------=ground above
________=ground below
... more >>
Reading .zip file?
Posted by maulia at 5/25/2004 1:30:10 AM
Is it possible to flash (or is there any component) where you read in a .zip file, retrieve it with actionscript and read the data inside it?... more >>
What is highest depth allowed??
Posted by sneakyimp at 5/25/2004 12:28:53 AM
hi everyone:
I am dynamically creating a bunch of movies. I was wondering a couple of
things regarding depth:
1) what is the HIGHEST depth you can possibly assign anything do in Flash MX?
2) does the depth concept apply only to the largest library item
attached/created, or does it a... more >>
|