all groups > flash actionscript > may 2007 > threads for thursday may 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 31
a new approach : non repeat randomiser
Posted by wAyStead at 5/17/2007 11:56:01 PM
i have been using
on (rollOver) {
gotoAndPlay(2);
}
on (releaseOutside, rollOut) {
gotoAndPlay(11);
}
on (release) {
var randomMax:Number = 15;
var randomMin:Number = 1;
var randomFileNum:Number = Math.floor(Math.random() * randomMax + randomMin);
trace(randomFileNum); ... more >>
stretching image to size of browser using BitmapData class and dawing api
Posted by eljefeloco101 at 5/17/2007 11:44:07 PM
Ive been working from a great tutorial found at
http://www.gotoandlearn.com/download.php on creating full browser flash. It
uses the BitmapData class and drawing api to attach an image to the stage and
have the image tile when the browser window is resized. The problem is that I
want my imag... more >>
trouble loading XML into an array
Posted by jawwinker at 5/17/2007 11:21:02 PM
Hello,
So I have been banging my head angainst the wall on this one. I'm basically
trying to read an XML file, that will then bestored in an array. I got the
first level of the XML heirarchy to work, but I cannot get the second. I
believe that it all stems from the issue of being able t... more >>
attachMovie instance name
Posted by NickTheNameless at 5/17/2007 10:34:53 PM
the code below attaches instances of a movie clip named "item", places it on
the stage as according the instruction in the function name placer, and then
loads images into the clip via an xml file.
as the code stands now, it's placing all the images in the same spot, with the
x coordinate ... more >>
From EXE to Flash. Need Answers Plz.
Posted by Mastadex at 5/17/2007 10:34:30 PM
Currently I have a game that is in 3D using OpenGL. I'm exploring the idea of
posting this on the web, and so far the only Avenues that are open to me are
Flash and ActiveX. I have been down the ActiveX route and its ugly. So I'm
asking you guys for some help.
My Project:
- It is a 3D g... more >>
weird stuff happends when I load my page on the internet.
Posted by bso_71 at 5/17/2007 10:28:52 PM
I'm using flash 8 and I created a web page that functions perfect when I see it
on my computer but when I put it on the web on my sever weird things happend.
Every time the page is loaded it runs differently, sometimes it loads parts,
sometimes it does't, sometimes a fade happends, sometimes i... more >>
HOW DO I FAST FORWARD THE TIMELINE?
Posted by feedmeapples at 5/17/2007 10:25:18 PM
Hi, I'm using this dock project: http://jrgraphix.net/research/flash_dock.php
to make a timeline. Im replacing the icons with year dates 1999 2000 2001
etc... (which i've done)
I have a movie clip that is all the info on one graphic that scrolls up or
down. Understand. Like one long slide, u... more >>
Help!! How do I set a boundry for an MC
Posted by mildmanorflashdesign at 5/17/2007 9:03:52 PM
Hey,
I have a map that I have made dragable and you can zoom in and out. The map
sits under a mask. I would like when a user zooms out(or in) and drags the MC
that it not break the area of the mask (I don't want to see behind the map).
Any suggestions? I am on a deadline so any help would... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
load random swf but not same
Posted by dzedward at 5/17/2007 7:55:26 PM
someone here helped with the code to load random SWF files into a movie
clip...however, i need to make sure it doesnt load the one that's already
playing, that it goes on to a new one everytime..
var swf_ar:Array = new Array("carousel1.swf", "carousel2.swf",
"carousel3.swf");
function lo... more >>
Targeting issue
Posted by Xcelsia at 5/17/2007 6:43:33 PM
Hi there,
I am making a website which includes sliding pages and a popup menu.
The sliding pages are in their own movie clip and the buttons to control this
slide are located in a main menu movie clip both running in the main timeline.
I can control the slider using the following, if t... more >>
Variables & if / else if statements
Posted by Count Techula at 5/17/2007 5:55:46 PM
This is probably a basic concept, and I've been able to get some of it, but I
just can't seem to seal the deal and make this work. I'm pretty clueless with
anything that resembles programming, so I need a little help.
I have a flash file where the main timeline has stops on every frame. Each... more >>
progress bar question
Posted by crila at 5/17/2007 5:46:20 PM
i am loading a .jpg into a holder movie clip. easy enough. but i want a
progress bar that will show the progress then go away when it is complete. im
trying to use an if statement to get it to disappear, but i dont know what i
should put in the if part. here is my code...
one.addEventListe... more >>
Holding Control of external .swf until fully loaded?
Posted by mbodel at 5/17/2007 5:42:14 PM
Hi, would love help with how to control an external .swf that is not fully
loaded (or rather how to stop someone from clicking buttons that effect it
oddly). I'm in Flash MX.
My main movie loads an external .swf into a target using:
_root.pictar.loadMovie("whatever.swf");
The ex... more >>
playing MC on top of loaded SWF
Posted by dzedward at 5/17/2007 5:25:47 PM
how can i have a MC play on top of a loaded SWF. right now, when the MC plays, it goes under the SWF in question, i want it to appear over the SWF... the SWF is being loaded into an emptyMovieClip... more >>
FileReference.download Failing
Posted by ferrisb312 at 5/17/2007 5:04:54 PM
I'm trying to use FileReference.download for a user to download a file.
(obviously)
It's working just fine, for probably 99% of our users. However, for one user
in particular, the "Save As..." dialog box never appears. Does anybody know of
any firewall/anit-virus/other security settings th... more >>
Components are killing my tabIndexes ...
Posted by nudoru at 5/17/2007 5:00:23 PM
I've designing an accessible site. I've got tabIndexes setup for all of my
important UI elements and it's working nicely: I press the tab key and the
yellow box goes where it's supposed to.
BUT
I need to use a v2 textArea component (and maybe other components) on the
site. As soon as I... more >>
Dynamic FLV content path
Posted by Rectallinear at 5/17/2007 4:35:06 PM
I'm currently displaying a Flash Video (instance name = vid) through a movie
clip (instance name = top) in my FLA with this actionscript:
[b]top.vid.contentPath = "0207.flv";[/b]
It works fine. But now I need to figure out how to make the content path
dynamic. A variable will be added to... more >>
alpha mask to fade in dynamic text?
Posted by the queen is dead at 5/17/2007 4:05:12 PM
I know I can use cacheAsBitmap to fade a mask over another movieClip- However I
have dynamic text fields- that are populated by xml data... i'd like to fade a
mask over them onRelease of a button... I've tried putting the text fields into
their own movieClip- however my xml no longer loads... ... more >>
Scroller/Dragger - Need formula
Posted by burritobot at 5/17/2007 3:57:53 PM
I seem to run into this problem a lot. I've done some searching and can't find
the answer. All i need to do is translate the Y position of dragger button to
the Y position of an MC. Here's my code, it's close, but not quite there.
Anybody have more accurate math? Thank you!
var MC_yMin... more >>
disabling everything clickable
Posted by dzedward at 5/17/2007 3:43:15 PM
how can i disable everything clickable once a movie clip starts to play..say
the movie clip is called movie_mc, and its playing on top of a lot of other
information, i dont want the user to be able to click anything in the
background.. so how would i disable anything clickable??
... more >>
can you find the syntax error?
Posted by NickTheNameless at 5/17/2007 3:31:50 PM
my output panel....
**Error** Scene=Scene 1, layer=actions, frame=1:Line 49: Syntax error.
var t.MovieClip = home["item"+i];
**Error** Scene=Scene 1, layer=actions, frame=1:Line 74: Unexpected '}'
encountered
}
Total ActionScript Errors: 2 Reported Errors: 2
my co... more >>
Dynamic thumbnail
Posted by tuboru at 5/17/2007 3:26:35 PM
I'm using this bit of code to create button for a gallery...
this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
this.thumbLoader.loadMovie("thumbnail_button.swf");
Now, even though the button will show, it won't do the animation it's supposed
to do (the anima... more >>
putting a flash site onto disk
Posted by blackbeltjones80 at 5/17/2007 2:47:38 PM
Hi guys,
i have a flash website that i need to put on to a disk so when people load the
disk the flash site will start automatically, the website is made up of loads
of seperate swf files and i'm not sure the best way to go about it.. any
thoughts?
... more >>
Combobox box focus problem
Posted by robertson NO[at]SPAM cruxmedia.ca at 5/17/2007 2:35:23 PM
Hi,
I have a form with combo boxes and text input fields. I am trying to set
the tabIndex, but everytime the tab selector reaches my combo box it gets
stuck there and can't tab any further ... any ideas what would cause this?
Thanks
Tim... more >>
load sequence blues
Posted by ll at 5/17/2007 8:04:50 AM
I am loading (preloading) 2 external swfs like the following (each
script below is built into each swf, referred to by the main swf
script (at the bottom). The problem is that when the main.swf is run,
only the last external swf to load is run, for some reason. I am
trying to run these sequent... more >>
close button not working!!!!! please help
Posted by bso_71 at 5/17/2007 4:34:10 AM
I have a full screen page and I have a button to close the site. I have the
next code but it isn't working!!!! and I don't know why
quit_mc.onPress = function() {
getURL("javascript:self.close();","")
return (NULL)
};
Please help!
Brenda S.
... more >>
Layering external swf's randonly on the next level
Posted by AEREA at 5/17/2007 2:32:46 AM
I would greatly appreaciate your help as I have been googling an actionscript
issue that seems quite simple. I want to layer external swf's using
loadMovieNum with a menu located in a main swf. The current swf must remain as
there are some transitions; the new one should be placed on the top o... more >>
cannot find XML in source of AS code
Posted by domerdel at 5/17/2007 2:05:25 AM
i want to load a file "xml/multimedia.xml" ... i have the sample code below
that i got from a template and want to customize it for multiple swf (this one
being multimedia)
// load XML
my_xml = new XML();
my_xml.ignoreWhite = true;
if (_parent.xml_file == undefined) {
my_xml.l... more >>
Variables
Posted by Ashpotter at 5/17/2007 1:59:57 AM
Hi, i'm new to this forum and Flash. In school , we are learning now to do the
basics of flash like layers, frames, symbols, and tweens. After a person came
in to talk to us about action script, I am very curious about the possibilities
it can generate. I currently am trying to make a game whe... more >>
string change problem
Posted by macluz at 5/17/2007 1:32:54 AM
I want to change a button' name "a1" to number 1 . For example,string "a1" to number "1" ,string "a2" to number "2".
Thank you for your kind help!... more >>
Trying to contol a MC's shape with AS
Posted by cmwpmm at 5/17/2007 1:09:19 AM
highlighting text causes movie buttons not to work
Posted by nehcdet at 5/17/2007 1:05:53 AM
I have a movie with some movieclips and some texts in it. The texts are
selectable, so that user can highlight the texts and do a ctrl-c copy. The
movieclips have onRelease/onPress event listeners, and they work like buttons.
Everything works fine until user highlights the texts. After us... more >>
XML Flash Ad
Posted by idiaz06 at 5/17/2007 12:56:02 AM
I found a flash ad that uses the images from an XML file.
I am trying to make three flash adds all the same height and each with a
different width.
I did that just fine
I have MYSQL database with a table and 5 colums three of which are section1
| section2 | section 3
... more >>
Action cript getting closer
Posted by kelvis97 at 5/17/2007 12:26:04 AM
I have a two frame animation here in Flash,
the first frame of actionscript has what is below,
the 2nd frame has :
gotoAndPlay(1)
This has to be a two frame animation
were motion is mostly dependant on
action script w/ the exception of the model
created in Swift______________________... more >>
Need Help with dynamic ._x with XML thumbnails
Posted by domerdel at 5/17/2007 12:00:00 AM
What i'm trying to do is position the controls MovieClip that will sit snug
next to my thumbnails. The tricky part is, the number of thumbnails may change
from time to time, and I want to be sure the controls are always being snug
right next to the last thumbnail.
See my image sample:
... more >>
AS 2.0 gotoAndStop Issue
Posted by vnorthw at 5/17/2007 12:00:00 AM
I'm having an interesting problem with a flash game I'm creating.
It is a basic space ship shooter game I'm making and my issue at the moment is
with the gotoAndStop function.
I have several labeled frames, at the moment specifically "intro" and "game."
While in the game I want the use... more >>
Help! Increasing/decreasing numerical text
Posted by Bunchman at 5/17/2007 12:00:00 AM
Hi, I'm new to flash, so would appreciate any help. I have a dynamic text box
and two buttons. Within the text box I would like to display a number, starting
at zero. When the up button is clicked I'd like the number in the text box to
increase by one, until it reaches 12. When the down butto... more >>
please help - little question
Posted by einnep at 5/17/2007 12:00:00 AM
Hi,
Does any one know how I can get my externally loaded sound to loop?
this is the code I have put together for the sound:
var shopMusic = new Sound (this);
shopMusic.loadSound ("RedCat.mp3", true);
shopMusic.setVolume (50);
Would be greatful for any help.
Thanks.
... more >>
Memory leak in LoadVars?
Posted by PallavN at 5/17/2007 12:00:00 AM
Hi,
In one of our apps, we've a need to continuously load new data (using
Loadvars) every x seconds from the server. However, I seem to be having a
memory leak issue when doing the same. Consider the following skeletal code:
var myVars:LoadVars = new LoadVars();
myVars.onHTTPStatus = f... more >>
previous button
Posted by greencircle at 5/17/2007 12:00:00 AM
I want to put a prev_btn on my fla where I have 50 frames and I am not sure
how to write script
I made a button symbol and place script on button as
prv_btn.onPress=function(){
updateFrame(-1);
}
and it doesnt work
can anyone help. thanks
... more >>
|