all groups > flash actionscript > june 2004 > threads for wednesday june 16
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
Where is the "normal mode" for the action scripts
Posted by WizyWyg at 6/16/2004 11:44:21 PM
in the action script panel, there is no option to choose normal mode. Where is
this now? I can't locate it at all.
Im working on a japanese version so telling me to look in the manual will be a
little moot.
Also, can Flash MX files be saved for Flash 5. If Flash MX is this
un-userfrie... more >>
Preloader For External Swf
Posted by sheedy at 6/16/2004 11:40:21 PM
I have a main movie (not a movie clip), "main", that I want to load an external
SWF, "car", into. "Car" has it's own pre loader but I want "main" to wait until
"car" has fully loaded before continuing to the next point.
Can this be done? I have tried using the getBytesLoaded and getBytesTotal ... more >>
Movie Control
Posted by simprini at 6/16/2004 11:39:45 PM
Hi Guys please a litle help.
I have a movie clip loaded on a target on a main movie, now I need to control
and play that movie using a button, and I have the following script on that
button,
on (release){
with (_root.movie){
play();
}
}
but it is not playing the movie as it ... more >>
How to get available methods?
Posted by Blind Villian at 6/16/2004 11:13:18 PM
Hi folks,
I'm a CF developer making the leap into Flash. So forgive me for such a
simple question, but how do you get the available methods that can be set on a
component? For instance, I have the Flash Charting Components. I have been
able to get data back into the Flash object from a C... more >>
Understanding Code: functions & buttons
Posted by jbeltran_mx at 6/16/2004 8:52:38 PM
Hello,
I have the next code attached to a button:
on(press){
a(234);
}
I don't have more code in that movie, just a bunch o buttons with this kind of
code, but each button has a diferent number on the a(diferent number here)
function.
I load this movie with buttons into other mov... more >>
AS2 class & linkage identifier at runtime
Posted by jbeltran_mx at 6/16/2004 8:43:40 PM
Hello,
I want to register an AS2 class to an object that doesn't have a linkage
identifier. Is there a way to set the linkage identifier at runtime? or how can
i register a class to an object that doesn't have linkage identifier?
or could i extend the movieclip class globaly? so every instan... more >>
Applying dif format to every cell in a datagrid
Posted by randy__austin at 6/16/2004 7:55:54 PM
Somebody can tell me how can I apply different format to every cell in a
datagrid column?
i.e. i want to apply different color for every cell text in the same columnn.
thanx in advance for any help
... more >>
Center points and action script
Posted by AJH16 at 6/16/2004 7:50:25 PM
I'm trying to make a rubber band move around on a pin. The problem is that I
moved the center point of the rubber band to be over the pin, and when I use
the translate tool, everything rotates fine. When I use the _rotation
actionscript variable however, it resets to using the geometric cent... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
JPEG Downloading
Posted by Spydir at 6/16/2004 7:09:29 PM
I am wanting to create a slide show of images. I want to have those images
downloaded prior to allowing movie playback. Is this possible? It has been
more than a year and a half since I last used Flash.... :( At the current
moment, I am embedding the images into the Flash file and let's ... more >>
Help with scoreing
Posted by elusn at 6/16/2004 6:00:15 PM
Ok.. I want to make a game with a score system and I have never done this
before.. Can anyone help me out? I want to know how to make it so when it goes
to a certain frame it adds X amount to the score showen ? Could anyone please
help me!?
Thanks , Simon
... more >>
small function to debug.
Posted by JPI at 6/16/2004 5:28:47 PM
this function displays undefined for an objects _x property, despite the fact
that it gets attached to the stage. Is there a syntax error in there?
function loadContainers()
{
for (var i=0; i<6; i++)
{
_root.attachMovie("container", "container"+i, i, {_x: x, _y: y});... more >>
Flash Components
Posted by Apheresis at 6/16/2004 5:12:44 PM
Could someone describe how (or send me to a good site) to extend a
predefined AS 2.0 component?
For example, I'd like to add a function "test" to the "label" component, how
do I do this? I found the label class in the C:\Documents and
Settings\whatever\Local Settings\Application Data\Macromedi... more >>
closing window
Posted by mheddle at 6/16/2004 5:06:50 PM
How do I code a button to close the swf file?... more >>
Can someone help me understand this code?
Posted by Jake Lyman at 6/16/2004 4:28:23 PM
Hello All,
I just purchased and received a copy of Flash MX 2004. I opened it up and saw
that it had a few templates included. So I opened the Photo Slideshow
template. Then I started taking it apart to figure out how they made it,
namely the actionscript behind it. As I started lookin... more >>
setProperty trouble
Posted by Michael Voeller at 6/16/2004 4:22:39 PM
how can I get this to work:
setProperty(_root.mcname, _y, posY * scaleRatio + 100);
"mcname" is a variable containing the name of the movie clip
"posY * scaleRatio + 100" can I use this or does it have to be a variable
any help would be appreciated
... more >>
Event Object - Tree Component
Posted by Carl Ballantyne at 6/16/2004 4:21:15 PM
Hi All,
I have been mucking around with the Tree Component under Flash MX 2004. My
problem is that I want to be able to dispatch events to the Tree Component that
will make it behave like the down arrow key has been pressed.
So a separate button would exist from the Tree Component and when... more >>
Bar Following Mouse / Navigation
Posted by Cintifacts at 6/16/2004 4:11:41 PM
I've been searching for and attempting to have a small bar on a
navigational link bar
to follow the mouse movement. I think this is an actionscript control,
an area that I am
not strong in. Could someone please lead me in the right direction?
Example:
http://www.aimeekearsley.com/
Move your m... more >>
flash bug???
Posted by El_Charly at 6/16/2004 4:02:43 PM
Hi,
Why trace show "undefined"???
trace must show "Hi all".
thanx.
class cPrueba
{
public var Saludo : String;
private var socketXML : XML;
// Constructor.
function cPrueba()
{
Saludo = "Hola, que tal?";
socketXML = new XM... more >>
loadMovie(myString, 7); does not work
Posted by Kevin Carr at 6/16/2004 3:59:19 PM
How can I load a movie using a name that is in a variable?
This works:
loadMovie("test.swf", 7);
This does not work:
_level0.myString = "test.swf";
loadMovie(_level0.myString, 7);
I even tried:
_level0.myString = "test.swf";
loadMovie(String(_level0.myString), 7);
When I run it in d... more >>
droptarget abilities?
Posted by csebes at 6/16/2004 3:44:34 PM
I've never used droptarget, but I'm now making changes to a Flash file in which
someone previously coded some type to appear with this method. I'll try to
describe it to the best of my abilities.
droptarget was used to call a list of instructions that appear line by line
using a variable. ... more >>
poll question: onEnterFrame vs. SetInterval
Posted by Todd Coulson at 6/16/2004 3:29:06 PM
Which does everyone prefer? I know I have tended to use onEnterFrame events
constantly, and then delete the onEnterFrame when finished with it. But I
have been starting to wonder lately if this is the best method. I know for
some things setInterval is probably more efficient, and certainly cal... more >>
Access ComboBox first label
Posted by Modul8or at 6/16/2004 3:17:49 PM
How can I grab the comboboxs first label without using a change function and
selectedItem.
When the combobox is instantiated on the screen and databound to an
xmlConnector I would then like to grab the first label.
Thanks for any help! My actionscript is below.
xmlConnector.trigger()... more >>
instance name, how to get it
Posted by Michael Voeller at 6/16/2004 2:58:36 PM
how do I get the name of the instance of a movie clip?
say I have a movie clip whos instance name is "whatever" , now I know it's
called "whatever" and you know it's called "whatever" but how do I get
"whatever" into a variable in the script attached to that movie?
I'm making a bunch of copi... more >>
bytecode
Posted by Branching at 6/16/2004 2:57:46 PM
how to convert bytecode to actionscript?
88D308000096C40800960F0000D0BCD0B5D182D0BED0B40000640... more >>
problem with asfunction
Posted by biboune at 6/16/2004 2:57:19 PM
Hi,
I am using the asfunction command in a html formated text field. The text that
I want to be "hyperlinked" seems to be that way, but when I click it does not
call the function. Nothing happens. I've looked in the forums, tutorials,
technotes... but I did not find any answers...
here is ... more >>
MC Linkage
Posted by Dark_Flame at 6/16/2004 2:39:05 PM
Hello,
I'm wondering how do you export a movieclip if "Export in First frame" is not checked in the linkage panel?... more >>
asfunction
Posted by biboune at 6/16/2004 2:12:50 PM
Hi,
I am using the asfunction command in a html formated text field. The text that
I want to be "hyperlinked" seems to be that way, but when I click it does not
call the function. Nothing happens. I've looked in the forums, tutorials,
technotes... but I did not find any answers...
here is... more >>
Accessing MC With A Dynamic Name
Posted by Jamin Rathbun at 6/16/2004 2:01:42 PM
I'm having some trouble telling a mc to gotoAndStop while using a variable to
store the name of the mc. It works fine if the variable contains the mc clip
name of "_root" but -- does not seem to work in any child mc's. The script
below is a simplfied version of what I'm trying to do. Thanks fo... more >>
Need help showing progress in Flash 5
Posted by echmrr at 6/16/2004 1:58:42 PM
Hi, I just want to make a simple progress bar that shows percent complete in
Flash 5. Everything I find in my searches for help on this subject is for Flash
MX. Any help would be greatly appreciated!
Thanks in advance,
Eric
... more >>
When window is minimized sound stops (help!!)
Posted by ~Flash~ at 6/16/2004 1:35:33 PM
Well I'm making a website that has a full screen intro... while the intro is
playing it loads the website behind it.. the intro has sounds and so dose the
website.. I want a script that controls the sounds so it only plays on the page
being viewed so if the intro is minimized or behind another... more >>
Preloader to a preloader.
Posted by Simon Jakobsson at 6/16/2004 1:02:21 PM
I need a little help, i suppose this action is pretty simple, but im still a
newbie. =)
I've done a preloader, but it kind of advanced, so I did a very simple
animation to load the big loading, just so the viewer think it's crashed or
something. So i want the big preloader to load the main a... more >>
How to create a new xml attribute
Posted by Fidel Donson at 6/16/2004 12:30:42 PM
Is it possible to create a new attribute in an existing xml tag?
say i have the following tag:
<img id="1" title="img1">meme.jpg</img>
and i want to ad the following attribute:
toBeDeleted="1"
so that it will look like this
<img id="1" title="img1" toBeDeleted="1">meme.jpg</img>
Ca... more >>
remote / external .as files
Posted by pocket-rocket at 6/16/2004 12:22:10 PM
I have a swf that I want to use offline. Whenever I connect to the internet, I
want it to read an
.as file which will be on my server. I tried the include code but whever I
compile the swf, it
will only work with the .as file that I had when I compiled. If I change the
server .as file
... more >>
Autoresize textField
Posted by bossche at 6/16/2004 12:11:38 PM
Hi
I have an empty dynamic texfield in a movieclip. I duplicate this movieclip
several times and each time a different word is put in the textfield. How can I
resize this textfield so the word can fit in the field? I don't want to make
the textfield that big so I'm sure all words will fit.... more >>
Problem with date obj- getMonth()
Posted by Ashish123 at 6/16/2004 11:37:43 AM
Hi,
I am facing one problem with date object. My date textfield textfield displays
month as 5 ..ie MAY..but Actually it should be 6. Date and Year is coming fine.
I do checked my systems date, month also.
And most surprising is its showing the same problem on the other machines
also.... more >>
Executing a string
Posted by Fidel Donson at 6/16/2004 10:46:58 AM
Can anyone tell me if it is possible to execute a string in flash?
say ive got the following code:
for(x=0;x<300;x++){
"mc"+x+".gotoAndPlay(10)"; // this is the string i want to execute
}
eval() does not do the trick, and i am at my wits end.
Any help will be greatly appreciate... more >>
Loading variables from file -HTML formatting
Posted by Baker78 at 6/16/2004 9:08:33 AM
Hi!
I'm struggling with what should be a simple task:
Loading some variables from an ASP file into text fields (works fine), and
formatting the text field (doesn't work).
The workflow is as follows:
1. The flash file loads variables from
http://www.aastad.no/tunet/priser.asp?leilnr=... more >>
Flash and Activex(Ocx and Dll)
Posted by Y2K at 6/16/2004 8:56:49 AM
Hello Group,
I need use Activex (Ocx or Dll) in Falsh Application, but I don't know how
do it.
Is it possible?
Thank's.
... more >>
Attaching script to multiple movieClips
Posted by OniLink at 6/16/2004 8:13:36 AM
I have currently got a chunk of script that Im using for a few movieClips. They
all use identical scripts.
I was just wondering if you can make a single script and attach it to multiple
movieClips? (like with behaviours and sprites in Director).
... more >>
Attachin script to multiple movieClips
Posted by OniLink at 6/16/2004 8:13:24 AM
I have currently got a chunk of script that Im using for a few movieClips. They
all use identical scripts.
I was just wondering if you can make a single script and attach it to multiple
movieClips? (like with behaviours and sprites in Director).
... more >>
how xml to a array?
Posted by pmxgvn at 6/16/2004 5:35:09 AM
please, for some aid.
i have a file xml: "data.xml"
//------------------------
<?xml version="1.0" encode="UTF-8"?>
<data>
<flsdata>
<name> XXXXX XXX XXX </name>
</flsdata>
<flsdata>
<name>YYYY XXX XXX </name>
</flsdata>... more >>
frame to frame navigation
Posted by kmkbe at 6/16/2004 5:06:50 AM
I need to navigate front and back through a scene with the help
of front and back buttons. I need to write a universal script
for these two buttons to go front and back with reference to the
frame labels.(not numbers +10 and -10 from the present frame)
Is there any way to capture the next f... more >>
Using a variable in a target path
Posted by OniLink at 6/16/2004 4:22:21 AM
Im trying to use a variable in a target path with out any luck. Here is my code:
function pace() {
// choose waypoint to proceed to
i = random(3);
way = "w" + i;
// grabbing current positions
mx = _x;
my = _y;
tx = "_root." + way + "._x;" <<<---------------... more >>
import command for .dll (please help)
Posted by r00se at 6/16/2004 3:35:40 AM
i created a game with macromedia flash mx 2004 and published it to a .exe file.
I would like to begin selling my game on the web. However i need to require
serial activation, etc.... I have figured all of this out except for one added
protection which requires me to link a .dll file to ... more >>
Re: A better way to assign functions to many buttons
Posted by kglad at 6/16/2004 3:13:12 AM
for(ivar=1;ivar<10;ivar++){
this["location_0"+ivar].onRollOver=function(){
setPreview(ivar+1);
}
}
p.s. if you have more tna 9 buttons, you'll need to adjust your button names
or the above code.
... more >>
no btn please
Posted by zebra_1 at 6/16/2004 3:01:36 AM
Hello!
I'd like to use this code for a mc when it's loaded and not with a button.
Is it possible?
OnLoad OnEnterframe OnWhat ...
Thx in advanced
//AS from
http://www.actionscripts.org/tutorials/advanced/Tween-Easing_Classes_Documented/
index.shtml
myButton_btn.onRelease = func... more >>
label name not recognized?
Posted by TC5 at 6/16/2004 2:53:15 AM
this script below pointing to a label named spin in a separate scene doesn't
seem to work. What's wrong?
on (release) {
gotoAndPlay ("spin") ;
}
AFAIK it is recomended to point to labeled frames as opposed to frame numbers
no? And scene information is not valid in AS? So I'm pointing... more >>
Law of Cosines - Calculate Angle
Posted by sroberts1 at 6/16/2004 2:38:44 AM
Hello,
I am trying to figure out the angle between to dragable lineto() lines. While
searching on the law of cosines I found this site:
http://answers.google.com/answers/threadview?id=38131
"Yes, now that you have the lengths of all three sides of the triangle,
the Law of Cosines is ... more >>
whats wrong with this AS?
Posted by -] at 6/16/2004 2:29:23 AM
Set Variable: "match_x" = GetProperty ("/match",_x)
Set Variable: "match_y" = GetProperty ("/match",_y)
Set Variable: "word_x" = GetProperty ("/word",_x)
Set Variable: "word_y" = GetProperty ("/word",_y)
Set Variable: "match_h" = GetProperty ("/match",_height)/2
Set Variable: "word_h" = Ge... more >>
Help with a CD Portfolio
Posted by TheMadJack at 6/16/2004 1:11:01 AM
Hello,
I am sure this is one of those questions that someone will look at and say
this is what you need however I have been spinning my wheels on syntax for
sure. I am finishing up a CD Portfolio that will house all of my web work
locally on the CD Rom. However I am having one hell of a tim... more >>
|