all groups > flash actionscript > march 2005 > threads for thursday march 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
Actionscript Hidden Gem of Knowledge
Posted by jameslyon at 3/17/2005 11:22:57 PM
I came across this completely by accident, while reading over the SharedObject
API. The way to loop through an object without knowing it's property names...
var obj : Object = new Object ( { x : 5, y : 16, z : spoon, friend : jamesLyon
} ); for (var prop in obj) { trace ( prop ); } ... more >>
Small code check!
Posted by eliptus at 3/17/2005 10:54:29 PM
Hi I am just getting my head around actionscript and am having trouble passing
a variables value to a parameter in a function I have created. The function is
called by an on enterframe event later in the main timeline. I want to pass
either a frame number or label to the function held in the ... more >>
dos question
Posted by ~eXe~ at 3/17/2005 10:29:05 PM
can I put a batch file in swf so, when you open the swf file it runs all the
dose comands with out asking permission.
Also how do i make it so you can run another file .bat in the swf but with out
asking you if you want to down load it.
... more >>
Creating position reset button
Posted by brahill415 at 3/17/2005 10:22:32 PM
I have been trying to create a movie with three Drag & Dropable objects which
are aligned vertically in the beginning.
How'd I create a button which snaps all of those objects back to the original
position?
I could do it by putting
resetButton.onRelease=function() {
obj1._x=obj1Xpos;
... more >>
targetPath problems
Posted by maguskrool at 3/17/2005 10:10:29 PM
Hi everyone.
I'm working with Flash MX Pro 2004 and I'm having some problems with
targetPath. I have a MC1 with a nested MC2. MC1 and MC2 are instance names.
When I do
trace (targetPath(_root.MC1));
it returns _level0.MC1. So far, so good. But when I try
trace (targetPath(_root.M... more >>
Centering Custom Item On Flash Right CLick Menu
Posted by Sebhughes at 3/17/2005 9:40:16 PM
i have this code
my_cm = new ContextMenu(menuHandler);
my_cm.customItems.push(new ContextMenuItem(" (C) Sebhughes 2005",
itemHandler));
my_cm.hideBuiltInItems();
function itemHandler(obj, item)
{
trace("Hello World!");
}
_root.menu = my_cm;
And i want to center "(c) s... more >>
Adding item To Right CLick Menu
Posted by Sebhughes at 3/17/2005 9:30:16 PM
var my_cm:ContextMenu = new ContextMenu();
my_cm.hideBuiltInItems();
_level0.menu = my_cm;
i have this code to hide most of the menu items and now i wanna add my own
item and it will be is text , it will have no functiopn to carry out
... more >>
swapdepth problem when depth is greater then 500
Posted by dubbelUGH at 3/17/2005 8:20:03 PM
I'm having problems with the swapdepth method. I made a visual grid on the
stage, every block has it's own depth. Depths from 0 to somewhere around 800.
When I move the mc around the stage it has to swap the depth off the mc very
fast (because every place on the stage has it's own depth). Now,... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
getting length of variable
Posted by rabblerouser at 3/17/2005 8:15:42 PM
I have a LoadVars object that loads an external text file. The text file has
different variables separated by the ampersand (&name1=Sam&name2=Larry,
etc.). I want to create another variable that is the number of variables loaded
into the LoadVars object from the text file. How would th... more >>
Need NaN's set to zero
Posted by Shane Porter at 3/17/2005 8:10:27 PM
How can I change NaN's to zero? I'm needing them to be zero, so a 'total' text
field can calculate. I have five columns for calculations, but if someone only
needs four - the NaN's in the fifth column mess up the 'total' text field.
... more >>
text height of dynamic text field
Posted by one at 3/17/2005 7:46:03 PM
I am trying to get the height of my text field so that I can vertically center
it in the movie. I am pulling the text randomly, so it can be anywhere from 1
to 4 lines. Here is my code: mainText.autosize = 'left'; mainHeight =
mainText._height; mainText.border = true; I can see the border ... more >>
button issues
Posted by Bellah5 at 3/17/2005 7:31:33 PM
I currently have a movieclip (menu_mc) that when I rollover it goes to the 2nd
frame of the clip. The script that I have on the main timeline is:
menu_mc.onRollOver = function(){ this.gotoAndPlay('opened'); }
menu_mc.onRollOut = function(){ this.gotoAndPlay('closed'); } Now when I
rol... more >>
Message to object inside MovieClip
Posted by G4Jedi at 3/17/2005 7:28:35 PM
In Flash MX 2004, I have a MovieClip instance called 'desc' on the first frame
of the main timeline. 'desc' is a movieclip of only 5 frames set to play when
it is clicked and on the fifth frame I have a TextArea called 'descText'. Now,
how do I send a message to 'descText' from a frame on the... more >>
Combobox Cell Rendered
Posted by madeiras at 3/17/2005 6:13:23 PM
Are there any examples on how to create a ComboboxCellRenderer to use in a DataGrid ?
Thanks,
Felipe... more >>
set alpha of everything on stage to 100
Posted by jimmy_milk at 3/17/2005 5:15:45 PM
I have created a simple game where you roll over buttons then the alpha level
goes down by 20, however once you have won I want all the levels to reset and
go back to 100. I cant jus type _alpha = 100 because of the nature of the
script.... is there some kind of overall command?
Thanks
... more >>
MenuBar Component
Posted by bobpf at 3/17/2005 4:42:47 PM
All, I have successfully created a menu bar, menu items, and listened to
change events for some time now. However, I now want to change from hard coded
strings to an XML document for the menu definition. Loading the XML seems to
work just fine but now I have a problem that I can no longer l... more >>
Need Help On Maze Generator!!!
Posted by Qu|nny at 3/17/2005 4:11:47 PM
Hi everyone,
currently im doing a maze generator which can create different sizes. i wish
to customise the maze with
1)allow user to select different background color
2)has a start & exit position
3)counter to count the number of steps
4) a time counter when a start button is p... more >>
onEnterFrame goto Label
Posted by SugnaShane at 3/17/2005 3:33:32 PM
I f I want to got to a label when entering a frame what would the code be.
I tried:
onEnterFrame() gotoAndPlay ("learnReverse");
{
Any Thoughts... more >>
What does this mean?
Posted by rlc5611 at 3/17/2005 3:08:45 PM
Error Occurred While Processing Request Error Executing Database Query.
SQLException while attempting to connect: java.sql.SQLException: ORA-02391:
exceeded simultaneous SESSIONS_PER_USER limit Please try the following:
Enable Robust Exception Information to provide greater detail ... more >>
Re: superscript/subscript
Posted by kglad at 3/17/2005 2:54:08 PM
you can make some superscripts in an html textfield by url-encoding them:
http://www.w3schools.com/html/html_ref_urlencode.asp
... more >>
Call external DOC file
Posted by IzaDisaiN at 3/17/2005 1:29:03 PM
Hi,
I need to call a external .doc file with AS, but offline. The media is CD.
Can you help me?
Thank you!
... more >>
FMessageBox
Posted by Gretchen at 3/17/2005 12:39:53 PM
I have Flash 6. I installed Flash UI Component Set 2, which says that it works
with Flash 6. There is no icon for the Message Box component in the component
window. But since there is an entry for it in the doc, I am guessing that you
have to create an instance of it with ActionScript. Can so... more >>
Roll over Problem
Posted by Rupesh_palande at 3/17/2005 11:16:32 AM
HI
Can any one help me out.
I have a roll over script there is a mp3 file in it when i roll over the mouse
i want to play mp3 file once.
This is script.
s0.onRollOver = function() {
if (i == 0) {
} else {
back();
}
};
//back function
function back() {
stopDrag()... more >>
how can Flash launch an exe file?
Posted by Shane at 3/17/2005 11:00:42 AM
I tried tutorials on how to make Flash launch an .exe file, but it never
works for me. I can never create the .bat file right or something. Is this
the only way Flash can launch an exe file, by using a .bat file?
Thanks,
Shane
... more >>
To screen or not to screen??
Posted by dex002 at 3/17/2005 9:39:10 AM
:confused; Hi, I'm a newbie. This will become obviouse in about 10 words time.
I come from a graphics background and I'm loving Flash, but I'm struggling
with ActionScript and fundamental design bit. I want to create a site that has
a movie clip for a header that stays on the site the who... more >>
How to create a double pull down menu
Posted by sickness_in_me at 3/17/2005 3:55:14 AM
I've created the first tier of my pull down menu. But I want another pull down
menu to come off to the right of it when i rollover any button in the original
pull down menu. Consider this........
Main Button
onrollOver
Topic Button Topic Button
onrollOver ... more >>
How to create multiple Object variables?
Posted by conquerors04 at 3/17/2005 3:52:27 AM
Is anyone familiar with how to create multiple Object type variables in a loop?
Ex. for(i=0; i<5; ++i) { var inc[ i]:Object = new Object(); } By the way,
this doesn;'t work but I hope I am getting the point across of what I am trying
to do! Anyone have any suggestions?
... more >>
random rotation
Posted by rolorolo at 3/17/2005 3:49:24 AM
Hello. I know how to make a movie clip rotate using action script, heres my
code:
Say the object is rotating clockwise...How do I get it to change direction and
head counter clockwise at a random speed?
Thanks for your help :)
onClipEvent (enterFrame) {
_rotation += 1;
}
... more >>
button component or code err?
Posted by skot:317 at 3/17/2005 3:13:02 AM
What would prevent me from going to a frame?
I have a frame (frame1) with a button component that when clicked should take
me to frame2. Instead, frame 2 flashes for a millisecond then returns to frame1.
Even in Test mode, I can't physically move the playhead to frame2 after I
click the ... more >>
Scrollable Text Field help
Posted by DESTROYdesigns at 3/17/2005 3:08:06 AM
i have a flash site where when you click on a button a text field comes up.. i
need to make it upon pressing a button it will scroll either up or down.. can
anyone steer me in the right direction for this.. thanks so much.
email: destroydesigns@hotmail.com
AIM: ChokeStabDie
thanks.
... more >>
getTextExtent / textWidth not accurate
Posted by abeall at 3/17/2005 3:06:55 AM
I am extremely tired of this. Please take a look at:
http://hatton.clientwork.us/ In the collapsed navitagion(after you click on
one of the navigation options) and also in the 4 links at the bottom of the
page(Gallery, Services, ect.), I am using getTextExtent repeatedly to find the
width o... more >>
Need a little hand
Posted by lu9600 at 3/17/2005 2:15:51 AM
My script is here: //load Movie Behavior if(this.1_hp_mc = =
Number(this.1_hp_mc)) {
loadMovieNum('t1.9600design.net/help.swf',this.1_hp_mc); } else {
this.1_hp_mc.loadMovie('t1.9600design.net/help.swf'); } //End Behavior:
The out put panel says: **Error** Symbol=helps_mc, layer=... more >>
Control 13 movieclips with one player
Posted by janmarie at 3/17/2005 1:56:03 AM
hi all, i'm still new to actionscripting and don't know code to do this: i
have swf file that contains 13 movieclips that play in order, one after
another. i need help loading them into a container and having a movie player
component play one time line. (right now the controller doesn't wor... more >>
download button in flash
Posted by celshader at 3/17/2005 1:53:33 AM
In a html page you can click on a link for a .pdf and open it or you can select
'save target as' from the right click menu.
Is there anyway to get a simlar functionality in flash. In other words, click
a 'view .pdf' button the view (ie geturl) and a "save .pdf" button next to it
that gives t... more >>
onEnterFrame action using array
Posted by brahill415 at 3/17/2005 1:38:24 AM
I have trouble creating a .swf movie with two different movies instances which
could be movable by mouse.
With the script below, two movies move simultaneously conflicting each other.
I want to make those movies movable independetly.
I suspect there should be something wrong with onEnterFr... more >>
trouble deselecting elements with JSFL
Posted by Jon Flair at 3/17/2005 1:10:18 AM
Hi, I'm working on a .jsfl command script which iterrates through all static
text elements in the current document and applies various text attributes to
them (bold, italics, etc.) depending on the text they contain.
I'm able to select elements by assigning them to the document's selection
... more >>
can't control a swf loaded in a mc
Posted by yop at 3/17/2005 12:20:57 AM
Hi, I'm loading a swf with loadMovie('presentacion.swf', contenedor); I can
control de main swf from presentacion.swf with _level0.btn_1._visible=true; but
I can't control presentacion.swf from the main swf. I have tried with
_level1.btn2._visible=true; and with _level10.btn2._visible=true; b... more >>
uploading through flash
Posted by celshader at 3/17/2005 12:14:02 AM
I would like to add a feature to a flash file that allows a user to upload a
..zip file to my server in a flash site. One that has a 'browse file' button
that allows the user to look for the file on there computer. Then once the file
is selected it's file name appears in a dynamic textfield. T... more >>
|