ActionScript 2.0 :: Unable To Looping Dynamic Mp3?
Apr 28, 2003I loaded an mp3 dynmically into my movie doing the following:
firstSound=new Sound();
firstSound.loadSound("math.mp3", true);
playing=true;
[code]....
I loaded an mp3 dynmically into my movie doing the following:
firstSound=new Sound();
firstSound.loadSound("math.mp3", true);
playing=true;
[code]....
I have a series of moviclips named "item0","item1", etc. What is the best way to loop through the clips to assign some listeners? It would look something like this:
Code:
for (var j:Number = 0; j < helpArr.length; j++) {
item[j].buttonMode = true;
[code]....
can't figure out why the dynamic text boxes in my dynamic clip arent picking up the variable when I loop through this recordset!the trace (you'll see here right after I try two ways to assign the variable) traces the correct info back..
[code]...
I'm working on a flash slideshow with transitions that I need to loop smoothly. I have four movie clips, one on each layer and each one loads and fades on top of the previous one. When it loops back around to the beginning, I don't get a a smooth transition. I get white space for a few seconds. On the last frame I have gotoAndPlay(1); and on frame 1 I have my loadVariablesNum statement.
how to loop this seamlessly?
Here's the url - the images may be blurry and are only for testing: [URL]
I have a 100 frame movieclip with a dynamic textbox inside that outputs the current frame. This movieclip gradualy goes from frame 100 - frame 0. Would I need this textbox on 100 frames with code on each or just 1 stretched through the 100 frames? I can get it to say 100, when its on the 100th frame but its doesn't go to 99 98 etc.
I tried:
mc.onEnterFrame = function(){
mc.text = _currentframe;
}
but that doesnt work.
i'm looping thru xml nodes and using this to attach clips to an empty mc:Code:item = _root.mainHolder.links.linkHolder.attachMovie("linkClip", "linkClip" + i, i);my question is how can I reference the previously attached clip so I can determine the _y property of the current item(clip).I'd like to do something like this.item._y= previously attached clip._y-previously attached clip.height
View 10 RepliesI would like to know if it's possible todo something like this:loadVariables("script.php?id=<? echo "id"; ?>",0,"POST"); // the echo thing is nonsense I know, but is it possible to paste the $id, that I'm trying to pass to the external script, from my adressbar (browser)?
View 2 Repliescreate a picture gallery with XML. There is a loader progress which simply displays a percentage when you click on any image. I have been trying to fomrat this text but with little luck. I am able to apply colors to the text but unable to change the font, size, weight etc.
Here is the text with a color applied
Actionscript Code:
fullPreloader.onLoadStart = function(target) {target.createTextField("my_txt",fullImage_mc.getNextHighestDepth,230,300,300,300);target.my_txt.textColor = 0xFFF;};
[Code].....
i wanna make a dynamic tree using a lazy loading ,each time i open a folder the tree sends a http request to the server, in this script i'm using just static text to test the tree but , i'm getting in the label of the root all the XML text assigned to the dataprovider, then when i open the root folder i got the childs with good labels , and openitem and closeitem events do not fire how could i make them
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;
[code].....
I've learnt ActionScript basics from this forum and i hope i get a solution for my problem.I am doing this window shopping gallery for my company but iam stuck in the middle of nowhere.I am attaching the files so that u can have a look at it. the gallery is xml driven.
when a user hovers to the left side of the gallery tween starts and the stores move in a perspective angle. i am placing the code here for xml loading which is in 1st frame[code]...
I'm working on a project that dynamically loads news articles.There is basically a title text box and a news box, both are the same width.I would like to know if there is a way that I can get the dynamic title to scale up/down in font size to fit the width (and also shift the news text down to be about 3px under the title)
View 1 RepliesI know I need to embed the font and declare the font in a setFormat string.
Code:
this.createEmptyMovieClip("cat",this.getNextHighestDepth());
cat.createTextField("txt",this.getNextHighestDepth(),0,0,100,50);
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Times";
cat.txt.embedFonts = true;
cat.txt.text = "cat";
cat.txt.setTextFormat(my_fmt);
cat._alpha = 50;
I need to be center htmlText loaded from XML into an autosize textfield.I've already tried to edit format, autosize center, but it stay at left.
Code:
var myFont2:Font = new Font2();
textFormat2.font = myFont2.fontName;
[code].....
I'm making a piece of flash used for a website banner, previously i've had very little experience with action scipt as i've made various animations only having to use simple functions such as "stop()" and i've made a never ending scrolling menu also, but now i want to have an event that "onPress" a small animation is played where the mouse clicked the banner. What would be the appropriate script to link the .swf i make to the "onPress" command?
View 5 Repliesis there a way to space dynamic text?through actionscript?the letters of my dynamic text are to dense and i would like to change this.
View 14 RepliesI am trying to drag my dynamic moviclips. But this code does not work properly.I have to mosue click the movie clip, and once again use mousepress to drag the movie clip.
clickAction = function (_arg2) {
//info._y += 150;
trace("click"+_arg2); // _arg2 con
[code]....
So i have a really nice flash gallery that i downloaded from a site but i am trying to personlize it. It uses a dynamic text (for the preloaders and the titles) which is post by this procedure :
fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt",fullImage_mc.getNe xtHighestDepth(),50,50,200,20);
target.my_txt.selectable = false;
};
So what i did was basically to create a new style (my_fmt) and apply it to dynamic style applied by default (my_txt) :
fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt",fullImage_mc.getNe xtHighestDepth(),0,0,200,20);
target.my_txt.selectable = false;
[Code]....
Anway nothing changes. The text is always the same (Times New Roman which is by default) I also tried to change de height and width definitions but no difference. It only works when i change the x and y position of the text.
I have a variable called intervalTime, which gets changed. The following code does not work:
Code:
movetimer = setInterval(movebox, intervalTime);
i'm trying to dynamically layout a calendar using actionscript and i'm no good at determining algorithms to quickly and efficiently lay things out. i was hoping for a litwhat i want to do is set it up per the image attached:* where there are 7 columns and a varying number of rows.* the top row has the 2 arrows and the month and year display.* the second row has all the day headings, i.e. S, M, T, W, R, F, S* and the rest of the rows will have the dates.
View 3 RepliesI have a movie clip button with a dynamic text field inside. I am loading the mc dynamically to the stage. In Full_Screen mode static buttons including the full screen button work without a problem, but the dynamic button event does not trigger when clicked. In this simplified code belwo the dynamic button when clicked should change its message to "You have clicked button 1". This works in normal mode, but not in Full screen.I tried btn_cuePt_1.enabled= true; but without success.
Does it have something to do with not using the fullscreen events?
exp. stage.addEventListener(FullScreenEvent.FULL_SCREEN, s_function)
Structure of my button is: Think of it as three layers inside a movie_clip. I used an empty button on the top layer so I would get a pointer cursor, I used a dynamic textfield the one that should change after the event to "You have clicked button 1", and last but not least the button graphic.
as3 Code
PHP Code:
//global variables
var btn_cuePt_1;
//file definitions
[code].....
I'm trying to retrieve an input value from a dynamically created input text fields ("qtyWant_txt"). I want to play that value back into an array ("QtyWant"), which is tied to a form. When the form is submitted, it'll grab the value in the array. My problem is that I'm unable to retrieve the value in the input field prior to passing it to the array.
[Code]...
I have some problems using dynamic textfields, spent hours to get it fixed but nothing works. Here's the problem. I've created dynamic textfields where visitors can enter their data, like name, address, comment and so on. My website appears on fullscreen when the web address' typed in. When it's in this fullscreenmode, I'm not able to type in any data in this textfield. When I leave the fullscreenmode I am able to type in my data. Also I've created a dynamic textfield, which loads this sent data from an external database. Now I want to add a scrollbar to this textfield, so all the messages that doesn't fit in the field will be visible. I've tried to create my own, without success, even the simple one in the componentspanel doesn't work.
View 2 Repliesi m using flash on a module of Joomla to display images, i embed flash player code into javascript , it fetch images from an XML files wher images are predefined and it works fine, now i have a problem that i m collecting images from database, means images are dynamically, so i m unable to fetch that images an display on flash, i just want to knoe how to add dynamic image array into flash. do i need to create xml??
[Code]...
I work with Flash Pro allmost 11 hours per day and every while i get a error which messes up everything. Approximetly i get this after about 2-3 hours withevery project.After i get this error there is no chance to test movies afterwards.I see a fast flash of the loader window but it dissapears so fast i cant even really see if it is loader.
View 1 RepliesThe issue I am running across is this: I encoded and embedded a movie clip to act as the background. There are other animations that can and will loop, as the movie resets itself. But there are some elements that I only want to run once and not repeat once the embedded movie loops (link introductions, where objects fly in and transition into the button). How can I set the one time animations to fire just once, while keeping the embedded animation on a loop?
View 1 RepliesI am fairly new to Flash and I am constructing a website. The issue I am running across is this: I encoded and embedded a movie clip to act as the background. There are other animations that can and will loop, as the movie resets itself. But there are some elements that I only want to run once and not repeat once the embedded movie loops (link introductions, where objects fly in and transition into the button). How can I set the one time animations to fire just once, while keeping the embedded animation on a loop?
View 1 RepliesI have a Dynamic Text box in my Library. I drag it to my main stage and give it a name..it is now a movieclip. The name is 'mcAdmin' I added an event listener for MOUSE_OVER I want the text to change color, but for now I'm just trying to change the text; however, it's not displaying the change in text I want. I do a trace, and the change is in there on the output window, but it is not displayed as such.How can I :1) use AS3 to change the font color of the text2) use AS3 to change the text and have it display?
function onMouseOver_txtAdmin(e:MouseEvent):void{ Mouse.cursor="button";
//Current mcAdmin text is 'Administration'
//I want to change the color of Administartion on Mouse_Over
[code].....
I have a site that plays either .mp3 or .flv files depending on what is selected from the menu. Menu loads in from xml. I get "unable to make connection with server or unable to find flv on server" when I try to play the video. But the video and audio files are all in the same directory and the mp3 files play fine. I think I'm having a problem with the setMedia command. Here's the code that loads the video and audio files.
[Code]...
I have imported an FLV into my SWF. Now how do I get the video to loop?
View 5 RepliesI'm a newbie at Flash...and have a main movie that I would like to load external movies into..for ease of modification of the different areas vice having one large swf.I'm using the loadMovieNum command to load the external swf's just fine. When I play the external swf's by themselves...they play once and stop. When they are loaded into the main movie...they loop.I've placed a "stop();" command at both the frame in the main movie...and also on the line directly after the loadMovideNum line.
View 3 Replies