Groups | Blog | Home


Archived Months
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
January 2008
June 2008


all groups > flash actionscript > april 2007 > threads for thursday april 12

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

Navigation Using Script?
Posted by MonkeyPiePdx at 4/12/2007 8:06:19 PM
Hi all, I'm looking for advice on how the experts do this kind of thing. (Link below) The text navigation next to the guy in the middle of the flash piece has a nice bounce to it (both the text and the arrow glow). I can create this using a movie in a rollover button where the movement is cr...more >>

preloader
Posted by Freedom1029 at 4/12/2007 7:47:03 PM
I am trying to use a simple preloader and for some unknown reason my swf starts playing before the preloader is done. If you have any clue as why this is hapenning please let me know. Here is the code for the preloader: var myMCL:MovieClipLoader = new MovieClipLoader(); var myListener...more >>

Jumping to Scenes in another Movie
Posted by billlamar at 4/12/2007 7:35:05 PM
In a particular SWF I am working on, I have a preloader and an intro screen as one SWF, and then the main part of the piece as another SWF - I want a link that would "jump to" a particular scene in the other SWF - I have tried the gotoandplay command but I cannot get it to work to connect to a...more >>

Resizing imported swf files...
Posted by ApatheticAnonymous at 4/12/2007 7:25:04 PM
I have a movie clip that I want to import a swf file into, but the swf is larger than the movie clip's area. I tried using a resizing code for importing images that I found, but it makes the swf very small. Is there a way to control the size of the imported swf? ...more >>

getUrl using "_top" within an iFrame fails
Posted by xTower at 4/12/2007 6:56:40 PM
My flash video is playing with an 300x250 iframe within my webpage and at the end of my flash video, I am calling getUrl to redirect the page to another webpage but the redirect webpage is either showing within the small iframe iteself or the whole page goes blank if I se _top or _parent as a ...more >>

Function w/ onEnterFrame KILLING movie!! HELP!!
Posted by mmaler at 4/12/2007 6:51:07 PM
I am under the gun here and I cant figure out why this function is causing the movie's performance to come to a crawl! Any ideas?? MovieClip.prototype.FPM_ZoomMovement = function(ZoomState) { if (this._xscale != FPM_TargetScale) { this.onEnterFrame = function() {...more >>

