I have a grid of 9 columns by 3 rows (so each column has 3 slots). A minimum of one slot in every column must be marked and no more than 3 can be marked. A mark is represented by a 1,2 or 3 digit.There must always be 15 marked slots in total. To achieve this I tried the following:
I am new to XML and I have tweaked a mp3 player from a [URL] file to do exactly what I need it to except for one small thing.... I need for each song to be able to load different album artwork independently, right now the jpeg is assigned to all the songs in the playlist. I did the tutorial and while it made sense. this "final" example goes far beyond the scope of the tutorial (he leaves it as an example of what could be done if you know what you are doing (I don't))
is possible to get variable from flash to javascript, php...for example in flash i have :var myVar = 25;how i can get variable ( myVar ) from flash to javascript ( jquery, ajax or php.. )smoething like myJsVar = myVar; ( from flash )or how to list all variables from flash to javascript ( jquery , ajax or php ), and how to set new variables to flash using javascript ( jquery , ajax or other );
My WordPress blog uses a animated flash button which when clicked redirects to a URL. But what I want to achieve is when clicked to randomly select from a selection of say 100 URL's.Also can I control the button URL list somehow from within my WordPress blog.
I have a script that when the use types in their name, it is to pick a random name from the list. Problem is, it isn't picking random exactly I get a lot of repeats and sometimes it just comes up undefined.
Here is the script
if (combobox.getSelectedIndex() == 0) { txt2.text = "Female Name"; female.play();
I have a list:randomPage(["0", "6", "12", "14", "22", "28"]);
and I was wondering does anyone know the code to pick a random value out of the list. At first I just used a random(28) but I need it to go to a specific page and I dont know what to do!
i want to make an upload script with swf and javascript. I want to do selecting files via swf then uploading files to server via javascript. I have searched SWFupload plugins but they are not working as i need. I am new here and i do some search, i see it is possible to save list of selected files in FileReferenceList array, but i dont know if is it possible to pass this array into javascript and then make upload progress via javascript ?
I originally built this in Flash 8, then moved the files over to CS4. I have a list component where I've loaded song files through xml and everything is working great. How to make it play one of the 8 files randomly when it starts playing, instead of it always starting with a specified track (currently track one obviously). So each time a visitor comes to the site it is a different song.
randomly start an ordered list of SWF's.I have my main SWF calling up external SWF's. I have 2 groups of external SWF's From my main SWF Actionscript, I want to randomly play one SWF in Group A and continue cycling through Group A (in order) until it is finished.Then I want to randomly play one SWF from Group B and continue cycling through that list (in order) until the list is cycled through. Then repeat group A (random start, but staying in order), etc.
My current ActionScript works for Group A to randomly select and play in order, I need it to stop after it gets to the random starting point (so it doesn't repeat) and start up Group B (which isn't in there yet)
ActionScript Code: var logos:Array = new Array(); logos[0] = "logo1.swf";
[code]...
I need it to completely play through the Group A list before it goes onto Group B
I have built an MP3 player using XML and this works fine. But I want this MP3 player to load a random song from the XML list everytime it runs.
I have this code: var my_songs:XMLList; var my_total:Number; var my_sound:Sound; var my_channel:SoundChannel; var current_song:Number = 0; [Code] .....
But it produces the error - Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error. at flashPlayer_fla::MainTimeline/playSong() at flashPlayer_fla::MainTimeline/processXML() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete()
I have also tried to trace the problem by putting trace(my_songs[mySong].@URL) in the playSong() function but this doesn't do anything.
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button.
I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button. I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
I'm trying to show a question from a list of 10 question at random that also has a timer set for 2 secs. After the 2 secs are up, another question is selected from an array. Below is my code. Is there sometime I'm missing or forgot to add? I keep getting the error 1120: Access of undefined property changword.
PHP Code:
//Randominzes Arrayvar randomizedwords: Array = new Array;var num:int = new int;var i:int = new int;for (i=0; i<10; i++) {while (words[num]== ""){num = Math.ceil(Math.random()*10);}randomizedwords.push(words[num]);
I have a movieclip and what i'd like to do is once a button is clicked id like the clip to play a double speed (or maybe more).Is it possible, by way of adjusting the FPS maybe?
Basically this is it: I have a movieclip with four frames with this script on it:
Code:
onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { if (_currentframe != 1) { gotoAndStop(2);
[code]....
Basically this is how i want it to work: If you're at frame 1 (which you start in since a layer above have a stop on it) and press and hold left you go to frame 2 and if you stop holding down left it goes back to frame 1. If you're on frame 1 or 2 and press and hold right you go to frame 4 but if you stop holding right it goes to frame 3
I was wondering if there is a simple way to control the "Adjust Color: hue" - filter of a MovieClip?. Is it possible to adjust it with a single variable(with AS2)?
AS2 -> AS3 migration: doncha just love it?!have a look at the attached code. selection one makes us anew sound and gets it playting, great. then we need to adjust thevolume so we read in the files that:You can alter the volume and panning while a sound is playingby setting the pan or volume properties of a SoundTransform objectand then applying that object as the soundTransform property of aSoundChannel object.great, so selection 2 in code below should do that, right?
I have a container movieclip and i am attaching thumbnail images to it to form a slideshow.
The problem i have is i need the container to scale to the stage width, and then add the images, but if i scale the container it also stretches the attached images.
Is there anyway i can change the width of the container without effecting the attached images?
I'm looking for a way to adjust the volume in an external flv. The code below sets the volume, is there any way to have it start at one volume and fade to "0" over the length of the flv?
this.createEmptyMovieClip('snd', 0); this.snd.attachAudio(this.ns); //attach NetStream this.audio = new Sound(this.snd); //Set MC as source this.audio.setVolume(80);
I also tried start/stop buttons, but they start and stop the flv also, any way to set them up so the flv keeps playing without the sound?
I have this function inside a this.onEnterFrame function. What I need it to do is that every time I hit Q, the variable (_dropAdjust) should decrease by 1, and every time I hit A, it should increase by 1.
What it is doing, is that every time I hit either of the buttons, the variable decreases or increases by a increment dependent of the time that has passed, but I still need to have the function inside the onEnterFrame, because if not I can only hit the button once.
ActionScript Code: this.onEnterFrame = function () { var _adjustListener:Object = new Object();
one of my homework assignments for a begginer Actionscript/flash class. The goal of the assignment is to draw a shape then have it continuously drawn until it reaches the vanishing point in the center of the stage. I am pretty new to actionscript since this is the first class I have taken for it and I really dont know how to explain it better. I am trying to write the code for. This is the code I have so far it basically just draws the shape I am using and I am lost on what to do next:
I need to read two image locations from a file and join it together. For this i used the following code.
[Code]....
With this code I can load two images but I can't adjust the position of the second image with respect to first i.e: iam unable to capture the width of the first image.
Does anyone know how I can adjust the speed of Cladio's scroll bar so when the arrows are clicked the scroll runs faster? Attached is Claudio's original file if needed. The speed variable has no effect on this? I tried adjusting the interval property of both the (up_btn and down_btn) to a lower number from "18" to "0" Like so...
[Code]...
This seemed to work when previewed in the player but once uploaded for some reason the scroll slowed down again? something to do with the frame rate? movie is set up at 30fps. Also, the content being scrolled is dynamically loaded via XML... Would this have anything to do with the lag?
I have a timeline slider part to my animation which starts at frame 1089 and ends at frame 1173, I have a script which allows me to do this and works perfectly when I build it in a new flash file starting at frame 1, I need this code to work for the animation I have built at frame 1089, I dont know which number "1's" in the script relate to the frame number, I have tried changing them all to 1089 but that doesn't work! at the moment as soon as I click on this it jumps back to frame number 1 - which I believe as the code stands is exactly what it should be doing. Please could anyone edit this code so that it realises which frames I want it to work in?
var numOfFrames:Number = 85; // number of frames in the timeline to scrub var widthOfScrubber:Number = 500; // width in pixels of scrubber bar var widthOfScrubberSlider:Number = 25; // width in pixels of scrubber slider[code].....