Ending A FOR LOOP Early
Hey guys,
I have 30 objects and I need to determine which one the user has clicked on. I've named them ["block"] 1-30, so I can use a FOR loop to decide which one was clikced on. However, I tihnk I got my syntaxes mixed up - I'm used to using onRelease but it seems like it doens't work for this situation. Anyways, is there a way to end the FOR loop early (its "end for" in most languages) as soon as flash finds which object was clicked on?
thanks.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 07-13-2006, 04:54 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Why Is This Loop Not Ending? Help
I want to make a button that tells the _root timeline to advance forward in increments of 4 frames at a time until the variable "moving" equals 0.
For some reason, the playhead doesn't advance, and so "moving" never changes to 0 and I get stuck in an infinite loop. Why isn't the playhead advancing?
This is the code I'm using:
Code:
on (release) {
tellTarget ("_root") {
do {
gotoAndStop (_currentFrame + 4);
} while (moving==1);
if (moving==0) {
moving = 1;
}
}
}
I tried it as a while loop as well and it didn't work.
Help!
Ending A While Loop
Hi, someone wrote me a rain script that duplicates a mc on a certain frame. The only problem is, I don't know how to end the while loop later, it just continutes automatically.
amount = 500;
while (amount>0) {
duplicateMovieClip(_root.rain, "mc"+i, random(1));
setProperty("mc"+i, _x, random(954));
setProperty("mc"+i, _y, random(400));
setProperty("mc"+i, _alpha, random(100));
setProperty("mc"+i, _rotation, 0);
i++;
amount--;
}
Can anyone help me end this loop on a different frame? Thanks in advance!
Ending A While Loop
Hi, I'm trying to end a while loop on a certain frame. I tried clearing the code on that frame, but it continues to loop throughout the entire movie. The loop is:
amount = 500;
while (amount>0) {
duplicateMovieClip(_root.rain, "mc"+i, random(45));
setProperty("mc"+i, _x, random(954));
setProperty("mc"+i, _y, random(400));
setProperty("mc"+i, _alpha, random(100));
setProperty("mc"+i, _rotation, 0);
i++;
amount--;
}
I need to end this loop suddenly on a certain frame. Any ideas? Thanks in advance!
Why Does This Loop Become Never Ending?
my code is to scramble words...
however it seems to loop endlessly
red part is the problem...
Code:
var sw:Array = ["hello", "dog", "cat", "you"];
var lives:Number = 15;
life.text = "Lives ["+lives+"]";
life._width = 100;
sq._width = 200;
life._x = -25;
var sl = Array();
var reform:String = "";
var vu = Array();
var l:Number = 0;
function newquestion()
{
var select:Number = Math.floor(Math.random()*sw.length-1);
var len:Number = sw[select].length;
for (var i:Number = 0; i<len; i++)
{
sl[i] = sw[select].substr(i, 1);
}
reform = "";
while (l < 40)
{
vu[l] = false;
l++;
}
e = 0;
while(reform.length != len)
{
var ran:Number = Math.floor(Math.random()*(len-1));
trace("Ran "+ran);
trace("Vu "+vu[ran]);
if (vu[ran] == false)
{
reform += sl[ran];
trace("Reform length "+reform.length);
vu[ran] = true;
}
}
sq.text = "Current Problem ["+reform+"]";
}
newq.onRelease = newquestion;
Ending External SWF Loop
Very basic - I'll try to keep the explanation simple:
I am doing some very simple frame-by-frame animations with audio. I have 10 small animation SWFs total. I am not using scenes, I am just publishing small movies here.
The first animation (we'll call this Level O) is a simple transition - kind of a color swipe across the screen. It's named "curtain.swf" At the end of this clip is an action:
loadMovieNum("otto_vox.swf", 1);
stop();
"otto_vox.swf" is the name of the SWF I wish to play after our Level 0 movie.
Then "otto_vox.swf" has an action at the end of its timeline:
loadMovieNum("mirth_vox.swf", 2);
stop();
And so on (and it all plays fine). But on my number 9 SWF, I wish to play that "curtain.swf" (Level 0) once more, but keep it from endlessly looping and calling "otto_vox.swf" (Level 1) again.
------------------------------------
I am certain there are numerous ways of dealing with this. Hopefully you have a basic solution. Thank you.
Ending Loop &proceeding
ok i have a file that i haved looped..i want the button to be able to tel the loop to play till end of loop then ocntinue on if the button has been pressed..i have already been told an excelent solution but im afriad i dont know hw to do it..this is it
Quote:
Pooon's solution: Well the way I would do it is make a dynamic text box with the variable 0. When you click the button make it change the number to 1. Inside your animation, at the very last frame put in an action that does something life "if [variable] equals 1 then tell movie to go to next scene" or what ever.
if anyone could explain step by step for dummbies on how to do this..plz do so..after all im a newb..lol..one more thing i want the button to fade away after it has been pressed i know hoiwto fade but i cant get it to fade then i can only get it to fade out if i fade it from the movie completely..lol..
Never Ending Loop Crashing Flash
I just sent my flash file into a never ending for loop (oops), in vb you can press ctrl + break and it stops running the script is there such a method in flash?
2 2D Arrays Ending Up Being The Same, When For-loop Modifies One...
Alright, so i'm doing some minor data copying from another array, and for some reason both arrays end up being the same. i never really change any properties of the first array...
here is my class:
ActionScript Code:
package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public var current:Array = []; public var map:Array = [ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ]; public function Main():void { testFunk(); } private function testFunk():void { trace(map[0]); for (var r:int = 0; r < 9; r++) { current.push(map[r]); current[current.length-1].splice(9, 4); for (var c:int = 0; c < 10; c++) { current[r][c] = 2; } } trace(map[0]); trace(current[0]); trace(map); } }}
and the traces output as:
Code:
[Capturing traces with FDB]
0,0,0,0,0,0,0,0,0,0,0,0,0,0
2,2,2,2,2,2,2,2,2,2
2,2,2,2,2,2,2,2,2,2
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
why did map turn into current? what's the deal with this?
Plays Too Early
Hoi
this is give me problems
code:
holder.loadMovie("http://www.mysite.nl/Home.swf");
stop();
this.onEnterFrame = function() {
percent = int(holder.getBytesLoaded()/holder.getBytesTotal()*100);
if (percent == 100) {
play();
delete this.onEnterFrame;
}
};
When it starts loading it does not know the total bytes yet so is says that it is 0 and the load bytes is 0 too so if you 0/0*100 = 100 so than it enters the frame first the percentage is 100% and than my Mc plays too early.
Please help
AddChild Too Early?
I am loading external swf into my main movie and that swf also loads some pictures into itself externally.
So if I say in my main timeline:
swfLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, SwfLoadComplete);
function SwfLoadComplete(e:Event):void {
addChild(swfLoader);
}
it adds swf on stage before content of that swf has actually loaded (some pictures)
How can I add it to stage after all the content in that swf has loaded completely?
Preloader Jumpin' Too Early
having probs with my pre-loader, it seems to goto the next scene before loading the whole movie. It seems to be getting to 13% or 14% and then attempts to play the movie.
I can't seem to see the problem. Could someone have a look at it?
Here's the code: (frame 1)
bytesTotal = (_level0.getBytesTotal());
KbytesTotal = (int(_level0.getBytesTotal()/1024) add "KB");
percentSetup = ((bytesLoaded/bytesTotal)*100);
percentage = int(percentSetup) add "%";setProperty ("_root.DropIn.LoaderBar", _xscale, percentSetup);
if (bytesLoaded == bytesTotal) {
_root.gotoAndPlay(scene1);
}
(And in frame 2)
if (bytesLoaded<bytesTotal) {
_root.DropIn.gotoAndPlay(scene1);
}
Thanks in advance, chook
Sound Plays Too Early
hi, im having trouble with sounds in flash mx. as the subject implies, the sounds play too early or too late. can i get some help? thanks. (p.s., is there an easy way to explain ActionScript? thanks)
Sound Out Of Synch/too Early...
I'm just starting in Flash... I'm working on a movie in which one scene begins with a long silence and still picture, before some sound finally comes in, and then some animation. The scene is perfectly in sync when played by itself, but when the movie is played as a whole, the sound begins way too early, during the still picture. The rest of the movie is perfectly synchronized. Any suggestions?
Sound Playing Too Early
I've tried everything possible to fix this problem in my SWF file, but whenever I test movie or publish preview a series of streaming sounds that I have playing later in the scene start playing too early. It is a series of small sound files that play about 20 frames apart from each other except at the end where two of the sound files play 7 frames apart. I even tried making them play on event, but the same thing still happened. I also tried moving the sound files to a later part in the timeline and they still played at the exact same place. What's happening? Is it a problem in the programming?
Early Flash Animation
its not the greatest of animation, but if you enjoy perverted humor, then you may find it quite funny www.thefunforum.com (click on the link to episode 3 once at the site)
External Swf Loading Too Early
Im using the progress bar and the loader components to load an external swf...
my prob is that the swf is already loaded when the progress bar reaches 80% and starts playing in the background but instead of seeing the movie i still see the prog bar loading until it reaches 100%
is there a way to make the movie play exactly when the prog bar is on 100% and not before?
Converting From Early Version
Hi.. I´d like to know if is possible to make an automatic conversion a file generated from Flash 4 action script to script of flashMX and, if yes, how? because when I open and old file and try to publish, it only works without problem when I choose flash 4 format
Sounds Are Playing Way To Early
I'm making a cartoon, and some of the sounds are REALLY off. I put a sound in one scene and it happens in the scene BEFORE it should, or sometimes two scenes early. I've tried everything I can think of to fix the problem but nothing works. Any help?
Sounds Starting Too Early.
Hello, for my class we have to remake a children's book. Everythng is working fine for mine until scene 4. Then the sound effects start going before they are supposed too. Any ideas?
Here is the source file
http://files.filefront.com/brightcol.../fileinfo.html
Audio Starts Early
That's pretty much the entire case. During certain points in my movie, audio that shouldn't play until later, starts, and then when it gets to the point it should play, it starts again. Is there any reason that it's doing this, or is it just some bizarre fault on my end?
This is the movie in question.
Action Happening Too Early
My roll over action is happening too quickly how can I slow it down?
http://www.mandarinedesign.com/staging/hubb/home.swf
Also I want to add in URL links to the backside of the tag, but when I use getURL it brings the tag back to the up state when you roll off... HELP please
FLV Playback Stopping Early
I have an intermittant problem with FLV playback. I am using FMS 3.0.1r123 and FLVPlayback component to play RTMP streams that have been recorded using a webcam via RTMP.
Maybe 1 in 10 recordings will not play back the last couple of seconds of the movie. A day or two later they are fine and play completely! I have made some tests;
1. Using Video object instead makes no difference (it seems the Event.COMPLETE message arrives early)
2. Using HTTP playback fixes the problem (but I want to try and keep the RTMP playback if possible though but I guess this is one way out)
3. The duration before the movies plays back properly seems to vary but is always at least 24 hours later (is that weird or what?)
4. Seeking past the 'end' will play the last couple of seconds.
5. The metadata duration reported at the start is correct (but how can you force FLVPlayback to use this length?)
any clues greatly appreciated
Andi Freeman
correspondent.com
Sound Is Playing Too Early...
Alright, I'm currently working on a template for some greeting cards. There's an intro scene with a quick sound clip, then it moves to the loading script.
After the movie is loaded, it goes to Scene 2 where the actual greeting card starts playing. Some of the cards have sound, however when the second scene starts playing (in the exported .swf), the sounds come in WAY to early.
I've tried:
- Setting the sounds as streaming (which is the one that's supposed to work)
- Trying all other sound modes (event, start, stop)
- resampling the wav files to match before importing them into the flash movie, THEN I import them and they still play too early
- Moving the part where the sound comes in into a brand new scene (STILL plays during the second scene!)
When I set them as streaming and play them in Flash MX (the editing program), all the sounds play when they're supposed to.
I don't know WHY it's doing this. I'll go ahead and link to the flash and swf into a zip file, and you can see for yourself.
*jumps out a window*
http://pluh.com/cp/server/serve.php?...ear%20love.zip
OnLoadComplete Being Triggered Too Early
Hello, all...
I figure I'm doing something wrong here because the onLoadComplete trigger is being activated too early... and by too early I mean there's no delay at all... as soon as the frame plays it's being triggered instantly...
Code:
onLoadComplete("MainMovie")
{
gotoAndStop("Preloader",2);
}
I'm trying to make a preloading screen... I have a scene called "MainMovie" and one called "Preloader". I think the names are self-explanitory.
Any help would be greatly appreciated!!
Preloader Loads Too Early
Hi all,
I created both a master.swf and preloader.swf to load my main.swf. When I simulate download, for some reason the preloader.swf appears when it is 30% loaded. Then, I can hear my main.swf load underneath when the preloader is 90% loaded. Once the preloader finishes at 100%, the preloader disappears (as I wanted); however, the main.swf had already started.
Does this make sense? I am confused.
Here is the AS for my master.swf:
stop();
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes/totalBytes) * 100);
_level50.preloader.gotoAndStop(preloadPercent);
_level50.preloadInfo.text = preloadPercent + " % loaded";
}
myListener.onLoadComplete = function(target_mc:MovieClip) {
_level50._visible = false;
}
myMCL.loadClip("main.swf", 5);
myMCL.loadClip("preloader.swf", 50);
My Site's Preloader Takes Me In Too Early
This one's bugging me because I'm sure the answer is sitting right here in front of my face. The site I've created is quite big: the flash portion comes out to 1.3 megabytes, so a preloader is a necessity.
The preloader sits on the first frame and is set to take the viewer in when the last frame (frame 39) is downloaded. The problem is that it works for only a few frames and then takes the viewer in. Navigation is unpredictable until the whole site downloads.
Here is the code I have as a frame action:
if(_framesloaded==39) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
Anyone have any ideas? I appreciate any help.
Willi Waizenegger
Getting A Movie To Begin Loading Early
I have designed a short 4-frame, simple text, push the button the button to advance to the next frame intro. I would like to get the bulky main movie to start downloading when the small intro movie starts to play. the intro movie is set to be the same size (width and height) as the main movie.
Basically, I would like the viewer to be able to "slowly" read through the 4-frames of text while the main movie loads in. and then if the main movie hasn't loaded byt the time the reader has read the 4-frames a simple preloader will come up.
Any thoughts????
Matt
Mc Containing Mpg Movie Starts Playing To Early
I'm loading a swf (containing mpg movie) to MC. But it starts playing before it's 100% loaded. Works fine with other swf-s wich containing pictures etc.
To know what I mean:
http://www.dada.ee/dada/
check: "galerii" and then "tele"
Any ideas what to do?
Sound Plays Several Scenes Too Early.
I have a sound file set to stream at the beginning of scene 7, but it starts playing around the middle of scene 3. Originally the project began with scene 4 and it worked fine, but I added three scenes onto the beginning, and it started doing this. Anyone know what's wrong?
[CS3] Countdown Timer Starting Early
Hi guys. I found some code for a nice countdown timer I've modified to do a simple 60-second countdown and it works great. The problem I'm having is that I only want it to run when a specific movie clip becomes visible. Right now, the user has to proceed through several other movie clips first, to set their settings. Because the movie clip that's supposed to be timed is present but invisible, it starts early. I've tried a few different things, but I can't figure out how to remedy this. Any suggestions?
Here's the timer's code:
PHP Code:
start_time = getTimer();
countdown = 60000; //60000 = 60 seconds
var started = false;
onEnterFrame = function () {
elapsed_time = getTimer()-start_time;
wordTime_dyn.text = time_to_string( countdown-elapsed_time );
}
function time_to_string(time_to_convert) {
elapsed_seconds = Math.floor( time_to_convert/1000 );
remaining = time_to_convert-( elapsed_seconds*1000 );
elapsed_fs = Math.floor(remaining/10);
if( elapsed_seconds < 10 ) seconds = "0"+elapsed_seconds.toString();
else seconds = elapsed_seconds.toString();
if( elapsed_fs < 10 ) hundredths = "0"+elapsed_fs.toString();
else hundredths = elapsed_fs.toString();
if( elapsed_seconds <= -1 ){
return "00:00";
//resulting code goes here
}
else return seconds+":"+hundredths;
}
stop();
My 1st Flash Site - Early Critique
Hi to all, I hope Christmas and New Years was great for everybody, I've been away on a wee break so it's good to be back, all refreshed!
I'm a Graphic Designer with some knowledge of flash & I've been asked to build a site for someone. To practice I copied a site he liked, which I'm doing in my spare time - I want to get something to the employer soon so he can see my progress.
Please read below and see what I've done in the folder - and any suggestions or critique is most welcome! Thanks!
..........
Since I started this project, I've learned how to create a few techniques found on the boffi.com website - ie a photoreel, a scroll text box & a image grid (you'll see what I mean if you download my attached folder).
So now I'm going to try and link the site together. I've created a new fla for the site (ians_boffi_site.fla) and have set up the buttons and their actions to jump to the individual pages.
I've taken the content off the main timeline (as suggested) and put it all in a movie clip called 'site'.
I've embedded the sample SWFs I'd previously made onto the certain pages; the collections page, the dealers page and profile page. Someone told me to make movie clips on each page but I thought seeing I'd created the practice SWFs already I'd just place them in on the particular frame, in this case.
You can move around the site quite nicely and I'm pleased with that.
However, the embedded (not loaded) SWFs do not actually function in the correct way (If you click on the swfs in my folder you see they work) so does anyone know why this is? The photoreel just plays through without allowing you to use the 'next' button I built. And the other 2 swfs appear as graphics in the library and not movies so they are just static images.
Is there a major issue with this type of SWF placement I don't know about. Maybe I'm better off loading in the SWFs externally?
I'd appreciate any help or suggestions on any aspect of what I have here...
http://www.2shared.com/file/4584247/...ians_site.html
Many thanks once again to you all for your help!
Ian.
MovieClipLoader Movie Appears Too Early
I'm loading a movie into _level1 using a MovieClipLoader()
The movie appears before it is fully loaded, which covers my loading animation! The movie is resized onLoadInit(), so it loks ugly too.. because the premature arrival is not scaled... then when loadInit, it pops to the correct size. very ugly.
Anyone know a way to stop the movie from displaying until the movie is loaded? I tried using _visible but I think it requires the movie to be fully loaded before it works.
The only other solution will be to load the loading anim into a higher level... but I'd rather find a way of hiding the movie until onLoadInit()
Cue Point Triggers Early When Buffering FLV
Hi everyone,
I'm doing a full flash video site, and have got all the video edited etc, but am at the stage where I am implementing it all into Flash and have run into a pretty big problem at the early stage of this part.
I'm using the netStream class for video playback, (although I've also tried it with the FLVPlayback component with the same problem), and if I use "ns.setBufferTime(10);", the cue point I have in the video hits way too early.
You can see what I mean here:
http://www.flash.uk.net/qualitytesti..._Holder-3.html
The cue point is set to trigger the contact details window just as she points to the right, but with the buffer set to 10 secs, it triggers at the start of the video.
Can anyone help me understand why this is happening and what I can do about it? I've been up for 2 long days trying to find an answer but haven't ben able to yet.
Another thing, is that I'd like the site to load the individual FLV's in the sequence that I choose, so the most important clips would load first. How could I tell Flash which video's I want loaded in a particular order - would that involve an array? If so, can anyone give me some advice as to the code to load a sequence of FLV's sequentially?
Thanks a lot in advance,
Olly.
Stopping Flash Video Early?
I have a flash video in a basic flash as3 movie file just using the loader component .. it plays fine, but we would like to cut off the last 3 seconds or so to cut out a logo we don't need. The video was given to us as the flv file already and the supplier can't get ahold of the original file or a quicktime version for me to re-encode or anything like that
Does anyone know if there's a way to just have the video stop sooner? We want it to stop at 5 minutes 24 seconds. I tried messing around with totalTime thinking that might do something but I couldn't get it to work. Is there some other way to do it that I'm missing?
the timeline is just 1 frame with the loader in it, nothing really fancy. Any help would be appreciated :)
Get In Early > XCruiser Flash Widget
Hello World:
Our company is about to launch around mid-May a breakthrough publishing and browsing platform, based on a patented UI technology, called XCruiser.
XCruiser is a rich Internet application (RIA) written in C# that runs on top of the Microsoft .Net Framework 2.0 and DirectX. Our business model is SaaS, and weâre targeting the creative market, storefronts and Consumer Generated Media. [And yes it's also about Flash]
XCruiser is a new way to create and navigate rich content. Users will be able to publish to the Internet PhotoStreams, WebStreams and ShoppStreams.
XCruiser is a highly visual technology and as is common with visual technology, words can only do so much in conveying what it does, how it works, and its hypnotic experience.
What we can tell you in a public forum:
⢠Users can navigate in parallel through 3D content channels, at rates that reach 120 to 200 images per minute, unbeknownst to users. Itâs very comfortable and very fast. Of course, users can cruise leisurely at a slower rate if they wish.
⢠Users can cruise through different categories or even content sources simultaneously.
⢠The net result of its publishing and navigation abilities is that it effectively offers the first Desktop âMedia Search Engine Builderâ and âLive Presentationâ platform. Add media search and in-site search technology to the picture.
Whatâs the Project:
We need to get a Flash based widget out the door quickly after our launch date. The Flash widget needs to match the âcruising experienceâ of the RIA client. The Flash widget does not need to offer editing, creating and publishing capability, so it will be limited to XCruiser 1.0âs navigation features.
We believe XCruiser has a bright future ahead. The Flash widget obviously plays a strategic role as it offers viral exposure and lets some of our SMB customers syndicate their XCruiser streams on web pages or even social networks (Facebook/MySpace etc). Unlike a lot of get rich quick start-up schemes, we âre in it for the long run and are patent protected. This is important because if you invest your time, you know that the companyâs technologies cannot be duplicated by copycats.
Our technology was endorsed as a foundation platform by Dan Lynch, a big fish in Silicon Valley who was one of the instrumental key figures during the days of DARPANET along with Vint Cerf, Doug Englebart and Alan Kay (mouse and GUI inventors respectively). Because itâs a foundation platform, XCruiser can deliver many applications.
Whatâs In It For You:
Youâd be coming in pretty early in the game and this is a short time span development project of 90 days.
This is a great opportunity for a talented developer to take a generous equity position in a start-up for very little work time. The candidate does not need to commit 1 or 2 years of his/her life. Plus, this is very interesting work and once you see it youâll understand that this technology will quickly become visible, even more so with the Flash widget. You also stand to enhance your reputation significantly. Ideally, weâd rather you continue working with us over the long term but thatâs entirely up to you. The primary objective is to get the Flash widget out the door.
What Are We Looking For:
A Creative minded Web Developer who knows Java Script/Flash and Flash 3D and also has experience with XML. You anticipate being free for the next 4 or 6 months.
Technical Skills:
o Determined Flash problem-solver
o 1 year or > Flash ActionScript 2.0, XML, Javascript, and AJAX
o XML with CSS experience
Flash integration with back-end technologies (ASP, Cold Fusion), experience with Flashremoting helpful
Strong design sense, proficient with CS (Creative Suite) Web Development Suite
o Familiarity JavaScript/DOM Scripting
o Web services
Great, Whatâs Next:
If youâre interested and think you fit the profile, get in touch with Ken at norviks@gmail.com.
1. Send us your resume plus a portfolio and/or examples of your work.
2. Weâll send you a standard NDA
3. Weâll send you XCruiser Beta to play with.
4. If you like what you see and you know you have the skill set to deliver a working flash version quickly and are interested in this unique opportunity, we can work with you if you're anywhere in the continental US.
We will consider a Flash developer located off-shore provided your talent stands-out.
Edited: 04/26/2008 at 08:32:34 AM by syncfuture
Get In Early > XCruiser Flash Widget
Hello World:
Our company is about to launch around mid-May a breakthrough publishing and browsing platform, based on a patented UI technology, called XCruiser.
XCruiser is a rich Internet application (RIA) written in C# that runs on top of the Microsoft .Net Framework 2.0 and DirectX. Our business model is SaaS, and weâre targeting the creative market, storefronts and Consumer Generated Media. [And yes it's also about Flash]
XCruiser is a new way to create and navigate rich content. Users will be able to publish to the Internet PhotoStreams, WebStreams and ShoppStreams.
XCruiser is a highly visual technology and as is common with visual technology, words can only do so much in conveying what it does, how it works, and its hypnotic experience.
What we can tell you in a public forum:
⢠Users can navigate in parallel through 3D content channels, at rates that reach 120 to 200 images per minute, unbeknownst to users. Itâs very comfortable and very fast. Of course, users can cruise leisurely at a slower rate if they wish.
⢠Users can cruise through different categories or even content sources simultaneously.
⢠The net result of its publishing and navigation abilities is that it effectively offers the first Desktop âMedia Search Engine Builderâ and âLive Presentationâ platform. Add media search and in-site search technology to the picture.
Whatâs the Project:
We need to get a Flash based widget out the door quickly after our launch date. The Flash widget needs to match the âcruising experienceâ of the RIA client. The Flash widget does not need to offer editing, creating and publishing capability, so it will be limited to XCruiser 1.0âs navigation features.
We believe XCruiser has a bright future ahead. The Flash widget obviously plays a strategic role as it offers viral exposure and lets some of our SMB customers syndicate their XCruiser streams on web pages or even social networks (Facebook/MySpace etc). Unlike a lot of get rich quick start-up schemes, we âre in it for the long run and are patent protected. This is important because if you invest your time, you know that the companyâs technologies cannot be duplicated by copycats.
Our technology was endorsed as a foundation platform by Dan Lynch, a big fish in Silicon Valley who was one of the instrumental key figures during the days of DARPANET along with Vint Cerf, Doug Englebart and Alan Kay (mouse and GUI inventors respectively). Because itâs a foundation platform, XCruiser can deliver many applications.
Whatâs In It For You:
Youâd be coming in pretty early in the game and this is a short time span development project of 90 days.
This is a great opportunity for a talented developer to take a generous equity position in a start-up for very little work time. The candidate does not need to commit 1 or 2 years of his/her life. Plus, this is very interesting work and once you see it youâll understand that this technology will quickly become visible, even more so with the Flash widget. You also stand to enhance your reputation significantly. Ideally, weâd rather you continue working with us over the long term but thatâs entirely up to you. The primary objective is to get the Flash widget out the door.
What Are We Looking For:
A Creative minded Web Developer who knows Java Script/Flash and Flash 3D and also has experience with XML. You anticipate being free for the next 4 or 6 months.
Technical Skills:
o Determined Flash problem-solver
o 1 year or > Flash ActionScript 2.0, XML, Javascript, and AJAX
o XML with CSS experience
Flash integration with back-end technologies (ASP, Cold Fusion), experience with Flashremoting helpful
Strong design sense, proficient with CS (Creative Suite) Web Development Suite
o Familiarity JavaScript/DOM Scripting
o Web services
Great, Whatâs Next:
If youâre interested and think you fit the profile, get in touch with Ken at norviks@gmail.com.
1. Send us your resume plus a portfolio and/or examples of your work.
2. Weâll send you a standard NDA
3. Weâll send you XCruiser Beta to play with.
4. If you like what you see and you know you have the skill set to deliver a working flash version quickly and are interested in this unique opportunity, we can work with you if you're anywhere in the continental US.
We will consider a Flash developer located off-shore provided your talent stands-out.
Edited: 04/26/2008 at 08:21:50 AM by syncfuture
Get In Early > XCruiser Flash Widget
Hello World:
We're about to launch around mid-May a breakthrough publishing and browsing platform, based on a patented UI technology, called XCruiser.
XCruiser is a rich Internet application (RIA) written in C# that runs on top of the Microsoft .Net Framework 2.0 and DirectX. Our business model is SaaS, and weâre targeting the creative market, storefronts and Consumer Generated Media. [And yes it's also about Flash]
XCruiser is a new way to create and navigate rich content. Users will be able to publish to the Internet PhotoStreams, WebStreams and ShoppStreams.
XCruiser is a highly visual technology and as is common with visual technology, words can only do so much in conveying what it does, how it works, and its hypnotic experience.
What we can tell you in a public forum:
⢠Users can navigate in parallel through 3D content channels, at rates that reach 120 to 200 images per minute, unbeknownst to users. Itâs very comfortable and very fast. Of course, users can cruise leisurely at a slower rate if they wish.
⢠Users can cruise through different categories or even content sources simultaneously.
⢠The net result of its publishing and navigation abilities is that it effectively offers the first Desktop âMedia Search Engine Builderâ and âLive Presentationâ platform. Add media search and in-site search technology to the picture.
Whatâs the Project:
We need to get a Flash based widget out the door quickly after our launch date. The Flash widget needs to match the âcruising experienceâ of the RIA client. The Flash widget does not need to offer editing, creating and publishing capability, so it will be limited to XCruiser 1.0âs navigation features.
We believe XCruiser has a bright future ahead. The Flash widget obviously plays a strategic role as it offers viral exposure and lets some of our SMB customers syndicate their XCruiser streams on web pages or even social networks (Facebook/MySpace etc). Unlike a lot of get rich quick start-up schemes, we âre in it for the long run and are patent protected. This is important because if you invest your time, you know that the companyâs technologies cannot be duplicated by copycats.
Our technology was endorsed as a foundation platform by Dan Lynch, a big fish in Silicon Valley who was one of the instrumental key figures during the days of DARPANET along with Vint Cerf, Doug Englebart and Alan Kay (mouse and GUI inventors respectively). Because itâs a foundation platform, XCruiser can deliver many applications.
Whatâs In It For You:
Youâd be coming in pretty early in the game and this is a short time span development project of 90 days.
This is a great opportunity for a talented developer to take a generous equity position in a start-up for very little work time. The candidate does not need to commit 1 or 2 years of his/her life. Plus, this is very interesting work and once you see it youâll understand that this technology will quickly become visible, even more so with the Flash widget. You also stand to enhance your reputation significantly. Ideally, weâd rather you continue working with us over the long term but thatâs entirely up to you. The primary objective is to get the Flash widget out the door.
What Are We Looking For:
A Creative minded Web Developer who knows Java Script/Flash and Flash 3D and also has experience with XML. You anticipate being free for the next 4 or 6 months.
Technical Skills:
o Determined Flash problem-solver
o 1 year or > Flash ActionScript 2.0, XML, Javascript, and AJAX
o XML with CSS experience
Flash integration with back-end technologies (ASP, Cold Fusion), experience with Flashremoting helpful
Strong design sense, proficient with CS (Creative Suite) Web Development Suite
o Familiarity JavaScript/DOM Scripting
o Web services
Great, Whatâs Next:
If youâre interested and think you fit the profile, get in touch with Ken at norviks@gmail.com.
1. Send us your resume plus a portfolio and/or examples of your work.
2. Weâll send you a standard NDA
3. Weâll send you XCruiser Beta to play with.
4. If you like what you see and you know you have the skill set to deliver a working flash version quickly and are interested in this unique opportunity, we can work with you if you're anywhere in the continental US.
We will consider a Flash developer located off-shore provided your talent stands-out.
Edited: 04/26/2008 at 08:36:42 AM by syncfuture
Event.SOUND_COMPLETE Firing Early
Hi all... I am creating an mp3 player and have ran into an issue with the seek capability of the application. I want to be able to show the progress of the sound playing and allow the user to click on this progress bar to seek through the sound.
The problem arises when I go to seek past 55 or 60% of the sounds length... the Event.SOUND_COMPLETE fires and the onPlaybackComplete function is called, stopping the sound.
I have just begun experimenting with ActionScript, so any criticism is welcome and much appreciated concerning general code organization and how to fix this problem.
First I extend the DataGrid class to change some of it's behavior, such as column resizing. This class loads the dataProvider for the data grid from a MySQL database. When the user double clicks a row, it launches that mp3 file associated with the data.
In onItemDoubleClick, I create a new MyMP3, passing it my container object that has all the buttons and duration bars, etc on it.
So it seeks fine when I click anywhere on the duration_mc's child, squareHit up until about 55% of the length of the song... though the channel.position traces to be at around 55 or 60% of the sound's length, Event.SOUND_COMPLETE fires a few seconds later. Please advise on how to fix this. Thanks.
Attach Code
// MyMP3DataGrid
package
{
// import statements
import fl.controls.dataGridClasses.DataGridColumn;
...
public class MyMP3DataGrid extends DataGrid
{
private var loadDPCount:int = 0;
private var divider:Sprite;
private var variables:URLVariables;
private var request:URLRequest;
private var loader:URLLoader;
private var dataXML:XML;
private var _dataProviderURL:String;
private var dProvider:DataProvider;
private var _stage:Sprite;
private var lastmp3:MyMP3;
public function MyMP3DataGrid( container:Sprite, dataProviderURL:String )
{
super();
_stage = container;
_dataProviderURL = dataProviderURL;
getDataProvider();
doubleClickEnabled = true;
addEventListener( ListEvent.ITEM_DOUBLE_CLICK, onItemDoubleClick );
}
public function drawDivider():void
{
var dProvider:DataProvider = dataProvider;
divider = new Sprite();
divider.graphics.lineStyle(3, 0xFFcc33, 0.6 );
divider.graphics.moveTo(0,0);
divider.graphics.lineTo(0, (( dProvider.length > 18 ) ? rowHeight * 18 : ( dProvider.length + 1 ) * rowHeight ));
divider.visible = false;
}
override protected function handleHeaderResizeDown(event:MouseEvent):void
{
divider.x = event.stageX;
divider.y = this.y;
_stage.addChild(divider);
divider.visible = true;
super.handleHeaderResizeDown(event);
}
override protected function handleHeaderResizeMove(event:MouseEvent):void
{
divider.x = event.stageX;
}
override protected function handleHeaderResizeUp(event:MouseEvent):void
{
divider.visible = false;
var delta:Number = event.stageX - columnStretchStartX;
var newWidth = columnStretchStartWidth + delta;
resizeColumn(columnStretchIndex, newWidth);
super.handleHeaderResizeUp(event);
}
private function onItemDoubleClick( event:ListEvent ):void
{
if( lastmp3 )
lastmp3.cleanUp();
var mp3info:Object = event.item as Object;
var url:String = './library/'+mp3info.Artist+'/'+mp3info.Album+'/'+mp3info.Name;
var mp3:MyMP3 = new MyMP3( _stage, url, mp3info );
lastmp3 = mp3;
_stage.addChild(mp3);
}
public function getDataProvider():void
{
variables = new URLVariables();
variables.action = "getmp3s";
request = new URLRequest();
request.url = _dataProviderURL;
request.method = URLRequestMethod.POST;
request.data = variables;
loader = new URLLoader();
loader.addEventListener( IOErrorEvent.IO_ERROR, loaderIOErrorHandler );
loader.addEventListener(Event.COMPLETE, loaderCompleteHandler);
try
{
loader.load(request);
}
catch (error:Error)
{
// TO DO: Output errors to the user in a user friendly way
trace("Unable to load URL");
}
}
private function loaderIOErrorHandler( event:IOErrorEvent ):void
{
loader.removeEventListener( IOErrorEvent.IO_ERROR, loaderIOErrorHandler );
loadDPCount++;
if( loadDPCount < 5 )
getDataProvider();
else
trace('Server offline of busy.');
}
private function loaderCompleteHandler(event:Event):void
{
loader.removeEventListener( Event.COMPLETE, loaderCompleteHandler );
//trace( event.target.data ); // this will display any php errors from mymp3.php
dataXML = XML(event.target.data);
dProvider = new DataProvider(dataXML);
setSize(770, (( dProvider.length > 17 ) ? rowHeight * 18 : ( dProvider.length + 1 ) * rowHeight ));
dataProvider = dProvider;
drawDivider();
if( !visible )
visible = true;
}
}
}
// MyMP3
package
{
import flash.media.Sound;
import flash.media.SoundLoaderContext;
import flash.media.SoundChannel;
import flash.media.SoundTransform;
import flash.net.URLRequest;
import flash.geom.Rectangle;
import flash.events.*;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.utils.Timer;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.display.Sprite;
import flash.display.SimpleButton;
import flash.display.Shape;
import flash.display.DisplayObject;
import fl.controls.Button;
import flash.display.MovieClip;
import flash.display.Stage;
import fl.controls.*;
public class MyMP3 extends Sprite
{
private var posTimer:Timer;
//private var position:Number;
private var durationFormat:TextFormat;
private var format:TextFormat;
private var mp3nameTF:TextField;
private var sndFinished:Boolean;
private var s:Sound;
private var trans:SoundTransform;
private var req:URLRequest;
private var channel:SoundChannel;
private var isPlaying:Boolean;
private var pausePosition:Number;
private var squareHit:Sprite;
private var ctimesec:uint;
private var csec:uint;
private var cmin:uint;
private var chour:uint;
private var csecstr:String;
private var cminstr:String;
private var chourstr:String;
private var estimatedLength:int;
private var playbackPercent:uint;
private var square:Shape;
private var isDragging:Boolean;
private static var mp3playing:Boolean = false;
private var _mp3info:Object;
private var playBtn_btn:flatgreyplay; // = new flatgreyplay();
private var pauseBtn_btn:flatgreypause; // = new flatgreypause();
private var durationTF:TextField;
private var playtimeTF:TextField;
private var duration_mc:DurationBG = new DurationBG();
private var _stage:Sprite;
public function MyMP3( container:Sprite, url:String , mp3info:Object )
{
_stage = container;
//trace( _stage );
_mp3info = mp3info;
BuildUI();
Initialize( url );
SetUpEventListeners();
}
public function cleanUp():void
{
posTimer.removeEventListener(TimerEvent.TIMER, UpdateDurationTF );
playBtn_btn.removeEventListener( MouseEvent.CLICK, Play );
pauseBtn_btn.removeEventListener( MouseEvent.CLICK, Pause );
squareHit.removeEventListener( MouseEvent.CLICK, UpdatePosition );
if( isPlaying )
{
posTimer.stop();
pausePosition = 0;
channel.stop();
isPlaying = false;
pauseBtn_btn.visible = false;
playBtn_btn.visible = true;
removeEventListener( Event.ENTER_FRAME, OnEnterFrame );
mp3playing = false;
}
if( square )
removeChild(square);
durationTF.text = '00:00:00';
var tfFormat:TextFormat = new TextFormat();
tfFormat.size = 10;
tfFormat.color = 0xffffff;
tfFormat.font = "Arial";
durationTF.setTextFormat( tfFormat );
}
private function Initialize( url:String )
{
playtimeTF.text = _mp3info.Time;
var tfFormat:TextFormat = new TextFormat();
tfFormat.size = 10;
tfFormat.color = 0xffffff;
tfFormat.font = "Arial";
playtimeTF.setTextFormat( tfFormat );
posTimer = new Timer(50);
sndFinished = false;
trans = new SoundTransform(1, 0);
s = new Sound();
s.addEventListener( IOErrorEvent.IO_ERROR, ioErrorHandler );
channel = new SoundChannel();
req = new URLRequest( url );
s.load(req);
isPlaying = false;
pausePosition = 0;
pauseBtn_btn.visible = false;
isDragging = false;
}
private function ioErrorHandler( event:IOErrorEvent ):void
{
trace( event );
}
private function SetUpEventListeners()
{
posTimer.addEventListener(TimerEvent.TIMER, UpdateDurationTF );
playBtn_btn.addEventListener( MouseEvent.CLICK, Play );
pauseBtn_btn.addEventListener( MouseEvent.CLICK, Pause );
//channel.addEventListener(Event.SOUND_COMPLETE, OnPlaybackComplete);
squareHit.addEventListener( MouseEvent.CLICK, UpdatePosition );
var mevent:MouseEvent = new MouseEvent( MouseEvent.CLICK );
playBtn_btn.dispatchEvent( mevent );
}
public function Play(e:MouseEvent)
{
if( !isPlaying && !mp3playing )
{
posTimer.start();
channel = s.play(pausePosition, 0, trans);
if( !channel.hasEventListener(Event.SOUND_COMPLETE))
channel.addEventListener(Event.SOUND_COMPLETE, OnPlaybackComplete);
isPlaying = true;
playBtn_btn.visible = false;
pauseBtn_btn.visible = true;
if( !squareHit.hasEventListener(MouseEvent.CLICK ))
squareHit.addEventListener( MouseEvent.CLICK, UpdatePosition );
addEventListener(Event.ENTER_FRAME, OnEnterFrame);
mp3playing = true;
}
}
private function Pause( e:MouseEvent )
{
if( isPlaying )
{
posTimer.stop();
pausePosition = channel.position;
channel.stop();
isPlaying = false;
pauseBtn_btn.visible = false;
playBtn_btn.visible = true;
removeEventListener( Event.ENTER_FRAME, OnEnterFrame );
mp3playing = false;
}
}
private function OnPlaybackComplete( e:Event )
{
trace( 'onplaybackcomplete' );
posTimer.stop();
isPlaying = false;
pausePosition = 0;
pauseBtn_btn.visible = false;
playBtn_btn.visible = true;
removeChild( square );
square = new Shape();
square.graphics.beginFill(0xFFCC33, 0.5);
square.graphics.drawRect( 0, 0, duration_mc.width, duration_mc.height );
square.graphics.endFill();
square.x = duration_mc.x;
square.y = duration_mc.y;
//square.addEventListener(MouseEvent.CLICK, UpdatePosition);
addChild(square);
removeEventListener( Event.ENTER_FRAME, OnEnterFrame );
channel.removeEventListener(Event.SOUND_COMPLETE, OnPlaybackComplete );
//removeChild(square);
durationTF.text = '00:00:00';
var tfFormat:TextFormat = new TextFormat();
tfFormat.size = 10;
tfFormat.color = 0xffffff;
tfFormat.font = "Arial";
durationTF.setTextFormat( tfFormat );
mp3playing = false;
}
private function UpdatePosition( e:MouseEvent )
{
//trace( squareHit.width, e.localX );
var position:Number = Math.ceil(s.length / (s.bytesLoaded / s.bytesTotal)) * ( e.localX / squareHit.width );
//trace( channel.position, s.length );
//if( position < s.length )
//{
if( isPlaying )
{
channel.stop();
channel = s.play(position, 0, trans);
if( !channel.hasEventListener(Event.SOUND_COMPLETE))
channel.addEventListener(Event.SOUND_COMPLETE, OnPlaybackComplete);
}
else if( !mp3playing )
{
posTimer.start();
channel = s.play(position, 0, trans);
if( !channel.hasEventListener(Event.SOUND_COMPLETE))
channel.addEventListener(Event.SOUND_COMPLETE, OnPlaybackComplete);
isPlaying = true;
playBtn_btn.visible = false;
pauseBtn_btn.visible = true;
if( !squareHit.hasEventListener(MouseEvent.CLICK ))
squareHit.addEventListener( MouseEvent.CLICK, UpdatePosition );
addEventListener(Event.ENTER_FRAME, OnEnterFrame);
mp3playing = true;
}
//}
}
private function OnEnterFrame( e:Event )
{
estimatedLength = Math.ceil(s.length / (s.bytesLoaded / s.bytesTotal));
playbackPercent = Math.round(100 * (channel.position / estimatedLength));
if( square && square.parent == this )
{
//square.removeEventListener( MouseEvent.CLICK, UpdatePosition );
removeChild( square );
}
square = new Shape();
square.graphics.beginFill(0xFFCC33, 0.5);
square.graphics.drawRect( duration_mc.x, duration_mc.y, ( playbackPercent / 100 ) * ( squareHit.width), squareHit.height );
square.graphics.endFill();
//square.addEventListener( MouseEvent.CLICK, UpdatePosition );
addChild(square);
}
private function BuildUI()
{
// play button
playBtn_btn = _stage.getChildByName('playBtn_btn') as flatgreyplay;
// pause button
pauseBtn_btn = _stage.getChildByName('pauseBtn_btn') as flatgreypause;
// volume bar
/*volumeBarBtn = CreateVolumeBar();
volumeBarBtn.x = playBtn.width + 3;
volumeBarBtn.y = 0;
this.addChild(volumeBarBtn);*/
// duration textfield
durationTF = _stage.getChildByName('durationTF') as TextField;
// duration_mc
duration_mc = _stage.getChildByName('duration_mc') as Slider;
// playtime textfield
playtimeTF = _stage.getChildByName('playtimeTF') as TextField;
// mp3 name textfield
mp3nameTF = _stage.getChildByName('mp3nameTF') as TextField;
mp3nameTF.text = _mp3info.Name;
var nFormat:TextFormat = new TextFormat();
nFormat.font = "Arial";
nFormat.color = 0xffffff;
nFormat.size = 12;
nFormat.bold = true;
mp3nameTF.setTextFormat(nFormat);
// mp3 position hit area
squareHit = new Sprite();
squareHit.graphics.beginFill(0x000000, 0);
squareHit.graphics.drawRect( 0, 0, duration_mc.width, duration_mc.height);
squareHit.graphics.endFill();
squareHit.buttonMode = true;
squareHit.x = duration_mc.x;
squareHit.y = duration_mc.y;
addChild(squareHit);
}
private function UpdateDurationTF(e:TimerEvent)
{
ctimesec = Math.floor( channel.position / 1000 );
chour = Math.floor( ctimesec / 60 / 60 );
if( chour < 10 ) chourstr = '0' + chour;
else chourstr = chour.toString(10);
cmin = Math.floor(ctimesec / 60);
if( cmin < 10 ) cminstr = '0' + cmin;
else cminstr = cmin.toString(10);
csec = Math.floor( ctimesec % 60);
if( csec < 10 ) csecstr = '0' + csec;
else csecstr = csec.toString(10);
durationTF.text = chourstr + ':' + cminstr + ':' + csecstr;
var tfFormat:TextFormat = new TextFormat();
tfFormat.size = 10;
tfFormat.color = 0xffffff;
tfFormat.font = "Arial";
durationTF.setTextFormat( tfFormat );
}
}
}
Sound Problem - It Starts Too Early
Ok here's the deal, i got a movie im making , so in the movie the first few scenes are fine, but when the screen comes on introducing the next scene, the sounds forthe next scene start in the scene before it,
basically the sounds are starting before they are even soppost to, can anyone tell me why and how to fix it please? i have set all the sounds to stream but for some reason it wont stop.
AS 2 My 1st Flash Site - Early Critique
Hi to all, I hope Christmas and New Years was great for everybody, I've been away on a wee break so it's good to be back, all refreshed!
I'm a Graphic Designer with some knowledge of flash & I've been asked to build a site for someone. To practice I copied a site he liked, which I'm doing in my spare time - I want to get something to the employer soon so he can see my progress.
Please read below and see what I've done in the folder - and any suggestions or critique is most welcome! Thanks!
..........
Since I started this project, I've learned how to create a few techniques found on the boffi.com website - ie a photoreel, a scroll text box & a image grid (you'll see what I mean if you download my attached folder).
So now I'm going to try and link the site together. I've created a new fla for the site (ians_boffi_site.fla) and have set up the buttons and their actions to jump to the individual pages.
I've taken the content off the main timeline (as suggested) and put it all in a movie clip called 'site'.
I've embedded the sample SWFs I'd previously made onto the certain pages; the collections page, the dealers page and profile page. Someone told me to make movie clips on each page but I thought seeing I'd created the practice SWFs already I'd just place them in on the particular frame, in this case.
You can move around the site quite nicely and I'm pleased with that.
However, the embedded (not loaded) SWFs do not actually function in the correct way (If you click on the swfs in my folder you see they work) so does anyone know why this is? The photoreel just plays through without allowing you to use the 'next' button I built. And the other 2 swfs appear as graphics in the library and not movies so they are just static images.
Is there a major issue with this type of SWF placement I don't know about. Maybe I'm better off loading in the SWFs externally?
I'd appreciate any help or suggestions on any aspect of what I have here...
http://www.2shared.com/file/4584247/c9f4d2d8/ians_site.html
Many thanks once again to you all for you help so far!
Ian.
HELP: Reverse Animation On Early RollOut
this.onEnterFrame = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
};
This code works great to reverse the animation on RollOut, but I need the animation to play entirely, even if RollOut occurs before the end.
How can I force the animation to play through on early RollOut?
Preloader Making Me Lose My Hair Early
Can anyone take a look at the attached fla and tell me what I'm doing wrong. I started out on one scene with the preloader and if loadedframes is greater or equal to totalframes it is supposed to go to the next scene and play from frame one. Doesn't work and don't know why. Just a beginner at this stuff so don't laugh.
As always any help is greatly appreciated.
Thanks in advance,
flashywhiteink
Sound/Movie Early Start Problem
Alright, within my flash project, I've imported 3 movies from my hard drive. The first has integrated audio and plays just fine, the second a separate audio track playing on the layer below it, and it plays just fine.
But my third movie, which is in another folder, and on another layer altogether, doesn't play just fine.
A few seconds before the second movie ends, I can clearly hear the audio from the third movie playing, it continues to play until the entire sound has played. Then the video piece of the third movie actually starts on cue, but no sound plays.
I actually have about 5 or 6 movies I'd eventually like to import, but everything from 3 and beyond have the same audio-playing-too-soon problem. I've tried importing different movies, separating/integrating the audio pieces into the videos, renaming layers, and I just can't figure out what's wrong.
Oh, and I have absolutly no actionscript in my project.
FF7fan
FLVPlayback VideoEvent.COMPLETE Firing Early
Fairly simple idea I'm trying to achieve but I'm getting some problems. I have a FLVPlayback component that has an eventListener listening for the VideoEvent.COMPLETE. When it fires, the current active player is closed and a new one is opened using activeVideoPlayerIndex & closeVideoPlayer(). It works great but for some reason it will randomly fire the COMPLETE function early before the player has finished playing... Not all the time, just randomly. Any ideas?
Preloader W External Swf Loads Movie Too Early
Hi all,
I've been tearing my eyes out trying to figure this one out. I have a game in a swf file, and I have another swf file which only contains my preloader. The preloader file has only 1 frame and 3 layers wich controls progess bar etc. My problem is that the movie is played before the actual movie has loaded 100%. Instead, when my loader reaches around 50% it disappears and the game swf is played which isn't good since every game component hasnt been loaded yet. Any ideas on why this is happening?
I'm using the tutorial
http://www.lukamaras.com/tutorials/p...preloader.html
Code:
siteLoader.loadMovie("game.swf");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function() {
kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;
kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;
percentage = Math.round(kBytesLoaded / kBytesTotal * 100);
this._xscale = percentage;
if (percentage == 99) {
delete this.onEnterFrame;
}
}
I have also tried using loadMovieClip but I get the same effect. Why is my preloader exiting before the entire swf is loaded? Any help would be greatly appreciated.
Object Exists Too Early/Late For Dif Browsers?
Hi,
I'm having a weird problem where I attach an MC to the stage on 1st frame, and the MC has a inkage to a class. Everything works fine in the SWF player, and Firefox. However, for IE, the MC seems to exist too early, where it's unable to detect the proper Stage.width.
In my class file:
PHP Code:
class FallingLeaves extends MovieClip
{
public function FallingLeaves()
{
this.onLoad = function(){
Display();
_root.myText.text = Stage.width
}
}
In fla:
PHP Code:
for (var i = 0; i<=40; i++) {
this.attachMovie("plum", "plum"+i, this.getNextHighestDepth());
}
myText displays the proper stage width in Firefox and in Flash, however, in IE, it displays 0.....
Does anyone have any thoughts on this?
Thanks,
Al
Random Error: Code Executes Too Early
Ok, I have this simple loader on frame 1 with the following code:
PHP Code:
onClipEvent(enterFrame)
{
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = Math.round((loaded_bytes/total_bytes)*100);
this.bar._xscale = percent_done;
if (percent_done == 100)
{
_root.gotoAndStop(5);
this.onEnterFrame = undefined;
}
else
{
_root.gotoAndPlay(1);
}
}
and on frame 5 is where i have some linkage objects exported for actionscript and in the timeline i have the following include:
PHP Code:
#include "as_main.as"
but sometimes the code from "as_main.as" gets executed at around "80% loaded" and the debug window pops up complaining about missing objects. And yes they are missing because frame 5 hasn't been loaded completely yet.
Does anybody know why this is happening about 4 out of 5 times?
//Summer
Netstreamer.buffer.flush Firing Early
I'm running into an error with the netstream.buffer.flush status message firing prior to the end of the video. The duration of the video reports "48.515", but the netstream.buffer.flush status message is broadcast at "46.42". So far the buffer flush has been the only reliable method for determining the completion of playback; however, now it is randomly exhibiting this behavior and causing some videos to complete playback 1-2 seconds early (only some, others playback normall). Does anyone have any insight into why this might be occurring?
Thanks!
NetStream.Play.Stop Is Called Too Early
Hi there,
i have a video that is streamed over a FMS3. Everything works fine, the only problem is, that NetStream.Play.Stop is fired when the buffer reaches the end of the timeline. I want to fire the event after the video is played until the end.
Has someone a solutions for this problem?
Best Tobi
|