all groups > flash actionscript > april 2006 > threads for tuesday april 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
Draggable movie clip and close button
Posted by rogz at 4/4/2006 10:43:00 PM
I have a draggable movie clip with a button inside of it but i cannot get the
close button to fire. If the drag code is applied to the movieclip the button
will not work.. if the drag code is taken off the button will fire...i'm
assuming that the drag code overwrites the button...
... more >>
ActionScript Not Working
Posted by forumnotifier at 4/4/2006 10:42:07 PM
Hi,
I have this file which I created from
http://www.tutorialized.com/tutorial...entation/11499 where the actionscript
works in Flash Player 6 but when I publish into Flash player 7 or 8 it does not
seem to want to play.
It gets a pop up message stating:
"A script in this movie is ca... more >>
ActionScript Not Working
Posted by Flash_Boi at 4/4/2006 10:42:05 PM
Hi,
I have this file which I created from
http://www.tutorialized.com/tutorial...entation/11499 where the actionscript
works in Flash Player 6 but when I publish into Flash player 7 or 8 it does not
seem to want to play.
It gets a pop up message stating:
"A script in this movie is ca... more >>
load empty movieclip on stage
Posted by hollywoodbb at 4/4/2006 9:20:27 PM
I?m trying to load an image on an empty movieclip on to my flash stage but it
doesn't want to load the picture. The output window displays "the class or
interface 'Logo' could not be loaded.? What class should i script here?
class Logo {
private var targetClip:MovieClip;
... more >>
Synchronizing multiple .swf files in a page
Posted by Animadrew at 4/4/2006 8:38:30 PM
Is there any way to get multiple .swf movies on a web page to begin playing at
the same time? I have a site with three separate .swf movies on the home page.
I would like for them to all begin playing at the same time after they have all
finished loading.
... more >>
Basic help using Flash, PHP, and mySQL
Posted by adamwissing at 4/4/2006 8:35:29 PM
Hello,
So we had a small file management site created in PHP and mySQL that I'm
redesigning. The entire site is coded and working already, but I'd like to take
parts of it and put it into flash.
For instance, on the top of one page there is a simple echo statement that
lists the proje... more >>
hittest problem
Posted by mikeDoh at 4/4/2006 7:14:30 PM
I have spaceships that shoot lasers, lasers are class instances extending
movieclip. On every frame, lasers do a hitTest to determine if it collides
with an opponent ship:
function onEnterFrame() {
if(this.hitTest( _root.gm.opponent) ) {
_root.gm.opponent.recieveHit(this.... more >>
help w/ video /actionscript
Posted by the queen is dead at 4/4/2006 7:11:54 PM
I'm new to working with video in flash.
The project I'm working now- I have a master.swf that certain buttons will
load a short .flv into a new level. What I would like to do is after the .flv
has finished playing, use actionscript to 'unload' that movie and leave that
level empty again.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
actionscript quit working - loop 3x script
Posted by FinnzDad at 4/4/2006 7:10:41 PM
I was using the script below, and now with a new file/.swf it is not working...
What is wrong??
var loopCount = 0;
loopCount++;
if (loopCount < 3){
goToAndPlay(1);
} else {
stop();
}
... more >>
classes not loading error
Posted by etg7 at 4/4/2006 6:21:31 PM
Hi all,
I keep getting this error 'The class or interface 'xxx.as' could not be
loaded.' i've checked and double checked and the path to the package is
correct, but the library item (movieclip) isn't on stage...is this why i'm
having this problem?? i don't uncerstand why it can't load the... more >>
NewbieQ--simple slide presentation--previous?
Posted by Dick Margulis at 4/4/2006 6:13:29 PM
I thought I'd start with something really, really simple as my first project. I
have a slide presentation consisting of two slides (so far).
I created two buttons, LeftArrow and RightArrow. I placed the RightArrow
button on Slide 1 and both buttons on Slide 2 . I gave each instance a unique... more >>
bitmapdata question
Posted by MyFlash83 at 4/4/2006 6:12:44 PM
I think this should be a fairly simple question for someone. I was trying to
play around with the bitmapdata class and I ran into a problem...
When I load a .jpg image from my server (local) and use the bitmapdata to
..draw and copy it to another movieclip it works great but when I do the sa... more >>
Window Component depth issues?
Posted by YossarianPickwick at 4/4/2006 5:44:21 PM
Hi all,
I've had this problem a few times now and I'm not sure what I'm doing wrong.
I have a Flash movie that attaches a .as defined MovieClip in the first frame
of the timeline.
In my MovieClip class, I attach a background image movie and a couple of
buttons and whatnot - basically b... more >>
Newbie needs help
Posted by Macromedia at 4/4/2006 5:42:48 PM
Please help..
I am a newbie to flash animation...I downloaded a draggable animated menu
http://www.stephengates.com/tutorials/Drag_Animated_Menu.html
just to check it out.....Very cool....but how would I link webpages to the
menu items?
It does not seem to let you.....if you place an actionsc... more >>
Pausing external .swf
Posted by Owned1Up at 4/4/2006 5:41:20 PM
I have a movie clip named rVideo which is an instance of ext. rVideo loads an
external swf file. I have a button named btnPause and i need to figure out how
to pause the external swf running. I have tried _root.rVideo.stop(); and
_root.ext.stop(); but nothing works. Thanks!,
Mike
... more >>
Play Button
Posted by astergil13 at 4/4/2006 5:32:46 PM
i am new here, i just started to learn about flash and i wonder if i can ask
you people something?
my problem is, i want my button after is pressed, it will lead to the nest
scene.
the output always error. it said that
Statement must appear within on handler
what is handler
... more >>
>> Flash Player Version DETECTION - HELP <<
Posted by [WTs]^=NeO=^PL at 4/4/2006 5:12:01 PM
Dear,
I'm beginner of using Flash and Action Script. I'm making my University
graduation work. Ihave to make web site made in Flash. I bought Flash 8 PRO
version.
I have hudge problem. I watched many forums and I cannot find exackly what I
need.
I have one *.html and one *.swf file. S... more >>
Need help with the for loop
Posted by gregmax17 at 4/4/2006 4:56:56 PM
How do I get this script in a for loop?
game.Tile1 = function() { };
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 1;
I am using:
for (var i; i <= 40; i++) {
game.Tile = function() { };
game.Tile.prototype.walkable = false;
game.Tile.prototype.frame = ;
}
... more >>
#include more than once
Posted by Star Tail Pro at 4/4/2006 4:31:54 PM
for some odd reason this text kept on coming up with an error that said:
**Error** filename.as : Line 3: Type mismatch in assignment statement: found
Array where String is required.
#include "german/EducationTrainingAndEmployment.as"
//the text
class language.German {
fun... more >>
Where'd my variables go? :(
Posted by o8z at 4/4/2006 4:30:26 PM
I have an array of global variables... and they are fine until I load XML data :
xmlData.load(""+mapname);
then they are all lost (many are booleans that are TRUE .. and after the load
are FALSE....)
I'm not sure what is going on here. I didn't change the variable value. Does a
' load ... more >>
FLV Event onComplete not triggering
Posted by Alain Thibodeau at 4/4/2006 4:07:33 PM
Hi,
I have come accross an issue that many have complained about (google), but I
have yet to find a solution...
I am loading a series of videos and playing them with FLVPlayback component.
I've noticed that, with certain FLV files, they play to the end, but the
"complete" event is never sen... more >>
Intelligent audio pre-loading
Posted by davidlynnthomson at 4/4/2006 3:27:13 PM
I'm writing a movie with 8 buttons, each containing an audio clip. When you
roll over a button, a sound clip plays. The problem is, since all 8 buttons
exist in frame 1, the SWF player loads all 8 audio clips (streamed Library
objects) before the buttons appear. This can take a while.
I... more >>
Holding the right key
Posted by jimmy_milk at 4/4/2006 2:48:33 PM
I have code that lets a character move right and left, but how could I get it
so the computer "presses the right key for a second"?
This happens when the character reaches the end of the world and I want the
computer to make them walk back
Thanks for you time and any help would be great
... more >>
Masking off-stage objects
Posted by JP.Harron at 4/4/2006 2:43:39 PM
I'm using:
fscommand("AllowScale", false);
fscommand("FullScreen", true);
...to autoplay my projector fullscreen, but any objects outside the stage are
showing up in the outlying areas when viewed on monitors with higher resolution
then what the project is set to.
How do I cover up... more >>
simple quiz design-FlashMX 2004
Posted by runnerduck at 4/4/2006 2:12:29 PM
Hi. I'm working in FlashMX 2004 on OSx 3.9.
I would like to create a simple Flash quiz. It will be multiple choice and
each question will have just three possible answers. I would like to make it so
that the user's answer causes a certain animation to play.
I'm trying to learn more actions... more >>
Array of all possible variations
Posted by Vimpact at 4/4/2006 1:22:05 PM
I need to cycle through all variations of a set of numbers
(1,2,3,4,5,12,24,60,64,70,72,81,84,99)
My problem is that each number can only be used once (see below)... and each
set has to include all 14 figures shown above.
Good:
1,2,3,4,5
1,2,3,5,4
1,2,4,5,3
1,2,4,3,5
Bad:
1,... more >>
Angle of a scripted drawing API Line
Posted by DJ James at 4/4/2006 1:20:20 PM
I want to have my users be able to draw arrows dynamically and the way I'm
thinking of doing it is to have them draw a line, and attach an arrowhead at
the end of it.. the problem is that I don't know how to get the angle of the
line to draw it..
I found this:
http://members.shaw.ca/fla... more >>
BG color in fullscreen
Posted by JP.Harron at 4/4/2006 12:46:44 PM
I'm using:
fscommand("AllowScale", false);
fscommand("FullScreen", true);
...to autoplay my projector file fullscreen, but I'm not sure how to set the
background color around the stage and my objects outside the stage are also
showing up on screen so I'd need to set some kind of viewab... more >>
Linking using vars and a For cicle?
Posted by AlfonsoPerez at 4/4/2006 12:13:25 PM
Hi!
I have this code to create an animation where when someone rolls over a
certain movieclip another movieclip appears saying the name of that movieclip.
My SWF is a map divided in several regions. When someone rolls over a region
its name appears.
for (var i:Number = 1;i<=20;i++){
... more >>
cacheAsBitmap causing memory hold in Win2k
Posted by andr01d m at 4/4/2006 11:50:28 AM
I've made a large Flash movie in which I have the illusion of items growing out
a shiney floor, casting a reflection in the floor as they grow.
To achieve this I've used a gradient mask in a movie clip. At run time I set
the mask movie clip and the growing-out-of-the-floor animation movie c... more >>
WebRadio using flash and icecast
Posted by Dvrc at 4/4/2006 11:41:47 AM
Hi everybody,
I m trying to make a webradio site using flash php mysql , the radio stream is
from an icecast server...
I manage to load it correctly into flash using :
_root.radio= new Sound();
_root.radio.loadSound("http://8082.str.ovh.net:8082/",true);
it goes ok but after around... more >>
how to create simple print button -
Posted by Olivier D'Arceaux at 4/4/2006 10:55:15 AM
I'd like to be able to trigger a print command from inside a flash movie
that simply prints the exactly what is on the screen. It works perfectly
when I right click on the movie and use the Print command from the context
menu. But - how would I do this from a button inside the movie?
Thank... more >>
Got bytes?
Posted by IvoryEchelon at 4/4/2006 4:32:55 AM
I'm currently in the process of trying to port an application to Flash for use
in standard web browsers. But there are a number of server calls I need to be
able to make that return byte data. Is there any way to get raw data back from
a server call using Flash, without having to set it to a v... more >>
setInterval is inconsistant
Posted by kyugawa at 4/4/2006 2:39:46 AM
I am trying to develop a simple drum synth in Flash 8 using multiple
setInterval functions to play short drum samples in unison. My problem is that
the setInterval plays inconsistantly for example, I have the system play one
sample every 300ms and another at 600ms. Theoretically one should pla... more >>
Help finding the error in this script?
Posted by Angyl at 4/4/2006 2:36:36 AM
I'm almost embarassed to post this here, but this is what I have:
The problem is that when the code gets the navBar to the right location the
homeBak movie does not play.
Any help?
var speed:Number = 25;
navBar.onEnterFrame = function() {
if (navBar._x>=106) {
navBar._x -= spe... more >>
length of a non zero based array?
Posted by CastTen at 4/4/2006 12:00:00 AM
Hi,
is there a function in Flash to get the number of elements of an array?
It would be easy to write it by myself, but maybe not very good in
performance.
TIA
BTW length property does not.... more >>
Math.round Problem
Posted by Pallav_Nadhani at 4/4/2006 12:00:00 AM
When I try the following code:
var a:Number = 1.025 * 100;
trace(Math.round(a));
Flash outputs 102.
However, instead if I directly put 102.5 instead of allotting it to "a" and
then rounding it, as under:
trace(Math.round(102.5));
I get 103 as output.
Is there any explanations/p... more >>
Dragging with constrains
Posted by arunbe at 4/4/2006 12:00:00 AM
I have a small exercise. In that, i need to drag a dragable movie clip. But , it shuold move only in 45 degree.
Please help me.... more >>
sets stage size dynamically
Posted by kanukukreja at 4/4/2006 12:00:00 AM
fl.getDocumentDOM().height = 400;
fl.getDocumentDOM().width = 400;
This is result i got after searching so many things.
But in this query i won't be able to understand that what is this fl and what
is getDocumentDOM()
I read somewhere that fl is a document object and we can write flash a... more >>
Opening A PDF Using Flash
Posted by davidandrewheath at 4/4/2006 12:00:00 AM
OK, so there are countless hits on Google regarding this question, but there is
not a single decent answer out there which seems to work. All I need is a
surefire way of opening a PDF document after the user clicks a button. That is
all. Most of the answers on the web talk about batch files fo... more >>
go to URL after Tween
Posted by XxXSpitfirEXxX at 4/4/2006 12:00:00 AM
Hello,
I have got a pic which has to fade out when you press on a button. After the
fade out (tween) it has to go directly (whithout doing anything) to an url.
What script do I have to use in the timeline at the end of the tween,
Already tnxx
//wesley
... more >>
getting a volume level
Posted by dave at 4/4/2006 12:00:00 AM
Is it possible to get the current sound level from the sound card.
I guess I don't mean the volume setting, because that would be a constant,
but rather the current level. So if I connected a microphone and spoke into
it I need the current level of that, compared to if i shouted into it.
I... more >>
|