all groups > flash actionscript > october 2007 > threads for thursday october 18
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
loop or array
Posted by uxk at 10/18/2007 10:21:38 PM
Hi,
My question is which method to use in the following: I need to drop stones one
after the other into a pond to get it filled.
Do I have to make use of an array or loop condition? I am not sure. Kindly
guide me to an example where I can refer to the codes or at least gve me some
starting... more >>
transition tutorial for as 3.0?
Posted by NickTheNameless at 10/18/2007 9:44:23 PM
so i started my first completely new, from the ground up project since the
release of 3.0. i'm a dork, so i was kinda excited to create a new fla file
and save 3.0 in the publish settings. so then i got about my business, create
a movie clip that i want to use as a button, jump into my actio... more >>
Access the Stage from a Package?
Posted by Rich Morey at 10/18/2007 8:58:49 PM
Hi --
I have a custom package I wrote and I need to add a child to the stage from
the package. However, a plain "addChild()" throws an error when compiling
the movie. I tried stage.addChild() and root.addChild() but those both give
me errors at compile time as well.
Can anyone help me wi... more >>
sound position
Posted by bossche001 at 10/18/2007 8:01:37 PM
Hello,
I'd like to know, when a streaming sound has preloaded enough and would start
to play, so I can start playing another mc with an animtion in it. Becaus e now
the animation is already playing before the sounds has started.
Tom
... more >>
Opening link in same window
Posted by TnaE at 10/18/2007 7:27:18 PM
enter_bttn.addEventListener(MouseEvent.CLICK, buttonCLickHandler);
function buttonCLickHandler (event:MouseEvent) :void {
navigateToURL(new URLRequest("http:www.tnae.net",));
trace("I'm clicked");
}
I've tried adding _self and _parent but I can't get it to open in the same
window.... more >>
embedding fonts
Posted by bossche001 at 10/18/2007 7:16:29 PM
Hi
I have a form with several input textfields. In some textfields it is allowed
that user can input strange chars like çéà etc...
Now when I select those textfields and choose to embed those including some
standard Latin, Num, etc.. chars
It seems that suddenly all other textfields have... more >>
need help rotating a button
Posted by pixelgrinderdesign at 10/18/2007 6:50:14 PM
I'm very new to Flash ans AS3, but here's what I've got:
I need my buttons to rotate on rollover and rollout. I've got it pretty close
to what I want, but not quite.
here's the code:
import fl.transitions.*;
import fl.transitions.easing.*;
homeGear_mc.addEventListener(MouseEvent.... more >>
stopping a movie clip symbol
Posted by johentie at 10/18/2007 6:44:33 PM
hey i am making a flash intro and
i made a movie symbol (that takes up one frame) with actions scripts and what
it does is it scrolls pictures from right to left and there is about 8 pictures
it goes through but the window size fits one picture at a time.
after the last picture slides i ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
[AS2] assign function to mcs dynamically
Posted by skot:317 at 10/18/2007 6:27:48 PM
Is there a way (using listeners, for loop, etc) to use the same function on
multiple mcs - or, what's the most efficient way to do this:
var ar_sq:Array = new Array(11,12,21,22);
//Init squares on a grid
for (i=0; i<ar_sq.length; i++) {
k = ar_sq[i];
this["sq_"+k].selected = false;... more >>
How can I know, using as3, that an object is a Sprite or a MovieClip?
Posted by Lujunq at 10/18/2007 6:27:48 PM
Hi, I'm using a mouse event to check some UI. I was wondering if I can tell,
from the "relatedObject" property of the event if the calling object is a
MovieClip or a Sprite (for some functionality I want to include). The code is
something like this:
private function console_barOut(event:Mo... more >>
Want a challenge? Some meaty ActionScript
Posted by Boxing Boom at 10/18/2007 5:47:41 PM
Hi Everyone,
Spent all day, trying to get the attached script to work, no joy and
certainly, no LUCK.
Can someone see if they can see where I am going wrong here; its a mp3 player
that should use XML list and .as file.
I will attach the code. GOOD LUCK! ;)
Kind Regards,
Boxin... more >>
Interfering Movie Clips
Posted by HonSwe at 10/18/2007 5:16:13 PM
Hello Community,
I can't believe that I have only run into this (what should be a relatively
simple) problem after so many successful AS2 projects.
Anywho, here's the skinny: I have a video screen that I feed vids to with the
NetStream Class that is the same size as my published SWF file... more >>
try catch + dispatchEvent no workie?
Posted by cayennecode at 10/18/2007 5:15:34 PM
I've noticed this in one of my projects and Mike Potters of Adobe. Safari 3
even has a popup which reports the error message. Everytime you visit
http://www.riapedia.com/ in Safari 3, within a few seconds the popup will
display. What's up with that?
[RPC Fault faultString="HTTP request ... more >>
Dynamically author .swf files
Posted by BSpero at 10/18/2007 5:13:04 PM
So,
What I would like to do is allow users to customize some aspects of a flash
file, and then get emailed an animation with their personal touches. Let's say
they can choose a background, a message, and a type of animation. They would
input these options into a flash form, and in return,... more >>
replacing loadBitmap() in AS3
Posted by macandrew at 10/18/2007 4:45:34 PM
according to the migration page in the help files, loadBitmap() has been
removed from ActionScript 3 "because of the new bitmap support in ActionScript
3.0" -- well, what is that exactly? How do you load a bitmap into a bitmap
object from the Library(as opposed to from an external file)? I ca... more >>
Corrupt Flash File
Posted by NateLTheCFDvlpr at 10/18/2007 4:36:46 PM
Any idea what would cause a flash document file to get corrupted repeatedly over a long period of time as someone is trying to work on it and saves it regularly?... more >>
Is this normal?
Posted by Xx)MaveriK[X] at 10/18/2007 4:35:00 PM
Using AS3.
If I do a class to handle Complex numbers, like
class Complex {
public var a:Number, b:Number;
public function Complex(a, b) { this.a = a; this.b = b; }
public function add(w:Complex) { a += w.a; b += w.b; }
}
and do a loop summing up 100000 times, it is 10... more >>
Remote .as file using #include?
Posted by SamCantCode at 10/18/2007 4:21:23 PM
Is it possible to access a remote .as file (from a web url) using the #include
statement in flash (AS2)?
Tried it and I got the msg: "Include paths must be POSIX-style, and delimited
by slashes instead of colons.
... more >>
Inheritance doesn't work with enabled?
Posted by IwannaFlashU at 10/18/2007 4:14:31 PM
I don't know if this changed in flash 8 or I'm just senile but it seems to me
that when I disabled a movieclip, any and all controls inside of that movieclip
(buttons, child movie clips, etc) were also disabled, via inheritance.
I started using Flash 8 back in June and have noticed that it d... more >>
help with errors in code
Posted by arandlett at 10/18/2007 3:46:54 PM
I found this tutorial on Craftymind.com but keep getting the same error when I
run.
[i]TypeError: Error #1006: value is not a function.
at searchxml_fla::MainTimeline/entriesLoaded()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio
n()
at flash.... more >>
Re: XML in Flash Taking out the "space" between words
Posted by GWD at 10/18/2007 3:37:31 PM
I think the XML aspect is irrelevant here... all you want to do is disguise
regular text right? There's probably a more efficient way to do this, but
here's a start anyhow.
var chosenWords="hello it's me";
function disguise(original:String):String {
var parts=original.split(" ");
... more >>
Fading in/out dynamic text using device fonts
Posted by hey_duude at 10/18/2007 3:35:18 PM
Hi,
I am building an application in which (for accessibility reasons) i need to
allow the user to change the font, font size and font color of text in a
dynamic text field, for this reason i am having to use device fonts rather than
embedding fonts. The dynamic text field is within a movie... more >>
Absolute path error
Posted by mhunter at 10/18/2007 3:07:33 PM
In this file I have several movie clips controlling each other using absolute
paths. Then I get to one that just wont work. After a lot of trial and error I
decided to try a relative path and that worked. Is there a reason for having to
use _root to get something to work?
thanks in advace.... more >>
External Embedded Fonts, Dynamic Text Fields, Latest?
Posted by ominous93 at 10/18/2007 3:00:53 PM
Hi all,
I'm stuck in Flash8 land. Mostly because I use mProjector and MDM Zinc to
extend flash projectors and neither support AS3 correctly to date. That said..
Is a Flash8 SWF capable of using fonts embedded in "other" SWFs? I realize
this is an ongoing difficulty and a well known area... more >>
AS3 Confusing!!!
Posted by DJ James at 10/18/2007 1:33:13 PM
I found that to use (what was orignally attachMovie) I had to create a linked
mc in the library, then write a class for it.. which I've done.
The only problem, is that the linked mc that I have created, has to interact
with a function on the main timeline. I've never created my own classes ... more >>
Attached MovieClip
Posted by the_bomberman at 10/18/2007 1:26:19 PM
I have an issue with ActionScript and linking it back to a movieclip. I hope
you guys can help.:grin;
I bring a movieclip in from the library as follows:
on (release) {
if (_root.HaloMouseD == 2) {
HM += 1;
HaloM = attachMovie("HaloM", "HaloM"+HM, HM++);
HaloM._x = _xmouse;
... more >>
Lock movie clips Y pos
Posted by texjgc at 10/18/2007 6:24:13 AM
The message title pretty much says it all. I want to lock a movie clips Y pos, so that the user can only move the clip on the X axis.
Any ideas?
Thank you!... more >>
Clip moves back and forth on stage
Posted by texjgc at 10/18/2007 5:02:14 AM
Hi. Thanks for reading.
Here's my problem;
I have the clip starting out 425 pixels on the X and ending -100 pixels on the
X. My movie size is 400 by 100 (banner size).
I set variables defining the clips "start" and "end". I need the clip to go
from 425 on the X to -100 and then from... more >>
how to bring button back after swf unload
Posted by iamalex at 10/18/2007 12:19:25 AM
I'm hoping someone can help.
I have a main movie with the first script in it on frame 25, where it becomes
active.
I have two buttons that pull in videos and text, depending on which button is
selected.
When either button is selected it will become invisible because they are
behind the s... more >>
Key.addListener(KeyListener) ... Is this a BUG??
Posted by Michealnl at 10/18/2007 12:00:00 AM
I had something strange.. i was trying to make a mini flash game.. but when i
tested it,
strange things happend. Some functions where initialized multiple times.
I finaly found the peace of code that is causing this.
When you test a movie (CRTL+ENTER) in Flash.. and you press in this e... more >>
External Interface call- DESPERATE!
Posted by Catsy55 at 10/18/2007 12:00:00 AM
Hi, I'm trying to create an HTML splash page that will launch my flash
portfolio website- I was told to control the new page with javascript, but when
I do so with the code below, my links won't work- see defective link at
catmerrick.com, and the page I'm trying to load in a flash-specific win... more >>
Thumbnails in a Scrollpane
Posted by Zoltar_Speaks at 10/18/2007 12:00:00 AM
Hey guys having a massive issue with a Scrollpane in Actionscript. Just
wondering if someone wouldnt mind having a look for me please. I have been
working on this for 5 days now with no luck.
Basically the problem is that the thumbnails i am pulling from my XML file
wont sit within the Scr... more >>
line break in input textfield
Posted by bossche001 at 10/18/2007 12:00:00 AM
Hi
Something very strange here...
When I put an input textfield with "mulitlines" on my stage and publish it. I
noticed when I select the field a line break is already set. So typing starts
on the second line.
Any idea?
tx
tom
... more >>
|