all groups > flash actionscript > june 2005 > threads for friday june 24
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
Simple how to question for syntax
Posted by VanL at 6/24/2005 10:59:08 PM
Okay, I would really appreciate a little help here. I need to create a simple
button goto using a frame lable, but I need to check to be sure that the
playhead isn't already at that frame. If it is already at that frame, the I
need nothing to happen. Below is what I had, before I realized I ha... more >>
menu bar
Posted by pyroni at 6/24/2005 10:54:15 PM
Hi,
I am a very new user of flash programming tools and am encountering some basic
problems.
I am currently having difficulty in adding a link from a menu bar.
I only want to link to a new html window from sub menus and original buttons.
The code attached shows how far I have got.
... more >>
Zoomed in photo? (or movie clip)
Posted by GhettoFabFlah at 6/24/2005 10:52:54 PM
yo im trying to make a sniper-esque game and i was wondering what the
actionscript would be to have a zoomed in photo and a regular 1. i know the
basics of it, the masking and all, but i was just wondering what the A.S. would
be to make the sniper scope(the zoomed in part) be able to see the w... more >>
Really Basic Actionscript I Can't Get to Work
Posted by lossy74 at 6/24/2005 10:45:11 PM
Hello everybody,
Though in the editing mode it works fine, in testing or a browser my button
won't work. Here's the script:
on (release) {
gotoAndPlay("Scene 8","1");
}
I've tinkered with the syntax and am out of ideas. Anybody have a thought?
Much appreciated,
lossy74
... more >>
is it a bug in flash?
Posted by sampurtill at 6/24/2005 10:42:34 PM
hey when i convert my xml into a string in flash, i write the code something
like this:
var lifeChangedText:String = new
String(xmlData.childNodes[0].childNodes[3].childNodes[0].childNodes);
all the text loads into flash and everything, but when i use the apostraphe in
my xml sheet, it... more >>
lineTo HELP! animating a square
Posted by jevans27 at 6/24/2005 9:17:15 PM
I am trying to use the lineTo method to draw a square. I have the code correct
to draw a line or make a square appear but I can't put them together to create
square that looks like it's being drawn. If anyone could help me I would
appreciate it. Here are two samples......
I just want to ba... more >>
Random Scene/frame
Posted by jmoore09 at 6/24/2005 8:57:07 PM
After searching the forums I found several entries that talked about randomly
loading; clips, swfs, frames and scenes. I can't seem to piece them all
together to work for me.
Here is the situation. I have a fla file with 2 scenes. I need these two
scenes to load randomly upon entry so when... more >>
current frame
Posted by dawn1969 at 6/24/2005 6:58:51 PM
I am using a dynamic text field to show what frame the person is on.
page = (_root._currentframe+ " of " +_root._totalframes);
it works but it tells me that frame 1 is frame 2. can someone please tell me
how to make be frame 1.
thanks
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Button in Movie Clip
Posted by JustBob at 6/24/2005 1:55:13 PM
I have managed to add a button to a movie clip that, when clicked, will unload
the movie clip. But, I'd rather click the button (remember, it is inside a
movie clip) and go to a scene. Is that possible? Can someone tell be the code
for that and where I would find it in the Actopna Script panel... more >>
Flash-based Forums
Posted by rumman2563 at 6/24/2005 1:14:09 PM
Hello, I would like to know that is there any way we can create a flash-based
forum with animated buttons, with cool background. If anyone knows, can u
please me? I looked on the internet, but I didn't find any information on how
it will work, and how to make it. So, please!!!!!!!!!! if anyone... more >>
Troubles with hyperlinking from a text field
Posted by Dmitry Astretsov at 6/24/2005 11:49:01 AM
Hello guys!
I need your help.
The point is:
I have to make text in a dynamic text field to be linking to some URL.
1. I create a text field dynamically with createTextField();
2. I switch it into rich-text mode with .html=false;
3. I get text ... more >>
Controlling scripted MovieClips...how?
Posted by Gerrard at 6/24/2005 10:57:26 AM
Hi!
The following code should create a MC with textfield that counts to 10 and
loops. I also tried to make the scripted MC transparent without any luck. Can
anyone tell me why?
Thanks for any help!
______________________________________________
var NR:Number = 0;
this.createE... more >>
AS.2.0
Posted by Micro_Macro_Analyst at 6/24/2005 10:41:54 AM
This was a small bug found in AS.2.0 classes. The code that has been pasted
below is an example of that bug.
class classes.ImageCollection extends Array {
private var ICXML:XML;
public function ImageCollection(XMLPath:String, RefArray:Array) {
Init(XMLPath, RefArray);
trace(non... more >>
xml help needed!!!!
Posted by jusko at 6/24/2005 10:13:20 AM
Hello!! I have an XML driven drop-down menu, that creates all the buttons
dinamically. I manage to load jpg into a empty_mc from the menu, but i also
need do load with the jpg, some text into 2 dynamic text fields, but i'm having
trouble with the code!!!!
In flash i have at some point this... more >>
Delay function
Posted by erickbeans at 6/24/2005 7:07:33 AM
How do i create a delay function in flash? are there tutorials about this? ... more >>
loadSound doesn't work!
Posted by Ludovico Grossi at 6/24/2005 1:22:16 AM
Hi all,
i have a simple script with these lines on the first frame
| this.createEmptyMovieClip("audioContainer",123);
| S = new Sound(audioContainer);
| S.attachSound("traccia_audio");
| S.start();
Where "traccia_audio" is the name of an mp3 imported in the library
(and exported for actio... more >>
Dynamic TextBox... Add Instance... Add Scroll ?????
Posted by Tony heagren at 6/24/2005 1:01:41 AM
Hi All...
I'm usinbg this (which works fine)
on (release) {
this.createTextField("story", 20, 182, -185, 415, 220);
story.border = true;
story.borderColor = 0xdddddd;
story.type = "input";
story.multiline = true;
story.wordWrap = true;
story.htm... more >>
Help with sound play script
Posted by jasonfrncs NO[at]SPAM tiscali.co.uk at 6/24/2005 12:00:00 AM
Hi guys. I thought I'd try my hand at making my own script to play a sound in
the library using an onPress handler. What I basically want to do is to have
four different buttons play the same sound on rollover (and I guess I don't
want to go the easy way to do it!) Bear with me, I need to l... more >>
Pre loading as opposed to preloaders
Posted by Bob Pierce at 6/24/2005 12:00:00 AM
I've read various articles about preloaders within a single .swf, and about a
preloader clip that handles preloading multiple .swf files. The sequence of
events in these articles always starts with code such as:
on (release) {
loadMovie("products.swf", "_level1");
}
This means that... more >>
Problems with Form Sending.
Posted by Geraint Lewis at 6/24/2005 12:00:00 AM
Hi, im doing an email flash form, and this is the action script on the send
button:
on (release) {
// send variables in form movieclip (the textfields)
// to email asp page which will send the mail
form.loadVariables("brochure.asp", "POST");
gotoAndPlay("brochure", 32);
}
Th... more >>
Menu item
Posted by Notacia at 6/24/2005 12:00:00 AM
Hello!
Can you help me to create a new menu item, such as on http://markaventura.com... more >>
looking for loadMovie help
Posted by Mr_Nasty_One at 6/24/2005 12:00:00 AM
Hello,
I'm looking for some help using loadMovie to load an external .swf into the
current level (0) of my movie, to replace it with my new one.
I'm using the following command:
loadMovie(movieTitle,0);
where movieTitle is a string variable assigned using this command attached... more >>
txtfield variables not recognizing variables
Posted by kdogg at 6/24/2005 12:00:00 AM
hello all, i have a two buttons(prev/next) that move through ads(movieclips).
well, i've got a dynamic txtfield at the bottom that needs to have specific
text loaded based on the ad loaded. i've got a var set up for each ad(text1 for
ad1, text2 for ad2, ect. in the frame). well the ads are wor... more >>
Text Effect
Posted by brandon_haslip at 6/24/2005 12:00:00 AM
I am using this code to load an external text file:
loadVarsText = new LoadVars();
loadVarsText.load("history.txt");
loadVarsText.onLoad = function(success) {
if (success) {
scroller.html = true;
scroller.htmlText = this.var1;
}
};
Is there way to alter this code to make ... more >>
loop and array question?
Posted by hatsi59 at 6/24/2005 12:00:00 AM
Hi All,
I have this code (with the help of Rothrock who's gone for a rest) and I want
to put it in a loop or something so that it's neater.
function wait(intro) {
intro.play();
clearInterval(holdOn);
}
holdOn = setInterval(wait, 150, introduction_mc);
function wait1(mod1) {
mod... more >>
getURL won't pass URL string on release event
Posted by designbymichael at 6/24/2005 12:00:00 AM
I've done this before a few times in Flash and I have NO CLUE as to why it's
not working for me in MX 2004. I'm doing a very simple getURL function on a
button onrelease event and am trying to pass a variable through a URL string:
redirect.html?foobar=1,2,3,5,6
This should be a no-brain... more >>
why isn't getURL working on this MovieClip?....
Posted by (_seb_) at 6/24/2005 12:00:00 AM
Hi all
I am stumped:
I have a movieClip, instance-named mainMC, that contains a MC with text
in it, and two empty movieClips in which different images load
dynamically, and fade in and fade out.
On the main movieClip ("mainMC"), I placed the script:
on (rollOver) {
this.text.gotoAndSto... more >>
Help about detecting onPress event
Posted by _vulcano at 6/24/2005 12:00:00 AM
I have a button named icoRestaurante in my movie and I have duplicated this
button by the Action Script code:
duplicateMovieClip (icoRestaurante, "Rest"+iRest, iRest);
setProperty ("Rest"+iRest, _x, ptoX+iRest+25);
setProperty ("Rest"+iRest, _y, ptoY+iRest+25);
where iRest is a variabl... more >>
Referencing Media Playback component from another Movie Clip
Posted by Bruce Denny at 6/24/2005 12:00:00 AM
The media playback component seems to work fine if you enter the flv file in
the component inspector or use the setMedia() or contentPath facilities within
the same movie clip. I am trying to reference a media playback component
instance from another movie clip. The path is correct and it kn... more >>
Limit number of lines in a text field
Posted by scratch&sniff at 6/24/2005 12:00:00 AM
Can anyone tell me how to limit the number of lines in a text field. It seems easy to limit to characters but cant see a way of limiting lines???
Thanks!... more >>
|