all groups > flash actionscript > may 2007
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
creating array
Posted by dzedward at 5/31/2007 10:18:30 PM
if i want to create an array of MC, so that i can refer to it instead of
referring to every single MC when i want to enable=false how would i go about
this.
var btn_ar:Array = new Array ("seminar_mc", "success_mc", "how_mc",
"leverage_mc", "what_mc");
btn_ar.enabled = false;
is not w... more >>
Need help with a few things
Posted by Shad0wdrag0n at 5/31/2007 9:22:11 PM
I need some help with a few things for some flash games I'm working on. I'm not
even sure if the things I need help with are possible to do in flash. If they
are I'd really like some help figuring out how to do them. The first thing I
need help with is creating an rpg style inventory. What I h... more >>
Efficient way for making many enemies
Posted by Gooms9 at 5/31/2007 8:56:59 PM
Hey, i'm working on a game right now where I want around 40 or so animated
enemies on screen at a time. Is this even possible with flash? Right now i'm
starting to get slowdown when I have 15 or so on screen and they're not even
animated yet. This is how i'm doing it at the moment.
funct... more >>
How to Pick Color from Image
Posted by atlkhan at 5/31/2007 8:21:43 PM
Hi
I am opening a jpg image in a webpage. I want to click at a point on the image and get the value of the color of that point and display. Can someone please hellp me how I can do it.
Thanks... more >>
set property after loadClip
Posted by jgomula at 5/31/2007 7:54:49 PM
Hi Community!
I am trying to use loadClip to randomly load in an external SWF (this part
works great) and then to adjust the alpha of the loaded clip (ultimately I'll
have the alpha adjusted according to the level the clip loads on, so different
clips will have different alphas). Can't see... more >>
zooming with a fixed registration point
Posted by burritobot at 5/31/2007 7:41:26 PM
I have a scrollbar that I use to adjust the x and y scale of an MC. The problem
is, it scales relative to the upper left corner (0,0) registration coodinates.
Is there a way to change these coordinates, so it is always scaling relative
to the center position of the viewing window, without ha... more >>
is it possible to load .swfs on top of scrollpane
Posted by bb73 at 5/31/2007 7:29:35 PM
I have a scrollpane that links to a movie clip in my library that holds about
40 buttons. I'm using the scrollpane since the layout doesn't have enough room
to show them all at once. This way the user can scroll down to see all the
names. These buttons have the names of various articles on ... more >>
Function Call
Posted by Semantica at 5/31/2007 7:23:15 PM
Hi all,
For some reason I am unable to get my function (updateFields) to be called.
Any suggestions as to where I should look? Here is my code:
private function rectCalc() {
//calculates the coords of the drag point (set to 1 above and below min/max
// so the border fits inside t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Server/Client File Comparison
Posted by Revalis at 5/31/2007 6:16:40 PM
We have recently been updating a lot of our older flash files but have had
clients reporting that they still see older versions of the updated files. So
we have to walk them through dumping their cached files and returning to the
site.
Is there a way to use actionscript to compare cached s... more >>
Please Help
Posted by alterego123 at 5/31/2007 5:17:24 PM
Im new to actionscript so naturally im struggling. Here's the script then ill
explain the problem....
onClipEvent (enterFrame) {
this._x = this._x-7.5;
if (this._x<-1550) {
this._x = 450;
}
}
This MC consist of a series of buttons that move across my screen from right
to ... more >>
Remove Movie Clip
Posted by elearningdiva at 5/31/2007 4:59:09 PM
I would like to have the user click on a button or movie clip that takes them
to a new scene with multiple questions on it, and depending on what answer they
choose, come back to the main scene and the button be gone, and replaced with a
graphic (that won't have any function). I thought I cou... more >>
Can't get mouse events to stop trickling down
Posted by theWoosh at 5/31/2007 4:30:25 PM
Hi Folks - I'm sure this is simple but I just can't see it... and would
appreciate some help.
I have a bunch of buttons on top of an active movie clip (ie it responds to
mouse clicks). When I click on one of the buttons, as well as the button script
being activated, the script below on the... more >>
Pass Param to Eventhandler
Posted by vDiaz761 at 5/31/2007 4:27:55 PM
Hello All,
Is there a way to pass parameters to even handlers? I have the following code:
function onLoaderComplete(event:Event):void{
loader.alpha = 0;
timer.addEventListener(TimerEvent.TIMER, fadeInLoaderTimer);
timer.start();
}
function fadeInLoaderTimer(event:TimerEvent):v... more >>
Why no Tree component for AS3?
Posted by MCR at 5/31/2007 4:22:33 PM
Why is there no Tree component when working with an AS3 based Flash 9 file?
Kevin... more >>
Reset the Value
Posted by swodiddy at 5/31/2007 3:25:10 PM
I have a Number:textinput component on the stage with a default value of 20 and
a label component next to it. If a user types in a number >= 51 the label
displays "Maximum is 50". My question is: How can I reset the textInput back to
the default value if a user types in a number >= 51? Here is... more >>
how to pass Status and location for bookmarking in flash using FSCOMMAND
Posted by interactive eye at 5/31/2007 2:41:08 PM
Dear All,
I am developing a eLearning course using flash 8. I have done the SCORM 1.2
packaging with all the supportive files. In flash i have done the following
code for FScommand value passing for Location and status.
The follwing code is in the first frame of my flash file to get val... more >>
Simulate an Event
Posted by smazr123 at 5/31/2007 2:31:20 PM
Is there a way to get an event to run from actionscript? For example if I have
a Mouse CLICK event registered with a movie, and I want it to be run. I know I
can just call the function that the event calls, but I cant pass the event
object.
... more >>
Gambling game advice
Posted by SlickRik at 5/31/2007 2:08:45 PM
Hi guys,
I've just been asked to create an online gambling game in Flash.
And to be honest, i don't know where to start and can't find much (if any)
info out there.
Is there a standard proven direction to go in, certain technologies that work
best for this type of project.
Known issues... more >>
LoadVars
Posted by meshhats at 5/31/2007 2:04:56 PM
I'm not sure why this won't work. Perhaps someone on here could help me out.
I have 4 buttons (code from 2 of them below) a user can select from. After a
user makes 100 selections, I would like to send the results to a php file. So,
I need to record the results of each selection and after ... more >>
list component skin or style problem
Posted by thorhammer at 5/31/2007 1:09:31 PM
I am building a scrolling list that pulls data from a xml file, and binds the
data to a list component
I am trying to figure out how to change the look of the list component.
I need to create a rounded backgound for each list item and I would like to
use a symbol for this.
I can't find ... more >>
Flash IDE or Flex?
Posted by phil.swenson NO[at]SPAM gmail.com at 5/31/2007 11:58:38 AM
I have a question for those in the know... We are a shop of Java devs
and would like to implement widgets that look like the google flash
widgets they've been using in various apps (for example:
http://finance.google.com/finance?q=aapl or the graphing widgets you
see on Google Analytics).
So ... more >>
Moving an object across a stage with Action Script
Posted by kryha at 5/31/2007 8:26:22 AM
I want to move my object from left side to right then when it reaches
the right edge of the stage I want it to play again from the left
edge.
It seems very basic , but I am still new to the Action Script concepts
and have a difficulty to program it the righ way.
I will appreciate any help
... more >>
Dealing with preloaders is Flasch CS3
Posted by OlandoCR at 5/31/2007 4:08:05 AM
Dear all,
I need your help to deal with preloaders in Flash CS3. After reading some
comments in other forums, I still do not have clear how to proceed.
This is the situation.
1. I have a project (flash project) which loads dynamically movie clips (from
now mc) to stage.
2. Those ... more >>
Can't remove clip
Posted by evil_muffin_man at 5/31/2007 2:55:27 AM
I can't kill it! :confused;
I have a library clip with a window UI object in it. I place the attached code
into the window.
Now another script attaches the said clip into the storyline. When I click the
'close' button, it says "clicked" and tells me the object I'm trying to remove
does... more >>
new at ActionScript - on(release) question
Posted by groovemonkey64 at 5/31/2007 2:41:55 AM
I am new at this, so forgive if i am overlooking something simple.
I am using CS3
I want to make a replay button at the end of a short movie.
I made text object replay?
made it into a button
set a key frame
selected the button on the stage.
tried to add this to the actionScript e... more >>
I need a appilcation for a "sorter"
Posted by Ashpotter at 5/31/2007 2:20:43 AM
I am trying to make a flash movie that has a bunch of buttons. On the click of
one of these buttons, the value of one of four variables increased by a
specific amount. At the end, the one with the biggest value determines the
object shown on the last frame. It is basically is a sorter to see w... more >>
Change text value of TextField on Stage
Posted by nITiNkIlLeRmEeRuT at 5/31/2007 12:00:00 AM
I have created a dynamic textfield on Stage without any instance name. In AS
file i want to change the text value but unable to do so. Can we do it in this
way.??
package {
import flash.display.Sprite;
public class Test extends Sprite {
public function Test() {
trace(this.getC... more >>
form submission thrugh flash
Posted by mathyoo at 5/31/2007 12:00:00 AM
I have a form with this code:
form id='mailinglist_form' method="post" action="http://url.com/index.php" >
<div>
<input type="hidden" name="XID"
value="2d23601ce3401a2c2c643a5e9f66b26318ef07d9" />
<input type="hidden" name="ACT" value="3" />
<input type="hidden" name="RET"
value="htt... more >>
problems with getURL and local frame targeting in FP9
Posted by west_one at 5/31/2007 12:00:00 AM
I have a two frame page - the left frame is a custom flash Tree object that
parses an IMS-compliant manifest (basically a tree menu structure) and the
right frame displays the loaded page/object in that manifest. If i run this
from a server, it works fine and displays all links in the right fr... more >>
Math.round and just plain math
Posted by aixamarquez at 5/30/2007 11:13:16 PM
Hi, I'm back with another question.
I want my exam to show a percentage at the end. I guess I'll concatenate a
'percent sign' at the end, but right now I'm having trouble with the math.
There are 13 questions. This is what I have:
score = Math.round(right/13*100);
The scores are c... more >>
instance without calling 'new'
Posted by tag_digital at 5/30/2007 10:48:59 PM
I have a class that I use to extend MovieClip so I can add extra data to it.
Along with other things I add a textField to the object when Instantiated. (I
am including the basic class below) I have different movieClip symbols in the
flash libray that I want to call when needed and add this fun... more >>
Simple Slide bar
Posted by Sylvain & Jen at 5/30/2007 10:11:15 PM
let's say I had a slide bar like a graphic equalizer type
can I make a sliding bar that has 5 position 2 up 1 middle 2 down and when it
slides it changes frames
like the middle position is the main page and you move the bar to the up state
all the way to the top and I just went to frame ... more >>
use of variable outside the function that defines it
Posted by NickTheNameless at 5/30/2007 9:40:04 PM
why can't i use the variable "numOfItems" outside the function in the code i've
attached below? i need to have a variable that gets it's value from the number
of nodes in an xml document and used later, on the root timeline, outside the
onLoad function of the xml, after it's been loaded.
... more >>
problem of communication with web service
Posted by Leo at 5/30/2007 9:28:58 PM
I have an action in web service=A3=BA
def get_user_name()
return session['user']['name']
end
When i call this action in web page, it returns "leo"
The problem is:
How to let the same thing happens when i call it in a flash using
actionscript?
... more >>
XPathAPI
Posted by Semantica at 5/30/2007 8:56:23 PM
Hi all,
I have been unable to get the XPathAPI to work. Here is my code:
var layerList:Array = XPathAPI.selectNodeList(this.firstChild,
"/ViewContext/LayerList/Layer");
//grab the name
for(i = layerList.length - 1; i >= 0; i--)
{
var xmlNode:XMLNode = layerList[i];
var... more >>
scrollpane issue
Posted by Fred at 5/30/2007 8:21:11 PM
ok i am almost there. i have the data loading and the scrollpane
loading, but the data is not IN the scroll pane, but on top of it!!!
here is the code...(i think that from what i can tell that the
scrollpane seems to be loading first and setting the contentpath to
container_mc when it is empty)... more >>
Simple Scripting
Posted by aixamarquez at 5/30/2007 8:19:37 PM
Hi, everyone
I have a very basic quiz that I'm experimenting with. I'd like, at this point,
just to count the questions and see if I can display the number at the end.
I initialized the variables - right, wrong - on the first frame. I don't want
the question counted if the user clicks a ... more >>
Controlling frames
Posted by Marko20 at 5/30/2007 8:06:27 PM
How can I write an actionscript that tells frame 1 to frame 1000 that I want all movie clips to be set to alpha = 0%. ... more >>
website security actionscript
Posted by mich75 at 5/30/2007 7:41:17 PM
I am trying to create a username and password to access my website (I know that
doing this in flash isn't very secure, but I don't need a really secure login)
I have the following on my enter button actions:
on (release, keyPress "<Enter>") {
if ((Username+Password).toLowerCase() == "myU... more >>
open a BLANK and another BLANK
Posted by jonnybennett at 5/30/2007 7:23:53 PM
I am opening a window using
getURL('http://www.website.com/newMember.html','BLANK');
this opens fine in a new window... as I wanted... however in the window I have
just opened I have another
getURL('http://www.mywdot.com/terms.html','BLANK');
This time it does not open in a blank w... more >>
How can I control all Movie Clips in same timelline
Posted by Marko20 at 5/30/2007 6:58:14 PM
Well I asked the same question yesterday and got some responses but none f them
worked the way I needed. To explain really quickly I have six movie clips
called cap1 cap2 cap3 cap4 cap5 cap6. Each movie clip is in scene1, cap1 goes
90 frames then cap2 starts and goes another 90 frames and so o... more >>
bitmap caching
Posted by zibber at 5/30/2007 6:48:47 PM
Hi
Wondered if someone could give me some advice. I am working ona project where
a user can pick an avatar and enter chatrooms. The idea is to display the
avatrs to represent people in the different rooms. Currently there are around
25 different heads and bodies (which can be mixed andmatch... more >>
returning a value
Posted by supdun at 5/30/2007 6:39:08 PM
I'm getting an error: TypeError: Error #1006: value is not a function.
I'm trying to return a value and placing it in a value of an array. Shouldn't
this work?
private function parseXML( xmltree:XML ):void {
// extract "project" node using some xml magic
var projectNode:XMLList =... more >>
second tween does not wait for first to finish
Posted by Germ77 at 5/30/2007 6:14:11 PM
Having a little problem here and as far as I can tell it is just that the
second tween starts before waiting for the first to finish. Basically on a
click event it should slide out a scroll pane to the bottom of the screen,
change the contentpath of the scroll pane, then slide it back up.
... more >>
Newbie with Sound Control with AS headaches
Posted by mangamerica at 5/30/2007 6:05:35 PM
Hello,
This is probably really easy to do, but I'm still new at scripting, so please
be gentle ... :smile;
Here's what I'm trying to do:
When the main swf loads, welcome.mp3 plays once automatically.
On the timeline, I have a movie clip with an instance name of BGM_controls.
Inside ... more >>
Passing parameters...
Posted by DZ-015 at 5/30/2007 4:40:42 PM
Hey all,
I'm working on a flash based picture gallery for a fairly specific website.
The client submits text and images by way of a form into a database. PHP later
renders an XML index of the paths to that data which my SWF file downloads.
This works great on a broad level... but every ... more >>
initialize a variable for serveral different scenes
Posted by elearningdiva at 5/30/2007 4:35:24 PM
Can I initialize a variable that works on several different scenes in my movie?
I'm trying to have a "game" where the user can click on certain buttons that
will take them to different scenes to answer questions. I want the user to be
able to click on any button in any order, so I was thinki... more >>
AS3 Option Method/Function Arguments
Posted by Rothrock at 5/30/2007 3:58:12 PM
How do I have a function or method with optional arguments? Do I use ? (rest)
or is there some other way?
Basically I am doing my own MatrixMath class and I want to have a static method
MatrixMath.dotProduct(A,B,symmetric):MatrixMath
Where A and B are instances of a MatrixMath and symm... more >>
removeTextField and Components
Posted by BillG-Chicago at 5/30/2007 3:51:11 PM
I am creating several text fields dynamically using createTextField, then, when
I no longer need them, I'm using removeTextField to delete them. The problem
I'm encountering is that, as soon as I add a component to the stage (such as
the UIScrollBar) - even to a totally different part of the m... more >>
ScrollPane content
Posted by froil at 5/30/2007 3:24:01 PM
Hi i am trying to take data that i recieve from a database and put
that data into a scroll pane. I can recieve the data fine and put it
on the page, but how can i add this to a scrollpane? here is my code
to get the data on the page.
function getShirts_Result(rs){
cant = rs.re... more >>
|