all groups > flash actionscript > november 2004 > threads for thursday november 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
Pause your flash
Posted by UnrealSem at 11/18/2004 11:05:27 PM
i need to add a script that will pause the flash so that it doesn't leave the
current frame or move on to other scenes! I tried the stop action but that made
the entire flash stop, i want the buttons and stuff to still be functional!
Thanx alot...
... more >>
problems with sounds!!!!!
Posted by bso_71 at 11/18/2004 10:46:27 PM
I'm using the next script to play sounds: mySound = new Sound();
mySound.attachSound('MySound'); mySound.setVolume(30); mySound.start( 0 , 500
); But when I use this script again all my sounds modify their volume or even
when I use the mySound.stop() all my sounds stop!!!! I want to use a ... more >>
Interesting scope issue/Function reference
Posted by ufitzi at 11/18/2004 9:23:43 PM
I'm experiencing an interesting effect I think relates to scope, yet cannot be
completely explained by it.
Here goes:
I am attempting to pass a method of Object1 to the constructor of Object2.
Object2 is basically a wrapper for the LoadVars class, and within the
constructor I define the ... more >>
Loading Variables
Posted by goodcookn at 11/18/2004 9:16:13 PM
Hi all, I?m sure this is super easy but i couldn't find the awsner so here
goes. I?m trying to load a variable from a text file that will control the
position of my movie clip. Right now I have an array with MC to make a slider
and buttons controlling the position of the MC. I want to be abl... more >>
SAFlashPlayer7, full screen problem -MAC-
Posted by macmannn at 11/18/2004 8:28:35 PM
I?m creating full screen SWF animations by using --
fscommand("fullscreen","true"); -- action and linking these animations by using
-- on (keyPress "<Right>") {LoadMovieNum("part2.swf", 0); --.
Animations plays fine on SAFLashPlayers for windows but by some reason full
screen mode doesn?t... more >>
Flash Desktop Application Helpful Hints?
Posted by JAXIMFLASH at 11/18/2004 8:23:58 PM
I'm just starting a new project and was hoping someone could point me in the
right direction. I'd like to create a desktop application. For the sake of
this conversation thread, let's say I wanted to create an MP3 player
application. Now I can create a swf file which opens in the flash playe... more >>
Updating Dynamic Text in a duplicated movie clip
Posted by Crystal Chadwick at 11/18/2004 8:13:28 PM
Hello. In my application I am duplicating a movie clip when a user drag and
drops a specific item. The movie cilp being duplicated is not the one that is
actually being dragged and dropped ( I don't think that makes a difference but
just in case...) . Once the user drag and drops the item a... more >>
add seconds to timer
Posted by g5604 at 11/18/2004 8:12:08 PM
Hi,
i have this game timer which counts down from 20 seconds:
countdown.onEnterFrame = function() {
this.timer = int(20-(getTimer()-startTime)/1000);
if (Number(this.timer) == 0) {
gotoAndStop(10); }
timer = 0;
how do i go about adding time to this counter. For example if a butto... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Unexpected linebreaks in dynamic text
Posted by RavenWorks at 11/18/2004 7:49:46 PM
I've been working with generating strings to go into a multi-line dynamic text
area. Everything works, except that there are linebreaks in unusual places. To
illustrate the point, I even removed all the actionscript and just entered text
in Flash. When it's a Static object, the text looks the... more >>
Load PHP variables in Flash
Posted by cosu at 11/18/2004 7:48:18 PM
Hi,
I would very much appreciate somebody's help with this:
I want to load variables from a .html file that contains some PHP. For
example if I have the following html:
<html>
<head>
</head>
<body>
<p>this is some text and I also have a .swf here!</p>
<?php
$myVar = "aStri... more >>
friction OR easing
Posted by eklemen at 11/18/2004 7:43:57 PM
:confused;
I have a movieclip that I'm trying to rotate with the mouse._x position. I'd
like to use some friction so the rotation doesn't come to a sudden unnatural
stop. I've been attempting to use a "speed" variable that decreases each time
it loops, but have been unsuccessful. Can yo... more >>
friction OR easing
Posted by eklemen at 11/18/2004 7:39:46 PM
:confused;
I have a movieclip that I'm rotating depending on mouse position. I want it
to come to rest with some friction, so it isn't a dramatic, sudden stop. I
know I need to make the integer or rotation decrease slightly each time, but
I'm doing something wrong. Any help? Please!
... more >>
clearInterval problem
Posted by yofof at 11/18/2004 7:38:35 PM
i'm trying to make a news scroller. the text (news) is stored in an exteranal
text field.
i put a dynamic text field on stage and text is loaded into it from the text
field. the sfw is 400 at 200px large.
the scrolling part is working. what i want is to control the scroling by mouse
positi... more >>
Re: Send Variables from flash to another
Posted by _MiLf_| at 11/18/2004 7:27:14 PM
I hope that works, I will try tomorow because I don't have the the file here at home, but tomorow I will try and tell you if this work or not.
By the way, thank you very much.... more >>
CODE HELP
Posted by starguy2 at 11/18/2004 7:05:39 PM
Using this code i can move the red ball from right to left,If i change all the
X,s to Y,s it will move from top to bottom,How can I move it from top left to
bottom right? You know on an angle...:confused;
redball_mc.onEnterFrame=function(){
this._x-=(this._x-blue_mc._x)*.1
}
... more >>
on Handler Error
Posted by MadCityDeveloper at 11/18/2004 7:02:21 PM
Hello, Everytime I run this script: learn_btn.onRelease = function () {
getURL('http://www.hi-techniques.com/synergy.htm', '_self'); }; I get the
following error: Statement must appear within on handler
learn_btn.onRelease = function () { I'm very very very new at this - can
some... more >>
Problem with scriping buttons
Posted by army gd at 11/18/2004 7:00:08 PM
I'm having problems controlling a movie clip with buttons. I have a layer
labled 'screen' that contains a movie clip instance. Within my movie clip, I
have basically a two color circle that is rotating (starts center then rotates
left -30?, rotates back to the center, then rotates right 30? a... more >>
using FlashVars in something other than top level movie
Posted by Burrito at 11/18/2004 6:48:23 PM
Hi, I am using <param name="FlashVars" value="id=1234"> and <embed
FlashVars="id=1234"> to pass some variable information to my flash movie. It
works fine if I use them at the top level of my movie, but I really need
variables in my buttons so I can change the url I am sending the user to whe... more >>
Re: Send Variables from flash to another
Posted by _MiLf_| at 11/18/2004 5:57:35 PM
I tried with LoadVars.send() and Load.Vars.sendAndLoad() and he doesn't work. I
will try to explain how I have the movie. First, I have a movie with 7 buttons
and each of the them have values for variable "bt". For example in the first
button I have this code: on (press){ bt=1; bt.sendAndLoad(... more >>
Combobox Clickable Through a Movieclip
Posted by NomadicDesign at 11/18/2004 5:48:39 PM
Hello,
I am trying to pop up a movieclip to act as an alert box. I am running flash
mx so I do not have the built in function. My problem is that when I create a
movieclip overtop of my scene, you can still select the comboboxes under my
alert box movieclip. I made the movieclip cover ... more >>
button linking issues
Posted by dumphuck at 11/18/2004 5:18:11 PM
:confused;
im hoping someone can help me.
i have a game/story im building and what is happening is when i get a few
questions in, instead of going to the correct scene and frame (as the button AS
outlines) it goes to another scene and frame number altogether.
I have checked, recheck... more >>
subnavigation within a main maovie
Posted by danthewebguy at 11/18/2004 3:53:29 PM
(Main.swf) - main movie with preloader (loader) and empty container (content)
to load external swf's
(home.swf) - first movie loaded after "bytes loaded"
(company.swf) - a movie that is loaded when you click on "company" in the main
navigation which is a mc in movie.swf
(company_about) - a... more >>
Play swf after each other
Posted by drill555 at 11/18/2004 3:08:52 PM
Hi,
I want to play swf after each other in a movieclip. The play list is contained in a xml file.
How to detect the end of the swf in order to launch the next?
Thanks for your help,
Drill ... more >>
Loading Data From ASP
Posted by rangewalker at 11/18/2004 2:57:27 PM
I am writing a Flash file that does a loadVariables from an ASP page. The movie
loops every 10 seconds. I want the movie to display whatever data is being
pulled from the ASP page. I get inital variable to load, but when the data that
the ASP page throws changes, the data in the movie never up... more >>
MovieClipLoader + loading external jpg's
Posted by firehawk2002 at 11/18/2004 2:48:04 PM
I'm currently loading an external jpg using the movie clip loader. The reason
for this is that at the time it's done loading I want to get the size of the
image that was loaded. But for some odd reason the size always comes through
even though it's fully loaded because the onComplete function ... more >>
Do you know how to control an external flash file?
Posted by Medousa at 11/18/2004 2:25:07 PM
Hi, I want to control an external flash file (not an included file) from within
an other flash file. There's just one problem... I don't know how :( I really
hope someone out there can help me. I know it's possible to load an external
flash file into an other and control it. But I have 2 diffe... more >>
next frame question
Posted by g5604 at 11/18/2004 12:30:27 PM
Hi,
anyone know if its possible to ask the moive timeline to progress by a certain amount of frames.
so something like
gotoAndPlay.nextFrame()*4
cheers,
G... more >>
controlling a var in a onEnterFrame???
Posted by stebennettsjb at 11/18/2004 12:07:33 PM
Hi i have a onEnterFrame function inside a movie clip...which contains this
this.onEnterFrame = function() {
if (this.rnd) {
this.dotX = 10+random(150);
redraw();
} else {
redraw();
}
};
what i want to do is change the dotX value (which changes my duplicates _x)
with... more >>
Getting total number of frames of a scene.
Posted by kakas at 11/18/2004 11:38:57 AM
Hi All, Can anybody help me getting the total number of frames for a scene. I
am using 3 scenes. s1, s2, s3. What i want is to get the total number of frames
for s1, total number frames for s2 and total number of frames of s3. How can I?
Regards, kakas
... more >>
randomly slide in
Posted by ethanism at 11/18/2004 10:36:16 AM
Hi, I saw some of the effect is that lots of lots of dots move in from outside
of the stage and then become some sort of picture, how did they do that? is it
like you have to set all the dots to specific position? so if you have a huge
tank picture, and you have to use 10000 dots, do you have ... more >>
mouse movement
Posted by studying at 11/18/2004 10:31:02 AM
i have a movie clip of a webcam made in various angles. how can i make the the
movie clip respond in a smooth not jerky to mouse movement.ie. if the mouse
moves to the left side of the screen the movie clip will then gotoAndStop
(frame label: left) etc.
... more >>
ScrollPane doesnt scroll
Posted by chris bamert at 11/18/2004 10:30:42 AM
I loaded dynamicly a movieclip from the library into a scrollpane,
but the scrollpane does not display the scrollers?
The movie is truncated correctly.
_root.pane.createChild("movie1", "movie1_mc");
Any idea?
Thanks
chris
... more >>
Creating map zoom effect
Posted by shush at 11/18/2004 10:04:14 AM
Hi Iam creating a website in flash and have a contact page, I want when the
user clicks on a map for the map to open up in a pop up window, when then they
click on detailed view i want it to change (zoom out) to another image of the
more detailed map, how can i go about doing this? Thanx
... more >>
XML Memory problem Flash MX.
Posted by PELORCE at 11/18/2004 9:27:53 AM
Hi, i've got a very serious problem with flash using XML in Flash MX. At my
work we've built a flash application that use XML files and load 10 files every
3 minutes. The application need to work all time. When we've done test, we've
noticed that memory usage increase when loading an XML, but... more >>
help me pls :(
Posted by mantz? at 11/18/2004 7:57:02 AM
i've been trying to create an internal cookie in flash (for a login screen), im
doing this because im planning to distribute my product on a read-only media
but i dont want to use any database, instead i want it to be on a cookie file,
but the problem is that i cant make certain function dynam... more >>
Flash Forms
Posted by Liz_w at 11/18/2004 7:02:28 AM
Hi there, I am trying to create a flash form with check boxes, I have no
problem with my text input fields.
Im not sure how to do the actionscript for the checkbox (should I use the
checkbox component or should I create a checkbox?) and I am not sure how to get
that info into into an email (... more >>
why the mask cann't run?
Posted by freegink at 11/18/2004 6:53:30 AM
this.attachMovie("rect","rect",2);
this.createEmptyMovieClip("pic",1);
pic.loadMovie("1.jpg");
pic.setMask(rect);
macromedia flash experts, why the mask cann't run?... more >>
Loading a .swf into a particular x,y coordinates?
Posted by eaglesXXXIX at 11/18/2004 6:47:01 AM
Is there an actionscript which would allow me, upon release of a button, to launch another .swf into the particular x,y coordinates of an html page?
Thanks -
eaglesXXXIX
... more >>
Flash Video
Posted by Neuxs_Ex at 11/18/2004 6:32:58 AM
Hi all.
I have recently started to use Flash Video and FLV file formats into the
player, and I am loving it. hoever how can I break away from the standard flash
Media Playback component and create my own using the same principals with
streaming and all. A tutorial site or something would b... more >>
ActionScript 2.0 newbie - subclassing MovieClip
Posted by tygr at 11/18/2004 6:06:09 AM
Ok, I've created my first class file that subclasses MovieClip and I can create
a subclassed clip using the linkage name and attachMovie. I understand that
and it works. Is there a way to create a sublassed movie clip in a class file
independent of the .fla and linkage names in the library?... more >>
One .swf controlling another .swf...
Posted by eaglesXXXIX at 11/18/2004 6:05:09 AM
I have an HTML page I'm trying to put together whereby I have (play and pause)
buttons at top of screen (controller.swf) and in main body of page, I want to
have another flash file (content.swf) regulated by controller.swf whereby it
would stop/play any animation or audio on page contained wi... more >>
Problem with setMask() and loadClip()
Posted by Aware at 11/18/2004 4:30:43 AM
I have noticed that my movieClipLoader's loadClip content is not masking
properly with a dynamic mask... I have searched the forums but nothing has come
up has any one else come across this issue and if so whats the work around? I
know the mask is working because my 'target' I have created mas... more >>
onClipEvent help
Posted by castlestudio at 11/18/2004 3:34:50 AM
I have a MC that I want to play when a button or MC is depressed with the mouse
and upon release one MC is to pause the the other MC is to reverse back to its
original position. More specifically when button is depressed and held down a
hand at point 'A' moves to point 'B' and stops. When the... more >>
LocalConnection - cross platform?
Posted by GmR at 11/18/2004 3:17:11 AM
I am using Actionscript's LocalConnection routine in swfs that reside in
different HTML framesets to monitor the loading of swf files. e.g., When a swf
in one HTML frameset is loaded, a swf in another frameset responds. It appears
to work well in IE6.
Since I am building this as part of... more >>
Need some expert advice
Posted by H. Jörg at 11/18/2004 2:49:03 AM
Hi,
my flash animation has 200 frames. My Preloader loops from frame 1 to 10:
if (_framesloaded == _totalframes)
gotoAndPlay (11);
else
gotoAndPlay(1);
at frame 20 I placed a MovieClip (instance name: mcClip) with following
action script:
mcClip.loadMovie ("mymovie.swf... more >>
DHTML DRAGGABLE WINDOW?
Posted by hackysack at 11/18/2004 1:53:04 AM
hey, Im just wondering if it is possible to launch a dhtml draggable window (aka chromeless i think :) ) from flash? if some one could help me id be really great full....
thanks... more >>
Embedded Video Component and seek - FLVs/Flash Video
Posted by katieluv at 11/18/2004 1:32:07 AM
Anyone out there doing any extensive work with the video componenet and
progressive or streaming FLVs? I am working on a scrubber for the video and
have run into many seek() issues which I was wondering if anyone has
duplicated/found work arounds for. 1) Seek() to a specific time never seeks ... more >>
Mystery about button wierd responce??! thx
Posted by The RPG MAKER at 11/18/2004 1:22:08 AM
onClipEvent (enterFrame) {
if (Key.isDown(97)) {
if (_root.sq._visible == 0){
_root.sq._visible = 1
}
else {
_root.sq._visible = 0
i did put this on the movie clip, all in order, and when i press the button,
sometimes it visible=0 sometimes it doesent listen??
co... more >>
Print a textfile
Posted by maulia at 11/18/2004 1:15:11 AM
How do I achive printing a textfile (the file is located in the server). I
don't want to load the textfile to a dynamic textfield, and I don't want the
user to save/open the file and click on File->Print. Just want them to straight
away opens up the printing dialog of that file. The file is... more >>
Passing Methods as parameters to functions
Posted by manuelbobby at 11/18/2004 12:39:15 AM
Whats the appropriate AS2 syntax for passing method pointers to functions?
example scenario: -------------------------------- function
method_to_pass(somenum:Number) { trace('Number thrown:' + String(somenum));
} function catch(function_ptr) { var number_to_throw:Number = 99;
... more >>
Multiuse function syntax
Posted by Epic Union at 11/18/2004 12:19:38 AM
Is is possible for a function to be triggered when it is called, as well as
when an event is triggered, all in one statement? This would eliminate making
two functions that do the same thing. See code for an example:
//this is what i have to do right now
theButton.onRelease = function(... more >>
|