all groups > flash actionscript > september 2004 > threads for friday september 17
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
Code check
Posted by complexity at 9/17/2004 11:37:32 PM
Could someone show me how to code this correctly, I am not sure what I am doing
wrong.
if ((_framesloaded == loadAmount) && (introskip="true";)) {
// ...start the movie
gotoAndPlay("beginmovie");
} else {
Debug output
**Error** Scene=Scene 1, layer=preloader 4 internal main m... more >>
Flash Studio vs. SWF Studio
Posted by knucklenutz at 9/17/2004 11:29:40 PM
I posted this in the general forum and go no action:
Personal preferences? I am researching both. Anyone have any thoughts on
either? Do they essentially have the same qualities and capabilities?
Thanks.
... more >>
Loading swf that contains MediaDisplayer & contro
Posted by myckelh at 9/17/2004 11:26:03 PM
Setup:
A) I have a normal flash doc that contains:
+ ComboBox (dropdown menu) -- loads external swf's in emtey MC using the
following code
on(change){
var vTopic = this.value;
if(vTopic=="FlexService"){
this._parent.LoaderPlaceMC.loadMovie("IndexFlexService.swf","LoaderPlaceMC");
... more >>
volume slider over multple scenes
Posted by japhi at 9/17/2004 10:31:48 PM
I have a site with several scenes and a background music track and I need to
put a volume control with it. I've found several tutorials on just regular
volume controls, but can't find anything about a multi-scene volume control. If
anyone could help?!
thanks! :-)
... more >>
Preload shows up late.
Posted by fahnesjh at 9/17/2004 10:18:30 PM
Hello,
I'm having a problem with my preloader showing up late. When it loads the
movie the preloader shows up after about 50% of the the file has been loaded.
It's like blank screen for 10 seconds and just when you say where's the
preloader, it shows up saying loaded 50%. Why does it take ... more >>
set Focus in popupManager window
Posted by Cat1977 at 9/17/2004 9:22:52 PM
I'm opening a new window containing a form using the popup manager from a movie
and it generally works, but I cannot set the focus automatically to go to a
particular text field in the new window. The text area field receives focus
briefly, but quickly looses it (based on trace statements in... more >>
Referencing MovieClips from a different swf
Posted by vectorman69 at 9/17/2004 9:06:34 PM
Hi!
I'm trying to reference a movieClip which is nested into another movieClip,
in another swf from where I'm calling.
I can access the first nested movieClip, but not the "sub.nested" movieClips.
It is possible to access all the nested movieClips from another swf?
thanks
... more >>
Opening window from dynamic text: syntax help
Posted by beatsociety at 9/17/2004 8:21:00 PM
hello -
I'm loading CSS-styled text directly from a variable into a text box, NOT from
an external .txt file.
I need to launch several size-specific popup windows from this text, and
although i know it has something to do with "asfunction", I cannot find the
correct syntax.
Essential... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to raise an Event from a custom class
Posted by DANEMP at 9/17/2004 7:54:35 PM
I am trying to learn how to raise an Event (metadata) from a custom class
instance using metadata tags. I have created a class file (.as) and a document
(fla). The first block of code is from .as file. I am not happy with the way
I raised the event in the class. Please throw some suggestio... more >>
Select Connection Speed Script
Posted by JohnJ at 9/17/2004 7:23:51 PM
Working on a project in screens. In the beginning the user selects their
connection speed. Then later I need to draw that information to load the
appropriate video. Because this is in screens I'm wondering how you pass on a
variable.
Here is the code for selecting the speed.
// Radio G... more >>
Setting field to a value
Posted by chrism59 at 9/17/2004 7:11:15 PM
I have a value I would like to pass to a hidden filefield on my webpage. It there a way for flash to set this value?... more >>
masked textfields won't show (createtextfield)
Posted by JessicaLS at 9/17/2004 7:04:04 PM
Hi, I'm so desperate for an answer, thanks for reading!
I created a two-column table of dynamic text fields using createTextField in a
loop. Each has the fonts embedded.
I need to mask the movieclip the table resides in because it is a scrolling
movieclip with a scrollbar slider, thus so... more >>
how to write a xml file
Posted by scisnero at 9/17/2004 6:52:53 PM
hello, im lost, i don?t know how to begin, or where to start looking. I have to create a xml from cero. the file has to be created. what class do i have to use. somebody help me, im really lost.... more >>
Load Movie Clip, see process and open movie clip
Posted by dl33 at 9/17/2004 6:47:19 PM
Hey,
I have one flash file (flash1) that is suposed to load another flash file
(flash2). Flash1 is supposed to echo the process in percentage form in a
dynamic textfield. Once Flash1 has finished loading flash2, you are suposed to
see flash2.
Can anyone give me a script of how to do th... more >>
FOR loop & dynamic variable name problem
Posted by MGladstone at 9/17/2004 6:38:26 PM
I have 12 instances of an MC, each named balloon1, balloon2, etc. I want to do
a hit test on them with a FOR loop, but my code won't work, it gives me an
error. Anyone know the proper way to do this?
for(i=1; i<13; i++){
if(dot.hitTest(_root."balloon"+i)){
_root."balloon"+i.play();
... more >>
cycles tutorial
Posted by _EnergiE_ at 9/17/2004 6:15:44 PM
I'm looking for tutorial about cycles (in case I'm using wrong word for it):
the while() { ... ;for() {... ;for...in structures. I'm learning actionscript
2.0 from Macromedia press's book from Derek Franklin and Jobe Makar, but I
really couldn't get much from the lesson about cycles, and it ma... more >>
lottery
Posted by Bellah5 at 9/17/2004 5:12:47 PM
I was wondering how do I generate 6 random numbers and have them appear on the screen sorted in ascending order? Does anyone know how to do this? Please help if you do. Thank you in advance!... more >>
Scripted Masking
Posted by brandon_haslip at 9/17/2004 4:04:36 PM
My main SWF has a blank movie clip named "holder" where I am loading another
SWF(a circle with scripted random movement). Is there anyway to make my loaded
movie a Mask Layer so that it masks a layer in my main movie. Any help would
be greatly appreciated. Thank You!
... more >>
returns undefined
Posted by Mr.ACME at 9/17/2004 3:40:44 PM
how is that possible:
_global.myVar = 5;
trace (_global.myVar);
--> returns undefined... more >>
how to create a movieclip using loops
Posted by Christin-78 at 9/17/2004 2:54:52 PM
for just one movie clip i can du such
_root.createEmptyMovieClip("target_mc",1);
_root.target_mc.loadMovie(mname);
_root.target_mc._x=300;
_root.target_mc._xscale*=0.4;
_root.target_mc._yscale*=0.4;
}
but if i have to create 10 ???
for (i=1; i<=10; i++) {
_root.createEmptyMovie... more >>
Speed improvement for text rendering
Posted by Catalin_Negrila at 9/17/2004 2:36:04 PM
Hello again :)
I need to render a word search puzzle from data coming from an external XML
file. More simply put, I need to display a dynamic array of, let's say, 30 by
30 letters, each letter being centered in its own array cell (think about it
like an HTML table with all the cells having... more >>
why desn't it work
Posted by Mr.ACME at 9/17/2004 1:58:16 PM
hi,
why is this not working??:
var activeMovieClip ="GSPORTFOLIO";
on(release){
_root.activeMovieClip.gotoAndPlay(51);
}
thanks in advance
... more >>
Condition statment ignored
Posted by iaustin at 9/17/2004 1:52:12 PM
Hello,
I'm attempting to cycle through an array one value at a time a display each
resule in a field "field1"
This part of the code functions ok.
My problem arise when I test for a condition in field1 or field2.
The condition statments are totally ignored?
//INT
//cycle thr... more >>
Filling mcs with bitmaps via actionscript
Posted by phon at 9/17/2004 1:49:10 PM
Hallo there,
I have two questions about filling movieclips with bitmap- or jpg-images.
My first question:
Does anybody know if it is possible to fill an empty movieclip with an bitmap-
or jpg-image in actionscript? If so, could you please tell me how to do this?
My second question:
Am I... more >>
Button Click and Stay On
Posted by Jaxbulls at 9/17/2004 1:49:09 PM
I am trying to make a button that when it is clicked it changes to a different
button.
In this case I have a speaker icon that when clicked will mute the sound.
I want a line to go through the icon when clicked so the people know it is
muted.
In my mind this shouldn't be too hard... more >>
how can i create a perfect pie!!
Posted by Sameer Gupta at 9/17/2004 1:03:59 PM
how can i create a perfect pie chart using users entered information to the
user. i'm currently using curveTo and drawing api but i'm unable to figure
out how to exactly calculate the parameters to be passed to the curveTo
function.
curveTo requires four parameter, namely, controlX, controlY, an... more >>
mp3 player: volume slider
Posted by JackFoley3215 at 9/17/2004 1:02:39 PM
I'm making an mp3 player for my site. So far I've been able to get my buttons
to change songs but I can't get my volume slider to change the volume of the
audio. My code is as follows.
On my main timline in my actions frame I have:
audio1 = new Sound();
audio1.loadSound("grow.mp3",fals... more >>
Dynamic JPG slide show
Posted by daidragon at 9/17/2004 1:01:53 PM
Hi. Just getting my head round loading JPEG?s dynamically. I want a sort of
slide show that when you press the next button it loads (there are about 20
images) a JPG dynamically. In the movie clip would I have to have separate
button instances for each image. Normally want I do is have a movi... more >>
Problems loading an external swf into a movieclip
Posted by flamin_mongrel at 9/17/2004 12:39:25 PM
Hi everybody, I'm sure this is one of the most common questions asked, but I'm
going to ask it again anyway. I have a movie that I need to load external
movies into so I am using the loadMovie method to load them into an empty
movieclip I have placed on the stage called holder. Here is the cod... more >>
Singleton & Object Instantiation
Posted by Vani S at 9/17/2004 12:37:48 PM
Hi,
I am java programmer, recently started coding in actionscript 2.0.
I have a singleton class, which loads an xml file in the constructor. I expect
when I call the constructor of singleton class it will load the xml file. But
the reference to the instantiation completes..
My single... more >>
ActionScript RNG / Array problem
Posted by purplejake at 9/17/2004 12:27:48 PM
I am writing a Poker program and wanted to check out ActionScript's random
number generator.
I wrote the piece of code below as a start... (Flash MX 2004 Professional
v7.2)
// initialisation
var cards = 52;
var cardCount = [];
for (var c = 0; c < cards; c++)
cardCount[c] = 0;
... more >>
Error action script
Posted by defjam23 at 9/17/2004 12:21:43 PM
The following script is part of my mp3 player:
The errors that are created are:
**Error** Symbol=Symbol 22, layer=Action Layer, frame=1:Line 731: Expected a
field name after '.' operator.
var _l2 = _l1.isPlaying.stream.. / 1000 /
(_l1.isPlaying.curIndex.onID3() / _l1.... more >>
how to make a disabled button show the down state
Posted by Leopold Hastreiter at 9/17/2004 11:30:31 AM
Does anyone know a simple way to make a disabled button show its down state
until re-enabled?
Thanks in advance,
Leopold
if (_root.newPage<>_root.currentPage) {
if (_root.newPage == "editorial" || _root.newPage == "fashion" ||
_root.newPage == "beauty" || _root.newPage == "advertisi... more >>
Undefined when creating new classes!!
Posted by softyengin at 9/17/2004 11:26:02 AM
Hi everybody, strange thinghappening to me here
if I do
Action1 = new Action();
Action2 = new Action();
then trace them both out the second one is always undefined, ive noticed
thisin for loops also.
It seems to only ever create the first class object
eh?
but if i have ... more >>
Loading up a site in brower
Posted by bjory at 9/17/2004 11:09:12 AM
How can I load up a page in the brower in swf? I had a swf file and a button which will link to a http page. What is the code to call up the http page and load it in a browser?... more >>
Loading avi files externally
Posted by bjory at 9/17/2004 11:01:35 AM
Is there any ways to load up an avi files into Flash externally? Meaning if the
avi files is residing on a directory and not imported into Flash, using Mysql
to point to the avi file position and play from Flash.
Possible?
... more >>
Again... Component skinning
Posted by Jadon1979 at 9/17/2004 10:59:39 AM
Again I ask... can someone PLEASE FOR THE LOVE OF GOD HELP ME!!!!
Im really stuck.
The stupid border on the combobox in 2004 professional.
I hate it. I want to get rid of it!
I do not like the rounded edges or the light gray. It really conflicts with
my design.
No im not talking abou... more >>
Passing variables to PHP script
Posted by psousa at 9/17/2004 10:41:22 AM
Hi,
I've made a flash form wich passes the variables to a PHP script (this sends
mail) using the loadVariablesNum().
It works fine, but with a minor problem. If the field values contain Latin
(Portuguese) characters, such as "?" or "?", the e-mail comes with strange
characters.
Is there ... more >>
How to make Mousewheel work?
Posted by Liraz at 9/17/2004 10:08:35 AM
This is my actionscript to load text into a dynamic textbox, a scrollbar is
attach to the textbox
The instance name for the textbox is InstanceName_0, there is no instance name
for the scrollbar
I am able to use mouse the drag and move the scrollbar to scroll, but can't
scroll by rolling t... more >>
Fun - Debugger
Posted by klamp at 9/17/2004 7:44:42 AM
Hi flash ppl,
I recently updated to 7.2 version of flash pro. There are many improvements
which are easily noticble but it seems all this has come at an expensive cost.
What I mean is that if you are in debugg mode and step in using F6 you will
notice that the yellow indicator which jumps to... more >>
FlashMX -> MX2004pro Script Update Issues
Posted by fantaC at 9/17/2004 7:24:03 AM
Hi there,
In Flash MX used the following to test if the Input Text boxes with vaiables,
contact, email & comment were all filled in:
if (contact ne "" and email ne "" and comment ne "") { RUN SCRIPT HERE } else
{RUN ANOTHER SCRIPT} in Flash MX
The script worked fine.
I have tried usi... more >>
JavaScript / ActionScript - pass variable problem
Posted by miquael at 9/17/2004 6:14:43 AM
help! i've implemented a simple JavaScript call to spawn a new window from
within Flash (on a button).
i have used Collin Mooks sample here:
http://www.moock.org/webdesign/flash/launchwindow/launchwindow-javascript.html
on my button:
on(release) {
getURL("javascript:launchwin(''... more >>
How do I hide and reveal movie clips?
Posted by snoogly at 9/17/2004 5:58:20 AM
I need to make the rollover state of each button invisible when entering a frame, and it to be visible on layer 1 on mouseover of a button. The 'hidden' things are movie clips.
How do I do this?... more >>
Need help with complex preloading
Posted by complexity at 9/17/2004 5:47:27 AM
Hi all,
I have just learned to preload/load in external .swf files, ontop of doing a
normal preload.
My problem now is that I will have introduction movies in some of my
applications, and I am not too sure about adding arguements to my code to cater
for skipping the intro and or waiting ... more >>
Flash as on button to call javascript
Posted by chg00 at 9/17/2004 5:10:21 AM
Hello,
i want to change my actual html/js menu to an flashmenu.
But the problem is that when the user rolls over a button on the right should
appear a flashmovie. For each button a different one. At the moment i use js to
hide and show layers with the different flashmovies for the button.
... more >>
Experienced Sound Classer?
Posted by maxil at 9/17/2004 4:29:05 AM
Hi,
I have three buttons, that load three different mp3s, by streaming them.
When I have tested this functionality in the 'test environment' using the
simulate download option, I click on one button and it begins to download the
tune, I can see the progress in the stream, I then click an... more >>
Loader problems
Posted by mlinaje at 9/17/2004 3:13:49 AM
Has anyone experiments problems loading big .jpg from remote servers via
WebService or XML?
I notice that with MX 2004, the first time you run the page the images aren?t
scaled even in the loader you put scalingContent=true, but next times (when the
images ara in the cache) the images are ... more >>
class instance names and arrays
Posted by sstringer at 9/17/2004 1:24:36 AM
Hello all,
I am struggling with a garbage collection function. In my movie, I'm creating
n-number of instances of an imageviewer class which, among other things, throws
an image up on the stage. (Actually, it's a derivative of Colin Moock's
Imageviewer class from Essential ActionScript 2... more >>
help please: combobox issue
Posted by Jadon1979 at 9/17/2004 1:01:24 AM
The rounded edge of the border is retarded and driving me nutts!
I could actually live with that... just need to change the color of the border.
something rectBorder or some jazz. I dunno what it is specifically cause I
cant seem to find any documentation on it.
There is no site of it unde... more >>
Automatic Slide Show using action scripting..
Posted by REfL3ct at 9/17/2004 12:53:51 AM
Hi guys
Does anyone know how to do a slide show using action scripting for flash
movies??
like i want about 8 different flash banners to be shown on my website at 30
second intervals. much like rotating banners.
where can i get my hands on some sources or tutorials?? Please help!!... more >>
extends movieclip
Posted by Pasko at 9/17/2004 12:35:12 AM
(first, sorry for my english, I am actualy trying to get it better)
I would like to know if its possible and How to create a class that the
constructor create the clip dynamycally, without create two Instance
seperately... exemple :
class Icone extends MovieClip{
function Icone(post... more >>
deactivate buttons when under another SWF
Posted by glaze at 9/17/2004 12:31:12 AM
SWF1 loads to level 1 and it has three buttons.
SWF2 loads to level 2 and although it covers the three buttons, these buttons
are still active if the user clicks in their hit region.
How can I prevent this? Is there a way to block the three buttons underneath
when Swf2 is loaded? Wha... more >>
Scaling a logo
Posted by leslie herrera at 9/17/2004 12:10:52 AM
I created an animated logo and I would like to enlarge it. How can I do this so that the effects and keyframes stay the same etc.? Thanks in advance. ... more >>
|