all groups > flash actionscript > may 2006 > threads for thursday may 18
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
Flash programming logic
Posted by Casperankinen at 5/18/2006 11:34:06 PM
I've just started working with this new developer with this way of coding that
leaves me constantly confused and I'm wondering if there are any guides as to
how you should structure your code and design in Flash.
This project is a skin for a .NET application that installs onto the client's
... more >>
Connecting to the flash remoting gateway not working
Posted by sampurtill at 5/18/2006 11:28:24 PM
Here is my code, I copied it straight out of the flash remoting book...
stop();
import mx.remoting.NetServices
var conn = NetServices.createGatewayConnection("<a target=_blank
class=ftalternatingbarlinklarge href="http://flist.net/flashservices/gateway");
var">http://flist.net/flashservi... more >>
Asyncronous Component Issues
Posted by Casperankinen at 5/18/2006 11:10:42 PM
Got this issue trying to create and populate a DataGrid and then print. Thing
is that the DataGrid doesn't render immediately so I just get this blank patch
in my print file.
So I come up with a work around, a print preview, so the whole page has the
opportunity to render before it's print... more >>
Create an image with ActionScript
Posted by kanag at 5/18/2006 10:19:25 PM
How do you create an image with ActionScript? The image is located at an url
that is not guaranteed to be on the same server.
I would prefer something that is compatible with previous versions of the
Flash player.
If you could point me to some tutorial or show me how it is done.
Tha... more >>
Variable with nested function
Posted by kanag at 5/18/2006 10:16:30 PM
I create a button in a loop, this means there is a button at each iteration. I
pass variables to create it and then I add a function to respond when clicked.
Here is what the code looks like:
button = _root.attachMovie(...);
button._x = xofs;
button._y = 200;
...
button.on... more >>
preloader mc must play at least once
Posted by mikezile at 5/18/2006 9:48:46 PM
I have a preloader made and it works fine, but I want to add an "and" statement
to the if statement that currently says;
if(_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay(3);
}
I would like to be able to add (theoretically) "and frame of movieclip equals
at least 50"... more >>
Please help me with AS error
Posted by DPSwebmaster at 5/18/2006 9:23:47 PM
I am using a class called DrawingUtilities.as and the file is placed at the
same root level as my .fla file, but I get an error when testing the movie. The
error is:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 20: The class or
interface 'actionscriptbible.drawing.DrawingUtilities'... more >>
trouble loading images from XML files using AS
Posted by DPSwebmaster at 5/18/2006 9:18:26 PM
I am creating a slideshow and found a script that will load the images via an
XML document, but I believe the script is for an absolute references image such
as <a href="<a target=_blank class=ftalternatingbarlinklarge
href="http://www.myimages.com/image1.jpg">">http://www.myimages.com/image1.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XML Not Loading
Posted by vin-E at 5/18/2006 9:16:13 PM
Should be simple. The code works up to the "success" part of the xml load. I
always get a failure. No explanation. I was able to make a simlple file load
the xml - not this code. I know its something simple. am I missing a
semicolon?
function loadXML(success) {
trace("in load mo... more >>
send form contents to asp
Posted by Brett Butcher at 5/18/2006 9:14:26 PM
I am totally stuck. I have three form components, name, email, comments that I
want to send to an embedded email address when someone clicks the submit
button. My site is hosted on an .asp server that uses the AspMail component.
I assume I have to extract the form components using action sc... more >>
"Not enough memory available" on CTRL+Enter
Posted by aa at 5/18/2006 9:07:16 PM
When testing a FLA file in FLASH-8 (using CTRL+Enter), first time it works
OK.
Howeve an attempt do do it for the second time results in a message "Not
enough memory available".
If I restart FLASH-8, then again FLA test OK for the first time and hangs on
the second one.
What kind of programm... more >>
Combobox Blues
Posted by Mr_Interweb at 5/18/2006 9:05:59 PM
I have a very mysterious problem happening with the combo boxes I am using. My
problem is that when a combo box is deselected, a green highlight color
(tracing the dropdown box) remains. I thought I had used sufficient style
settings to get rid of this unwanted behavior. The very weird part... more >>
Calling a random MC
Posted by MightyHokie at 5/18/2006 8:19:05 PM
Hi,
I have five MC's that I made and would like to call one of them up with a
button action. When one pops up I would like it to choose from one of the five
randomly. So, when you click the button, a mc animation will play. If you click
another button, it calls another (or the same, sinc... more >>
associative array
Posted by techy2001 at 5/18/2006 8:14:31 PM
hi,
i have some simple questions-
1.what is the advantage of using Object constructor to create an associative
array over using an Array constructor to create an associative array??
2.What is difference between using a dot over array access syntax .whats the
advantage of one over other??ba... more >>
update / replicate in AS2 ???
Posted by Tony Heagren at 5/18/2006 7:58:06 PM
Hi All,
I used to use this AS1 on a movie clip to slide things around:
onClipEvent (load) {
POZ = new Array("0", "-430", "-860", "-1290", "-1720", "-2800", "430");
}
onClipEvent (enterFrame) {
r += (rot-r)/6;
rectan._x = r;
}
with this on the buttons:
on (release) {
rot = POZ... more >>
attach movie clip + INVISIBLE
Posted by donkey boy at 5/18/2006 7:31:07 PM
hey,
is there a way to attach a movie clip and make the object INVISIBLE (i.e. make
the object's alpha 0 as it is attached).
here's the line of code to attach the clip:
holder.attachMovie("frame1", "frame1_mc", 20, {_x: 30, _y: 35});
-donkeyboy
... more >>
mx tweening class SCALE
Posted by donkey boy at 5/18/2006 6:58:23 PM
hey,
i'm trying to SCALE an object using the mx tweening class.
its not working.
please tell me what i'm doing wrong.
here's the code:
new TweenDelay(holder.kathyImage_mc, "_scale", easeOut, 0, 100, 4, 3, true);
-donkeyboy
... more >>
Preloader for Pictures
Posted by Stan Sainte-Rose at 5/18/2006 6:48:52 PM
Hi,
I load pictures on the fly that I use for a thumbnailer system.
How can I set up a preloader for these pictures ?
In fact, I would like to use one and only one preloader system that can
display a kind of Countdown for all the pictures.
I mean, if I have 5 pictures to load, I don't want t... more >>
which is right? using createEmptyMovieClip
Posted by flasheister at 5/18/2006 6:47:40 PM
var container:MovieClip = this.createEmptyMovieClip("container", 0);
or
this.createEmptyMovieClip("container", 0);
i've seen the samples use both ways, what would be the best way or does one do
something the other doesn't?
... more >>
Code check
Posted by dmcdonald at 5/18/2006 6:40:18 PM
I am trying to track a users interaction - they basically need to type in "la"
and hit the tab button. If they type in la and hit enter I want to give them a
message telling them to use the tab key. They get an error message if they type
in something different or use the control or enter key. ... more >>
Changing colors with ActionScript
Posted by NotALamer at 5/18/2006 6:29:32 PM
I'm having trouble figuring out how to change the color of something using
ActionScript. I've found lots of tutorials and examples using Color.setRGB but
I'm having trouble getting it to work the way I want. The flash I'm working on
has a number of 'Case Study' movies that play in rotation, an... more >>
Please Help with Action Script!
Posted by Rooksta at 5/18/2006 4:45:30 PM
Hi, thank you in advance for reading this topic, and for hopefully being able
to assist.
I need a script that will open another swf movie upon enterFrame.
So at the end of my movie it will just open a new one in the same window.
Please help!
... more >>
import (how to back out of current directory)
Posted by mikeshank at 5/18/2006 4:33:23 PM
I know this question may be stupid, but I'm gonna ask anyway.
If I have this structure
site
/src/com/acme/model.as
/test
/test/test.as
How do I import model.as into test.as?
... more >>
loadMovie problem
Posted by semi star gazer at 5/18/2006 3:35:21 PM
I am using Flash 8 on a Windows XP Professional machine, and I am having
trouble loading a second .swf into my main movie. I have a button called
cemetery_btn and an invisible movie clip called invisible_mc. The .swf that I
am trying to load onto the stage when the button is released is called... more >>
navigation/movie clip help needed
Posted by Mcginess13 at 5/18/2006 3:17:43 PM
I have a portfolio page which has a list to the left and is blank to the right.
I'd like to have the user rollover the name in the list and have an image fade
in in the blank area to the right. Then, on release I'd like them to go to that
particular item's page (swf). Can someone help me out w... more >>
Dynamic Text fields and variables
Posted by asprinwizard at 5/18/2006 2:43:15 PM
Ok, so I'm a complete Dunce, but I've only been using Flash for a few days so
be patient with me.
All I want to do is use a dynamic text field to display a variable using
Actionscript. The code is below but it will not work. Can someone please
advise? Do I need to use LoadVars? I thought t... more >>
Can anyone recommend any good books on leaning actionscript for flash?
Posted by digitalkiwi at 5/18/2006 2:16:21 PM
Can anyone recommend any good books on leaning actionscript for flash?
Intermediate level
I have been using flash for about 2 years more as a hobby than anything else,
some websites etc but now I realise I am going to need to learn more
actionscripting to do what I want, I have come to t... more >>
Passing a variable to set a movieclip location
Posted by Pulcinella2uk at 5/18/2006 2:01:07 PM
In frame 1 of the the movie I have defined the following:
var cl_y=502.0;
Elsewhere, I am running the following script:
-- seaty is the original position of the movie clip as defined in frame 1
var seaty = this+"_y";
-- resets the position of the movie clip to the original position... more >>
Making a simple class, I need a little advice
Posted by nudnic at 5/18/2006 5:40:18 AM
I have a simple scrollbar class but it is not working. Can anyone point out
what I am doing wrong?
I have a movieclip with movieclip instances track_mc and drag_mc within. I
create my new class and pass it the name of the host clip.
In the constructor I can trace the correct clips, and drag... more >>
LoadVars -- want to access mc without _root
Posted by nicknameforme at 5/18/2006 4:48:44 AM
Below is the code I''m using. In a nutshell, I'm trying to load some HTML text
from a php page. I want to divide the text into a number of textfields which
are inside a movieclip called articles_panel. I can access articles_panel if I
use _root.articles_panel, but since I might insert this ... more >>
Why can't it identify the target?
Posted by gregmax17 at 5/18/2006 2:12:29 AM
Here is the scrip I am usingt:
player_1.onRelease = function() { player_id = '2'; };
player_2.onRelease = function() { player_id = '2'; };
if(player_id == (2 or 1)) {
if(Key.isDown(Key.UP)) {
player_[player_id]._y = player_['player_id]._y - 2;
}
}
I want it so the user cl... more >>
Scrolling
Posted by bob3546 at 5/18/2006 1:57:56 AM
I need some code to make a textbox with a scrollbar. I've tried the help menu
and it's useless. I'm not that great at this and I would appreciate any help at
all. The textbox has an instance name of mp3text. Thanks.
... more >>
Starter
Posted by kanag at 5/18/2006 1:12:33 AM
I am starting with Flash I need to create a component that can read data from a
XML file. The entries are in the form:
<thumbnail>
<image><a target=_blank class=ftalternatingbarlinklarge
href="http://...</image>
">http://...</image>
</a> <text>The description here</text>
<url>url ... more >>
Dynamic URL link How?
Posted by digitalkiwi at 5/18/2006 12:00:00 AM
I want to be able to change the URL web address of web links inside my flash
document by the means of an external text file, is this possible? I cant find
any reference to any simple actionscript on the web.
I don?t want to use php or any other scripting, I was thinking of putting a
variable... more >>
Random Frame From Range
Posted by mynameissam.co.uk at 5/18/2006 12:00:00 AM
Hey I need the timeline to jump to a random frame from a range which are
labeled. The purpose is to give a random set of "resting" animations for a game
character". I am already using a time delay script I just want to know how to
get to a random frame from a predefined range!
Thanks
S... more >>
Designer needing help with actionscript
Posted by Duncan Allan at 5/18/2006 12:00:00 AM
Yes I supposed many of you started as designers and had to bite the bullet
and learn actionscript. well it's my turn and I have a problem I can't
understand and I hope that you guys can point me in the right direction.
I know I could use components but I'd rather not for this design.
I wan... more >>
importing MID file
Posted by aa at 5/18/2006 12:00:00 AM
Attempt to import sound files in MID format result in an error message
"problem reading file"
Can mid files be imported into Flash?
If not, how do I convert them to vaw?
... more >>
Re: LoadVars -- want to access mc without _root
Posted by nicknameforme at 5/18/2006 12:00:00 AM
Nice one. You got it. It takes 'this.owner' to work. I can't say I really understand it exactly though.
Now can you tell me if this trick is referenced in the Help file anywhere?
Thanks much. ... more >>
loading sound previews?
Posted by wdol at 5/18/2006 12:00:00 AM
is there any way to protect sound samples, which i would like to present on my
page?.. i understand loading mp3s via Sound.loadSounc() method, but flash is
not strong against decompiling.. only way i know to put mp3 path is via .swf
parameter - load directly from given path or give to flash so... more >>
Can background sound be paused, then continue?
Posted by vl_on at 5/18/2006 12:00:00 AM
Hi All,
I was wondering if there is a way to have the background sound stop playing in
frames, say, 20 thru 40, then continue?
Any advice / bits of code is much appreciated! Couldn't find such a trick
anywhere.
Thanks,
VL
... more >>
Making target area invisible
Posted by asprinwizard at 5/18/2006 12:00:00 AM
Hi There,
I have am working on a Flash application where the user drags icons (movie
clips) onto a target area of the screen. The problem is that this target area
(another movie clip) needs to be transparent. So I set its visibility to false,
but now the application won't work. The events ... more >>
Dynamic Video in FLV Player 8
Posted by ActionScripter1 at 5/18/2006 12:00:00 AM
Hi Guys,
Anyone know whats wrong with this?
nc= new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
videobox.attachVideo(ns); // tvideobox is a Video object on the Stage
ns.play(video); //video is a variable sent from my php page using
my.swf?video=myflv.flv
It j... more >>
|