all groups > flash actionscript > march 2006 > threads for thursday march 2
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
smooth halt
Posted by alien4m_mars at 3/2/2006 11:57:39 PM
hi am using this
if (_xmouse>Stage.width-(Stage.width/4) & _root.mcContainer._x>=-602) {
_root.mcContainer._x -= 5;
}
but the movie clip stops in one go, i want it to slide slowly and stop any
idea??
thanks
... more >>
String.replace();
Posted by ogre11 at 3/2/2006 11:38:13 PM
so i see a replace method in the string class but it returns undefined and its not listed in the actionscript 2.0 documentation for the string class
whats the deal?... more >>
Simple script works on 8 not 7 -- WHY?
Posted by # NO[at]SPAM # NO[at]SPAM # at 3/2/2006 11:27:15 PM
I wrote the following script in Flash 8, draws line and text when published for
Flash Player 8:
B = _root.createEmptyMovieClip( "B_ mc" , 1 );
B.lineStyle( 5 , 0x000000 );
B.moveTo( 100 , 100 );
B.lineTo( 300 , 200 );
L = B.createTextField( "L_txt" , 2 , 500 , 200 , 100 , 100 );
L.te... more >>
FPS display
Posted by chopblock at 3/2/2006 10:40:52 PM
ok, there are a few different ideas around the web, mostly all old... and i
know that MM has presented (on stage) and shown swf's playing with a FPS
display.
whats the best code to track and display a playing swf's frame rate?
... more >>
OOP problem
Posted by stephan.k at 3/2/2006 10:37:37 PM
Hi Forum
I have a very basic OOP problem that so far I have avoided and now the project
is getting slightly out of hand. I'd like to figure this thing out in order to
be able to track down some of the bugs.
Here is goes:
In the following example I always get an error stating that on... more >>
movieclip andm to string
Posted by alien4m_mars at 3/2/2006 10:11:56 PM
hi,
i have a listener
mclLoaderListener.onLoadComplete = function(target:MovieClip):Void {
// the target is equal to "_level0.mcContainer.mcSubContainer1"
};
is it possible to get this value "_level0.mcContainer.mcSubContainer50" and
put it into a string variable?
please help ... more >>
can't do comparison test between string and xml text data
Posted by sciweb$$$ at 3/2/2006 9:51:21 PM
Hello,
The following test does not work. The nodeType for the data is 3 (text), and
the values are returned as a 0 or 1, yet I can't do a simple test on that. Any
ideas anyone? I think it is some sort of data type mismatch between xml and
strings in Actionscript.
if (this.firstChild.chil... more >>
Graphing sine waves as on oscilloscope
Posted by cbergeronlcc at 3/2/2006 9:49:01 PM
I've been flapping at this most of the day, and I'm stumped.
I want to show harmonic waveforms in motion, like you'd see on an
oscilloscope. I want to show several of them overlapping, and also show the
interference effect that happens when you add two waves of the same freq (or
nearly sa... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
_lockroot not working
Posted by wistatboy at 3/2/2006 9:45:22 PM
I'm loading a swf with a scrollbar into another swf, but using _lockroot does
nothing to preserve the scrolling. I'm placing the command into the loader
movie and have also tried using it in the loading movie on the assets that use
_root as recommended by some. How can I make this work?
... more >>
mouseListener.onMouseMove
Posted by benflo at 3/2/2006 9:44:25 PM
Hi,
sorry about my english.
I hope someone can give me a hint.
onMouseMove is there any way to get the direction the mouse is moving. When I
move the mouse to the right I need to know the mouse is moving right.
Thanks for your help. Rene
The code I have is:
var mouseListene... more >>
Compare input text to array items?
Posted by finalcutexpress at 3/2/2006 8:50:59 PM
I want to construct an array, which is actually a SharedObject, by allowing
multiple users input their names in an input text field. That name will be
output to another text field later in the movie. This will happen onRelease of
a button. Simple enough. The problem I'm having is that if the n... more >>
problems with attachMovie command
Posted by matt123789 at 3/2/2006 8:36:10 PM
In my movie I tryed to use the attchMovie command. I have all my movie clips
with their linkage AS class names but when i test the movie I get this output...
**Error** Symbol=roll5, layer=Layer 1, frame=1:Line 1: The class or interface
'roll5' could not be loaded.
**Error** Symbol=roll4,... more >>
Controlling the dimensions of a pop-up window
Posted by ChasingDaylight at 3/2/2006 7:53:36 PM
Ok, I have a link in my flash movie, and when it opens the page in a new window
as it is supposed to, I want to control the dimensions of that window because
it is only a text blurb. I have tried a large number of things but the action
script doesn't seem to want to accept javascript resize va... more >>
preloading flv files
Posted by mmay321 at 3/2/2006 7:53:01 PM
i have 9 flv files that load at the same time into a flash movie.
the following code on frame 1, along with the a preloader mc and FLVPlayback
components :
stop();
//VIDEO
//1
mcCoberly.contentPath = "coberly.flv";
//2
mcVictory.contentPath = "victory.flv";
//3
mcRoman.c... more >>
protect embeded fonts?
Posted by Kevin Newman at 3/2/2006 7:25:49 PM
Hello,
This may be off topic, so if it is, please direct me to the correct
place to post this.
I'm looking to make a flash site for a typographer, and I'm wondering if
anyone knows how safe a font is once it has been embedded into a swf file.
The site will be selling fonts, and the last... more >>
Problem with _global variable
Posted by highlander_1 at 3/2/2006 7:04:27 PM
Problem with _global variable
A short and clearer description of the problem
Code in navigation.swf - level0
Frame1
_global.education = false;
Frame1//The code is placed on a button
on (release) {
education = true;
loadMovieNum(education.swf,1);
}
Code in education.s... more >>
Getting Large Image To Appear after Clicking Thumbnail
Posted by sshaw1tx at 3/2/2006 6:58:53 PM
I think this may be an infamous question, but here goes...
I am using Flash MX 2004 and am using thumbnail rollovers that when you click
on the thumbnail, a larger image appears at the top of the screen. The only
problem is that I can't figure out what the code/action script is to get the ... more >>
button loses rollover state when put in movie clip w ascript?
Posted by zuz29 at 3/2/2006 6:18:32 PM
I have a standard button (B1) which is placed inside a Movie Clip (MCB), and
then MCB is placed inside another movie clip (MCA). I want to put an onRelease
event on the button/movie clip (MCB) so that when a user clicks the button, it
will say, link to a site etc.
But every time I enter A... more >>
calling up a SWF from within a SWF
Posted by bendocco at 3/2/2006 6:05:44 PM
I have a SWF that acts as a shell and loads another SWF. This part works.
I?m trying to get SWF #1 to load SWF #2 and start it at a specific label (SWF
#2 has 3 labels within it). This is the part that doesn?t work.
SWF #1 consists of 1 frame and has the following action:
loadMovie("side... more >>
btn rollover/rollout events
Posted by duskofdawns at 3/2/2006 5:50:44 PM
Hello,
I'm wondering if anyone knows how to make the button navigation setup like on
http://2advanced.com/flashindex.htm. more specifically, I was wondering if
anyone could tell me how to create button rollout events, so an animation plays
when the btn is no longer in a rollover state?
... more >>
URL link to download MP3
Posted by DonJuanDon at 3/2/2006 5:44:53 PM
Hi,
I have made an online MP3 player and I want the user to be able to download
any files they have just listened to. I have used the getURL method and link it
to the file (for example: www.somewebpage.co.uk/music/track01.mp3). However
when the user opens the link the browser just opens t... more >>
Re: A little trouble with variables
Posted by Enroid at 3/2/2006 5:33:12 PM
Declaration in _root's first frame: var speechbubble = "down";
Code of button:
on (press) {
this.gotoAndStop (3);
if (speechbubble == "down") {
this.SpeechBubble.gotoAndStop(2);
var speechbubble = "up";
}else {
this.SpeechBubble.gotoAndStop(1);
var speechbubble = "do... more >>
I dont know how to get the arrow to stop
Posted by west3305 at 3/2/2006 4:14:38 PM
Well Here is my problem. I have a little arrrow that follows the on mouse over
effect in my menu for navigation of the site. I would like to have the arrow
stop on the click of a menu item and stay there till I click the next item.
THis is an example of my problem. Notice the arrow follows you... more >>
Returning objects from a Function
Posted by MaxManNH at 3/2/2006 4:10:46 PM
Version: MX2004
Is it possible to make an object the return type for a simple function? Here
is my code. The traces always come up undefined.
var Myobj:Object = {}
Myobj.number = 0;
Myobj.str = "String";
var obj = reObject(Myobj);
trace(obj.number);
trace(obj.str);
functi... more >>
Dynamically altering button hit area sizes
Posted by goldenrobb at 3/2/2006 4:09:02 PM
Hey
I'm making a site for a dj. He wants an audio section containing buttons
which, when clocked, make his music play. Each button is just the name of the
song in question - so for a song called splankface, the button would just be
splankface
Anyway, so he can update it, I've made the bu... more >>
equivalent to split()
Posted by sophistikat at 3/2/2006 4:06:34 PM
hello children,
long time no see, i have a friend working on some flash lite projects and
needs to slit a variable. ie;
var myString = "hello.jonny";
myArray = myString.split(".");
returns:
myArray = hello
myArray = jonny
it has been years since i have opened flash 4, does anyone... more >>
Load an image into a movie but have it be PART of that movie?
Posted by YossarianPickwick at 3/2/2006 2:36:37 PM
HI all,
I'm relatively new to actionscript.
I have a movie that has a series of events that happen depending on the user's
clicking etc. Up until now, I had just drawn a squiggle of lines.
Now I want to load a jpg instead of these lines so I am using loadMovie to do
so.
Howeve... more >>
Seamless Scrolling landscape image
Posted by surfmad1 at 3/2/2006 2:16:28 PM
Hi, I hope someone can help me with this project.
I want to create a seamless landscape imagescrolling across the screen, it
should continually scroll from right to left at a slow speed. When the user
moves the mouse over a button on the right hand side of the screen I want the
image to s... more >>
multi-threading simulation
Posted by John Doe at 3/2/2006 2:10:37 PM
hi:
i have a recursive function to calculate permutations of n elements
Pn = n!
is it possible to simulate multi-threading? for example, launch a video
when the first permutation finish while the rest is calculated in
"background"?
tia for any suggestion,
jdoe... more >>
help me plz
Posted by sensiblemind at 3/2/2006 1:42:55 PM
when i call variable from text out flash as dynamic text it doesn't show this % symbol to me ... more >>
Create dynamic text
Posted by Gauav J at 3/2/2006 1:07:41 PM
I want to create dynamic ext that is dragable + on double click can be edited, like see have text tool in flash n photoshop
can any body help/... more >>
movie clip following mouse position
Posted by shmooney at 3/2/2006 12:52:22 PM
I have a movie clip that follows the mouse position. Is it possible to limit
this effect to only when the mouse rolls over the movie clip?
Here is the script:
onClipEvent (enterFrame) {
if (_root.mainVar == 0) {
homeX = (-_root._xmouse*.08)+700;
} else {
homeX = (-_root.mainVar*.08... more >>
An array of movieclips in a custom class...
Posted by Amy G at 3/2/2006 11:10:24 AM
I have a custom class that extends movieclip called mcGrid. What I want is
to call my class constructor like so
var myGrid:mcGrid = new mcGrid(10, 10);
This part works if I fill the array with integers. But, when I try to
create movieclip instances it does not seem to work.
class Grid ext... more >>
enable/disable enter key
Posted by jonnybennett at 3/2/2006 4:46:45 AM
Is there a way to disable/enable the enter key.
I have been using the following code to listen for the enter key?.
IF certain textfields are focused and a variable called
'alreadyPressEntered!==1' and the enter key is pressed
then a function called 'eBtn.onRelease();' is run and
'alre... more >>
Re: Special Effect
Posted by SEPHlROTH at 3/2/2006 4:32:09 AM
I maybe dumb, but I still don't know how to make those light balls fly and disappear in different directions..........:confused; someone please help.... more >>
remove listeners
Posted by jonnybennett at 3/2/2006 3:00:41 AM
I am creating a user login. I want it so that if the user presses the enter
button when logging in, it will run the same series of functions as if the user
had clicked the mouse on the eBtn m.c. to validate his login. Part of the
series of functions is to attach a m.c. that says 'loading', and... more >>
Need a string, can't find help
Posted by IndianChsPrdctns at 3/2/2006 2:51:59 AM
I need a string of actionscript that will cause this to happen: when the mouse
moves to anywhere in the bottom 80 pixels of a 550 x 400 movie, a bar scrolls
up that has buttons on it. When the mouse leaves this range, the bar scrolls
back down. I attempted to do this (just using buttons) wi... more >>
Seeing movie clip members
Posted by lee_merrill at 3/2/2006 2:43:29 AM
Hi everyone,
I really would like to see movie clip members such as alpha and _x and _y etc.
is there a way to have these shown in the debugger variable window? TextFields
have them visible, filters have them, but not MovieClips...
Lee
... more >>
Shopping Cart --- With Ordered List
Posted by Morning at 3/2/2006 2:27:28 AM
I am trying to make a shopping cart which alows the user to add the items they
select to the cart in real-time.
The problem Im having is making the cart list.
How do I make a list that adds and removes the selected items while at the
same tie keeping it bunched together with no spaces ... more >>
Simple scripting question(this pointer)
Posted by phaze112 at 3/2/2006 12:31:18 AM
I'm fairly new to flash scripting.
I'll start by linking to the template I am using:
http://www.frontpage-templates.org/frontpage-templates/search.html?keyword=&numb
er=9773&x=0&y=0
I am editing it great and I'm learning alot about scripting, the only problem
I am encountering is ac... more >>
Event Listeners and Buttons
Posted by SherwoodClark at 3/2/2006 12:30:27 AM
Can anyone explain to me why addEventListener doesn't work on Symbols created
as buttons but does work on Component Buttons? There is a whole different set
of events for symbols created as buttons vs. component buttons.
Thanks
... more >>
Odd Problem
Posted by redl3tt3r at 3/2/2006 12:01:35 AM
Greetings all,
I have created a loader file the load externa , AS, XML, SWF, and CSS files to
create a presentation. It works great and have never had a problem untill now.
There is two movies in my colletion of over 200 that just dont seem to work.
There is no errors with the actionscr... more >>
PHP mailer not working!
Posted by Toxiccreations at 3/2/2006 12:00:00 AM
Hiya all
I'm taking my first steps in creating an email form with PHP.
you can see the form here
http://www.toxiccreations.co.uk/T_C_SITE/contact_band_design_general.html
Here is the action script i placed on the send button
on (release) {
gotoAndPlay(2);
loadVariablesNum("www.to... more >>
How to tell when mouse is in stage ?
Posted by adrianTNT at 3/2/2006 12:00:00 AM
Hello.
Is there a way or a function so I can see if the mouse is gone outside of the
flash stage?
I have this sample:
http://www.adriantnt.com/temp/mouse_in_stage/mouse_in_stage.html
Here I trace the x and y positions of the mouse on enter frame and write the
position in the text field... more >>
A little trouble with variables
Posted by Enroid at 3/2/2006 12:00:00 AM
Hi
I've got a button which toggles a speech bubble open and closed. The button's
code is this:
on (press) {
this.gotoAndStop (3);
if (speechbubbleup == down) {
this.SpeechBubble.gotoAndStop(2);
var speechbubbleup = up;
}else {
this.SpeechBubble.gotoAndStop(1);
var ... more >>
mewithoutyou
Posted by hoss9009 at 3/2/2006 12:00:00 AM
so i love this site http://www.mewithoutyou.com ... if you go from link to link you see loading occur... i dont know how they do it but i wanna learn how.... is it xml? or as? ... more >>
video
Posted by alien4m_mars at 3/2/2006 12:00:00 AM
hi,
i have few questions about video and flash...
1. can flash play wma, mpeg and avi files?
2. is it possible to stream video?
3. is it poddible to load external video files?
could you also give exaples of code if any of this is possible...
thank you.
... more >>
Need help adding listener to a textfield
Posted by Fransgaard_ at 3/2/2006 12:00:00 AM
I have two text fields, one above the other, which will be pulling in text
dynamically.
The second text field should position itself depending on how high the first
field is. Normally I would use an empty movieclip and som onClipEvent
(enterFrame) to control the second text field, but this... more >>
Percentage bar for buffering streaming flv
Posted by Andra Veraart at 3/2/2006 12:00:00 AM
Hi there,
I'd like to add a percentage loading bar to my swf when buffering a streaming
FLV-file. Is this possible, or shouldn't I bother?
I've been thinking (and trying) along these lines (never mind the syntax,
'cause I'm making this up as I go):
bufferF = function(){
bufferTotal ... more >>
loading multiple images and setting properties
Posted by alien4m_mars at 3/2/2006 12:00:00 AM
hi this is the code am using to load images with a preloader, if i want to load
multiple images say 1.jpg, 2.jpg ....and so on....and set different X and Y
values for each of those images how do i modify this code...
//-----------------------------------------------------------------
//--... more >>
Problem with _global variable
Posted by highlander_1 at 3/2/2006 12:00:00 AM
Code in navigation.swf:
Frame1
_global.education = false;
Frame2
on (release) {
_global.education = true;
loadMovieNum("education.swf",10);
}
Code in education.swf
trace(education);
Ouput window
education = false
Why is education false?after i Pressed the butt... more >>
Linking variables
Posted by Techauth at 3/2/2006 12:00:00 AM
Hi all, I was hoping someone may be able to help
Here goes. Resource list:
- Presentation Main (Main swf)
- technicaldata.swf (external swf)
- enginespecification.swf (external swf)
- engineconfigurator.swf (external swf)
I am having difficulty setting a variable across several mc'... more >>
Displaying time using ActionScript
Posted by ali_kiyani at 3/2/2006 12:00:00 AM
Hello
I downloaded one of the free flash fla available which shows analog clock. I
am currently displaying clock of 4 different locations
New York
London
Karachi
Delhi
When I want to display New York time I simply do the following
mydate.getUTCHours() - 10
To display London a... more >>
Draw a line with actionscript
Posted by ^}{yPeR^ at 3/2/2006 12:00:00 AM
Hi All,
I am trying to create a program in flash that will allow the user to click on
a movieclip and then dynamically draw a line from where they click release the
left mouse button. I am having problems though with what function to use to
detect where they click and where they released.... more >>
Re: mewithoutyou
Posted by Angel*lina at 3/2/2006 12:00:00 AM
Ok
let's say ur main movie is main.swf
On this file u will have the things u wanna keep on all pages.
create another file called home.swf let's say u put all the info u want to be
included in ur homepage .
and create a file called profile.swf
These two should not include the background u... more >>
|