all groups > flash actionscript > june 2005 > threads for friday june 17
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
How to use a simple array to keep track of buttons clicked
Posted by kirknetiq at 6/17/2005 11:50:25 PM
I have one frame that has six clickable buttons (which are movie clips). When
you click on a button, your sent to another frame with information about the
area the button represents....(I tried to use hidden text areas...but it would
not work for several reasons). When the user clicks on the c... more >>
Microsoft Access Database With Flash Actionscript
Posted by andrew329 at 6/17/2005 10:13:25 PM
Hi,
I was curious if there was a way you can connecto to a Microsoft Access
database. I know you can use XML, the SharedObject, and LocalConnection
classes, but is there a way you can use any of these to connect to an access
database?
Andrew
... more >>
replacing image with action script
Posted by Ledrim at 6/17/2005 8:22:50 PM
I'm trying to create an interactive application, in which the user can choose a
color swatch to see various colors of wall panels and chairs. I need to do this
via script, not timeline.
I did something similar in Director years ago using "replace", but I'm not
aware of a similar script in ... more >>
Dynamic Textbox Problems
Posted by MyFlashMXIN at 6/17/2005 8:00:12 PM
For some reason my AS fails to set the textfield background color...
Anyone see what I've done wrong here?
function placeContent(xpos, ypos, wpos:Number):Void {
_root.createEmptyMovieClip("textBox", 1);
_root[textBox].createTextField("mytext", 1, xpos, ypos, wpos, 560);
mytext.a... more >>
How to take a Snapshot - Screenshot - Capture
Posted by Giuliano MX at 6/17/2005 7:54:33 PM
Hi eveyone,
I work in the music auditorium @ the college and I would like to build a tool
in flash that allows the following things:
1.- Be able to move certain instruments to a particular place in an empty
auditorium template on the screeen.
2.- Have a button that takes a screenshot/s... more >>
createTextField in MovieClip
Posted by Dave in UK at 6/17/2005 7:38:07 PM
// I'm having a problem with a really basic topic . How to create a text field
in a movie clip at runtime?
// What am I doing wrong? I assume it's something to do with the path to the
Text object??
// Here's my script and the output from it - Please help ..Dave
_root.createEmptyMovieCli... more >>
Loader Component & Timeline
Posted by Susi_S at 6/17/2005 7:33:47 PM
This may be a really simple question, but I just haven't worked with Flash
enough to know the answer (I'm a Director guru). I have a preloader swf file
that contains the following code:
loadListener = new Object ();
loadListener.complete = function(eventObj) {
pBar.visible = false;
... more >>
KeyPress <enter> won't work when cursor is in textinput component
Posted by Danny Mac at 6/17/2005 1:44:07 PM
Hi there,
I have a textInput component and a button that submits the contents of that
textInput. What I'm trying to do is type whatever I want in the textInput and
submit it by hitting the "enter" button. So, I put this code on the button:
on (release, keyPress "<enter>")
{
tra... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
stage.height and yscale?
Posted by metrique at 6/17/2005 1:32:23 PM
Hi, I'm using a scalable SWF that will stretch for browser windows and I'm
attempting to get a movieclip to stretch verticaly accordingly, using the
following code:
mymovieclip._yscale = Stage.height;
However, it doesn't work. I tried tracing Stage.height and it worked, so why
isn't it... more >>
resizing the scene according to browser window size or screen resolution
Posted by mason phoenix at 6/17/2005 1:12:43 PM
Hi guys, how can i resize my scene according to the browser's window size or
the currents screen resolution.
I used the 'System' class to read the screens resolution, after this i resized
the scene to a size a little bit smaller than the screen size, the problem is
that only the background o... more >>
Getting a snapshot from screen
Posted by Phecta at 6/17/2005 1:06:33 PM
Hi,
Is there a way to get screenshot from the swf?
I am developing an application and users will make some changes on my swf
files wiev. So i want to take snapshots of users works.
How can i do that? Can i do it by the help of a server side scripting?
Regards,
... more >>
Action Script scrolling + ease on mouse position
Posted by nat_vald at 6/17/2005 12:56:39 PM
Anyone know of a source file/script that does this:
http://www.harleyad.co.uk/scroll.swf .
Here's a small Flash example of the scrolling here:
http://www.podlob.com/flash/template.php?name=slidemenu&bgcolor=cccccc&width=400
&height=300&quality=HIGH
Thank you!
... more >>
SCORM connectivity
Posted by Ratfinck at 6/17/2005 12:52:45 PM
I'm working on a project where I need to connect my Flash application to SCORM
1.2 LMS. At the moment I am just testing the application to ensure I can use
the SetValue and GetValue properties.
I can connect to the LMS, intialise it, and send the variable I want with
SetValue. But I just ... more >>
Flash form data send (cross domain)
Posted by chrisdgreen at 6/17/2005 12:14:30 PM
I am having problems receiving data from a flash form
I have a flash banner advert with a form and need to send the data to a
different domain for processing.
3 variables to a process script no return
I can do it with GetUrl but do not want to have a new browser window.
I am using load... more >>
how can i play a graphic animation independentally?
Posted by yertari at 6/17/2005 11:52:10 AM
Hi,
i wonder if someone could help me with this....
I have my main news page on my site, in the centre window, and a small window
at the side of this showing text links that pop up different news items in the
main window, by with which i will use the gotoAndPlay command to jump to the ... more >>
Browser window size in Flash
Posted by gunse at 6/17/2005 11:50:28 AM
Hello
Is there a way to get the Browser innerWidth and the Browser innerHeight
values into a FlashMovie? I would like to know, when a user is resizing the
Browserwindow. FScommand or getURL and then with JavaScript?
thank you and kind regards
Velvet
... more >>
Loading a jpg in, then resize it?
Posted by Richard Ragon at 6/17/2005 11:22:49 AM
I have a progressive jpg's about 2544 px by 3296 px.
if I use loadMovie to place the jpg in, how do I then resize it to
something like 400 x 550?
It seams to resize the MC, but not the jpg.
Thanks
-Rich... more >>
Press any key to advance playhead
Posted by -AndyK- at 6/17/2005 11:00:00 AM
Hi all,
I am using the following script to tell the movie to play when the spacebar is
pressed:
on (keypress "<Space>") (
play();
)
This works fine, no problem.
Is there a way to change the space key for any key on the keyboard? i.e. if
the user pressed y,j,c, or anyother key t... more >>
panning a window under a mask
Posted by mason phoenix at 6/17/2005 10:50:25 AM
Hi, i want to zoom and pan an image, it has a square mask, the mask remains
unchanged while the image behind it zoomes, after this i want to be able to pan
the image but without exceeding the boundaries of the mask, i don't want any
blanks between the image and the mask, i tryed to do this but... more >>
centrate a picture to the middle in a scrollpane
Posted by addy_ro at 6/17/2005 9:22:49 AM
haw it is possible to centrate a picture in a scrollpane if the picture's width
is smaler than the scrollpane's width
i am loading pictures that ar not the same size somme are biger than the
scrollpane somme are smaler
the smaler ones i whant to centrate them to the centre of the scrollpane... more >>
loading flash movie in flash
Posted by skyb3l at 6/17/2005 9:09:32 AM
i'm loading a 1.swf and inside the 1.swf i used a button to load 2.swf inside
1.swf but got one problem the 2.swf is playing faster then normal. is it
somekind a bug or what?
I'm using this script
on (release) {
_root.contents.loadMovie("2.swf");
}
... more >>
movieclip created in runtime cannot fire the correct onPress function
Posted by et_me at 6/17/2005 8:03:00 AM
I create movie clip in the run time and when i call the onPress function,
sometime it cannot trace the right movieclip. Is this something to do with the
depth problem? How can i fix this? i try to use _visibility but it won't work
either.
actually the onPress function there i wanna make th... more >>
Write Access
Posted by Sunni89 at 6/17/2005 7:26:17 AM
If you have write access to a file on the flashmx server, how can you take advantage of that and update teh shared objects and thigns?... more >>
problem with attaching a movieclip
Posted by popimfresh at 6/17/2005 12:48:31 AM
please keep in mind i'm new to this (which i'm sure leads off many forum
problems ... but here goes)
I've created a movieclip (still image) as a background, i've placed buttons
over the surface of the image ... these buttons are to correspond with other
movieclips. the action i'm looking ... more >>
loadMovie Question
Posted by ID. Awe at 6/17/2005 12:00:00 AM
Well I know how to use loadMovieNum to load an external movie clip (Ad1.swf)
with a button (CoolAd)
I know how to use attachMovie to place an MC in the library into an
emptyMovieClip (adclip) on the timeline for position.
What I can't figure out is how to load an external movie clip (Ad1... more >>
how do I stop sending blank forms?
Posted by Ineedsleep at 6/17/2005 12:00:00 AM
this is what IVe been using
on (release) {
if ((name.length==0)or(email.length==0)or(message1.le ngth==0)){
_root.error_mail.gotoAndStop(2);
}
else
{
form.loadVariables("http://www.djnow.co.uk/email.php", "POST");
}
}
it still sends the email any way Ive tried "" and or < > j... more >>
loadMovieNum
Posted by TimeFissure at 6/17/2005 12:00:00 AM
I have been using tutorials form lynda. com for flash mx. It showed a technique
using the "loadMovieNum" to have it pull up the SWF and place it in the main
scene. It works fine when I test it, but I can't figure out why it doesn't work
when I upload it. I have tried loading it as a level and ... more >>
Intersection bewteen two lines
Posted by nickcrispini at 6/17/2005 12:00:00 AM
I can draw dynamically draw two lines with the following function:
function drawLine(x1,y1,x2,y2) {
clip.moveTo(x1, y1);
clip.lineTo(x2, y2);
}
However can anyone tell me how to detect if the two lines are intersecting and
if so at what point?
Thanks.
... more >>
resize stage depending on resolution
Posted by daveluff at 6/17/2005 12:00:00 AM
Hi People,
I have a swf that is 1024X768. I want to work out the users
screen resolution, then if the res is equal to 1024X768 reduce my swf size by
80%. If res is over 1024X768 leave movie size as it is.
Now I can detect res and decide wether I need to reduce swf or leav... more >>
fscomand
Posted by daveGlasgow at 6/17/2005 12:00:00 AM
Hi
I am trying to launch exe files from a flash projector.
As a test I have created an exe file and put it in a subfolder (of the
projector file) called fscomand - (This is apparently because of new security
resrictions for MX)
I have then created a button and attatched this code.
I... more >>
More XML Questions
Posted by Rothrock at 6/17/2005 12:00:00 AM
I'm starting to use XML more and more. So far I've been able to do the stuff I
need. But I'm trying to figure out some different ways to work with it. I'm
just starting my largest project to date and I'm still not completely clear on
what direction to take.
After I load in my "catalog" sho... more >>
Button Problems
Posted by billymcdafthead at 6/17/2005 12:00:00 AM
Hi there I have read up on other button problems on these forums but now its
becomign confusing...
What I have is a preloader...which goes to fram 5 and then the movie lasts
1283 frames.
I have managed to get the preloader to work but now I have a gif image saying
START which I want to a... more >>
Upload picture to server using flash + php
Posted by bertjeb at 6/17/2005 12:00:00 AM
I need to browse a computer to find a picture in a flash site, send the picture
to a php script that will upload that picture to my server.
The big problem is to browse my computer by using flash. Is there a component
that can do something?
I've everything working in a html-version (using ... more >>
Help with dynamic text when SWF is embedded in html page
Posted by douguitarman at 6/17/2005 12:00:00 AM
I've created several dynamic text fields with scrollbar components that respond
to button clicks. I'm trying to attach a style sheet to the text file loaded in
these text fields. Everything works as expected when you test the movie in
flash. The problem is when this SWF is embedded in a web pa... more >>
Background slide effect....
Posted by Gerardo Sepulveda at 6/17/2005 12:00:00 AM
How can I do this effect, when you click on a buton the back slid from one side to other side.... you?ll se....
http://www.solisys.com/
Thanks a lot... more >>
Scripted Movement
Posted by Tony Heagren at 6/17/2005 12:00:00 AM
Hi All...
I need to do a bit of scripted movement (which is not really my thing
as a designer) but
there is no-one else here so I'm stuck with it.
The is the thing:
I have two MCs on a timeline deep within a movie.
Two layers on the timeline. One MC on each.
Instance names are "clak" and... more >>
diff between x,y in symbol vs on stage
Posted by GallG at 6/17/2005 12:00:00 AM
I can't find an explanation to this so I'm hoping one of the gurus can shed
some light.
I created a person jumping on a trampoline - for now, 2 objects: trampoline
and person jumping. When I originally created the symbol for the
person(jumper), his head was aligned at the "top" within the ... more >>
WebServices and AS2
Posted by myke_mla at 6/17/2005 12:00:00 AM
Hello,
I have been working with web services recently and I'm trying to create a
custom class to handle calls to web services. However, I can't seem to import
the WebServices class. Does anyone know what I'm missing?
My code in as2:
import mx.services.*;
class CallService {
... more >>
Changing text color of a button
Posted by kirknetiq at 6/17/2005 12:00:00 AM
If I want to change the text color of a button when it has been pressed, how do I do this and where does the AS go?
Thanks... more >>
playing and stopping a movie loaded with loadMovie
Posted by ovydiu at 6/17/2005 12:00:00 AM
ok i have a _root.textMovie movie clip that has an empty movie clip in it
called holder
i load a movie in it which works ok:
_root.textMovie.holder.loadMovie(path, GET);
the movie starts playing but when i call _root.textMovie.holder.stop(); or
_root.textMovie.holder.gotoAndStop(1);
it d... more >>
How do you stop flash from rounding 0's???
Posted by LordBarf at 6/17/2005 12:00:00 AM
Ok, so Im at my wits end here, and I figured I would take a shot to my pride
and ask savvier minds than mine. I am writing code for a computer program
simulator, simulating pressures, eduction rates and discharge velocities to
pump. Trouble is that when my numbers (example 40.0 psi) are even, ... more >>
how can I do the same thing with my pictures
Posted by OlgaP at 6/17/2005 12:00:00 AM
hi everyone,
I?m trying to create a picture bar where the selected picture is shown bigger,
and when the mouse is over that picture,the picture bar is like the Apple?s
bar. I want to show you an exact example of what I want. I don?t have any idea
of how to do it, the web site I saw with t... more >>
Text Scroller. Anyone? Anyone? Bueller?
Posted by macromike at 6/17/2005 12:00:00 AM
Anybody know a good tutorial for a text scroller. One that does not use external.txt files?... more >>
Sound problem
Posted by alex5050 at 6/17/2005 12:00:00 AM
Hi
I want 2 sounds play together, this is one:
warning = new Sound()
warning.attachSound("warning");
myVolume = 100
and this is two:
space = new Sound()
space.attachSound("space");
space.start(0,999)
myVolume = 100
I want that SPACE sound will play always, and the warning sou... more >>
|