all groups > flash actionscript > december 2006 > threads for tuesday december 19
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
MC inherting previous code
Posted by twistedpancreas at 12/19/2006 11:16:09 PM
Hey there I have a mc called "nextBut".
At one point it has
and then later on the main timeline has the following code (see next post
since i can't attach code twice in one post):
_level0.nextBut.onRelease = function() {
_level0.gotoAndStop("calc1");
fastBtn._visible =... more >>
How do I validate a postal code format?
Posted by timpsmith at 12/19/2006 11:11:11 PM
I am trying to use actionscript check a string to see if it is in a valid
Canadian postal code [B]format[/B] (ie. M5R1X2).
The format is 6 characters and is always
Letter,Number,Letter,Number,Letter,Number.
Can anyone help me check each character in a string to see it they are numbers
... more >>
I have a function that tells a movie clip to hover around, how do i turn it off though?
Posted by dtrace at 12/19/2006 11:00:34 PM
Basically, I have a function that is telling this piece of text to move around.
When someone rolls over the text however, I'd like for this function to stop.
And when someone rolls off of the text, I want it to continue.
How can I do this?
Thanks.
function floatMc(float_mc:MovieCli... more >>
Trapping CTRL-F7 while not trapping F7
Posted by UI Guy at 12/19/2006 10:36:16 PM
Background: I do a lot of work where I use Flash as an Interface prototype
engine. Consequently, much of my material is driven by the Keyboard rather
than mouse. (Actually, a lot of it is driven by an IR remote control
masquerading as a keyboard; however, I digress...).
I have a prototy... more >>
Only works once
Posted by Will Y. at 12/19/2006 10:20:26 PM
Hi,
I've kind of juried rigged some script and it works, but only the first time.
I'm using a component called Slideshowpro that builds photo galleries. I'm
trying to customize the navigation by having a caption appear on rollover of
the image. I've built a movie clip that holds the caption... more >>
duplicateMovieClip
Posted by Alastair MacFarlane at 12/19/2006 10:00:21 PM
Dear All
Please help me. What does these 2 lines really do?
duplicateMovieClip("fade", "fade" + i, i);
eval("fade" + i + ".font.letterfield") = substring(line1, i, 1);
all be it the second line fails and thanks to DMennenoh, I was advised to
use:
var newClip = duplicateMovieClip ("fade... more >>
XML and Array issue
Posted by crisbosch at 12/19/2006 9:48:26 PM
I've created an array that loads data from an XML file. Now, when a button is
pressed I want this array to delete all previous elements found in the array
and add new elements coming from the same XML file. So I created a function
called arrayUpdate, here it is...
function arrayUpdate():V... more >>
How do I rotate an object 45 degrees at a time
Posted by deilers at 12/19/2006 9:46:48 PM
I'm designing a simple online floor plan staging area and need to be able to
move and rotate (45 degrees at a time) simple boxes. Literally picture squares
on a white background that you can move around and with the click of a button
(perhaps by clicking a small icon within each square) each s... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Move a movie's parent clip
Posted by poisoniver at 12/19/2006 9:46:07 PM
I have checked around and have had this problem before. I realize it maybe odd
but what I am trying to do is move a movieclip to a different _parent without
using a linkage identifier.
For example I have a movieclip on the stage that was made at authoring time
and it is at level0.my_mc.... more >>
Collision Detection Using Math
Posted by InFlashWeTrust at 12/19/2006 8:54:31 PM
Im working on a really simple game but i want to get math Circle to Circle
collision working.
Contained in the attatched zip is the basic game working with movement.
And the example of math collision between circles.
Im stuck with how to apply the math to my game.
Any help would be ... more >>
onEnterFrame - duplicateMC
Posted by MatMaar at 12/19/2006 8:37:22 PM
I have duplicate a mc several times. Now I want to attach to every duplicated
mc a onEnterFrame function.
What I'm looking for is a shorten method for:
_root.MC0.onEnterframe = function;
_root.MC1.onEnterframe = function;
_root.MC2.onEnterframe = function;
_root.MC3.onEnterframe = f... more >>
Using code, I'd like to animate a movieclip so that it sways back and forth
Posted by dtrace at 12/19/2006 8:21:39 PM
I'd like a piece of text to basically move around slightly....like it's
floating. Just a slight back and forth, maybe a little up and down. Real subtle
though.
how would i do this with code. Can you please help me.
Thanks
... more >>
Embedded Fonts with HTML
Posted by BeniRose at 12/19/2006 8:00:57 PM
So I have a textfield I've created in AS using createTextField. I've set
embedFonts to true and all of that part works fine. My font shows up and it
works. My question though is how do I get my HTML formatting to show up in this
textfield? I understand why it's not working, I'm just not sure w... more >>
if() and else{}
Posted by Sketchsta at 12/19/2006 6:18:23 PM
I'm making some invisible buttons which on rollover move a movieclip left and
right. i have the code ( as good as i can do anyway :smile; )
but now im having problems with stopping it moving when it reaches a certain
spot..
i tried the if and else commands, but they didnt work the way i t... more >>
Flash Button Moving A Movie Clip Scroll
Posted by jmoe30 at 12/19/2006 6:07:01 PM
:confused; I'm trying to get a movie clip to scroll on a click of a button, I
know I could do this in frames, but the issue is that the movie clip, which is
a vertical scrolling, background highlight bar for the buttons, has to go to
three different buttons on click of the button. So the the M... more >>
Ban full screen
Posted by Tris at 12/19/2006 6:00:05 PM
(Please, excuse my English, I am Spanish).
I want to export my .fla to .swf, but I don't want the user to play it on
full screen. How can I disable that option?
Regards,
Tris.-
... more >>
Image keeps fading
Posted by bloodfoot at 12/19/2006 5:37:20 PM
i downloaded this handy slideshow [credit to the guy in the code]
The script works fine, but there's something i can't do. I'm that well versed
in actionscript, so all help is appreciated.
I want to be able to place a picture on top of the slideshow [like on the top
layer]. Just a simple l... more >>
load variables email address from text file anyone?
Posted by mullacthe1st at 12/19/2006 5:35:40 PM
I have the code below attached to a movieclip which i am attempting to use to
call in an email address from a text file. The idea being that the textfile can
be altered by a luddite, and the recipient email adress changed in the flash
file.... but i'm not doing too well...!
The best i have... more >>
Replay Scene issue...
Posted by HuskerJay at 12/19/2006 5:30:40 PM
I have a fla file that has two scenes. At the end of scene 2 there is a button
that is directed upon release to go to prevScene...in this case scene 1. When
you hit the replay button it does go back to scene 1, which plays through, but
it doesn't continue on to scene 2 - which I want it to do ... more >>
Buttons inside a scroll
Posted by screen_sofia at 12/19/2006 4:29:31 PM
Hi
I´ve got several buttons inside a scroll bar...
The buttons must "gotoandplay" to a frame label..but it doesn´t work!
what should I do??
thanks for helping!
Sofia... more >>
browser resive
Posted by Venian at 12/19/2006 4:26:30 PM
hi
I need some help.
I have a website with a swf file build on a resolution of 1024x768. And when
the website is opened on a computer with a resolution of around 1280x1204, it
looks small.
I want it to resize itself so it will be the same proportion regardless of the
screen's resolutio... more >>
Preloader in presentation slide
Posted by ChimpyChomps at 12/19/2006 4:19:42 PM
Hi
Does anybody know how to or is it even possible to create a preloader in a presentation file? I hope some one has the answer to this as i have tried looking every where.
Thanks... more >>
getURL not working
Posted by 1000bpm at 12/19/2006 3:37:17 PM
Hello,
Does anyone see or know why the getURL code below does not work on a button?
rollOver and rollOut events work, getURL doesn't.
thanks.
Here is an example of where the flash is going to be displayed.
http://www.lowes.com/lowes/lkn?action=brandPageProcessor&brandpage=moen
on (... more >>
Flash Blackjack
Posted by Clone1000 at 12/19/2006 3:20:03 PM
i posted about this a while ago but i seem to have lost the topic :/ , i
thought i would clarify the problem:
I am making a blackjack game in Flash and I am at the stage of getting the
cards to display on screen, I have a way I could do it, but that would involve
me writing out 1040 If sta... more >>
Use Alpha on LoadMovie
Posted by izm067 at 12/19/2006 2:57:01 PM
Is it possible to use action script code with LoadMovie so it goes from an
alpha of zero to alpha of 100 and just fades in? Or does each piece of the swf
being loaded have to have the fade in built into it.
I would like for the swf to fade in when it is loaded the first time, but if a
b... more >>
getting line cordinates from XML file
Posted by noobidoo at 12/19/2006 1:54:56 AM
im trying to gett flash to draw an object white the cordinates that is in the
xml file.
im using a javagui to set the cordinates and the XML file is goning to be
genertad by a php script.
var link_xml:XML = new XML();
link_xml.ignoreWhite = true;
link_xml.load("link.xml");
link_x... more >>
Issues with getURL and IE6/IE7
Posted by SerpicoLugNut at 12/19/2006 1:15:15 AM
I'm having some problems executing two javascripts in Flash under IE6/IE7. My
scripts work fine under FF1.5/2.0/Safari.
I have a mc that when the user clicks on it toggles a checkbox in a div. When
the user clicks another mc (a back button), a getURL is called to load a
javascript to swap ... more >>
Text-to-graphic conversion at runtime
Posted by brandylad at 12/19/2006 12:48:36 AM
Hi there,
Thanks for looking at this post. I have a project in which I've got text being
loaded in from an external source, to be displayed in a text field object and
dynamically moved about and re-scaled. If anyone has tried to do this with
dynamic (or, as I've found out, even static) tex... more >>
Custom cursor
Posted by jgn2006 at 12/19/2006 12:26:52 AM
I thought this was simple. I need some custom cursors. Created the cursor as
a movieclip object on a new layer's first frame and on its actions I have
onCLipEvent(load) {
this.startDrag();
}
when the movie loads, the custom cursor moves alright except its some distance
from the st... more >>
mouse attach
Posted by dtedone1 at 12/19/2006 12:00:00 AM
I would like the navigation on my site www.1dt.biz to go to the cursor when it
is over the 'screen' - at the moment the 'screen' area is a button with a drag
and stop drag behavior attached - I need the navigation to return from wherever
it is to the cursor when the cursor is over the 'screen'... more >>
Action Script for next frame
Posted by nicknamesaretaken at 12/19/2006 12:00:00 AM
Hi,
I'm making an interactive world map.
The idea is that the mouse rolls over a country which makes the country goes
red and the countries name appears. I have got this to work fine, but I am
trying to use some script so that when the mouse clicks down and releases on
the country, ... more >>
strange scrollpane behavior
Posted by rohai at 12/19/2006 12:00:00 AM
Hi,
I have a A.swf, B.swf and C.swf. B.swf is loaded into A.swf and it has a
scrollpane, into which C.swf is loaded. When I test B.swf, everything works
fine, but when I run A.swf, into scrollpane (B.swf) is loaded B.swf and into
that scrollpane is loaded C.swf.. Any ideas? What must do to ... more >>
stop count
Posted by Ehud35new at 12/19/2006 12:00:00 AM
I got this action script
// initialize 'counter' & 'myCounter'
counter = myCounter.text = 0;
// function to call every second
updateCounter = function () {
// increase 'counter' by 1
counter++;
// display result
myCounter.text = counter;
}
// cal... more >>
How to strip text formatting from text field value ??
Posted by ninjayong at 12/19/2006 12:00:00 AM
Hi everyone,
Have tried to get some info on this but no luck.... I've created a simple
contact form in Flash, but the URL which it's generating contains the text
formatting from the text input fields. As a result the script that processes
the mail send doesn't work. How do I strip the text f... more >>
Multiple Loader Component Actionscript
Posted by Thred Industries at 12/19/2006 12:00:00 AM
I have created a multiple scene flash website, all contained in one movie
called yoke_web.swf.
The size of the movie is 800x 600 and i want it to be displayed with a
background image behind it that changes as you click on the menu items.
In order to do this i created a new flash file at th... more >>
Actions Layer will not control navigation buttons!
Posted by ChuckRWD at 12/19/2006 12:00:00 AM
I created a flash menu inside my header for the website, and here is my
problem, only some of my buttons are working. About half work, and half do
not. When I click on the button, nothing happens. All the buttons are named
and spelled correctly, but yet they WILL NOT work. Please tell me w... more >>
problem with context menu builder
Posted by forghoon at 12/19/2006 12:00:00 AM
Hi,
I build a context menu for a movie clip, it works in .swf file, but not in Stand-alone projector file.
what's wrong?... more >>
|