all groups > flash actionscript > november 2005 > threads for saturday november 26
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
AS1 to AS2 Migration Error
Posted by wynnewade at 11/26/2005 11:27:29 PM
i have the code below which compiles nicely in AS 1 but won't dream about
compiling in AS 2. The error is "**Error** Symbol=ScrollDown, layer=actions,
frame=2:Line 1: Operator '=' must be followed by an operand
CurrentLine = ..:text.scroll;" What am I missing?
--- Code
CurrentLine =... more >>
Event handlers in a for..in loop
Posted by sowiebinich at 11/26/2005 10:32:37 PM
I have:
[as]
for (var myVar in this)
{
this[myVar].onRollOver = function () {
trace("testing");
}
}
[/as]
I know that I'm going through the for..in loop and that this[myVar] gives me a
valid-looking path, but it doesn't seem to be setting the onRollOver propert... more >>
onResize maths question
Posted by Gionex at 11/26/2005 8:10:52 PM
So far I have this code
var stageSize:Object = new Object();
Stage.addListener(stageSize);
stageSize.onResize = function() {
menuHolder._x = Math.round(0-(Stage.width-700)/2);
menuHolder._y = Math.round(0-(Stage.height-500)/2);
bkHolder._x = Math.round(0-(Stage.width-700)/2);
bkHol... more >>
geturl
Posted by yawollag at 11/26/2005 7:16:06 PM
what is the correct script for getting a button to call up a url? for some reason I cant get it to work in the new flash version. thanks ... more >>
Get a frame position in a MC?...
Posted by DIY_Lobotomy at 11/26/2005 7:06:53 PM
Is there a way to find out what frame a MC is on, using AS?...
Basically, I have a MC playing, and I want to know when it reaches a certain frame. Thanks!...
... more >>
slideshows - advice sought
Posted by Donna Casey at 11/26/2005 6:03:38 PM
I've reviewed a ton of xml+flash slideshows in the past week... what
I've seen has been impressive, but one thing really limits them - when
in manual mode (next, previous) and you get to the last slide, the
slideshows don't loop back to the beginning...
Is there a way to do this? For exampl... more >>
Navigating in Flash MX2004 using ActionScripts
Posted by VeronicaH at 11/26/2005 4:45:45 PM
I am creating a web site in flash, but my actionscripts for my buttons don't
work. I am using the same button, creating different instances with different
labels (names). However, my button either don't work, or go back to the home
page. This is the script I'm using::confused:
on (release) ... more >>
Help please...
Posted by arsenalawai at 11/26/2005 4:45:36 PM
hey guys i need help and quick
my computer teacher wants to me hand her over a flash website im doing for a
college
ive done everything but the buttons are a problem
i did the buttons and everything but i dont know how to do the following...
when i click on a button how do i make it op... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem with onLoadProgress
Posted by elmu at 11/26/2005 3:29:56 PM
Hello,
I have the code below, which works in Flash 8 but not in Flash 2004. In
Flash 2004 I didn't get any trace message from the onLoadProgress
function even if it starts with trace ("LoadProgress");
Any idea?
Thanks!
stop();
var myMCL:MovieClipLoader= new MovieClipLoader();
var m... more >>
Execute one action after another is finished
Posted by Vee at 11/26/2005 3:29:13 PM
I would like to have a navigation buttons (located on _level0 with instances
of button1, button2 and so on) of trigger an event after another event is
finshed. For example my mc instance myContent_mc is located on the _level0.
It has frame labels like content0, content1 and so on. I would... more >>
Overlapped movie clips and 'click-thru'
Posted by Hermann2005 at 11/26/2005 2:11:10 PM
I've been experimenting with using dynamically created movieclips to create
'windows' to hold things such as tooltips or dragable text fields for advanced
help. The problem is that if you click in one of my 'windows', and you happen
to be on top of a component, say a button, that is hidden ben... more >>
How to use round() to create an endless loop?
Posted by FayeC at 11/26/2005 1:39:01 PM
I have a strip of film (square rectangular images 70x70 on a 790x100
movie) I need to make it slide horizontally in one direction and
evenly spaced ......like a film strip...
Does that give an understandable picture?
I have tried with a group of images in a symbol and with each image as
symbols... more >>
.onResult not recognize
Posted by Adr_Laik at 11/26/2005 1:15:16 PM
Hi all !!! I have a problem with .onResult method from a external class that is
linked to a movieClip. This class extends a movie clip and y have problem with
calls for Flash Media Server .
The problem with this class is that when it is compiled Flash output error "is
no property with the na... more >>
Help With Countdown
Posted by chocolate999 at 11/26/2005 1:14:13 PM
Help, I tried to make a countdown, but the text box just says NaN. Here's the file: http://www.nictitatingrabbit.com/downloads/ChristmasCountdown.fla. Please help!... more >>
Can a SWF learn its level?
Posted by rlc5611 at 11/26/2005 10:39:03 AM
It would be helpful for me to have a SWF be able to learn its own level when
loaded via loadMovieNum(). If it cannot, I can work around the issue but, in
the interest of automation, I have decided that it would be very helpful if the
SWF could tell itself what level it has been loaded into.
... more >>
call an http URL without opening any window
Posted by Divya Bhatia at 11/26/2005 9:54:03 AM
I have inserted this code to call a page, but dont want it to be opened
and here if i dont give "_blank" the script doesnot execute........
I just want to call a page internally. if there is any other function. Kindly
help me.
function hit() {
var dd="divya";
var myVars = new LoadVar... more >>
Need help with conditional button click.
Posted by incubox at 11/26/2005 9:20:03 AM
I have a menu and submenu. The below code is attached to the button on the
main menu. I'm not exaclty sure how to write the code for what I am trying to
accomplish, which is: if the submenu movie (mclCompany) has not yet played
(less than frame 13), then I want the parent movie to gotoAndPl... more >>
Duplicate MC behind layers of the stage?
Posted by Ben2 at 11/26/2005 8:42:57 AM
When i use the command:
my_mc.duplicateMovieClip(number, number, {_x= test._x, _y= test._y})
the movieclip that is duplicated is placed on top of every other symbol, no
matter what layer it is on. Is there any way to get around this? If anyone
knows how to duplicate a movieclip into a specif... more >>
MovieClip - assigning a class
Posted by iJustLoveFlash at 11/26/2005 12:24:40 AM
Is there any function that would allow to add some class to some object on
runtime. My situation smth like that :
this.createEmptyMovieClip("gameArea",this.getNextHighestDepth());
assignClass(this.gameArea, "someClass");
assignClass realname is what i am looking for. The passed vars coul... more >>
Moving a mc through actionScript
Posted by Jimmathy at 11/26/2005 12:00:00 AM
This is what I put to make an asteroid appear every 1.5 seconds, at a random
rotation and random x, and y at -30:
dep=0;
setInterval(debris,1500);
function debris(){
rclip=_root.attachMovie("asteroid","asteroid",dep);
dep++;
rclip._x=random(550);
rclip._rotation=random(360);
rcli... more >>
AddEventListner
Posted by ccraj at 11/26/2005 12:00:00 AM
When we use AddEventListener to listen to an event triggered by a Button or a comboBox, do we need to mention " import mx.events " in the top? ... more >>
targeting levels and external swf's
Posted by boomtownUSA at 11/26/2005 12:00:00 AM
hello,
can anyone direct me to a decent explaination of how to communicate between
external swfs on different levels?
ive been searching for the past two days without success...
from what ive learned, the _root. tag should always refer to the main timeline
unless the _lockroot = "tr... more >>
Stop a certain frame.
Posted by Roxxi at 11/26/2005 12:00:00 AM
I'm having another problem...
I would like to stop two layers from looping, and let the other continue. But
um, when I put down the stop action, all the layers||frames stop.
Can anyone help me out?
... more >>
fileexists
Posted by ittvagyok at 11/26/2005 12:00:00 AM
hi, I understand that from the MX version there is a fileexists method to
determine whether there is or is not a file on the disk, but how can i check
that in previous versions?
My goal is to change to an other xml filename if it can't load the first
because it does not exists.
thx
... more >>
|