all groups > flash actionscript > january 2006 > threads for thursday january 12
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
scripting a button
Posted by dbenedetto at 1/12/2006 11:11:10 PM
i have a very simple scene, 4 textboxes, an input box and a button.
when the user clicks the button i need a random number (0-999) w/random len
decimals (0-3) displayed in the text box.
i wrote AS for the button.
nothing i've tried so far works.
david benedetto
:frown;
... more >>
!!please help!! - createClassObject(...) doesn't work
Posted by danny at 1/12/2006 10:53:38 PM
Hi,
How can i attach my component on-the-fly without putting it on the
stage? createClassObject(...) doesn't work :-\
thank you... more >>
dynamic text box scrolling and css
Posted by w_allen at 1/12/2006 10:39:06 PM
I'm having some problems getting my css to fully load into a dynamic text box.
I'm trying to combine the css tutorial from the actionscript dictionary (MX)
and a basic scrollbar tutorial from actionscript.org
(http://www.actionscript.org/tutorials/intermediate/scrolling_a_text_box/index.s
h... more >>
NaN
Posted by ni9e at 1/12/2006 10:38:00 PM
Any help on this would be appriciated.
How do i set a variable from NaN to 0? Currently im trying to use an if
statment to check and see if the value is NaN...But it doesnt seem to do
anything. On the main timeline where i instanciate my variables i set
PresCloseRate = Number(0).
if (_... more >>
This is probably really easy but...
Posted by whaleyboy at 1/12/2006 10:37:46 PM
Is there a way to reference a variable that is inside an embedded .swf from the
host html file? Basically I have a html file which I want to add flash
'switches' to and then when a submit button is pressed the html file POST's or
GET's the variable in the switch (either ON or OFF) object...
... more >>
control external swf movie *problem*
Posted by xcentricity at 1/12/2006 10:25:25 PM
I am designing a flash-based website and have come up against the frustrating
problem of using a menu to control the activity of the page:
main.swf
---loads---
1.........menu.swf (with the loader component)
2........content.swf (with loadMovie into movie clip 'contentplane' as:
content... more >>
setInterval being called more than once...
Posted by Stevie_R at 1/12/2006 10:20:02 PM
I have created a lab where students need to manipulate beakers, wires,
electrodes, etc. They do this by pressing buttons which cause the various
components to appear or disappear (using setInterval) on the stage.
The problem is not the first time the students do it (for the first beaker),
... more >>
Problems looping an FLV using cuepoints
Posted by ATNO at 1/12/2006 9:50:25 PM
I made an animation for my company's website using an FLV via an FLVPlayback
component instance. I have working code that gets it to loop, but there is a
small seconds hesitation between the end and the beginning of the playback
which I'd like to get rid of (the individual frames were designe... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Finding All Instance Names
Posted by kurtsprinzl at 1/12/2006 8:58:56 PM
Is there a way to get an array of all instances used in a Flash file? I've
looked at a number of different places, and no thread speaks directly to this
issue.
I would like to be able to find all instance names in the file, but if someone
can tell me how to find the children of a certain ... more >>
Keep properties on a dynamic loaded image
Posted by t-hviid at 1/12/2006 8:46:45 PM
I load a picture dynamic and it works fine. But im not 100% sure that it's keep
the properties of the picture. Here are the code. :
_root.presentation.billed.createEmptyMovieClip("billedHolder", 1);
_root.presentation.billed.billedHolder.loadMovie("billeder/produkt_"+(random(2)+
1)+".jpg");... more >>
sendAndLoad to PHP Load Problem
Posted by cxlink at 1/12/2006 8:35:32 PM
I've been working on this for a while. I have used loadVariables before but not
sendAndLoad.
Here is my Action script.
----------------------------------------------------------------------AS--------
-----------------------------------------------------------
function onSubmit() {
... more >>
How to gotoAndPlay frame in next scene
Posted by WizyWyg at 1/12/2006 8:23:58 PM
I have a scene called "preload" - which does my preloading for my flash
project. At the end of the preload, is a movieClip on stage that plays and when
its done, it supposed to go to the next scene of my flash project
My Scenes:
preload
animate
finish
The action script in my las... more >>
Boolean Dilemma
Posted by SamCantCode at 1/12/2006 8:22:06 PM
I am using Flash 8 Pro. I have one input field (inputNum), one output field
(outputBool) and one enter button (enterBtn).
If I publish the following code for Flash Player 7 it works just fine (type in
any number, press button, and you either get true or false).
But if I publish the same code... more >>
problem with xml.onload function
Posted by dangola at 1/12/2006 8:08:53 PM
Here is the class file i am using
import mx.remoting.*;
import mx.remoting.NetServices;
import mx.utils.Delegate;
class ProcessFlash
{
public static var m_FileList:Array = new Array();
public static var vInitialDirectory:String;
function Init(szDirec... more >>
finding element in an Array
Posted by stephan.k at 1/12/2006 8:00:27 PM
I would like to isolate the extension of a fileName. I assume I have to change
the string into an array and then find the position of the dot and then slice()
the array starting from that point and then turn the array back into a string.
Is there an efficient way to find the position of t... more >>
System.setClipboard and line breaks
Posted by Fullmanator at 1/12/2006 7:54:10 PM
I'm trying to copy a string of text with line breaks built in (cause it's kinda
ridiculous to copy a long line of text).
However, when I try chr(13) or \r, it fails, often showing a box where that
command is located once it's pasted into, say, notepad.
Does anyone have any ideas on how I... more >>
Problem with _Visible and drag and drop.
Posted by LordOfGood at 1/12/2006 7:52:51 PM
Ok heres my problem im making a small game where the user must drag a bucket
over a fire to put it out.
The fire is a Movie clip ive created myself as is the Bucket.
The bucket movie clip contains a button which contains the attached code.
The problem i have is when i test it i can drag t... more >>
Flash web cookie
Posted by hollywoodbb at 1/12/2006 7:25:24 PM
I don't know if anyone ever tried this before but i have a site that has
language capabilities. So you can pick the language of your choice to enter the
site. Below I listed the code that I used. The problem is that when i tested it
online, it doesn;t seem to wanna go directly to the language ... more >>
Clean scripting prob w/ buttons
Posted by jctw769 at 1/12/2006 7:15:42 PM
I have a swf I'm trying to keep as clean as possible. Ie. the code should
exist on the actions layer at the _root level only (right?). Obviously I don't
want to place code on the button instances themselves.
Problem: Inside my main movie instance accounts_mc, I have a home button
home_b... more >>
Extending the MovieClip class
Posted by faajohn at 1/12/2006 6:17:11 PM
I am trying my hand at coding my own class by extending the MovieClip class. My
question lies in how best to manipulate the created class (scale, position,
etc.). I have the following code that creates the class, and loads an image
from a local server. All works great.
--Code
//bbfMovi... more >>
Images in arrays?
Posted by finalcutexpress at 1/12/2006 5:34:09 PM
I have visited websites where a different animation, photo or other image loads
with each visit. Is this done by storing the images in an array and randomly
accessing them? If not, how would I do that?
... more >>
running javascript from getURL
Posted by dubya at 1/12/2006 4:13:33 PM
hey everybody! :)
this line of code used to work, in player 6:
getURL( "javascript:window.open('cube.html','name','width=250,
height=250');void 0 ;" );
but player 7 no like. nor recent versions os browsers
beside fscommand - which isn't an option on my company's technology - how c... more >>
Mask and dynamic textfield
Posted by Nixy at 1/12/2006 4:11:44 PM
Hi
I have a mask. Under this mask, there is a dynamic textfield and a movieclip.
I try to call the textfield and set it's content (text), and I also try to call
the clip to gotoAndStop("specificLabel"); Nothing works. If I remove the mask
all works.
Any idea!
... more >>
static functions globally accessible?
Posted by stephan.k at 1/12/2006 3:32:38 PM
hello forum
I am new to static functions. A simple question: How do I make them globally
accessible. right now I need to import the class on the top of the frame of
every movieClip to make this work. Is there an easier way to make a static
function globally accessible so that it doesn'... more >>
Create popup with external js file
Posted by hollywoodbb at 1/12/2006 2:33:54 PM
Is there a way in which you can create a popup window in flash that uses an
external flash javascript (js) file. So instend of putting the code in the HTML
it will be understood in the js file when it is called from the main swf. So
basicly no html code is need to create a fixed popup window... more >>
Menu Problem
Posted by Ketchme at 1/12/2006 2:24:56 PM
I have created a drop down menu with several drop down menus within in. I have
it set where the submenus are visible when you 'rollover' the main menu option.
It works fine..but just on the first main menu option you rollover. In other
words, all main menu options work correctly. As long as... more >>
MX Combobox problem in Flash 8
Posted by jeremy at 1/12/2006 2:01:00 PM
ok, this is a little messy, but can anyone else confirm this? it seems
to me to be a bug in Flash 8 (though i havent tried in mx 2004 pro)
I have an old movie made in Flash MX that contains about 15 frames.
compiled in Flash MX, it works great, compiled in Flash 8 however, the
actionscript in ... more >>
Deleting a scene problems
Posted by kgui at 1/12/2006 1:22:26 PM
I've made a movie with 3 scenes. Each scene does have a prevScene and a
nextScene button.
Everything works fine! And I can browse through the scenes, back and forth.
When I go to the 'scene panel' Shift+f2 and delete the middle one (scene 2).
Browsing will not work anymore.
I can go from... more >>
Passing objects from Servlets to flash movie
Posted by nvinod at 1/12/2006 12:11:21 PM
Hi,
I am trying to pass an object say an Array object or a collection object from
a servlet to a flash movie. Could someone help me on this? I know I can use
LoadVars and XML objects. XML objects I know I have done with it,passing XML
objetcs between. But in this case it is an Array object... more >>
Adding days to my counter
Posted by onlink at 1/12/2006 11:42:48 AM
Do you know how I would add days to this tutorial:
http://www.flashkit.com/tutorials/Actionscripting/Countdow-Jason_Ro-634/index.ph
p ? I expect it would be something like:
days2 = 31-days;
then:
timetil12 = (days2+":"hours2+":"+minutes2+":"+seconds2+" left until 12AM,
Thursday the ... more >>
Misbehaving button!
Posted by caroline elisa at 1/12/2006 11:11:23 AM
Hi,
I am having problems with a flash movie which links together various swfs by
loading them on different levels. a button which i have copied and pasted into
all 10 swfs is behaving strangely in just one of them (loaded in level10). the
button takes you back to the menu like this:
... more >>
avoiding reloading movies
Posted by caroline elisa at 1/12/2006 10:41:56 AM
Hi there,
Bit new to actionscript. I was hoping someone could help...
I have created a menu which links together various swfs by loading them on
different layers. i.e. the first frame of the menu contains the following
script:
loadMovieNum("intro.swf", 1);
loadMovieNum("setloc.sw... more >>
Wysiwyg vs. AS
Posted by mr.eddy at 1/12/2006 9:50:43 AM
Just wasting time here wondering whether to make my graphical elements the graphic designer style or the nerd style. Give us your two cents on the subject and what are the deciding factors.... more >>
How do you make an "anchor"?
Posted by GoofBoy at 1/12/2006 8:41:27 AM
I am Using Flash 8,0 Pro.
I would like to simulate the behaviour of an HTML anchor.
I hope I am making this much harder than it needs to be.
I have a swf running inside another swf with a couple of scenes. I know the
absolute position of everything on the web page.
If the user shr... more >>
loading a movieclip to the stage
Posted by Mr. E at 1/12/2006 6:26:31 AM
i have sat here all day trying to use the Depth Manager class new with Flash 8
but to no avail. I'm new to flash and its just above me. But all I really need
to do is get one movie clip to a certain depth. I have a clip called 'my line'
at 0 depth and one called 'cursor' at -16383 depth when i... more >>
Fading External JPEGs
Posted by archibald2 at 1/12/2006 5:25:05 AM
Currently I have a project that loads external JPEGs into a Movie Clip Loader
object. The movie clip symbol functions as a slide show with photos advancing
with forward and back buttons.
I would like the JPEGs to fade in and out as they are loaded and unloaded.
Any help is much apprecia... more >>
Best way to code this?
Posted by sampurtill at 1/12/2006 4:58:27 AM
Hey there,
I'm trying to figure out the best way to code this little application. All it
is going to be is an application that takes an image and fills the users screen
and moves according to the _xmouse and _ymouse. I'm just wondering what the
best way to stop this would be. I am going to... more >>
controlling external swfs
Posted by ishmu at 1/12/2006 4:27:51 AM
is there a way to have one swf control another in the same html document?
for example, i have a movie A at the top of the page that contains the links.
at the bottom, i have a movie B which is blank at the beginning, but on
selection of a link, I want it to display text. I was planning on us... more >>
Bug in Window Component
Posted by Fenin s at 1/12/2006 4:00:08 AM
I am experiecing a very weird problem with window component.
There are two movieclips on stage.One with an instance name "mymov"
,and another one with an instance name "dummy".
"dummy" has a class file ButtonManager.as attached to it through
library.
On root timeline i have the following... more >>
Measuring Line
Posted by Jadeivy at 1/12/2006 3:26:20 AM
I'm looking to develop a measuring tool, where a picture is brought
up(loadMovie), and the user has the ability to place a cursor at one end of an
object in the picture then click the other end of an object and a line is drawn
between the two.
An example would be a picture of a car (profil... more >>
Getting the number of vars in the loadvars obj
Posted by Nixy at 1/12/2006 3:24:30 AM
Is there a way to know the length of the loadvars just like an array. I know I can use a while, but is there another method to do that?... more >>
Very Strange Problem
Posted by Deeboz24 at 1/12/2006 3:22:46 AM
It seems I have some sort of curse on my current project. I wish I could
upload the FLA so you could see what I mean but I guess I'll have to explain
it.
I made a frame by frame animation of a character taking a step and wanted to
make it so the legs could swap depths after each step s... more >>
A way to export contents of stage during runtime?
Posted by mortara at 1/12/2006 2:29:40 AM
Is there a way within actionscript, or more likely with a 3rd party extension,
to export the contents of the stage during runtime... so that for example i am
making a little drawing application, i can save my drawing out as a JPG, SWF,
or something similar?
thanks for any help,
jm
... more >>
picture slideshow
Posted by felisan at 1/12/2006 1:21:52 AM
hi everybody.
i've made a simpel picture-scroller - a button makes it possible to
scroll through som pictures, and when clickin on one of these pictures,
some text about that picture appear.
i've uploadet it here:
http://kunde.artproduction.dk/test/scroll_test02.html
it's quite simple:... more >>
Duplicated MovieClip Bugs
Posted by OmniFlash at 1/12/2006 1:18:11 AM
First off, this is a game, you move your character through levels, open doors
and the like...
Now, I found bugs after using the #include command to "reuse" code that I use
a lot...(since _global functions don't quite cut it)
Everything work fine, you move you do stuff and all that...
To ... more >>
HitTesting(again)
Posted by FlashIsTheCoolest123 at 1/12/2006 1:11:47 AM
I have the following code to try and bring me to the next level of the game,
but it doesn't work, can someone help me?
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.Exit)) {
gotoAndPlay(4);
}
}
... more >>
I need a delay
Posted by alanwallace4 at 1/12/2006 12:46:24 AM
Hi,
For a site that im doing I would like to add a delay of a couple of seconds
after pressing a button.
Have a quick look at the site ;
matrix = {matrixType:"box", x:100, y:100, w:w, h:h, r:(90/180)*Math.PI};
box.beginGradientFill("linear", colors, alphas, ratios, matrix);
box.move... more >>
|