all groups > flash actionscript > september 2007 > threads for friday september 14
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
duplicateMovieClip
Posted by Don97 at 9/14/2007 11:50:11 PM
after successfully creating six movieclips, each holds a different image,
within a loop structure that calls duplicateMovieClip,
i am unable to use these movie clips as a button, ie my_mc.onRelease =
function(){}.. does not work, yet debug shows that the
clips exists and i use the name that ... more >>
indexOf associative array?
Posted by cayennecode at 9/14/2007 11:11:38 PM
var arr:Array = new Array( {food:'Hamburger', soda:'Rootbeer'}, {food:'Pizza',
soda:'7up'} );
trace(arr.indexOf(food:'Hamburger'));
?? I know that doesn't work, but is there syntax to make it work, or does one
have to write their own class to handle this?
... more >>
Controlling swf in MC
Posted by greatscott90 at 9/14/2007 10:44:28 PM
I'd like to dynamically load multiple swf files into my movie to speed things
along because the total file is 37 MB when not broken into scenes.
I put a white box in frame one and made it a movie clip with the name
Blank_mc. I then load in the swf using:
loadMovie("First.swf", Blank_mc);
... more >>
IE Cashing the SWF, won't show updated SWF
Posted by ski_geek at 9/14/2007 9:25:04 PM
I have a SWF movie that I am viewing in IE. I uploaded an updated version, but
it is still puling the old SWF. I cleared the files, history, and cookies in
IE. Close IE and then reopened it, but it still displays the old SWF.
Any one know why. Iknow big surprise, I do not have this issue in... more >>
Key Press Anyone? SImple Q?
Posted by Fluffy Puppies at 9/14/2007 9:11:49 PM
Hi, and thanks in Advance!!!
So i have a button that needs to be activated from the key board.
Does anyone have a completed script that will allow the user to activate this
button that has sound attached to it from hitting the letter "A" ?
Also, the sound file that i want to have p... more >>
HELP - serious swapDepths() bug
Posted by crazygringo at 9/14/2007 8:45:05 PM
Hi,
I'm trying to create a basic "windowing" setup in a Flash app. I have lots of
separate "window" symbols, and when I click on each one I want it to come to
the front, overlapping other windows.
So I write something like
myWindow.onPress = function() {
if (this.getDepth() != t... more >>
AS2 CS3: Video Player Class w/ NetStream Video Object
Posted by breez11 at 9/14/2007 8:22:11 PM
is it possible to use the properties of the videoPlayer class with a video
object that is not wrapped in a flvplayBack component. I am having trouble
using the maintainAspectRatio property with my current video object. Additional
question, If you use a flvPlayBack component are you forced to u... more >>
Using string to turn into movieclip
Posted by Mauredo at 9/14/2007 8:03:27 PM
Hello guys!
How do i turn a string to movieclip?
i tried something like this and is not working:
[b]function funcaoMenuCom(choice:Number){
var myMovie:MovieClip = _parent["button" + String(choice)];
}
[/b]
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Search Multiple Fields for Match
Posted by Brentwood Video at 9/14/2007 7:34:11 PM
I have a dataset which filters my XML results according to category. I'm trying
to get it to evaluate more than one field, but can't figure out how.
The code below works to filter on the first <category>, but won't touch the
second. I've also tried naming them <cat1> and <cat2>, then adding ... more >>
Call AS from HTML
Posted by Rylz at 9/14/2007 7:10:25 PM
Is there a way to use an external AS file from HTML? I know I can do basic
stuff with asfunction, but I don't know if what I want to do is possible with
dynamic text...
I have two dynamic text boxes on my scene. I want to load text into one (a
sub-menu, if you will) and program the text ... more >>
NEED HELP LINKING TO FILES!
Posted by maxinak at 9/14/2007 5:26:08 PM
Hi,
I have a pdf in flash that i want clients to be able to download or print.
I put the file on my host server, then created a getURL action to get it. But
then when you click on the link, the flash message pops up restricting access.
Is it possible to embed the pdf in the swf and dow... more >>
Images WON'T display in htmlText...
Posted by LeetGeek at 9/14/2007 5:03:37 PM
Hey Guys,
I am having an issue where an image is being loaded via HTML and a text area
but WILL not display no matter what. If I click on the button that displays the
html text, the words from the p and span and links work fine and will even jump
to the right exactly the same distances as th... more >>
Favorites Bar
Posted by parkeast at 9/14/2007 4:32:15 PM
I'm trying to figure out a way for users to be able to save "favorites" into a
"side bar" with the click of a button.
This doesn't have to be in Flash, it can be just JS or whatever... but Flash
would be great if possible.
TheFWA does exactly what I'm looking for.
Visitors can add thin... more >>
Plotting points on a circle, like a radar.
Posted by Mark.P. at 9/14/2007 3:57:15 PM
Plotting points on a circle, like a radar.
I?ve been working with this one code for a while now that plots points in a
circle where the center of the circle is today?s date and the out edge is 2 or
3 years out. The code places each point the correct distance from center
randomly around th... more >>
creating a list of textfields.
Posted by GregConnTelevirtual at 9/14/2007 1:03:31 PM
How can i create a list of textfields dynamically through actionscript.
I have textfields and they all effect the one before them, so a list would be
useful. I need to be able to delete the first one in the list and them to
reposition themselves automatically this is why i cant use an array... more >>
Using variables to go to a section of a swf
Posted by phej2 at 9/14/2007 5:43:19 AM
Hi,
I have been working on a project that I finally realized could have been, and
will be, easier if I used variables within my AS. So I came home this evening
and started working on my idea and after several hours of it not working,
working part way, and googling like mad I decided to try ... more >>
Nested Movie Clip
Posted by budd101 at 9/14/2007 4:44:48 AM
If I have a nested movie clip, how can I make the parent timeline switch over
to the child timeline?
I have created a learning interaction where the parent timeline contains a set
of math problems and the child timeline contains a clock. When the student is
finished with the math problems... more >>
Creating MovieClips with Loops
Posted by Spray27 at 9/14/2007 4:11:40 AM
I'm still fairly new to AS 3.0 and I'm having a bit of a problem understand
this process:
I have a more complex program where a series of MovieClips are created in a
for loop. I'm writing a function to remove all these clips afterwards, but I'm
not exactly sure how to do this.
I've inc... more >>
AS2 variable
Posted by k1ll1nt1m3 at 9/14/2007 3:56:39 AM
I have a site I am working on that is based on a full flash template. In this
site there is a contact form that has layers for the input fields, actions and
send buttons. The send is a movie clip, in that clip is the send button.
Here is my problem. I can not figure out how to send the... more >>
listing all methods and properties of an object
Posted by Lujunq at 9/14/2007 3:44:50 AM
Hi, in as2 I was able to list "everything inside" an object with a simple loop:
for (var index in myObject) {
trace(index + ": " + myObject[index]);
}
While in as3 this still work for arrays, it seems I can't do it for an object
or a class. Is there a way to do it?
... more >>
AS3: How to access object that's only on one frame of a movieClip
Posted by William0275 at 9/14/2007 2:46:26 AM
Hello,
When you have any object that's only in one frame of a movieClip, it seems
this object is "null" and can't be accessed through code. I find it really
strange and I must be doing something wrong, but what I do is simple: got the
first frame showing something and on mouseOver show a s... more >>
I need help with a clear interval code
Posted by Xxspade13xX at 9/14/2007 1:31:28 AM
Basically, I am creating a side-scrolling game, and I want the character to be
invincible for half a second after they get hurt. I have a set interval and it
works fine for the first time, but then when I hit the object again it doesn't
wait a second. I'm pretty sure that the interval isn't be... more >>
Actionscript getURL function
Posted by eholz1 at 9/14/2007 12:19:57 AM
Hello ActionScripters,
I have a series of html files with embedded flash content.
I have one html file with embedded flash, that always opens a new browser
window
when a button is clicked. I always want the button, when clicked to open the
next html file (along with its embedded flash ... more >>
Getting domain of HTML page that embeds SWF
Posted by Kees Kist at 9/14/2007 12:00:00 AM
I want to know the URL or domain of the HTML page which embeds my SWF file.
Although I can get the domain of the SWF file itelf via LocalConnection.domain,
this doesnt work when the SWF and HTML files are on different servers. A ugly
workaround would be to call a PHP page and let that get the ... more >>
HitTest on movieclip
Posted by smartino at 9/14/2007 12:00:00 AM
Hi, Beginner and trying to get a feel for flash. I?m extremely competent Lingo
programmer but finding Flash extremely frustrating.
I have an external .as script that imports successfully. I put a
mouseListerner inside this .as and I want to detect the mouseDown within a
movieClip I?ve plac... more >>
The code from "help" doesn't work?\
Posted by _EnergiE_ at 9/14/2007 12:00:00 AM
Hi
I'm trying to change the color of the font of the TextArea component to white.
I use this code which I copy and paste directly from "help":
import mx.styles.CSSStyleDeclaration;
if (_global.styles.TextArea == undefined) {
_global.styles.TextArea = new CSSSty... more >>
Transfering data between two pages... getURL?
Posted by ronok_ at 9/14/2007 12:00:00 AM
:confused;
Ok so I have a text box set up which receives the date on a callendar which
you click on. On another page (a seperate html file) I have an input text box
for receiveing this text.
I've been trying to do this using various methods using getURL, but, I can't
get it to work. Th... more >>
about loadingMovie in a third level MC
Posted by baitwens at 9/14/2007 12:00:00 AM
Hi guys, I need an hint if you please...
I'm making a Flash website, the main swf has got an animation in the timeline,
pressing the bottons in the pubblished file you activate this animation that
leads to single frames where I've dragged a MC instance called Loading, witch
I've used to lo... more >>
creatTextfield issues
Posted by GregConnTelevirtual at 9/14/2007 12:00:00 AM
Hi,
I'm trying to create dynamic text boxes through actionscript which essentially
isn't difficult. But i have 2 issues,
1. I don't know how much text is going to be in the box so i want to resize
the box according to the amount of text. I cant resize the actual text as i
need conti... more >>
_scale and getNextHighestDepth();
Posted by pemcconnell at 9/14/2007 12:00:00 AM
Hey guys,
Working on a Flip Book development, and after nailing the zoom / pan feature,
then the double page, front & back animation feature (coded separately) I ran
into a bump. [B]My zoom feature will only rescale any objects that do not have
the getNextHighestDepth property[/B] (All obj... more >>
|