all groups > flash actionscript > october 2006 > threads for thursday october 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
eval() function
Posted by csthsl at 10/12/2006 11:43:15 PM
Hey all, I'm having a hard time figuring out how to use the eval function in
actionscript
I know how to use it in javascript but for some reason I can't get it to work
in flash. I am using Flash 8.
See the attached code.
What am I doing wrong? Is there a better way to do it?
... more >>
How to Rotate MC to Specific Degrees
Posted by sd12013 at 10/12/2006 9:51:11 PM
I have an MC with rotation assigned to the up and down keys on the number pad
(8/up = 104 and 2/down = 98), This works great but I'd like to limit how far
the rotation goes to stop at say 30 degrees when the 8 is pushed and held and
stop at -30 when the 2 is pushed and held. I'd also like the ... more >>
onRelease for createEmptyMovieClip
Posted by exboywonder at 10/12/2006 9:40:34 PM
I have an XML file that I am pulling thumbnails from. I would like these
thumbnails to be links, but for some reason onRelease does not work on my movie
clip created with createEmptyMovieClip.
I have this theory that my onRelease function is being called before my
thumbnail image is fully ... more >>
XML id Search
Posted by sbryner at 10/12/2006 9:05:42 PM
Hey delving into XML and have a question. I'd like to create an array with some
of the attributes inside my XML elements. I'm probably far from what I'm trying
to do and very lost but here is my XML:
<?xml version="1.0"?>
<tools>
<saws id="1">
<name>Band saw</name>
<comment>c... more >>
Need assistance with buttons and frames.
Posted by Captain Elgy at 10/12/2006 8:58:39 PM
Hi there everyone,
Right, where do I begin!!. Two or three weeks back I bought Macromedia Flash 8
so that I could create my own Interactive LCARS Star Trek Screens. I've been
following all the tutorials that came with flash to the letter and I think I've
been making some progress with lear... more >>
nodeValue and a NaN problem
Posted by Burak Delice at 10/12/2006 8:09:25 PM
hi,
i take a value from XML like this :
var num:Number= Number(votes.childNodes
[i].childNodes[1].firstChild.nodeValue
in XML value is(xml file is below) : 21,22
but, num variable is become NaN?? if I dont use Number, there is no
problem, i took 21,22, but when I multiple it with a n... more >>
getNextHighestDepth and removeMovieClip problem
Posted by Burak Delice at 10/12/2006 8:08:38 PM
hi,
I have a strange problem :
I attach a Mc from library to Scene like this :
var mc : MovieClip = _root.attachMovie ("mcLinkage",
"mc1",_root.getNextHighestDepth() ,
{
_visible : false
});
and then i try to remove it by
removeMovieClip(_root.mc1);
and, mc is doesnt remo... more >>
Runtime Shared Libray
Posted by S4Potential at 10/12/2006 6:40:55 PM
How does symbols are transfered from the source library SWF to the destination
SWF at runtime?
Someone told me that ALL the shared objects in the source library are
transfered to the destination library even if the destination library use only
a few of them. In other words, the whole share... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
stage width
Posted by gringito at 10/12/2006 6:16:48 PM
is there any way how to get the stage _width value of an external .swf file using AS?... more >>
How can i do this? Please help
Posted by karimbalaa at 10/12/2006 5:09:13 PM
this is what my movie looks like
[IMG]http://board.flashkit.com/board/attachment.php?attachmentid=57486&stc=1[/IM
G]
the top is an image, it has a draggable box on it , when i drag the box , it
will show a zoomed up section of whats in the box.
i have the draggable box going on ,... more >>
Pass value from one frame to other frame
Posted by ricky1980 at 10/12/2006 4:28:02 PM
Dear All,
I put component button (enter1) and textinput ( quiz ) in layer named "form".
And i also add a layer called "action".
i put the following codes in the frame1 in "action" layer
enter1.onPress=function() {
trace(quiz.text);
gotoAndPlay("form",14);
}
i put... more >>
volume slider
Posted by dzedward at 10/12/2006 4:15:06 PM
i have a slider for volume. here's the code i have for the slider
if (_name == "volume") {
_root.volume = Int(slider._x + 50);
} else {
_root.pan = Int(slider._x)*2;
}
it works, however, its the opposite way. i.e. to turn it down you drag to the
right.. can someone help me? thanks
... more >>
stage size to fit resolution
Posted by southbeachbum at 10/12/2006 4:07:22 PM
how do you have the stage size scale to fit resolution, while keeping the MC's
unscaled and centered? the ultimate goal is this: keep the interface the same,
the stage grows to fit the resolution, and feature images, on click, will fill
the stage.
anyone?
... more >>
exporting actionscript as avi export movie
Posted by neffets at 10/12/2006 3:53:17 PM
hi all,
i have the following issue: i am creating a digital picture only via
actionscript, e.g.
moveTo(171,334)
lineTo(176,235)
lineTo(172,225)
etc
Displaying the swf file via swf player is fine of course but as I want to
display it in a digital photo frame I need to export it as... more >>
go to url - is this right?
Posted by stickleback at 10/12/2006 3:26:22 PM
sorry if this is a dumb question - but can someone just reassure me - please?
I've created a small banner for a client which has an invisible button over
the whole banner area. The action is on release go to url in a _blank window.
when I save the swf file and open it on my desktop (alos h... more >>
listeners
Posted by jonnybennett at 10/12/2006 3:19:45 PM
I'm having problems understanding listeners... I think I get the basic idea. An
object is created to listen for an event, that when occurs will perform a
function. However it is the event bit I am having a problem with. certain
events work for certain things. eg...
.change works if a compone... more >>
losing frame rate
Posted by rquantin at 10/12/2006 3:16:41 PM
Hi everyone,
I have a problem with a flash site where all the animations are build with
actionscript. The thing is, if I let the application in firefox or IE 30
minutes, the application gets very very slow. All the onEnterFrame function are
deleted after be used, same for all the set Inter... more >>
Never seen this error before...
Posted by chris__b at 10/12/2006 2:31:05 PM
Hi,
I just compiled some actionscript and got this error:
**Warning** __proto__: Branch between 65496 and 117953 exceeds 32K span.
I'm trying to embed some XML within an actionscript document and I think I
have too many characters on one line... but can anyone confirm this? Also, does ... more >>
Alpha effects with Action Script?
Posted by deVaan at 10/12/2006 1:36:58 PM
Hi I am a beginner but want to really get into AS instead of Motion Tweens. One
thing I would like to do is:
I have a Photo on stage. I want another Photo to fade in, while first one
fades out. Then I have text fading in after a few seconds. I may want more of
these fades but 3 is enough ... more >>
HTML editor for user input
Posted by John Doe at 10/12/2006 1:29:29 PM
hi:
any experiences with HTML editors in Flash like FlashTextEditor
component (http://www.flashloaded.com/flashcomponents/flashtexteditor/)?
any alternatives?
tia,
jdoe... more >>
Class scope?
Posted by Brian at 10/12/2006 1:11:40 PM
I have the following problem.
I have a file that uses a class to validate a form. I had it all
working, but now, that file is getting loaded into another file and no
longer works. I think the problem is with the class not seeing variable
as they might be in the other file now, but now sure. H... more >>
OnRelease getURL problem
Posted by Wildfire London at 10/12/2006 12:59:07 PM
I just know I will look so lame when the solution to this is pointed out, so my
apologies in advance. I am having problems with a script as follows
invbtn2.onRelease = function(){
getURL("http://www.google.com", "_blank");
};
However when I check the syntax or go to publish I get
... more >>
align external .swf
Posted by gringito at 10/12/2006 12:07:44 PM
I have a main movie. There is a mc container called [i]loader[/i] and couple of
external animations called [i]anima.swf[/i]. I dont know the [i]anima.swf[/i]
size (width, height), but I know it will always be smaller (width, height) than
the [i]loader[/i].
How to write an AS which would al... more >>
calling a function in an imported class - part II
Posted by Brian at 10/12/2006 10:59:24 AM
I had asked about this earlier and got it to work. Now the file that I
had it working for gets loaded into another movie and it does not work
anymore. I can still call the validation function and get the trace, but
it seems like it does not see the variables anymore. How would I modify
it so... more >>
zip code distances
Posted by zcan at 10/12/2006 3:09:48 AM
Anyone know of a tutorial for finding the distances between two zip codes or
two longitude and latitude coordinates? I know this will probably require a
database. Any help is appreciated.
... more >>
embeding <OL> inside Dynamic text
Posted by AnandMX at 10/12/2006 12:00:00 AM
Hi guys,
I got stuck in a problem where i need to add an ordered list inside a dynamic
text.
[NUM][LI]hi</li>[LI]hello</li>[/NUM]
I am loading data through XML and i know there is no support of ordered list
in Flash. any easier workthrough. Code will be a boon
should come
1 hi
2 h... more >>
Jumping to random keyframe on page refresh
Posted by Richard0001 at 10/12/2006 12:00:00 AM
I have a basic flash asset on an htm page to provide some movement. The swf has
4 different segments along the root timeline. Is it possible to get that flash
asset to jump betwwen the 4 different keyframes in the main timeline when the
page is refreshed or a new page is brought up? As opposed... more >>
Same button symbol, different action?
Posted by QrightHere at 10/12/2006 12:00:00 AM
I'm creating a Flash website that has dozens of hotspots on each page (all the
same button symbol). Each has the same actionscript with only one 3 digit
number variable changing on each button (ie. &spot_name=001 on first button,
&spot_name=002 on second)
Is there any way to group-change t... more >>
Losing Font in Dynamic Text Field
Posted by ccaptainsubzero at 10/12/2006 12:00:00 AM
I am working on a site where the layout must be fairly precise. I thought to
accomplish the menu rollovers, using copperplate font, by laying out the menus
in text (with proper spacing, dividers) and then putting invisible buttons over
the areas that woudl be the links.
I make a movie cli... more >>
Turkish Font Problem - in Flash
Posted by Karthick_Kumar at 10/12/2006 12:00:00 AM
Dear All,
I am developing a flash template, for a Turkey Client. I used Dynamic Text and
Load Variables command to load the Text. It works fine for English. But it
shows "square boxes" if we load turkish text. I used Embed Fonts, but no
solution. Please help me.
Thanks
... more >>
detect runtime
Posted by fullboost at 10/12/2006 12:00:00 AM
Hello
just wondering if it's possible to detect whether a flash movie has been
launched from a projector file or from html, ie when closing the movie, the
projector is stumbling for a second handling the getURL call. This movie is
being setup for online and CDROM.
function go_exit() { ... more >>
|