all groups > flash actionscript > september 2005
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
detecting a group of selected words in a string
Posted by shabazz05 at 9/30/2005 9:33:52 PM
I have a text field with about 5 lines of text. Is it possible to have the user
select any given word on any given line and change the font color of just that
word?
Or does anybody know how to detect the first and last character of a
selection? Example:
"The quick brown fox jumped over... more >>
how can I get similar effect
Posted by bundas1000 at 9/30/2005 7:50:07 PM
I would like to create a similar animation (video perhaps) for my site, where
two hands will manipulate a product about the same size:
http://www.hi-au.jp/
I would like to get some tips on it.
Thanks,
... more >>
Deleting Sound Object onID3 Crashes Browser?
Posted by SandyCooke at 9/30/2005 7:35:47 PM
Hi experts
This code works if the browser has Flash Player 8 installed but crashes
browsers with 7:
var tempSound = new Sound();
tempSound.onID3 = function(success) {
if (success) {
delete tempSound;
}
};
tempSound.loadSound("../assets/mp3s/Toxic.mp3", true)... more >>
Setting volume of multiple sound objects
Posted by paulpsd7 at 9/30/2005 7:25:43 PM
I've got a Flash piece with multiple sounds which I'm using as sound objects.
I've defining the sound objects like this:
rollover = new Sound ();
rollover.attachSound ("rollover.aif");
buttonsIn = new Sound ();
buttonsIn.attachSound ("buttons_in.aif");
Then, from ot... more >>
gotoAndStop(scene_variable, 1); ???
Posted by forumnotifier at 9/30/2005 7:17:36 PM
gotoAndStop(scene_variable, 1);
if I do this I get an error saying the first value must be a quoted string,
but if i type it as "scene_variable", it looks for a scene called
"scene_variable"
anyone know how to do this???
... more >>
gotoAndStop(scene_variable, 1); ???
Posted by groovything.com at 9/30/2005 7:17:34 PM
gotoAndStop(scene_variable, 1);
if I do this I get an error saying the first value must be a quoted string,
but if i type it as "scene_variable", it looks for a scene called
"scene_variable"
anyone know how to do this???
... more >>
How do you think they are doing this?
Posted by uberlame at 9/30/2005 7:08:41 PM
Check out one of the vids here:
http://sofrenchysochic.com/
There's a "slow" button that appears to halve the frame rate and slows the
audio without affecting pitch.
No clue how they achieve this within Flash.
Thanks!
Danny
... more >>
on (rollOver), how do I fade?
Posted by Centerpoint Computer at 9/30/2005 6:14:15 PM
Using actionscript, I have adjusted the alpha of a movie clip when I rollOver
it and restored it when I rollOut. It is an abrupt change:
on (rollOver) {
this._alpha = 50;
}
on (rollOut) {
this._alpha = 100;
}
Now I'd like to adjust the script to fade the alpha from 100... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Dragging Something To An Area
Posted by AwesomeDigital at 9/30/2005 5:44:53 PM
I am thinking of building something where it is a snowman and the user needs to
drag all of the pieces to the right place.
I am not sure how to check if they are close to the area where it should be.
If they were close, then I would like to snap the piece into place.
Could somebody toss ... more >>
animation lags behind sound, when in .html
Posted by Nicky at 9/30/2005 5:07:28 PM
I have a flash animation, which uses external .mp3 file as sound source.
It all works fine, untill I put my flash animation into .htm document. Then
animations lags 2-3 seconds afther the mp3 sound throughout whole animation.
where is the problem ?
... more >>
Scripting Filters
Posted by nintybloke at 9/30/2005 4:55:58 PM
I'm currently creating a flash game in Flash 8.
I'm using floating windows, like we all know from PC's..
I added a dropshadow filter to this window,
but I want the dropshadow to increase distance when you drag it, so it seems
like you actually 'lift and drag' it.
Would I be able to script ... more >>
Targeting problems?
Posted by missus_ebb at 9/30/2005 3:33:10 PM
This problem is completely baffling me. Maybe its me just being dumb and
overlooking something really easy but right now I just can't see it. So if
anybody can spare a few minutes, please take a look and help me out. A mock fla
is here
I've got a movie clip on the main timeline ( called "m... more >>
Actionscript/xml problem
Posted by PaulBill at 9/30/2005 3:10:28 PM
Hi
I am currently building a Flash site, a sample page of which can be viewed
here;
http://www.cream-ink.co.uk/CreamInkTest
As you will see, the images that scroll along the bottom are working fine and
if you click one, you get a larger image above.
My problem is this. You'll se... more >>
If Statement for sound
Posted by Cotolay at 9/30/2005 3:02:46 PM
Hello i am having problems with a simple if statement.. i have a project with
some sound, and i have different frames for the content of the project. there
is a background music, and i made the background music stop on one frame. i
want the background music to continue when i click on the link... more >>
.nodeValue returns null
Posted by DJ James at 9/30/2005 3:01:12 PM
I did a search and found only one other person having this problem, but I guess
he figured out a differnt way to do what he wanted.
I am pulling an rss feed from weather.com and trying to get values from the
xml file it returns.
here is part of the rss feed's xml return:
- <cc>
<ls... more >>
PHP/FLASH further genius required
Posted by jonnybennett at 9/30/2005 3:00:46 PM
Okay, you have probably noticed by my scripting that I am new to any type of
coding and I am trying to run before I can walk, so you?re help is much
appreciated, which brings me to second point thanks to everyone who posted a
reply especially Kglad whos coding solved an earlier problem with th... more >>
Use shared font in library with external css ???
Posted by SteveStall at 9/30/2005 2:52:48 PM
Hi there,
Is there a way to use my shared fonts from from my library with an =
external css text configuration?
Thanks in advanced,
Steve... more >>
Check Boxes and Tree Component
Posted by realtime158 at 9/30/2005 2:31:45 PM
I was wondering if there is a way to add a checkbox to the tree nodes if you are loading the tree data via XML
Please let me know thanks and any links to samples would be grateful.
... more >>
Buttons & Effects
Posted by wahtever at 9/30/2005 2:29:10 PM
Hi, I'm pretty new at flash but I understand most things easily. I found this
site (www.kirsten-dunst.org) and I was wondering how to make the effects on the
main graphic. Also if you look over at the left panel where it says Members
Login, there are three images that are rollover buttons. Cou... more >>
Combo box issue
Posted by apodkolinska at 9/30/2005 2:19:52 PM
In my interface i am using an Accordion component and on one of the tabs i have
a combo box. All other components appear to work fine but the combo box does
not open when i compile the movie. Can anyone give me a hint why?
... more >>
AttachMovie and UnloadMovie? HELP
Posted by headonBackwards at 9/30/2005 2:19:49 PM
Dear all,
There is lots of stuff about unloadMovie, but I cannot get this to work....
I have an overlay that comes up on top of the flash app using:-
onClipEvent (load) {
this.loadVariables("companypage.txt");
}
and want to close it when you click on any button underneath the o... more >>
Expandable Dynamic Text?
Posted by headonBackwards at 9/30/2005 1:36:45 PM
Dear all experienced & less-experience,
Does anyone know why a Dynamic Text box/field/area is not expandable?
I have a dynamic text area that will contain text that is editable from a
content management system. I have just found that if the dynamic text box I
create is not long enough to... more >>
best proloader choice??
Posted by Vertine at 9/30/2005 1:27:37 PM
It seems there are a ton of ways to do a preloader. The frist kind i ever
learned was a simple loop that kept the user informed about the amount of bytes
loading with a dynamic text field and a bar set to scale. Recently, i saw a
preloader that was its own external .swf file....is there an adv... more >>
How to continuosly read a var without frame loop
Posted by adkin at 9/30/2005 12:58:11 PM
well i have a ComboBox with 3 fields and a dynamic text box in witch i want to
display the current var selected in ComboBox. I can do that but only if i loop
between two frames. Is there a statement that loads continuosly without the
frame looping thing?
Thanks.
... more >>
PopUps (again!)
Posted by darrenmccann101 at 9/30/2005 12:29:56 PM
Hello all.
Is there a way to create a Javascript popup window (set size - no buttons,
etc) that is activated from a text link rather than a button, like in
Dreamweaver? With this particular project, it really isn't an option to use
buttons!
I don't know how to custom script, so if anyo... more >>
Go to start of movie
Posted by Mintyman at 9/30/2005 12:09:02 PM
Hi,
I a new to Flash and need some help.
I have a flash file with an image (within a movie clip) at the top and
buttons below. When I mouseover each button the movieclip above is set to
visible. The movie clip plays ok but when I rollout of the movie and then
back on to it, the movie does n... more >>
loading multiple xml files in flash
Posted by musibest at 9/30/2005 10:50:58 AM
hi
i want to load multiple xml files using a loop. suppose i have five xml file
plan1.xml, plan2.xml.........plan5.xml
in a loop i want all this xml files to be loaded in flash
can any one help
... more >>
classes within classes
Posted by betablocker77 at 9/30/2005 9:21:55 AM
I will be brief. I have a very nice little class for generating labels. This
class attaches mcs at runtime for various parts of the label (text, background,
drop shadow). All of these elements make up a dragable, fully customisable
label. HOWEVER, now I have added a little 'close' button, agai... more >>
nest a movieclip to another at runtime?
Posted by foutuguy at 9/30/2005 8:09:43 AM
Hello,
I am trying to nest a movieclip to another at runtime. I tryed to do that with
attachMovie but it did not work. Here are the details :
I have 3 MovieClips:
MovieClip A, which contains 6 MovieClips (A1 to A6)
MovieClip B, which contains 6 MovieClips (B1 to B6)
MovieClip C
All M... more >>
Trouble with simple script to change alpha on a button
Posted by Centerpoint Computer at 9/30/2005 8:03:55 AM
I have the main timeline with a movie clip in frame 1 with an instance name of
thumbs_mc. That movie clip contains 3 instances of another clip, each named
with an instance name. thumb1_mc, thumb2_mc, thumb3_mc, etc.
I have loadMovie script on frame one of the timeline for thumbs_mc which l... more >>
swf in browser cache - checking
Posted by vawaver at 9/30/2005 6:06:55 AM
Dear friends,
I apologize if there is some similar topic as mine.
My problem:
I am loading file external.swf to main.swf via button in main.swf. But if I
change something in external.swf and upload this file on ftp, my browser (FF,
IE) still uses "original" external.swf that was loaded p... more >>
How to pass a variable with an ampersand in it
Posted by Rich Capone at 9/30/2005 5:35:50 AM
Does anyone know how I can pass a value into a swf file via the HTML when one
of the variables is a URL with an ampersand in it.
i.e. See my example below...
myswf.swf?variable1=9393&variable2=abc&variable3=http://www.def.com&urlvariable1
=393
I want to pass variable3 to flash but the... more >>
adding data in xml file
Posted by gaurav_ch at 9/30/2005 4:41:56 AM
i want to know that can we add additional data in an existing xml file from
flash? i know that we can retrieve the info from xml file but i dont know
whether i can add also. i am a beginner so please bear with me. thanks.
... more >>
an array of objects... HOW?
Posted by Daniele at 9/30/2005 4:10:03 AM
what i'm tryng to do:
function MYOBJ(uno, due, tre){
this.uno = uno;
this.due = due;
this.tre = tre;
}
sand = new Array();
sand[0] = new MYOBJ("v1", "v2", "v3");
sand[1] = new MYOBJ("a1", "a2", "a3");
sand[2] = new MYOBJ("x1", "x2", "x3");
but sand[0], san... more >>
Defining a dynamic text field via a _global variable
Posted by LSNsaltlamp at 9/30/2005 4:04:01 AM
I want to set the value of a dynamic text field to be the same as a variable.
I've tried:
error1_txt.text = _global.cb1;
where error1_txt.text is the dynamic text field and _global.cb1 is the
variable. But this isn't working.
... more >>
Flash Zoom-in bug?
Posted by maulia at 9/30/2005 2:47:01 AM
Well to make the wording easier, I copy-paste someone else's question with the
same problem:
I try to scale a dynamic textfield with a zoom button.
The Text scales with the field as intended.
But now the big Problem:
The word-wrap changes with each zoom step,
so sometimes a word is i... more >>
Preloading external .swf
Posted by WickedSense at 9/30/2005 2:13:20 AM
Hey guys, I am amateur to actionscript and just starting to build preloaders. I
borrowed this code from the Flash MX Bible.
It is supposed to be updating a text box and bar._xscale in respect to the
loading .swf file.
Instead my text box says NA / 0 % NA KB Loaded. If I click just after th... more >>
loadMovie() in Flash 8 not working
Posted by ejtrombley at 9/30/2005 1:42:31 AM
I have an application that loads a graphic mask on a guitar. The user can
define the image they wish to load, either from a jpg file local to the hard
drive or a jpg file hosted on a web site.
This is the link. Click the "Graphic" radio button to use the feature
described above:
http://... more >>
Finding Height of Image
Posted by gvbrown49686 at 9/30/2005 1:28:39 AM
Hi,
I'm creating a series of images using createEmptyMovieClip, then loading the
jpeg dynamically.
I need to find the width / height of the loaded jpeg.
using the _height property always returns no value.
Is there a way to find the dimensions of a dynamically loaded image?
... more >>
Sending a _global variable to PHP
Posted by LSNsaltlamp at 9/30/2005 1:19:43 AM
I have a variable in my mc defined by:
_global.cb1 = "yes";
I have another bit of code that sends the information of text boxes to a PHP
file. Where name_txt.text is the text form the text feild name_txt. ect. I want
to send "yes" as the value for cb1 to my php file.
message.cb1 = _globa... more >>
Using action scripting to type in a movie
Posted by Magic Toe at 9/30/2005 12:55:22 AM
I?m trying to figure out a way to make a movie clip with action scripting in it
where I can type in a sentence and have flash type it out for me.
I found this text effect generator that uses texto= ?{insert text here}? but
theres alot of code I dont understand. I don?t know how to place it i... more >>
Mp3 load, later assign ID name. is that possible?
Posted by temptationxy at 9/30/2005 12:00:39 AM
I want to load mp3 file in my swf.Normally i use Sound.loadSound() action. But
i want to use
this mp3 with sound.attachSound() action. therefore i need one ID name. in
this instance can i
assign ID name for this mp3?
... more >>
Clearing data from an array.
Posted by Yooree at 9/29/2005 11:53:17 PM
I'm testing something out for a flash game, and in this testing scenario I have
a button that can effectivly 'spawn' or replicate these movie clip objects I've
called umbrellas. (They're just blue scribbles, but I had to use a mc just for
the testing purpose.) So I've got this array full of um... more >>
SWF Movie Shielding
Posted by rmls999 NO[at]SPAM hotmail.com at 9/29/2005 11:25:51 PM
I am intersted, as part of securing my flash web site , in removing
flash movies from from the user system when they are not used. I was
wondering if the unload movie command removes the movie from the
computer cache, and from the user system enirely. I would also like to
know if the sorce movi... more >>
Styling comboBox component with AS
Posted by Anders Thingholm at 9/29/2005 9:01:45 PM
Hi,
I have this code:
_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration();
_global.styles.ComboBox.setStyle("color", 0x333333);
_global.styles.ComboBox.setStyle("fontFamily", "arial");
_global.styles.ComboBox.setStyle("fontSize", 11);
_global.styles.ComboBox.setStyle("theme... more >>
Flash 8 as an actionscript editor
Posted by Jimww at 9/29/2005 8:32:34 PM
Hi,
Is there a simple way to navigate between actionscript functions, classes, etc
within Flash 8 or must I use eclipse or something. Please say yes.
This is so basic, I must be missing something.
Thanks
Jim
... more >>
URL button
Posted by Clayron at 9/29/2005 8:24:05 PM
At the end of my movie I have a link to open a website and to send an email.
I made a rollover button for the website link, but I can't make it open the
website - the button itself workd fine. My code for the button is:
website.onRelease = function () {
getURL("http://www.mywebsite.co... more >>
Dynamic loadVariables Text File
Posted by Dr. DOT at 9/29/2005 8:02:04 PM
Is there anyway to use a different text file that contans the dynamic
loadVariables? I need to be able to do something like this:
When the Web page loads, have
<param name=myVarFile value=file999.txt>
where 999 is dynamically assigned by PHP?
I can handle the PHP part, I just need to... more >>
loadMovie() question
Posted by Bob-Austin at 9/29/2005 8:01:08 PM
From "ActionScript for Flash MX: The Definitive Guide" by Colin Moock:
"The loadMovie() function is not immediately executed when it appears in a
statement block. In fact, it is not executed
until all other statements in the block have finished executing."
"We cannot access... more >>
rss Fead not Loading...
Posted by DJ James at 9/29/2005 7:00:28 PM
Here is the code I am using to try to get the weather from the rss feed from
weather.com. It worked ONCE but now it won't do anything when I try to get the
data from the file.
Does anyone know why this is? like I said.. when I hit "CTRL + ENTER" and ran
it the first time.. it worked fi... more >>
|