Unusual Sound Problem
I'm not a newbie, I've been making Flash productions for while, but there's a problem that in the past I've attributed to my old (slow) computer.
In my cartoons, the sound slowly slips out of sync. After a minute or so, you start noticing that the sound is playing a little before the picture, and it gets worse the long you watch, unless Stop it then Play it again, which gets the sound back in sync. It affects all sounds, no matter when the keyframe that starts occurs the sound in the movie.
I've gotten into the habbit of making all my sounds as Stream so they keep the picture in sync with the sound for slower computers if the picture lags. Could this be causing the problem? (I'm using the default 12fps by the way.)
I would appreciate any suggestions.
FlashKit > Flash Help > Flash MX
Posted on: 01-21-2005, 10:50 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Very Unusual
I am using a simple droptarget command
ActionScript Code:
this.onRelease = function() {
stopDrag();
var d = eval(this._droptarget);
trace(d)
if (d == con10) {
trace("Got it!");
}
};
but it doesn't work and I cannot see why...it 'works if the code is
ActionScript Code:
if (d != con10)
i.e if I tell to say got it when it is not over the targert it traces 'got it' when it does and if I have it the proper way it does it when it isn't..it's working completely back to front any idea why???
Zen
Unusual Circumstances
Can anyone shed some light on this...
I have a viewer animation that uses a button inside a movie clip in order to assign instances. I use multiple instances of the movie clip and then the script assigned to the button determines what another movie clip should do according to instance this._name
Now these are the unusual circumstances:
1)Flash 5 created a successful .swf only when viewed through a html doc and when viewing the swf what is seen is a not finished version. - Deleted temp int. files renamed file, recreated the buttons etc. with no change in luck.
2) tried it on a different pc that I had tested a previous version of the file that didn't work - that pc won't even properly view the file on the web that 'virgin' pc's(or pc's that have not seen a non working version) all view with no trouble.
3) tried out the Flash MX - swf publishes fine and the file views fine through a html doc.
4) upgraded the player on the pc that wouldn't view anything properly and now the file views fine but the flash5 still does not publish a working swf.
HELP!
[Edited by aadrian on 03-16-2002 at 07:54 PM]
Unusual Flash
Guys! I sometimes see the flash files that seem to be separate from the main HTML document. They seem not to be embedded.
Like on yahoo movies (movies.yahoo.com) it usually happens or anywhere else. Or like here - http://www.freewebtemplates.com/
Can anyone tell me how to do that?
Thanx in advance!
Ciaz!
Unusual One For A Friday...
Quick query.
my flash movie has a button that loads a new page into a different frame.
a second flash movie in the same frameset needs to interact with the information in this new page.
can my first flash movie tell when the new page has been successfully loaded? is there a
on getUrl_Success type function?
cheers
Unusual Problem
I'm having a problem that I've never had before. I'm trying to make invisible buttons.
Here is the overview.
I have an image from photoshop that is a set of smaller images. Imagine a bunch of picture laying on the floor, that is what this is. I bring the image in to my swf file and it is the background. On the layer above I have put shapes over some of the images, converted them to buttons, then deleted everything but the "hit" area. This basically makes an invisible button. Now when the button is clicked it goes to a certain frame in a holder_mc. My problem is when I use this code.
on(rollover){
holder_mc.gotoAndPlay(2);
}
I get this error.
Mouse events are permitted only for button instances
on(release){
I don't understand why this is happening. If the shape that I converted to a button is a button class why would this not be working? Any ideas?
Unusual Mc Behaviour.. Help
Hi there,
I have a movieclip that I bring into appearance by using the mx transition class. I have a few buttons on the movieclip when clicked should open an image in a new browser window. However, the buttons are not doing anything when I click them even though I have applied script to them. Below is the sort of script that I am applying directly to the buttons.
Code:
on(release) {
getURL("http://images.mywebsite.com/image1.jpg", "_blank");
}
Any ideas why the buttons are not doing anything?
Thanks
[F8] A Very Unusual Problem
Here is the link so you can see the problem:
http://www.glimedia.com/FlashExamples/timeline.html
This movie is 1000px x 500px, and I dynamically link 11 movie clips (each 1000px x 300px) in a row using the following script:
var imagesNumber:Number = 11;
for (i=1; i<=imagesNumber; i++) {
myTimeline.attachMovie("t"+i,"t"+i,i);
Load_mc= myTimeline["t"+i];
Load_mc._x = (i-1)*1000;
}
The mc "myTimeline" is an empty container for the loaded movie clips. As you can see, the first 4 loaded movie clips grey out the film strip at the top. Once you reach the 5th one, they show up great. I am guessing this is a stage width issue, because if I reduce the variable ImagesNumber to 8, they all show up perfectly. However this won't work for me, I need all 11 and eventually a 12th. The wierd part is that the text below it shows up just fine, and it's part of the same movie clip. The covered area is a film strip that dynamically loads a bunch of external jpegs.
Does anyone have any ideas on how to fix this? If this helps, I originally created this file at 1000px x 700px, and it did not have this problem.
Thank you in advance for your help.
Maybe Unusual Qustion
hi guys!!
i'm heaving a problem with macromedia flash...
i have designed a webpage and in page created a kind of flash photo album.. now what i want is when someone click in the photo to open a movie in Win.MediaPlayer outside of browser, .. i'm planing to use this page in Lan mode like a movies launcher.. so the page is not going to be on internet, all activities are going to be in LAN, but i dont know in which way to do this, link a photo or a button that would open a movie in winMP.. is there a way to help me on this.. i will appreciate very much that!
Unusual Question
I'm using Flash in the projector "mode" and I have a video window about 25% of the size of the screen. I use flash to display my lesson plans to my classes in lieu of an overhear projector or something else like that.
However, when I use a LCD projector to thrown the flash presentation on the classroom wall or screen, the video in the video window fills the screen once the video begins to run, hiding whatever else is on the other 75% of the screen.
Does anyone know how I can "confine" the video to the quarter of the screen so other information in the frame is not lost?
Thanks!
Unusual Preloader Problem
I have a sales demo that basically runs linearly from beginning to end. Iit consists of a main movie with a preloader, and then 4 seperate external movies with their own preloaders that get loaded into the main movie at different points in time.
The problem is that when an external SWF movie is loaded, the main timelines play head continues on it's merry way, while the external SWF's preloader is doing it's thing...(which will take undeterminable amount of time based on a user's Internet connection speed). The problem is that the number of frames I have allocated to the external SWF on the main timeline inevitably will be wrong and cut the extrenal SWF off before it's even finished playing.
How can I structure it differently so that I can still keep the individual preloaders on each external SWF yet still have my main timeline "wait" (while still playing the looping audio track) until the external SWF is completely loaded?
You can view the Flash demo here:
http://www.twisttop.com/citrix/citrix_final_v3b.html
Thanks in advance,
Joe
An Unusual LocalConnect Problem..
I have to send a variable from A.swf to B.swf. B.swf is opened in a new browser window from a button in A.swf. (which works just fine)
When I publish/upload my site to my webhost, B.swf fails to receive the variable.
I believe it is because there is a lag-time from the on (release) to the first frame of B.swf. Know what I mean? (since B.swf is not even open until about 2 seconds after the button is released)
Here is an advanced topic which better describes my problem:
http://webforums.macromedia.com/fla...threadid=457943
If one of you could please clarify that thread, and help me understand how I could:
1) invoke the getURL to open the B.html and thus the B.swf
2) then fire off a Local Connection from B.swf to A.swf (saying 'yes I'm
here')
3) then if 'yes I'm here' is received then send the REAL variable from A.swf to B.swf
Thanks in advance for any help. I really need it. =(
[f8] Unusual Loading Bar Setup
Hello All!
So, I have a Flash page which is waiting for the implementation of a loading bar, right now it is up on my universtiy account:
https://webspace.utexas.edu/sittem/F...f?uniq=-95rxlc
(I just set it to public so hopefully no one will have trouble viewing)
A disclaimer before you visit this - this page takes a really long time to load, thus the reason I am intent on a loading bar that works! (My client needs the huge jpgs (didnt want me to make them vector) so what can I do?)
I have done various loading bar tutorials on this site, gotten loading bars to work in the past, here is my unique problem: This site is one "background" site (the book background) with 10 smaller .swfs on top of it that load on a higher plane. So I need the bar to be aware of this... situation.
I know I could combine these into one swf, but I like the artchitecture of the site how it is and would prefer it to stay in tact. If anyone has any advice on how to differently construct the action script for the Loading Bar, or have seen any tutorials that address this issue, please share with me!
[CS3] Unusual Change After Break Apart
When breaking apart an image, there is sort of a 'residue' attached to some parts where the image has connected.
Problem is explained with a picture below.
The image was imported from a Photoshop CS3 document which can be found here for you reference.
http://www.acies-opacus.com/downloads/lOGO2asdorig.psd
As you can see in the PSD there is no 'residue'.
Thanks in advance for any help anyone can offer.
- Doc
Unusual Question - Moving From AS 2.0 To 3.0
What has been the biggest obstacle for you making the switch from AS 2.0 to AS 3.0?
I'm going to be upgrading my skills from 2.0 to 3.0 over the next several months. Since, I really learned advanced AS 2.0 here on the as.org forums ... I'd like to hear from the as.org community as to what to expect as I make the switch.
Thanks.
Unusual Mailto: Problems
I'm having problems with 'mailto:'
This is the script I have attached to my button :
on (release) {
sender_mail = _root.Semail.text;
sender_name = _root.Sname.text;
sender_tel = _root.Stel.text;
sender_company = _root.Scompany.text;
sender_subject = _root.Ssubject.text;
sender_message = _root.Smessage.text;
sender_body = sender_mail+sender_name+sender_tel+sender_company+ sender_message;
getURL("mailto:"+sender_mail+"?subject="+sender_su bject+"&body="+sender_body);
}
As you can probably gather I have input text fields for email, name, telephone number, company, subject & message.
My problem is this;
I need to have all these variables in the body part of my email, as you can see I've used concatenation of the necessary variables.
But despite my best efforts I cannot find a way to get line breaks between the variables in the body of the mail. All variable texts simply line up end to end in one long stream of text.
My hands are tied due to the fact that my server will not allow ASP, PHP, CGI etc to be used on the server. (Philistines!!)
I've scanned the tutes, been on the MM technotes sites and read all the relevant Flash MX help files. They make vague mention of escape characters (which I tried unsuccessfully) and unicode characters, which I could not make sense of.
Can anyone help? Is there a workaround I can use?
Any help would be really useful.
Button>URL Unusual Problem
Hi. I have a problem and can't figure out if it is Flash, or something to do with the server or the PHP. Let's see if I can explain this.
I have a PHP CMS (Websitebaker) I am using on my site. All content pages live in a subdirectory called /pages and so when you go to the main url http://www.stormvisions.com it is redirected to http://stormvisions.com/pages/intro.php which is a Flash front page.
I used buttons for the links on this page with getURL(onrelease) and the links work fine locally on my PC. The links also work online if I go to http://stormvisions.com or directly to http://stormvisions.com/pages/intro.php but if I go to http://www.stormvisions.com while the buttons up,hover and down states work the link itself is not fired onrelease.
The embed code I am using is basic - I tried the Flash generated code and the swf didn't appear at all- and I tried several variations to no avail.
I am using Flash CS3 but saved as 8.0.24 so I could use the button symbol (I'm not much of a coder anymore and couldn't seem to create a function to handle all the button interactions in AS3). The code is the basic one
Attach Code
<embed width="940" height="717" menu="false" loop="true" play="true" src="http://stormvisions.com/templates/splash/splash.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
on(release){
getURL("http://www.stormvisions.com/pages/help/blog.php","_self");
}
Unusual Collion Detection
i have two movie clips
mcTrap and mcCharacter
how can i detect collision (character is fully inside) over the trap door?
Please help, this is doing my nut!
much love
Unusual Loader Behavior
Hi Guys,
I'm trying to do the old effect of a border resizing before a image is loaded into it and I'm running into an issue where it's resizing the image that is loaded in.
I attached the file so if anyone can take a look and shed some light on the issue it would be greatly appreciated.
Thanks,
Saveth
Unusual Font Problem
I am having a problem with a certain font in Flash. The 'space' charecter is not showing up. So, for example, when I type "My Name is" I actually get "MyNameIs". The font is a PostScript font (Solex by Emigre). It works fine in PS and AI. Any ideas?
Thanks!
Unusual Projection Problem
I'm using Flash MX in the projector mode to use in class on a movie screen on the wall. I've been trying to "cheat" on a video capability by using the Windows media player in the "stay on top of all other apps" mode. Dumb, I know . . .But the videos are like 4-6 minutes long a take up thousands of frames.
When I lauch the video, I have to <fn> F8 twice to reveal the video, but it fills the screen. And, it looks/sounds really crappy as it cycles through. I want to confine the video to the lower left corner, about 25% of the frame.
How can I have a constant video window present that plays when I reach a certain point in the presentation and invoke it manually, keeping the video in the designated part of the frame and in such a way that it doesn't drag on my flash movies which run concurrently (Resources are not a problem--I have a fully-loaded Dell M60, though it only has a 1.8 GHz coprocessor)?
Unusual Error: Assistance Requested
Hello,
I have a stander containermc movie clip that is used to contain an swf using the loadMovie command. I am using this command from the main.swf file. _root.containermc.loadMovie("gallery.swf").
Here is the strange thing. Gallery.swf has a shared movie clip from shared.swf. For some really strange reason, depending on what layer that shared movie clip is on in the gallery.swf, that will effect whether the gallery.swf is loaded or not from main.swf? Im thoroughly stumped. Any help would be tremendously appreciated. Thank you for your time everyone
Don Ho
Unusual Load/unload Movie?
Hi all from Buenos Aires. I have vary basic knowledge of Action scripting but I have to work on a site.
I would need some help.
Basic I'd like to know this:
I have a movie "A" that loads a movie "B".
The movie "B" can order to the movie "A" to unload movie "B" and load movie "C"??? What kind of scritp should I use?
The site is like this:
connecting to the domain you see the file: index.swf that's a basic animation.
At the and of the animation, I used this action to load: menu_italian.swf
loadMovieNum("domain.it\menu_italian.swf", 100);
In the movie "menu_italian.swf" I'd like to add a botton that basically order to index.swf to load "menu_spanish.swf" and to unload menu_italian.swf
(in the movie ""menu_spanish.swf" there will be a botton that says the oppositie: unload "menu_spanish.swf" and load: "menu_italian.swf")
IS THIS POSSIBLE????
Thank you vary much,
Federico
Unusual LoadMovieNum Repositioning Issue
Trying to load some old swfs into a new Flash project by using the loadMovieNum via a button.
I did these swfs 4 years ago as part of something else, back then I just created a new stage the same size as my level_0 main movie (800x600) and positioned them in the right place on a blank back.
In my new project (also 800x600) they don't line up exactly, so I need to reposition the x & y points.
They are big movie clips so I don't want to have to import them and make swfs again which will be incredibly time consuming, just want to move them so they line up into my content space.
Here's the code I've already tried but the clips dont move at all:
on (release) {
loadMovieNum("movies/old_movie1.swf", 300);
var xset = 270;
var yset = 250;
}
I wonder if its because the clips are the same size (800x600) that they don't want to move.
Ideas?
Unusual Streaming Audio Error
I have an enigma, wrapped in a conundrum, smothered by a puzzle, and beaten by a mystery.
I have a long flash movie consisting of 5 scenes. Several of the scenes have audio on the main timeline set to streaming. But in one of the scenes the last second of the audio is getting cut-off. Through trial and error I have isolated the problem.
As you can see in the file I have uploaded, there are two scenes, each with audio on the main timeline. The end of the audio in 5d is getting cut off, but if I delete the audio in 5b, or delete scene 5b all together, the audio in 5d seems to work fine. How is it that one clip of audio, in a separate scene is effecting the performance of a separate clip in a different scene?
Well, I've tried to upload the file, but I am getting an error message when I try, whats up with that, actionscript.org?
Unusual Behavior When Scaling Html
hello;
I have:
HTML with:
- <object/embed> w x h ==> 400 x 300
FLASH with:
- stage w x h ==> 800 x 600
- stage scaleMode ==> SHOW_ALL
RECT ( from sprite.graphics.rect ):
- rect w x h ==> 400 x 300
//my_sprite_graphics.drawRect ( 0 , 0 , stage.stageWidth , stage.stageHeight ) ;
// when the sprite's rect gets created, the stageWidth x stageHeight ==> <object/embed> w x h = 400 x 300
// so the rect gets values 400 x 300 which should fill up the stage/HTML also at 400 x 300 ;
PROBLEM: the rect only fills up a portion of the stage/HTML;
for the example that I have presented here the rect only fills up half of the stage/HTML, which appears to be determined by 400/800 x 300/600 ==> .5 x .5 ==> 200 x 150 px ;
any thoughts as to why the rect does not fill up the flash stage/HTML?
thanks,
Shannon
here is a screenshot:
Unusual Error While Preloading Swf File
Hi,
I get the error "A script in the movie caused Flash Player 10 to run slowly."
I'm doing a preload of an external swf via as2 which is around 7mb. Then the message "A script in the movie caused Flash Player 10 to run slowly" pops up around ever 15 seconds or so. However, this does happen with smaller files. Any suggestions? Many visitors may think the game is broken and leave the page..
Help?
Here is the code.
Code:
var loader:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("MyImageContainer",1);
loader.loadClip(_root.gPath,MyImageContainer);
var preload:Object = new Object();
loader.addListener(preload);
preload.onLoadStart = function(target)
{
target.stop();
}
preload.onLoadProgress = function (target, loadedBytes, totalBytes)
{
bar._xscale=Math.floor((loadedBytes/totalBytes)*100);
loader_text.text=Math.floor((loadedBytes/totalBytes)*100)+"% loaded";
}
preload.onLoadComplete = function(target)
{
getUrl("javascript: loadGame('"+gPath+"');");
}
However, when i use as3's loader component to preload the game this message doesn't popup. But the problem with this approach is explained bellow for reference. Note that please don't confuse this with my as2 attempt mentioned earlier.
My as3 preload attempt problem.
I'm using the following to preload external swf.
Code:
stop();
import flash.display.*;
var request:URLRequest = new URLRequest("main.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load( request )
function loadProgress(event:ProgressEvent):void
{
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
loading_bar.scaleX=pcent/100;
percentage_text.text=int(pcent)+"%";
}
function loadComplete( event:Event ):void
{
navigateToURL( request,"_self");
}
I would also be happy if this problem is solved instead. Around 70%, some times 20% the sound of external swf plays. How can I define it so that sound does not play. I was suggested by some to insert an empty first frame, but I don't have source of all the games. so that is not a solution.
Unusual Problem With Using _global Variables
Hi, I've read many posts about this _global function but I've run into a problem I can't solve and haven't seen in any other post.
I'm using Flash MX 2004 with Actionscript 1. I have multiple swf files that I load into a base swf movie. I'm publishing the base movie as a Flash 7 player version because I'm using some of the new 7 functions. But the loaded movies are using version 6 because the code that is in those movies won't work when published in version 7.
I've used _global for a long time and I'm very familiar with how it functions. My problem is that I have global variables that I'm trying to pass from a loaded movie to the base movie. This is not working. I have gottenmost things to work by changing "_global" to "_root" but I feel much more comfortable using _global than _root as it's easier to script when working with multiple swf movies and the other problems I'm having would be solved as well if I can get this to work with _global. Anyone else have this problem? Thanks.
Movie Clip Unusual Behavior
I'm trying to make a picture album using dynamically loaded images. The viewer allows zooming in/out (By adding/subtracting 10% of the existing width/height). Unusually, when switching images, even though the movie clip that holds the images is deleted, it holds the zoom factor. It overall keeps the proper image however. Example here:
http://www.loserslounge.org/user.php?user=linkoraclehero
The code is below:
onClipEvent (enterFrame) {
if (_root.doUpdate == 1) {
unloadMovie(_root.Picture);
var container:MovieClip = createEmptyMovieClip(_root.Picture, getNextHighestDepth());
my_mcl.loadClip(_root.image_url,_root.Picture);
}
}
onClipEvent (load) {
var my_mcl:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myListener.onLoadInit = function(target_mc:MovieClip) {
_root.picWidth = target_mc._width;
_root.picHeight = target_mc._height;
//_root.Picture._width = target_mc._width;
//_root.Picture._height = target_mc._height;
_root.Picture._x = 275-_root.Picture._width/2;
_root.Picture._y = 200-_root.Picture._height/2;
_root.doUpdate = undefined;
};
my_mcl.addListener(myListener);
}
Any suggestions as why?
Unusual Stage Problem [Flash 8]
Here is the link so you can see the problem:
http://www.glimedia.com/FlashExamples/timeline.html
This movie is 1000px x 500px, and I dynamically link 11 movie clips (each 1000px x 300px) in a row using the following script:
var imagesNumber:Number = 11;
for (i=1; i<=imagesNumber; i++) {
myTimeline.attachMovie("t"+i,"t"+i,i);
Load_mc= myTimeline["t"+i];
Load_mc._x = (i-1)*1000;
}
The mc "myTimeline" is an empty container for the loaded movie clips. As you can see, the first 4 loaded movie clips grey out the film strip at the top. Once you reach the 5th one, they show up great. I am guessing this is a stage width issue, because if I reduce the variable ImagesNumber to 8, they all show up perfectly. However this won't work for me, I need all 11 and eventually a 12th. The wierd part is that the text below it shows up just fine, and it's part of the same movie clips. The greyed out area is a film strip that dynamically loads a bunch of external jpegs.
Does anyone have any ideas on how to fix this? If this helps, I originally created this file at 1000px x 700px, and it did not have this problem.
Thank you in advance for your help. I have posted the FLA here: http://www.glimedia.com/FlashExamples/Timeline.zip
Unusual Trouble With HtmlText And Link
Hi! This should be an easy task, but somehow it's not..
I'm currently working on http://mayorgordon.net/mayorgordon.swf
and using htmlText in several textareas.
As you can see in the "latest news"-box, the text is both selectable and the link clickable.
However, in the News-section of the main menu, the text is selectable(you just don't see it because of the text/background colors), but the link is not clickable(same news-element,same html-code).
This text was loaded with a loadVars symbol and treated with textFormat options. I Tried using the textformat.link, and that worked. I also tried placing another textfield in the same movieclip, but with a static link. that also worked. So it's just this loaded htmlText - link that doesn't.
The only thing I can think of is that the latter of the two news elements container lies deeper within the swf. than the first.
Anyone? anything?
-thomas
Streaming Audio Lags (Very Unusual Bug)
I have a swf, which loads external movies, each external movie has its own layer in the time line which contains an audio file, the audio is not being used with actionscript, it is just sitting there and plays with the "stream" option enabled in the properties bar.
What I have found is that, when going from one scene to the next scene within the loaded swf, the audio will overlap, that is, the audio doesn't finish when it is supposed to, or the audio for the next scene will play before the current scene is finished.
Has anyone encountered this problem before, or, have they found a way or know a way to fix this? Perhaps something could be done to 'sync' the audio with the timeline at the end of every scene, maybe some function could be called that gets the audio and does something to it to make it re-sync?
I am really out of ideas. I have tried getting the next scene to have a delay of 9-15 frames, and that seems to have worked, but what happens is if I am running the swf, then open an app up or do something that uses a lot of cpu power, the flash file that is running will start to lag from that point onwards. Now, if the program or process that I was running in the background is now closed or goes away , the lag in flash remains! Even for new scenes that I use or even new loaded swf files, the lag stays! I close the swf, reopen it and the lag is still there, I close flash, and reopen flash, then test hte movie out again, and the lag is still there.
If you don't run another intensive process in the background, or open another application, the audio doesn't lag and everthing works fine.
If anyone has any idea's about this, please share.
BTW, I use an Athlon XP2600+ and the CPU usage is low when running this swf file...
Unusual Problem - Flash Button To Javascript
Hello- I am using FlashMX and need a button in Flash to interact with a javascript which is in the HTML page for the Flash Movie.
The following code works fine in HTML, but I would like to have it do the same thing from a button in Flash:
<a href="javascript://" onclick=clickchat(); return false;>click here to chat</a>
This code in Flash opens a chat window, but the chat system in this appliction does not work at all - no notifiction of a chat requested, nor text exchanged:
on (release) {
getURL("javascriptnclick=clickchat()");
}
This code produces no results at all:
on (release) {
getURL("javascriptnclick=clickchat();return false");
}
Does anyone have some ideas why when I add the last part of the code - ;return false the button produces no results at all?
Thanks a ton if anyone can help.
[F8] Run Active Content(swfobject) Fix Problem? Unusual..
Hi,
I'm having a problem with active content fix that Adobe provides.
Everything works OK in IE when i apply that fix,
BUT,
when I want to use my flash movie with some PHP variables (in order to prevent header flash animation to repeat everytime when user browses to other pages. provided below)
there is a problem.
What I mean i can fix that IE problem with that AC extension but when it's implemented in the page, animation plays again whenever user browses the sub-sections.
Here is the string? that my coder friend has added at the end of .swf ->
some.swf?anm=<?php echo($anm); ?> (this prevents the embedded menu movie to repeat when browsing through sub-pages.
And this is the link that i have d/led the AC fix.
http://kb.adobe.com/selfservice/view...e252&sliceId=1
I hope i'm clear about the problem.
THANK YOU ALL,
[f8] Looping Problem For Unusual Scrolling Thumbnails
I'm trying to create a set of thumbnails that moves across the stage to a certain point when the individual clips in the set are clicked on.
This is an attempt to reproduce part of the functionality of the interface on the current Nike home page http://www.nike.com (once you get past the country selection) at the request of a client. I'm not worried about the whole thing at this point, just moving and looping the group of thumbnails.
I have a script that moves the thumbnail set the appropriate distance to put each individual clip in the right position when clicked (each one is supposed to end up just behind an object in the center of the stage, regardless of where is is when clicked), but I'm having trouble getting the motion of the set to loop gracefully once it's already gone all the way to the right.
The clip contains two sets of the thumbnails to provide for the set to loop when it's gotten to a certain position, but I don't know how to incorporate that with the AS animation of the set.
Here is the AS
PHP Code:
speed =6;
photo_width = 117;
function setLeft() {
if(containerL._x >= 269) {
clearInterval(moveInterval);
finalL_x =270-photo_width*4;
containerL._x = -320;
} else {
moveContainerL = function() {
containerL._x += (finalL_x - containerL._x)/speed;
}
}
moveInterval = setInterval(moveContainerL, 50);
}
containerL.mc1L.onRelease = function() {
setLeft();
finalL_x =270;
}
containerL.mc2L.onRelease = function() {
setLeft();
finalL_x =270-photo_width;
}
containerL.mc3L.onRelease = function() {
setLeft();
finalL_x =270-photo_width*2;
}
containerL.mc4L.onRelease = function() {
setLeft();
finalL_x =270-photo_width*3;
}
containerL.mc5L.onRelease = function() {
setLeft();
finalL_x =270-photo_width*4;
}
containerL.mc1Lb.onRelease = function() {
setLeft();
finalL_x =270;
}
containerL.mc2Lb.onRelease = function() {
setLeft();
finalL_x =270-photo_width;
}
containerL.mc3Lb.onRelease = function() {
setLeft();
finalL_x =270-photo_width*2;
}
containerL.mc4Lb.onRelease = function() {
setLeft();
finalL_x =270-photo_width*3;
}
containerL.mc5Lb.onRelease = function() {
setLeft();
finalL_x =270-photo_width*4;
}
containerL is the set, containerL.mc1L, etc. are the thumbnail clips inside.
It loops into position somewhat awkwardly when the last thumbnail in the first group reaches its end position, but not very smoothly, and the other clips to that left of that one are even more awkward.
Also repeated cycling through the process makes the jump into position seem to happen faster and faster for some reason I don't understand.
Fla is at: http://www.cparkerdesign.com/containerL_test.fla
If someone has an entirely different script for accomplishing the same thing, I would be interested in that as well. Thanks.
Something Unusual? Dynamic Text Field Bullet Colours
Using the below code I can dynamically change the text to reflect these attributes and this works fine, however ...
The bullet colour defaults to black. Does anyone know how to change the bullet colour dynamically?
ie:
s_bsubpt = new TextFormat();
with (s_bsubpt){
type = "dynamic";
font = "Arial";
size = 17; color = 0x333366;
bullet = true;
}
Any help here would be wonderful.
"unusual" Content Loading
I'm building a site which would include a number of items (sheets) under one section. In order to keep a user attracted, instead of making one SWF file including these sheets which would then be loaded into this section, I was thinking how to load each sheet separately...one will have like 50kB so once it's done, it will slide in and then another when it's loaded and another and another....let's say I will have like 20-40 pieces of these, so does that mean I would have to do 20-40 holders etc. to load them separately?? I guess not...don't know how though...
I was thinking what about doint something like doing it all in one file and only export it for ActionScript (not in the 1st frame) and then only take it/load it from the library when it's needed... is there a way how to do it somehow like this?
Cheers
L.
Attach Sound, Play Sound & Stop Sound.
Hey there,
I was wondering if any of you could help me please.
I want to play a song which I have named "rundmc" The file extension is ".mp3"
I want a button to play this mp3 which I read you need to attach that sound, then play it and I want to a button to stop that sound, or preferably the play button to change into a stop button.
I've read the help files, but none of it works and I've changed the linkage for the mp3 to export for action script, but nothing works!!!
Please help,
NK.
Problem: [sound].setVolume(x) Controling Two Sound Objects In One Call...?
Hi there, hopefully some or at least one of you will be able to figure this out because it's wrecking my head!
Basically I'm writing a little looper player movie, that will play [x] number of techno/jungle/house/whatever music loops at the same time, and the user will be able to switch loops and turn loops on and off whenever they want to. I'd like to avoid putting sound in the timeline so I'm using sound objects to trigger the sound properties.
For a test, I've created two sound objects (these will later be in a 2D array), but for now- just two sound objects, I've attached the sound to the links in the library, and set the volumes on both sounds to 0. Both WAVs in the library have the linkage on "Export this symbol" and they are labelled/identified as "loop1_link", and "loop2_link"... (obviously without the quotes in the properties box). Here's the code:
// ---------------------------
loop_test1 = new Sound();
loop_test2 = new Sound();
loop_test1.attachSound("loop1_link");
loop_test2.attachSound("loop2_link");
loop_test1.setVolume(0);
loop_test2.setVolume(0);
loop_test1.start(0,999);
loop_test2.start(0,999);
// ---------------------------
So the sounds are triggered when the movie loads, and the start playing silently in the background for 999 loops.
Here's the problem:
In the interface of the movie, on click of a play button, I'm making a call to _root.loop_test1.setVolume(100) to turn that sound on, but when I make that call, the volume is set to 100 for BOTH loop_test1 AND loop_test2 !! I'm hearing both loops playing at the same time and I only want to hear just the one. Makes no sense to me because I'm only telling that ONE sound object to set it's volume to 100...
Any ideas? Any feedback/comments would be greatly appreciated.
Cheers,
Anthony
-Dublin, IE
.stop() For Sound Object Stopping Embedded Video Sound
I have a problem where the stop funtion for a sound object is stopping the audio in an embedded video. Has anyone ever encountered this? Ihave poured over my code and there is no cross-linked intance names, so I do not have a clue what is happening.
Is It Possible To Change The Sound Volume On Individual Attached Sound Clips?
For instance, I have 2 attached sound samples, both playing continuously. I want to be able to control the volume for both separately.
All I know I can use is setVolume, but that one seems to be global only and changes the volume on both.
I tried having different names on the attached sounds (sound1, sound2) and had the volume buttons refer to sound1.setVolume and sound2.setVolume, but each of them controlled both sounds. Also tried attaching the sounds into individual MCs, but got the same result .
So, can this be done?
Edit: oh, there was a forum for sound and music, my bad. Can seem to find how to delete this thread so have to leave it here or if some mod moves it.
Edit2: Ok, think I got it to work, was trying this method before posting (from FAQ), but couldn't get it to work... might have now... buggy it seems.
Quote:
Why is my sound object controlling volume or pan of all sounds in the movie?
a sound object without an associated mc is a "global" sound object and controls volume and pan of all loaded sounds.
to ensure that a sound object controls just one sound pass the target path of a unique movie clip to the sound function.
myuniquesound = new Sound(target path to unique mc);
OR
// dynamically create a mc and associate it with a sound object
soundobject = new Sound(createEmptyMovieClip("snd",getNextHighestDep th()));
Edit3: Problem solved .
AS3 - Sound Bug - Multiple Copies Of The Sound File Plays/loads
AS3
I have a script that loads an mp3 file. Then, there is some visualization with to the music. When first loading the flash file, there is one copy of the sound. When the flash file is loaded again, there are multiple copies of the sound file being played. When I used the stop button it only stops one of the copies.
Here is the script:
var url:String = "currentMix.mp3";
var request:URLRequest = new URLRequest(url);
var s:Sound = new Sound();
s.addEventListener(Event.COMPLETE, completeHandler);
s.load(request);
var song:SoundChannel = s.play();
song.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
var ba:ByteArray = new ByteArray();
var gr:Sprite = new Sprite();
gr.x = -850;
gr.y = 25;
var blur:BlurFilter = new BlurFilter(2, 8, BitmapFilterQuality.HIGH);
gr.filters = [blur];
addChild(gr);
var time:Timer = new Timer(10);
time.addEventListener(TimerEvent.TIMER, timerHandler);
time.start();
function completeHandler(event:Event):void {
event.target.play();
}
function soundCompleteHandler(event:Event):void {
time.stop();
}
function timerHandler(event:TimerEvent):void {
SoundMixer.computeSpectrum(ba, true);
var i:int;
gr.graphics.clear();
var mat:Matrix = new Matrix();
mat.rotate(1.57079633);
gr.graphics.beginGradientFill(GradientType.LINEAR, [0xFF0000, 0x000000], [1, 1], [66, 175], mat);
gr.graphics.moveTo(0, 0);
var w:int = 5;
for (i=0; i<550; i+=w) {
var t:Number = ba.readFloat();
var n:Number = (t * 55);
gr.graphics.drawRect(i, 0, w, -n);
}
}
//tracking playing
var isPlaying:Boolean=true;
var pos:Number=0;
stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
play_btn.addEventListener(MouseEvent.CLICK, playSound);
pause_btn.addEventListener(MouseEvent.CLICK, pauseSound);
function stopSound(e:Event):void
{
song.stop();
nowPlaying.stop();
pos=0;
isPlaying = false;
}
function playSound(e:Event):void
{
if(!isPlaying)
{
song = s.play(pos);
nowPlaying.play();
isPlaying = true;
}
}
function pauseSound(e:Event):void
{
pos = song.position;
song.stop();
nowPlaying.stop();
isPlaying=false
}
stop();
How To Control The Sound Volume On A Timeline Base Streaming Sound?
Hello everyone,
I have a MovieClip "Animation" with added sound as a Streaming. I have also created a Volume SiderBar which I would like to use to adjust the volume of the sound on my Flash.
The Volume SliderBar work fine and I need to some how assign the volume to the position (Value of) volume. I was wondering if someone can tell me how I can do this on a sound which is timeline based?
Thank you very much and have a great day,
Khoramdin
How To Use A Value Of A String Variable As A Sound Class (as Linkage Name Of A Sound File)?
Hi,
I need to use the value of a string variable as a linkage name of the sound imported in the library, I have this code:
var SoundArray:Array=new Array;
SoundArray[0]="S1";
SoundArray[1]="S2";
SoundArray[2]="S3";
var MySound = new SoundArray[0];
B1.addEventListener(MouseEvent.CLICK,PlaySound);
function PlaySound(event:MouseEvent) {
MySound.play(0,0);
}
where S1,S2,S3 is the name of the classes in the linkage name for the 3 sound files in the library.
I get this Error for the highlighted line of code:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at Untitled_fla::MainTimeline/frame1()
How Do I Call Sound Files For A Sound Player Created In Flash
I want to create a sound player for a website in Flash 5. However, i do not know how to play the files without importing them into the flash movie. If i imported all of the sound files i am using, my flash file would end up being about 25meg in size. This would obviously be stupid, as it would take forever to load up. Could someone please tell me what action i eed to use to play a sound file which is stored in the same directory as the swf file.
Im only just learning flash so im not 100% sure that this is the way to do it. Is there a way of telling flash flash to only load a certain part of the movie as it is neded.
I want to create something similar to the player found at this address
http://www.newfoundglory.com/player.html
Any help you can give me would be much apreciated
Thank you
David
Sound Problem. Doesnt Sound That Complicated But No One Has Answered Yet.
im posting this question for the third time now, because noone has answered it before or the answer didnt help. so if you know how this is done please answer. for my animation site, i have a song in the beginning. and when you click on animations i want the song to PAUSE and have the movie go to a different frame. so something like
on (release) {
gotoAndPlay (99);
sound.pause
}
except have it work(lol).
and when the user clicks back, the sound would unpause.
thanks in advance.
Sound Control Volume For Multiple Sound Objects?
I've got a file with several scenes.
Each scene has controls with different sound object defined on the first scene. There is a constant background sound object playing over all scenes. I need to control the volume of multiple sound objects playing simultaneously and setting each to different volumes from these scenes.
e.g
_root.bgmusic.setVolume(20);
_root.s001.setVolume(100);
can this be done? When I try, all sounds playing are set to the same volume.
Thanks heaps in Advance!
Stoping And Playing Sound At A Particular Point (using Sound Object)
Hi,
I have a movie in which i have a voice over and some animations which is in sync with the VO. I have a play button and stop button.
I am using the sound object method to play the sound and the animations are in timeline.
I have to stop the movie at any point in time and when i click on play the sound should start from the point where it stopped..But it is not happening.
Please help me..
am having a deadline today..
lamus
Sound Control Volume For Multiple Sound Objects?
I've got a file with several scenes.
Each scene has controls with different sound object defined on the first scene. There is a constant background sound object playing over all scenes. I need to control the volume of multiple sound objects playing simultaneously and setting each to different volumes from these scenes.
e.g
_root.bgmusic.setVolume(20);
_root.s001.setVolume(100);
can this be done? When I try, all sounds playing are set to the same volume.
Thanks heaps in Advance!
Adding Sound Buttons, Cutting Off Prev Sound
Hi - I want to add a few audio narration clips via buttons to this page, inside each section:
http://www.chartscans.com/csalerts.swf
When the movie starts, it autoplays a bg music + narration nonlooped single track.
How can I add say a button that loads/plays an external mp3 And also shuts off the first sound that had started?
any ideas?
thx flash dudes..
|