all groups > flash actionscript > january 2006 > threads for tuesday january 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 31
upload with php and flash
Posted by DrEv1l at 1/24/2006 11:50:11 PM
although the output says all done in the onComplete I have no file in mij
directory.
this is my php
<?
if ($_FILES['Filedata']['name']) {
$uploadDir = "images/";
$uploadFile = $uploadDir . basename($_FILES['Filedata']['name']);
move_uploaded_file($_FILES['Filedata']['tmp_name']... more >>
event listener
Posted by mazzmerizer at 1/24/2006 11:48:55 PM
i have an even listener shown in the attached code. as you can see it listens
for the change event to occur from the gallery combo box. i say it works
because when i change selections in the combo box, the pictures load (this
combo box is part of an image gallery). they load only after i cha... more >>
string replacement or stripslash function?
Posted by elpoderosen at 1/24/2006 11:25:38 PM
I have a swf that is calling in an xml document to run dynamic text. I need to
be able to strip the \ out of this xml for it to work properly. Is there
actionscript that will do this?
for example the xml document reads:
<![CDATA[<u><a title=\"Google\" href=\"http://www.google.com/\"
ta... more >>
How To Push Object On Stage
Posted by AwesomeDigital2 at 1/24/2006 11:24:25 PM
I'm trying to figure out how to work this out. If anybody could toss me a few
keywords to search on or some examples to look at, I would appreciate it.
I want to have a piece of cheese on a table that the user could push to the
edge so that it falls onto the floor.
Thanks
Mathias
... more >>
Choosing a file from a local computer
Posted by OniLink at 1/24/2006 11:17:17 PM
Is it possible to put actionscript on a button to allow it to open a window to chose a file from a local computer? Just like the Browse button on a html page.
Thanks for any help,
~Oni.... more >>
Strangest bug with numbers!?!?
Posted by NSurveyor at 1/24/2006 10:49:23 PM
Hmmm... I put the following code on Frame 1 of a blank document:
x = 4.31*100;
trace('x : '+x);
trace('floor(x) : '+Math.floor(x));
trace('ceil(x) : '+Math.ceil(x));
trace('round(x) : '+Math.round(x));
trace(x+' == '+Math.round(x)+' ? '+(x == Math.round(x)));
After running ... more >>
Re: GRAPHICS
Posted by highlander_1 at 1/24/2006 9:58:43 PM
I work in Photshop and Maxon Cinema 4D.
Maybe i should have done the dolls in Poser 5 and
import them into Cinema 4D. Animating and render out
motorcycles and dolls together and do the final finish in Photshop -
picture by picture, frame by frame for animation in Flash.
I hope this gui... more >>
flashVars?
Posted by Ryan Bellerose at 1/24/2006 9:28:15 PM
Below is code written to parse the url http://test.bellerosemedia.comand send
the param to my web service:
var url = this._url;
var slashIndex = url.indexOf("/") + 2;
var dotIndex = url.indexOf(".");
subD = url.substr(slashIndex, dotIndex - slashIndex);
import mx.services.*;
onL... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Bandwidth reserved word
Posted by Russell Holmes at 1/24/2006 9:12:08 PM
When i type in _level0.bandwidth - the system highlight the work in blue...
IS this a reserved word.
Does anyone know what it does???
... more >>
upload with php and flash problem.
Posted by DrEv1l at 1/24/2006 8:28:20 PM
this code gives an IOError when I try to upload. But what exacly has to come
here?
file_fr.upload("upload.php?testvar=Hello World "+Date());
what does the testvar and Hello World have to be ?DOes anyone see any other
mistakes?
//import the FileReference Object
import flash.net.FileRe... more >>
comboboxes
Posted by prostang at 1/24/2006 7:43:16 PM
I currently have two combo boxes in a form that I am building. I plan later to
email the results out, but I cannot get the second comboBox to operate like the
first. I have tried creating two separate listeners with no luck. One box is
named "myComboBox" and the other is named "projection".... more >>
Looping movieclip
Posted by johnny promo at 1/24/2006 7:39:06 PM
I have a simple movie clip which loops using a 'go to Frame 1' Action. How can i get it to loop only 3 times? It appears at the start of my main movie.
Best wishes all... more >>
Timeline Help (if statements)
Posted by dr3po at 1/24/2006 7:30:56 PM
I've placed actions in the timeline of my movie on a several specified frames
and need to tell my movie to go to a certain numbered frame and play depending
on which frame the button is pressed on in the timeline...HELP
example... "go to frame 125 if current frame<25" "go to frame 250 if cu... more >>
How size FLVPlayback in proportion?
Posted by robertnzana at 1/24/2006 7:14:52 PM
I have 10 buttons which play 10 different FLV movies. Here's the code:
on(press)
{
my_FLVPlybk.contentPath = MyVideo1;
my_FLVPlybk._width=289.3;
}
The FLV movies may be different sizes (widths/heights). How can I get it to be
a MAXIMUM of 289.3, YET still retain the proportion so... more >>
My Maze Game
Posted by FlashIsTheCoolest123 at 1/24/2006 5:48:30 PM
Can someone please tell me some ActionScript for making someone lose my game if
their health drops to, or below zero, and to warp to the "End Game" frame if
that is to happen? Thanks!:D
I also need some ActionScript to tally up my score and give the end results on
frame 10 for my end score... more >>
FSCommand quest
Posted by limss27 at 1/24/2006 9:53:44 AM
Can fscommand execute irftp.exe??
example: fscommand( "exec","C:\WINDOWS\system32\irftp.exe");
i try to use this method but i look like not working.
Can anyone tell me, is there any solution for flash to communicate with IR com.
Because i need to send image to handphone through my pc's... more >>
NaN issue.
Posted by DadrianKaelan at 1/24/2006 9:07:08 AM
I made a preloader for a sound file that I'm loading externally and it uses a
dynamic textfield to display the DL'd progress in a percentage field. But
sometimes, before the file is cached and it's ran for the first time, the
textbox displays a NaN message instead of any number. Usually the se... more >>
How to load a jpg into frame 2 of a movie clip?
Posted by wrybread2 at 1/24/2006 8:21:53 AM
I'm trying to load a jpg into frame 2 of a movie clip, and am stumped.
For example, here's some code that will create an empty movie clip, and load
an image onto frame 1 of that movie clip:
this.createEmptyMovieClip("canvas_mc", 10);
canvas_mc.loadMovie("http://www.helpexamples.com/flas... more >>
web cam motion detection
Posted by UNinspired at 1/24/2006 7:22:04 AM
Hi all,
I'm currently trying to use flash8 and my webcam to do something similar to
http://www.setpixel.com/content/?ID=fire
I've just started playing with camera scripts and therefore am stuck with
quite alot of problems. But i decided to go on step by step.
First problem i met,
I a... more >>
Dynamic Text under Masking
Posted by sai1 at 1/24/2006 7:17:50 AM
Hi,
I have created a dynamic textfield on stage and typed in a string into the
dynamic textField using actionscipt like this.
_root.text = "success";
On stage, I wanna use a mask to do an animation over the text. Which means the
viewer will only see the text in 5 frames time, when my... more >>
BitmapData and Preload MovieClip
Posted by l810c at 1/24/2006 6:20:00 AM
I'm preloading a bunch of jpgs into a 'palette'. When I click on one I want
that pattern to fill the background.
I've have all of the sections working and am using BitmapFill elsewhere, but
how can I BitmapFill with preloaded images?
_global.backGroundSelect = function(id:Number, _mc:... more >>
Timeline Help (if statements)
Posted by dr3po at 1/24/2006 4:18:49 AM
I've placed actions in the timeline of my movie on a several specified frames
and need to tell my movie to go to a certain numbered frame and play depending
on which frame the button is pressed on in the
timeline...HELP:confused;:cool;:disgust;
... more >>
RollOut & hitTest problem
Posted by Anze at 1/24/2006 2:53:13 AM
Hi!
I have a strange problem with Flash movie not getting the RollOut events. I
get the RollOver events, but not the RollOut (not always that is). What is
even more weird, the _root.hitTest(_root._xmouse,_root._ymouse,false)
statement sometimes returns true even though the mouse pointer is not... more >>
GRAPHICS
Posted by jonnybennett at 1/24/2006 12:23:11 AM
Could someone take a look at this website...
http://litfusedesign.com/
I don't want to know how they have created some of the clever interactive
elements to this website, but I would like to know how they have created these
graphics.
The t.v. that displays the content of the website. Ha... more >>
advantages to using attributes in XML?
Posted by amyinbrooklyn at 1/24/2006 12:00:00 AM
Why might one utilize attributes when creating their XML as opposed to putting them in another node? Is this helpful when ASing and if so, why?
Thanks! ... more >>
flashVars?
Posted by Ryan Bellerose at 1/24/2006 12:00:00 AM
Say I have a url:
http://jeff.website.com
How would I go about pulling "jeff" from the url and bringing it into Flash,
then taking the "jeff" and sending it as a param to my web service. I know how
to send and recieve params to my services, just not how extract from the url,
then send... more >>
One button, two commands
Posted by Nick L W at 1/24/2006 12:00:00 AM
I'm building a Flash site that uses loader components. The timeline is divided
into 5 sections each with its own loader component with its own Instance name.
I've had no problem creating buttons on the main timeline that 'go to and stop'
at a particular section and allow a movie to load and pl... more >>
Flash MX vs MX 2004 ActionScript
Posted by don Carlos at 1/24/2006 12:00:00 AM
I'm using a book of techniques written for Flash MX, but I have MX 2004. The
particular movie I'm trying to reproduce uses a Click Handler parameter for a
push button component. No such parameter exists in 2004 (that I can find) and
I can't get the button to execute correctly. What happened... more >>
Setting initial focus
Posted by SherwoodClark at 1/24/2006 12:00:00 AM
Is there anyway to set the keyboard focus to a textInput component immediately after the swf file loads on a webpage without requiring the user to click the mouse? ... more >>
Customizing map
Posted by moslebo at 1/24/2006 12:00:00 AM
I am new to database connections.
I have a project that requires me to pull location (name, address, telephone,
etc) from a database and display. I have purchased a map (from flashimap.com)
to start with the map. I also downloaded a sample file (15seconds.com) to test
with connecting to a db... more >>
Re: using startdrag on two seperate movie clips
Posted by kglad at 1/24/2006 12:00:00 AM
you're welcome. the speed is controlled by:
_parent.picture._x += (_root._xmouse-Stage.width/2)/10;
change the 10 to see the effect on image speed.... more >>
Attaching Movies and Variables
Posted by Moztof at 1/24/2006 12:00:00 AM
My wording of this message is probably not the best, but it's morning. Let me
preface this by letting you know what I am doing. I have an XML file that is
being loaded into flash. The scroll pane references a movie that attaches other
movies to the scroll pane. Here is that code:
//goto fi... more >>
Adding methods and properties
Posted by ElelphentTrunk at 1/24/2006 12:00:00 AM
How would one go about adding a method or property to a native class in AS 2.0?
For example:
MovieClip.prototype.box = function(w,h,c) {
with(this) {
beginFill(c, 100);
lineTo(w,0);
lineTo(w,h);
lineTo(0,h);
endFill();
}
}
this.createEmptyMovieClip("boxxy", ... more >>
|