ActionScript 2.0 :: [FMX2004]duplicateMovieClip Success?
Jan 15, 2004I have that loop:
[AS]
for (i=1; i<this.nb; i++) {_root.bande.duplicateMovieClip("bande"+i, i, {_x:originex, _y:(originey+(bandeheight*i))});
[code]....
I have that loop:
[AS]
for (i=1; i<this.nb; i++) {_root.bande.duplicateMovieClip("bande"+i, i, {_x:originex, _y:(originey+(bandeheight*i))});
[code]....
How do you use that??? I'd like to duplicate a MC and give it dynamicly a position but i don't know how to tell that to flash...I'm using that code :
[AS]
onClipEvent(load){
for(i=0; i = nb_titre; i++){
_root.bande.duplicateMovieClip("bande" + i, i, .......................)}}
I'd like to duplicate a MC and give it dynamicly a position but i don't know how to tell that to flash... I'm using that code :
[Code]...
I'm writing an audio recorder in AS3.In AS2, when I loaded up the swf object, the "Camera and Microphone Access" window would pop up immediately. ("Requesting access to your camera and microphone .. allow").However, in AS3, it still works, but there is a noticeable 2-3 second delay before that window pops up.
View 2 RepliesI'm trying to send some variables to a php script, and I don't know how to figure out if I'm successful or not. Here's the AS 3 code I have now (the code snippet assumes that myArray was defined earlier)[code]...
View 6 RepliesCan I trace whether the loadMovie() ... loads the specific content or not?
View 2 RepliesI'm trying to parse this XML but without success? How to parse that xml file?
Code:
<site><point type="arr1">
<title>Universal</title>
<desc>Test2</desc>
<title>Omega</title>
<desc>Test2...</desc>
[Code] .....
I've had great success with loadMovie and loadMovieNum, but occasionally I see something in the posts about attachMovie. Is there a difference between attach and load, or is one left over from a previous verion of Flash?
View 2 RepliesI've tried to implement the Introduction to ZendAMF without success
I'm getting this error on publishing the flash file:
Code: Select allError opening URL 'http://localhost/folder/'
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.Failed
- I'm in localhost on Windows with Xampp.
- If I open in the browser the url of nc.connect() it returns "Zend Amf Endpoint".
- If I print the return of the Tutorials.getTutorials() from another script the returned array contains the correct data.
I've been working with LoadVars a lot recently and like it very much so. However, I have encountered a new problem. I have this array that already works in my Flash project:
[Code]....
just wondering if there is a way to reset the LoadVars() success variable to false or undefined. i need to do this b/c i'm repeatedly fetching data from a asp file using the same LoadVars() Obj to store the data sent from the asp page.
View 6 RepliesThere has been many threads on horizontal parallax effect but I'm trying to build a vertical one with minimal success. I need the effect at a very subtle scale and with easing if possible.
My Current Code (got it from a user here):
// an array with 3 movieClips on stage ... named respectivly
// make sure all these movies go beyond your stage
[Code].....
for (x = 0; x < 10; x++){
for (y = 0; y < 10; y++){
this.createTextField("_txt"+depth, depth, x*20, y*20, 20, 20);[code].....
the above script is from senocular's isometry tutorial, but when i place it on the first frame in MX04 and test the movie -> the result is one box with text "9:9".
I am having trouble setting the alpha of a movie clip (this is a bitmap, if that matters). My code is as follows:
Code:
on (change) {
if (this.getSelectedItem().data == 3) {
set (this._parent.ahouston._alpha,100)}
if (this.getSelectedItem().data <> 3) {
set (this._parent.ahouston._alpha,0)}
}
I don't believe it is a problem with my combobox actionscript, as just putting:
Code:
set (this.ahouston._alpha,100)
in the only frame of the parent movie clip doesn't work either.
EDIT: Now it shows it with 0% alpha, but won't turn to 100%. I was wrong. It is a combobox problem.
ive done a little media player for my mates website.means i didnt understand the xml and loading audio that way i decided to try another way,which was to load external .swf which contained audio.so ive done this everything working.the problem is i tried to add a timer, so that when the 30 sec sample was done it would go to the next frame which loads a different track.i found a piece of timer code which is
loadMovieNum("track2.swf", 1);
if (bytes_loaded == bytes_total) {
var time = 0;[code].....
It all works first time around but when you select the track again then it cuts out 20-25 seconds,
I just started learning actionscript and decided to make something easy. Some draggable points and make a like between two of them, but I can't clear the previous drawn line.
View 1 Repliesim aware of the movieclipinstancename.enable=false;but i cant seem to get it to work.I want it to work because i slide in a sound control panel over my content (also in a movieclip) but the mouse still reacts to mouse events of the content under the sound control panel. eg i have a flash email form, and the icon changes to it.
View 2 Replieswhy I cannot use a variable in a path?
[Code]...
I can work my way around it, but why doesn't it work?
I don't know How to do it. I have a quiz in xml and what I want to do it's to open randomly a quiz from 3 xml... In fact, there is only a place in the script where it talk about the xml : myData.load("quiz.xml");and that's at the end of the script on frame 1... How do I set to randomly chose between different xml files.
View 5 RepliesThis is my script in trying to send data to the server side PHP [code]How do I write a SUCCESS and FAILED confirmation using gotoAndPlay to interact with the PHP?}}
View 6 RepliesI found similar issues in previous posts, but not this one. I publish a Flash CS3 .swf file,creating the html page and the javascript file too. If I click the html page locally, the sendAndLoad POST will succeed. If I upload the 3 files to the server, the sendAndLoad will fail. If I delete "AndLoad," the Send function will succeed. Url is fully qualified. I think I made a change in a configuration in Flash, because previous packages of this same file worked.
View 3 RepliesI'm trying to consume Google Finance API on a Flex Project but with no success. I want to use the ClienLogin mode, am able to get the auth token, but then I can't seem to get information from any of the feeds!
I've tried some of the few examples I found by Googling but still can't get it to work...
I've followed the contact form tutorial and believe I've updated the php to php5. The email sends but I never get a success or failed page. It just stays there. I'm being hosted by Go Daddy and I am on a Linux server.
[Code]...
I've followed the contact form tutorial and believe I've updated the php to php5. The email sends but I never get a success or failed page. It just stays there. I'm being hosted by Go Daddy and I am on a Linux server.
php (removed actual email):
Code: Select all<?PHP
$to = "name@email.com";
$subject = "Flash Contact Form Submission";
$message = "Name: " . $_POST['theName'];
[code]....
Well it is quite simple but I don't know How to do it. I have a quiz in xml and what I want to do it's to open randomly a quiz from 3 xml... In fact, there is only a place in the script where it talk about the xml : myData.load("quiz.xml"); and that's at the end of the script on frame 1... How do I set to randomly chose between different xml files.
View 5 Replies[Code]...
the movies go the next row but they stay all in the same x location
i have this prototype where i send this mc to certain x position. But when i try to send TWO mcs at the same time it only sends the last one. What to do for it to work on two mcs at the same time?
here is the prototype:
Code:
MovieClip.prototype.moveOut= function ( mc, endX ){
speed = 5;
this.onEnterFrame = function(){
[Code]....
I'm working on a website that is kind of set up a bit like a flash game. the background scrolls continuously with the movement of your mouse, and loops to make it appear seamless. my problem is with the quality.. it seems to skip or jump a little when it moves, and I am trying to get it as smooth as possible.
the source file is here: http:[url]....
you can just export it to see what I am talking about. what can I do to make it not so jumpy? are there settings I can adjust, or does anyone have any other code variations that would improve on mine?
what i'm trying to create is a map system with pan and zoom functions similar to google maps. that part is easy. what i'm having trouble with is figuring out how to scale the coordinates at the top and left of the map.so if at 100% my map is viewable from mile 0 to mile 99 (numbers are only for the sake of example) then when i zoom in on the center to 150% i would need to show coordinates from mile 25 to mile 75 ... i think if that example is not clear just look at flash or photoshop. when you zoom in just look how the ruler around the stage changes with the zoom level.
View 1 RepliesHow do you check if a movieclip exists?
View 5 Replies