attachMovie problem....
Posted by DJ James at 4/12/2007 6:23:06 PM
I have a shell that loads in a swf file into a movie clip called "content_mc". I'm trying to attach a movie clip INTO this movie clip but it doesn't seem to work. If I do it this way: _root.createEmptyMovieClip("booger_mc",_root.getNextHighestDepth()); booger_mc.attachMovie("textOnly","...more >>

need help with a button please
Posted by diamotsu at 4/12/2007 6:15:41 PM
I need to know the actionscript to make a button open a web page in the same window... I thought it was onClipEvent (mouseUp) {} getURL(www.domain.com); this actionscript was placed on the button its self What did I do wrong? What is the actionscript to do such a thing? ...more >>



Global Volume Controller
Posted by SM6601 at 4/12/2007 6:13:44 PM
I was able to get a component that creates a slider, but does anyone have a script that will work for the slider component to function as a global volume controller?...more >>

Center MC X/Y Point To Stage??
Posted by mmaler at 4/12/2007 4:50:01 PM
I am losing it today - coding way too much!! I have an MC with a large map inside. I want to center an X/Y value (within the MC) to the center of the stage. Example: A user clicks on a button that has an associated X/Y coordinate to a position on the map. I need that position to cent...more >>

Referring to a swf in a movieclip holder
Posted by muddybloke2 at 4/12/2007 4:17:50 PM
Hi, I have created a Movie Clip Loader and loaded a swf movie into in called 'gallery.swf' using the code below. myMCL.loadClip("gallery.swf", 5); Within the gallery.swf I have a movie clip called 'contact_mc' From my original file I want to refer to the 'contact_mc' in the galler...more >>

UTC time
Posted by TroyK at 4/12/2007 4:17:18 PM
Can anyone tell me how I can get seconds since Midnight Jan 1 1970 in flash? Just like PHP does with $_SERVER["REQUEST_TIME"] which looks like 1176394301 I've tried this with no luck. pDate = new Date(); year = (pDate.getYear()-70)*31556926 m = pDate.getMonth()*2629743.83 d = ...more >>

Dynamic Text Formatting With AS is Lost in IE
Posted by devkid71 at 4/12/2007 3:44:23 PM
I have a website that is all flash. I have a main file that loads in the nav and then the nav loads in the designated .swf file for each section. So there are several sections(.swf's) with lots of text taken from a database and inserted into the swf file from an XML file. If I click in between...more >>

help with these buttons
Posted by chickenanimator at 4/12/2007 3:41:28 PM
hi i am totaly stuck with this problem i have in flash MX i have a design which is enclosed in a frame produced in photoshop, the buttons around the frame need to load content to below the frame. to do this i made an empty fla file with just an action which loads the frame.swf to lev...more >>

Comparison Operators - Wildcard?
Posted by BSpero at 4/12/2007 2:58:42 PM
Hey Folks, I am working on some search functionality, and want to be able to create a statement that will compare a string to see if it is included in a larger one. For instance, the user could search for "Bread" and I would want the results to include ["Bread Pudding","Wheat Bread","Cor...more >>

What is the property of best JPG quality?
Posted by Michealnl at 4/12/2007 2:53:46 PM
Hello, When i load an external JPG file in a movieclip, how can i get the best quality of this external JPG file? I know for video it is Smoothing, but for external jpg files i really don't know. Regards, Micheal. ...more >>

Trouble with clip looping
Posted by Shawn Hines at 4/12/2007 2:50:02 PM
I am building a flash wesite, and I would like the navigation bar links to start .swf files without looping them. HELP!...more >>

Limit total value for dynamic text
Posted by yellowfry at 4/12/2007 4:46:26 AM
Hi, I've got two buttons: one which increases the value of a dynamic text box by 1, and one which decreases the same text by 1. I need to set a limit on the value of the dynamic text box, to -35 to +35. The code I've got so far: //set inital value of text box trial1_txt.text = 0; ...more >>

Duplicate MovieClip Problem
Posted by myafi at 4/12/2007 4:40:27 AM
i got two movie clip on the state. i need to duplicate each movie clip to be 10 nos. i tried to duplicate the movieclips with two different function, even thought i unable to duplicate. any one can help me? my code is: function one(){ for (i=0; i<20; i++) { squre.duplicateMovie...more >>

Targeting a loaded movie clip
Posted by TedMeister at 4/12/2007 4:03:48 AM
Here's my problem, I have navigation buttons on the root timeline that load different swf's into a target movieclip. Example: loadMovie("Videos2.swf", Target_mc); Is there a way I can tell the the loaded movie Videos2.swf to go to a certain frame and play from the root timeline? I can...more >>

CSS problem
Posted by BeniRose at 4/12/2007 2:09:30 AM
I've asked a similar question before with no luck, but I recently started using StyleSheets rather than TextFormats, so I wasn't sure if there might be a new answers. I'm trying to have a textField that loads in some HTML into the htmlText field, which may contain some bold tags. However, at t...more >>

What's wrong with my tween?
Posted by MoonPilot at 4/12/2007 1:43:40 AM
Below is the script for one of two MC on stage. I've used this script in other projects and it works just fine. For some reason it's not doing anything with the current project. The following is for "MC2" which, when pressed, should tween the alpha value of "MC". If I change the instance name...more >>

on clip event help me understand
Posted by dashboardgyno at 4/12/2007 1:37:51 AM
onClipEvent(load) { this.useHandCursor=false; } this is the script on my template for the main buttons. I am hoping to add more pages and normally would have just copied the script, but I cannot decipher how this works... can you break it down for me. ...more >>

Make player replay
Posted by glwheeler at 4/12/2007 12:13:27 AM
I used stopAllSounds() to stop a music player on a rollOver. I want to start the music player on rollOut. Here is my script: on(rollOver) { stopAllSounds(); this.gotoAndPlay("v1"); } on(rollOut, releaseOutside) { onSoundComplete(); this.gotoAndPlay("v2"); } on (relea...more >>

playing external FLV on web
Posted by BobAchgill at 4/12/2007 12:00:00 AM
When I try to play this script on the web the flv does NOT play, However, when I run the script on my computer the flv plays fine. Here's the script... var my_video:Video; // my_video is a Video object on the Stage var my_nc:NetConnection = new NetConnection(); my_nc.connect(null)...more >>

Video deblocking won't work
Posted by Andra Veraart at 4/12/2007 12:00:00 AM
Hi there, I wanted to see if deblocking could improve the way my video's look. After some failed attempts to incorporate it in to my existing fla, I decided to start from scratch and simply follow the manual's example. Here's the part I'm talking about: [i]The following example plays ...more >>

Dynamic text field, content and alpha
Posted by maguskrool at 4/12/2007 12:00:00 AM
Hi. I have a MovieClip (mcContainer) that contains a dynamic text field (txt1), that was created directly on the Stage. Then I added text to the text field with: this.mcContainer.txt1.text = "my wonderful text"; When I change the mcContainer's alpha, the text's alpha doesn't change. ...more >>

loadMovie - i think!
Posted by michaeltowse at 4/12/2007 12:00:00 AM
Ok, heres the issue I have. I have a main introduction type swf which at a certain point calls in another external swf. I can call the movie in without any problems and unload the movie using simple buttons. But when I call the external movie into the main one, the user can still use the butto...more >>

colission detection that goes wrong - WHY!!!! Arghhh!
Posted by daveCph at 4/12/2007 12:00:00 AM
I have two mc's on the time line: car_mc and walls_mc and i have the following code in a frame: var distance:Number = 5; var keyListener:Object = new Object(); keyListener.onKeyDown = function() { if (Key.isDown(Key.LEFT)) { car_mc._x = Math.max(car_mc._x - distance, 0); ...more >>

Simple loadMovie problem
Posted by Brave Novice at 4/12/2007 12:00:00 AM
Hi guys. I have a swf with the script below on one of the buttons: on (release) { unloadMovie("Empty_mc"); loadMovie("MathGames.swf", "Empty_mc"); } The problem is, after "MathGames.swf" loads into "Empty_mc", the rotate script - which is on a button in "MathGames" - will not work...more >>

As 1 to As 2 translation
Posted by Kaneon at 4/12/2007 12:00:00 AM
Hi :D, can u see any other way I can translate this ... at the moment the two codes do not do the same thing ... thanks :D the crucial line is eval(eval("mc"+i)+".d") = i*15; the old As1 : stop(); mcPos = new Array(); for (i=0; i<24; i++) { duplicateMovieClip("mc", "mc"+i, i); ...more >>

rows
Posted by vinnio at 4/12/2007 12:00:00 AM
Hallo, I scripted a small thumbnailsystem and it finally works :) BUT! I want to make rows of 5 movieclips in each row but in the first row he skips a few movieclips. For example, when I have a totalCount of 22 images in the first row he makes only 3 movieclips instead of 5. In the second ...more >>

trouble loading xml data into swf that loads into swf
Posted by Art Lazaar at 4/12/2007 12:00:00 AM
I have a main movie (siteIndex) into which I load a second swf (courseDetails) that calls upon an XML file (courseDetails.xml) to load a series of swfs (pages) that are populated with external text. The folder structure is thus: root (where the siteIndex movie is located) > courses > det...more >>


DevelopmentNow Blog