all groups > flash actionscript > august 2006 > threads for friday august 4
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
Problem with Variables
Posted by VaporAction at 8/4/2006 11:50:09 PM
I'm making an interactive chemistry education page and I have a problem.
The user drags different elements onto a scale which displays the weight of
the element.
Based on the weight, the user enters the name of the element into a text field
and hits enter or presses an enter button.
If the... more >>
Need help with RPG
Posted by RDG10 at 8/4/2006 11:17:37 PM
Hi, I'm developing an RPG in Flash 8 Professional. It's from bird's eye view,
the character only rotates, background is the one that moves (the character is
always centered). I've designed the backgrounds but the character walks through
the walls, I've gone through a lot of tutorials but all o... more >>
AS3 - dynamic class names with *new* operator
Posted by Ignitrix at 8/4/2006 7:47:19 PM
I'm using AcrtionScript 3 and Adobe Flash 9 Public Alpha.
I have 50 movie clips in the Library that use Linkage to set the Class name
to: Img1, Img2, Img3, ..., Img50.
I have a parent class named RandImg. I want the constructor for RandImg to
randomly select one of the 50 movie clips from ... more >>
Embedding cue points in FLVs
Posted by bb73 at 8/4/2006 7:23:24 PM
hello,
I'm editing video in Final Cut Pro and need to export my timelines in FLV
format for use in Flash's component video player. I was wondering if it's
possible for the markers in the FCP timeline to export as cue points in the
final FLVs. I know it's possible to put cue points in thr... more >>
Problem using an array of MCs for a menu
Posted by jkettler at 8/4/2006 7:07:28 PM
I'm creating an animated menu using a series of MCs and wrote a function to
reset them back to frame 1 whenever you choose a new menu item. I couldn't get
it to work so I did a trace to see if I could even get the value of the current
MC's frame & I get "undefined". I only have 2 MCs in the ar... more >>
Playing a sound
Posted by CogDev at 8/4/2006 6:46:03 PM
I have a class file used for managing sounds, and it's method
playSound(Boolean) gets called from another .as file.
I have included trace statements for the name of the file from the library,
and the duration of the sound that gets selected.
At runtime, the appropriate string for the nam... more >>
LoadVars Help needed.
Posted by GrannyMaude at 8/4/2006 6:42:07 PM
:confused;
Hi,
I'm creating a LoadVars object in my main movie thusly:
//------------- Loadvars Object ---------------//
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function (success:Boolean) {
if (success) {
_level5.loadedInfo.htmlText = myLV.info;
} else {
_leve... more >>
Trouble with random numbers
Posted by lumpthing at 8/4/2006 6:31:55 PM
I want to create a variable, xSpeed, which has an equal chance of being either
10, -10 or 0. Here's what I've got so far:
xRandom = random(3);
if (xRandom<=1) {
xSpeed = 10;
} else if (xRandom<=2) {
xSpeed = -10;
} else {
xSpeed = 0;
}
So there should be an... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
x10 incremented counter
Posted by Detonate 2004 at 8/4/2006 6:07:24 PM
ok. this is a pretty long chunk of code.
it's x10 basic math but can't figure how to simplify into shorter syntax.
tenmillionsCount =
Math.floor((counterStart-(billionsCount*1000000000)-(hundredmillionsCount*100000
000))/10000000);
millionsCount =
Math.floor((counterStart-(billions... more >>
URGENT: Help with dynamic borders!
Posted by ][odine at 8/4/2006 5:56:56 PM
Hello all -
I DESPERATLY need help with this! I am using the code from kirupa's xml photo
gallery with the thumbnails. right now the alpha changes on mouseover,
fine...but my client is demanding that it draw a border instead. I have been at
this for about a week and have NO idea how to do... more >>
Creating A Variable Using Variables
Posted by tecktalkcm0391 at 8/4/2006 5:23:53 PM
I need to make a loop (which I know how to do) that needs to do this (which I
have no clue how to do):
Take arrayval and add the varaiable from the loop to make a variable name in
which I can use to call them from flashvars
i need something like
var arraycount = 3
for(var c:Num... more >>
need help in setting up a loop
Posted by MediaMan5335 at 8/4/2006 5:17:43 PM
for example:
Having a map with several cities on it. When you roll over the city name, a
movie clip appears displaying that city's info. There is going to be many
cities, so we want to shorten the code using a loop..or an array, i don't know.
I tried naming all the city buttons as 'c... more >>
Simple problem
Posted by nishfat_r at 8/4/2006 4:09:17 PM
I am flash newbie. And I have a problem. Here it is:
I have 2 shapes : shape 1 and shape 2 overlapping each other. What I am trying
to do is when I start the movie, and when I roll the mouse over on shape 1
(initially visible), I want shape 1 to fade out and shape 2 to fade in . and
when whe... more >>
Rotation while dragging
Posted by supasuka at 8/4/2006 3:30:44 PM
Hi everybody,
I want a square to rotate depending on the direction i move it to and
depending on the speed i'll do the movement.
I tried but i'll get only bad results, and i found nothing anywhere. =)
Somebody knows a link to a good tutorial or other advice?
Thank you very much.
... more >>
Binding XML object to XMLConnector
Posted by erussellatwork at 8/4/2006 3:11:32 PM
Is it possible to dynamically bind an XML object to an XMLConnector in ActionScript; and if so, how?
Thanks.... more >>
Variable Movie Clip Name
Posted by Metzen2K at 8/4/2006 1:48:08 PM
Hi,
How can I make a dynamically created movie clip name variable?
var font_mc:MovieClip = this.createEmptyMovieClip("font", 1);
font_mc.loadMovie("fonts/myFont.swf");
I'd like to be able to specify dynamically create "font_mc", like:
var "font" + i + "_mc":MovieClip = this.createE... more >>
External MP3 plays back too fast
Posted by HughisHere at 8/4/2006 1:30:53 PM
Hi,
I entered a previous post and said that my External MP3 was not working with
Flash 8.0. I tried a longer sound wave and what it appears to be that the
sound wave is playing back but at a high speed that is unintelligeble.
Does the MP3 file need to be converted or formated in a certain... more >>
GetVariable() for object members in FireFox
Posted by Paul Newman at 8/4/2006 1:10:37 PM
I am trying to read a variable in my flash movie from javascript, using
GetVariable. In firefox, it works fine for variables, but not for object
members.
Javascript code:
var s1 = flashMovie.GetVariable("stringVariable"); // works in IE and
firefox.
var s2 = flashMovie.GetVariable("objec... more >>
getURL not working in Opera
Posted by Alexander ZT at 8/4/2006 1:09:07 PM
I have a button in SWF film with code
getURL("ziele_de.htm", "destination");
and I have <iframe name="destination" id="destination" </iframe> in my
Index.html
I need to load "ziele_de.htm" in "destination" frame
In InternetExplorer works fine.
In Opera, Mozila it does not work.
Why... more >>
creating function
Posted by pmck at 8/4/2006 12:51:15 PM
I am creating a counter of Baby Boomers turning 60. My script works (a
miraclel!!); see below:
now = new Date();
boomer = new Date();
boomer.setSeconds(0);
boomer.setMinutes(0);
boomer.setHours(0);
boomer.setDate(1);
boomer.setMonth(0);
if (now.getTime() > boomer.getTime() )
... more >>
HELP!!!!! Sending variables
Posted by scog40 at 8/4/2006 12:23:26 PM
I am trying to send variables from a flash form. No trouble for the normal form
variables that sit at the root level, I press my submit button (which is also
on the root level), and they all get sent fine. However, the variables that are
inside a movie clip, are not sent (they are in a movie c... more >>
AS2 class and loading clips
Posted by wrzalik NO[at]SPAM gmail.com at 8/4/2006 6:24:46 AM
Hello!
I've got a problem. Suppose that we have a symbol in a library MCcar
with identifier "car" and assigned AS2 class "Car". This is definition
of the "Car" class:
class Car extends MovieClip {
public x:Number = 0;
public y:Number = 0;
public function Car() {
}
pu... more >>
Horizontal Spacing on dynamic texts?
Posted by JimmySlam at 8/4/2006 1:39:44 AM
Hi friends!
I have created some dynamic texts and i am triying to change the horizontral
space between
letters but it doesnt seem to work, how do i do it??? Do i have to know
something special?
Can i do it using code (AS 2.0)???
The funny thing is that the vertical spacing works perfec... more >>
Recognise word in text block and then change it's colour
Posted by twistedpancreas at 8/4/2006 12:00:00 AM
Hey there helpful people.
Got another doozy for you.
If i have a block of text how can i get flash to recognise a word in that
block of text (when it's clicked) and then change colour?
Will it need to recognise how many characters along the text block, before it
executes a change in ... more >>
No restrict to madness!
Posted by NewGerry at 8/4/2006 12:00:00 AM
restrict (TextField.restrict property) is not reliable!
Using it in a very important Flash Form is actually driving me mad as users,
despite this applied property, are able to enter ";" or "?" or ":" in Email
Textfield on which the restrict property specifies: _root.mcEmail.restrict =
"-_.@... more >>
add variable to a variable..?
Posted by vinnio at 8/4/2006 12:00:00 AM
I want to load a piece of text into a textfield depending on his variable with
the variable id from the button. Can it be done? And how can I fix this? With
this example below flash can't recognized the part of the text he nead.
id = 2
_root.textload = "textfile.txt"
this.onRelease = f... more >>
array of movieclip instances
Posted by anant dhume at 8/4/2006 12:00:00 AM
hello ,
I am developing a drag and drop application
i would like to store all hit areas which are movieclip instances in a array
var test_array:Array=new Array();
test_array=["target1","target2","target3","target4"];
late check which of the hit areas have the user droped some other ... more >>
Scrolling Text Problem Pleas HELP.
Posted by erikcute at 8/4/2006 12:00:00 AM
Hi all...
I would like to seek help...i created a scroller and i wanted the text to go
back to the first paragraph after the mouse rolls out of the control button. I
don't know how to do it please help me :(
on (rollOver) {
tellTarget ("mc") {
nextFrame();
}
gotoAndStop("... more >>
The name of this class conflicts with the name of another class
Posted by extremefun1 at 8/4/2006 12:00:00 AM
I had a problem when compiling my flash movie. I had made an instance from a
class, but the output kept saying:
"The name of this class, XXX, conflicts with the name of another class that
was loaded XXX."
I read a lot of developers have the same problems, when i looked it up:
http://w... more >>
|