Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








My First Experience With Writing OOP With AS3


So Ive been reading Object Oriented Programming for AS3, and it makes sense. I wanted to try a script, as I should really apply what I have been learning. My script doesnt work, but I wanted to post it on here and see if I could get some feedback. I wanted to build a Mp3 player, very basic - one I could pull into my flash file and instantiate the class with an mp3 that loads in from the .fla. Here is my code, am I off to a good start?


Code:
package {
import.flash.media.*;
import flash.net.URLRequest;


public class SoundPlayer extends Sprite {

public var channel:SoundChannel;
public var mp3File:URLRequest;
private var snd:Sound = new Sound();

playBtn.addEventListener(MouseEvent.CLICK, SoundPlayer);

public function LoadSoundClip(mp3File) {
snd.load(new URLRequest(mp3File));
}

public function SoundPlayer() {
channel = sound.play();
}

}
}




KirupaForum > Flash > ActionScript 3.0
Posted on: 05-08-2008, 06:25 PM


View Complete Forum Thread with Replies

Sponsored Links:

Someone With Experience? - PLeaSE HELp
Hey, whoever might be reading this i need desperate help! I basically need to have 4 (four) balls that go up and down a length of a stick when the mouse clicks on them and drags, but they have to stay in order. Kindof like an abacus. i am planning on putting it on a site. |-----O---O---O---O----| If you don't understand or you have an answer for me please write back! I'm desperate! and include all the action script everythings if they exist... or whatever else. thankyou PROFUSLY!
xxx
soph_13

View Replies !    View Related
Please Help... I Have Some Experience In Flash But This Is Beyond Me
Ok... here's the deal:

VERSION: FLASH 5

I've been fiddlin around in Flash for the past few days and Ive created a movie with a button at the end of the movie in a separate scene that is meant to be used to enter a website. How do I make the movie loop on that frame until a user clicks on the button?

View Replies !    View Related
@#$% First Sound Experience
Hi-
-i'm trying to place some background music on my page. I've been reading the tutorial at http://www.kennybelew.com and am having much trouble. I can get the sound to play, and that's fine. I'm tryin to make a button that turns the music off if playing=true, and back on if playing=false.
I figured i'd start with the basics and just see if i can get the music to stop just on a button press, but i cant even get that to work!!!

here's my script:
on the first frame of the sound layer:

Code:
mySound = new Sound();
mySound.attachSound("darkTunnel");
mySound.start(0,999);
playing = true;


a few frames down, i have a simple button with the following script:

Code:
on (press) {
mySound.stop();
}


and that doesnt work! I have tried just about everything i know to do and cant get the sound to stop!!

help?

FLA is available at
http://www.mykrob.com/helpFolder/mykrobDesign.zip

thanks,
-myk

View Replies !    View Related
I Want To Do This...But I Have No Flash Experience
Hi,

I got a copy of Macromedia studio MX, but I have no idea at all how to use it. I want to do something like the followiing web site

http://www.rayoflight.net/

Click on Spring, summer, fall, etc....

That is so freaking awesome.......I have been using Frontpage to design site, but this site is incredible.......I never knew doing something like that was possible.....Anyhow I want to lean how it is done........I have no experience with flash MX (even though I have a copy)........HELP

Thanks,
Mazen

Email me at:
mbasidiq@hotmail.com

View Replies !    View Related
CPU USAGE, Your Experience
I wanted to ask you what your general experience is with FLASH and CPU usage?

for best performance...
Do you think if you have 10 swf's. loaded into a main better
than
Having the content of the 10 swf's together in one and loading that into the main?

I have done testings but don't quite get any difference.
What is your opinion,experience?

View Replies !    View Related
No Flash Experience
Okay, I have a decent amount of HTML experience but love Flash sites. I'm looking to learn to do web design using Flash and am wondering if there are any VERY basic tutorials on starting a website. I've gone through all of the tutorials on the site and know that it would have to be a movie but I'm looking for a little more direction. Maybe someone knows of a good adjunct site that could help. My goal is to get into e-commerce web design with Flash. Also, could anyone tell me if it's possible to incorporate MS Access into Flash sites? Thanks for the help.

View Replies !    View Related
Experience With AnimationPackage?
Hi,

have you got any experience with the SUPER COOL AnimaptionPackage?
http://www.alex-uhlmann.de/flash/animationpackage/

I have no problems with using the classes on the timeline where the classes were imported - but I just want to import them on _root and then create scripted animation from other timelines.

Anyone with input on this?

Sambo

View Replies !    View Related
Experience In An Rpg Game
hey,
im making an rpg and i have a problem with xp, i can make xp go up and down and stuff, but i cant get levels to work. can anyone tell me whats wrong with this script?
code:
if ((exp >= 20) (exp <= 70))
{lvl = 2};

(and no there are no mistakes with the path)



thanks

View Replies !    View Related
Does Anyone Have Any Experience With Slideshow Pro ?
Okay, I'm searching for a fully customizable .swf photo gallery and stumbled across slideshowpro.net. Does anyone have any experience with Slideshow Pro? To what extent is the layout / design customizable? Is the current version compatible with Flash MX 2004 ?

Any help appreciated.

View Replies !    View Related
Just Want To Share Some Experience
I had some problem with AMFPHP, actually all of my works, when tested on the remote servers, seem not to work on everything exept IE. And finally my last site worked only on my computer.

While checking my server logs I've found that when users tried to enter my site, their browsers hitted the strange 'mysite/crossdomain.xml' file. I've asked my help panel about 'crossdomain' and in five seconds the mysite/crossdomain.xml had been created with the following inside:

<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*.mysite" />
</cross-domain-policy>

Doing this helped me. I never met the same as mine problems here, but maybe it could help someone.

View Replies !    View Related
Rpg Levels (and Not The Ones W/ Experience..)
as some of you may or may not know from my last couple posts, im currently making a tile-based rpg in flash. i have the map working. but after the map is drawn, the main character (which all of the following code is in) goes under neath the map. it has something to do with the depth of the tiles. but i dont know how to make the depth of the main character on top.

PHP Code:



onClipEvent (load) {
    _x = 10*32;
    _y = 10*32;
    stop();
    up.gotoAndStop(2);
    t = 1;
    map1 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2], [2, 2, 5, 5, 2, 1, 1, 1, 2, 2, 2, 2], [2, 2, 5, 5, 2, 2, 2, 1, 2, 2, 2, 2], [2, 5, 5, 5, 2, 2, 2, 1, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2], [2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2], [2, 1, 1, 1, 1, 1, 6, 1, 1, 1, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
    for (drawx=0; drawx<10; drawx++) {
        for (drawy=0; drawy<10; drawy++) {
            duplicateMovieClip(_root.tile, "tile"+t, t);
            _root["tile"+t]._x = drawx*32;
            _root["tile"+t]._y = drawy*32;
            _root["tile"+t].gotoAndStop(map1[drawy][drawx]);
            t += 1;
        }
        drawy = 0;
    }
}





a little help would be appreciated. i dont think this problem is that hard...

View Replies !    View Related
QT VR Experience In Flash 8
Dear List

I'm looking into possible solutions to create a quicktime VR like experience in flash 8 (tilting, panning, zooming, hotspots...).

So far my favorite seems to be this one: http://www.pano2qtvr.com.

Has anyone any experience with this? Are there any newer / better ones out there? Any extensions? Components?

Any advice or insight appreciated.

Thanks

Stephan

View Replies !    View Related
Client Experience
Hello,
I've got my first client and have had to build an MP3 player for his web page and I'm wondering how much to charge him.

It streams in external MP3's, XML.
Because it was my first time building, debugging and testing it, the total hours worked were about 10.

I have also worked on javascript code to launch the player.

Anyone getting paid for doing flash for clients?How much should I charge?

Best,

BRb

View Replies !    View Related
Help-Anyone With Dreamweaver MX Experience
I'm implementing the Maccromedia Flash Detection Kit using Dreamweaver MX. It was working fine, but now when I go to Behaviors>the original "Macromedia Flash Dispatcher Behavior" is no longer there. Instead, there's a Behavior called "Macromedia Flash Detection Behavior." I reinstalled the the Behavior from the kit in Extension Manager again, but that didn't eliminate the problem. I'm using the 30 day trial v. so I can't uninstall & reinstall Dreamweaver...up a creek without a... Any suggestions??????? Thank you.

View Replies !    View Related
Anyone Have Experience With Precache
Does anyone have experiece with Precache(ing) files into the Cache folder. I know this may not be a Flash thing--- but in doing this Flash project I am working on-- I have encountered a great problem.

http://www.nesteggdesigns.com/Movies/kitchen.swf

If you click on the Refridgerator - the first time the "signed movie clip" loads--it is PAINFULLY slow. Once this image is in cache- it works beautifully. The video clip that Flash is importing is only 354k--- so it shouldn't be so slow--but the first time it is. Only a few of the buttons are working right now- Ref, Crackers box, Microwave---try them. And if you last til they load, go through and click them a second time and see how it should really look.

Anyone have any suggestions how I could speed up loading of the indepedant movie clips the "first" time?

Hope this makes sense??

View Replies !    View Related
Anyone Here Have Experience With ExternalAPI ?
I'm reading that ExternalAPI is the preferred method of communicating back & forth with javascript functions on the container page. But both of Adobe's own examples DON'T WORK. In IE 6.0 it reports a JS error, while in FireFox it just doesn't do what it should.

Any help would be appreciated.

View Replies !    View Related
Do You Have Experience With Time?
Hello All.

I am trying to figure out how to remove data from an XML generated Array based on the current date.

Each XML section has a begining date and an end date. I want the node to be removed if the date is outside the begining and end of the listed dates.

My thought is to use the Splice Method, but I am not quite sure how I would go about that.

Any thoughts, suggestions or tutorials will be very helpful.

Thanks! :?

View Replies !    View Related
Restarting The Flash 5 Experience
Hey,

I took a break from FLASH 5, but now i wanna start it up again. But this time i'm gonna start to use ACTIONSCRIPT when doing almost everything. I used to tween using the motion tween option etc...but now i will try to use actionscript to move things around and enlarge etc...

Is this a good idea or not?...Is it best to use actionscript to do things like tween and enlarge or what?

Neway, my main question is 'Where can i find a maual of some sort to help me learn ACTIONSCRIPT?

Possibly dowmnloadable?

The tutorials here are good, but i wanted a whole wad to enable me to learn the things i want easily...

Thanks in advance...

Mike :|

If only...

View Replies !    View Related
Flash MX And Music- Does Anyone Have Experience With It?
Hi, everyone I was curious if any of you Flash MX experts use Music in your work, and if so please reply to this post with a URL where I can check out your work, as I am trying to learn all about Flash, Animation, Flash Mx and how to put it all together with Music. Therefore, I would really appreciate if any of you talented people can show me your work that you have done using Flash MX and music, Please reply with a URL of your work or sites that use music with Flash Mx, and if you have any suggestions on where I could learn more about how to incorporate Flash MX and Music- I would appreciate if you could also give me some valuable input on that topic. Thanks and Peace to all!

Jay Berlinsky

View Replies !    View Related
Leveling And Experience Points
I'm trying to make it the way so when the character gets a specific amount of exp, he levels up, and I'm also trying to make it the way that when the character kills an enemy, he recieves a specific amount of exp, but I just can't seem to figure out how to, so if theres somebody who knows, please tell me.

View Replies !    View Related
Anyone Here Have Experience Creating Forms?
I'd like to set up a form in Flash and have the data dumped to a CSV file to be imported into my contact manager. I'm very, very new to Flash and don't have the slightest idea how to make this work. Any thoughts?

View Replies !    View Related
Experience += 20; Doesnt Work? :S
Code:
experience += 20;


cant get it to works, also tried to combine with Number and im all out of combinations, still doesnt work, _root i have also tried, nothing seems to work..
anyone got a suggestion?

(It just adds like, 100 to 10020, not 120 like i want it to..or it just 100 to 20...)

View Replies !    View Related
Common Realtime Experience™
Hi all!

i have a movieclip "instant" with two frames: "frame1" and "frame2" with stopaction on each. They are on root on a "realtime.swf"

--
After i have transfered this file on my domain

i want to press a "button_btn" that tells the playhead go to "frame1" to "frame2"

This is an actions that will take place on *ALL* machines connected to this webservice instantly.

is this possible ? if so, im thankfull to hear about it

any comment appreciated !



--

View Replies !    View Related
3D E-commerce Shopping Experience
My company has asked me to invesitigate the possibility of building an online shopping experience using a rich media platform. Not a problem I here you say? Well, the e-ccommerce backend will be updatable using jpeg images etc, and they would like a 3D feel to it (!) so that you really feel as though are in a shop....hmmm. I said gimme two weeks and I'll see what I can find.

So, after a few days scouring the net for anything vaguely similiar, I have found nothing that hits the spot. Plenty of 3D models to look at, such as rotating mobile phones, but this is not practical as each client will have to build the 3D model themselves! What they're looking for is minimal effort for the client, using the same content they already have in their existing e-commerce system (such as images and text), then transforming this into a rich media version of the shop!

The key here is the 'virtual shopping experience' element of it.

Any thoughts or ideas? Is it worth the hassle? I have played around with 3d classes and Swift 3D but has anyone ever tried this before? Can Director do it?

Thanks in advance.

View Replies !    View Related
Fully Interactive Experience
Hi guys...

Basically im finishing the 3rd yr of my degree in graphic design and i am entering into the D+AD awards... my project is producing a website to demonstrate a day in my life..

what i have chosen to do is allow people to live my day... so they will experience the sorts of things that I have happen in my day and how it gets put togther but i also want them to see how aspects of the day affect eachother...

my site is going to make use of a range of objects for communication such as mobile phone, phone, computer (email+msn) etc ....also objects such as a cd player with a choice of tracks to play will be available...

my site will allow the user to know the time of day... my current mood (1-10) and my energy (1-10) displayed thru simple themometer style bars...

people will make decisions from what time i get up to wot i eat to what i do with my day...

everything the user decides me to do will affect the mood/energy + also time... so i need to understand how this is actionscripted...

also it will obviously all be based on time... so i need to be able to link this with the communications + decisions that cum up...

if the user sets my alarm early it will allow for more to happen in the day and if late then obviously certain things that ive missed out on by gettin up late wudnt happen...

if the user decides i should go shopping for 3 hrs... over lunch then it means they cnt be having someone cum into my room to ask to borrow something or ask me to go somewhere else...

this is reli hard 2 explain but my a.s knowledge is low and i dnt no where to start... obviously everything is affected by everything... if im reli tired and they agree to take me to the pub then ill get moody... where as if i was full of energy then id be reli happy...if theyve send me to the shops twice then ill be unhappy... if theyve not let me eat ill be reli tired n unhappy etc....

i reli need help! any1 who could try 2 help wud be reli reli appreciated

many thanks

martin

View Replies !    View Related
Flash & The User Experience
Would a user be turned away if they came to a website and saw the same 3-second animation every day before the info is displayed?

Are there any good articles out there that discuss flash user experience / usability?

.atom_jack.

View Replies !    View Related
Help I´m Lost In Scripting - Or Is It Just Lack Of Experience
Hy you guys out there !

Can anyone help me ?? I´m stock in a case, where I need to get movieclips to fade out. But I´m not clever enough to script this part.

Check out this site :
http://www.nicesound.dk

I want the enduser to click the buttons below, and then the individual movieclip needs to fade out !!! How do I do that ?

I know it has something to do with variables, but I get confused. It seeme to me, that I can´t understand the logic of scripting vaariables.

It would be at great help, if anybody could tell me what to do !! And by the way, now that you are there: give me a comment on the generel graphic design.

My own opinion is that it is nice - but could certantly be bettter

Thanks in advance

Egander

View Replies !    View Related
Question For Experience Flasher On Uploading
im building a site where users can submit artwork (i.e. poetry, photography, graphic design....)
I have a series of user-input fields for a user to supply personal information about themselves. then i want them to upload an image if they are submitting visual artwork. is it possible for a user to upload in flash? or do i need to use another language for this besides actionscript? possibly perl?

thanks for your help

kenneth adams
http://www.ksushare.com/kadams/

View Replies !    View Related
Anyone With Flash Shopping Cart Experience
Has anyone created a shopping cart in flash? I'm having trouble putting together the process for assigning values to a movie clip so that when a user clicks the movie clip (contains image for product) it adds the product to the cart.

View Replies !    View Related
Decompile Swf - Great Learning Experience
Hey swf decompiler's are in disguise a great teachers for flash newbie's like us . Through which we can extract the content and the most complicated feature action script too for our reference and through which we can learn how the action script is working.

Last wek i saw a blog of such help too http://pixeltechnologies.sirlook.com it has been great help to me .

View Replies !    View Related
Flash Media Server - Experience?
Hello all,

I have a quick question about FMS. Does the program run transparently on the server? I'm asking because I'm wondering if I can just upload a FLV file to the server and link it straight from my Flash app using myVideo.contentPath ="URL" and have it running or do I need to configure a bunch of things?

ANY comments would be greatly appreciated! Thanks in advance!!

View Replies !    View Related
Anyone Have Experience With Flash Comm Server?
I'm at a loss. I've got a project that I'm trying to convert so that it works with Remote Shared Objects.

I haven't even begun testing because I can't even get the examples provided with the Flash Comm. package to function.

All the samples/tutorials provided are located in a directory of the server named "samples". In a directory named "apps" there are corresponding folders to each sample that contain the server side asc file needed to run the example.
The server side script is accessed from the client swf thru the netConnection by defining the URI property: e.g.
ActionScript Code:
nc = new NetConnection();
nc.connect("rtmp://flashcomsvr.mydomain.com/myFlashComAppName");
// interestingly enough the sample swf's define the rtmp path with as
"rtmp:/continuePathName"
When I try opening multiple instances of any of the samples provided to see if the client to server connection is made nothing occurs.

Do my client swfs need to be served from the FCS or can they live on another and reference back to the FCS?

Any assistance would be appreciated!

Thank you.

View Replies !    View Related
Formal Flash Training Experience
Hello Everyone... I have been searching around for suggestions/experiences on Flash Certification courses, and certification test training material suggestions. So if anyone has taken any courses or has some good training material for taking the ACP test then please share!

Thanks in advance!!

View Replies !    View Related
Sharing Experience: Multiple MovieClipLoader
Hi!

It's been a while since my last post...

I just want to share with you my experience with multiple movieClipLoader.

In one of the project that I'm currently working on, I wanted to make a website that would load external modules, made in Flash (of course).

Concept

The concept is the following :

- When a user load the main site, 8 modules are loaded.

- Each one of them are loaded with the function attachMovie by creating an instance of a movieClip and gives it the name of the module to load (in a parameter).

- Each instances load the right swf according to the name of the module passed in parameter using a movieClipLoader.

Problem

While working on my local computer, it seems that some random modules were unable to load on a free server (50free.com). Sometimes it was 1 module that was unable to load, sometimes it was more... However if I made a refresh, everything was fine.

I first suspected the server being slow to respond due to the poor quality of the bandwidth of a free hosting service, so I changed to a faster server that I buyed.

Almost the same problem...

More modules were loading but still not all of them. The problem happened also at random time...

I checked my website on different computer and speed connection and noticed that on a really high-speed (like a cable modem that could download at 500k/s) the problem was not happening. But since not everyone (even I) have this kind of connection...

The solution

I finally found the problem. It seems that there is a maximum number of connection that your modem/computer/Flash/component can handle at the same time. I fixed the problem by putting my loading sequence in a function that requires an index that indicate precisely which module I want to load. I put the function in a setInterval and voila.

Here is the pseudo code:


ActionScript Code:
var index = 0;function loadModule(value){   if(value == 0){      //load module 0   }   if(value == 1){      //load module 1   }   if(value == 2){      //load module 2   }   _root.index++;   if(value > [my maximum number of module]){      clearInterval(loading_sequence);      _root.index = 0;   }}loading_sequence = setInterval(loadModule, "100", index);


I'm not sure that my AS syntax is perfect since I wrote this example by heart... but you understand the principle.

I hope that this will help a few of you who are hardcore programmers who try to load a bunch of stuff at the same moment as I...

View Replies !    View Related
Question For People Med Voice Over Experience
Hi,
This is not actually a flash question, but for the flash people
Which software is good for recording voice over sounds (a human reading a text). Is 44100kb sample rate good for the quality?

Thanks,
mx-guest2004

View Replies !    View Related
Question For People With Experience In Voice Over
Hi,
This is not actually a flash question, but for the flash people
Which software is good for recording voice over sounds (a human reading a text). Is 44100kb sample rate good for the quality?

Thanks,
mx-guest2004

View Replies !    View Related
Help And Experience Needed With Flash Build
This is such a great website and I'd like to say hello to everyone with this first post.

I've been asked to help a friend out with building a full flash site I agreed since he brought me a pint but now i realise that was foolish! lol.

Basically the site, (www.potterandmoore.com/beta) needs to be done pretty much fully in flash to get the effect the client is after since they love how fluid this site is (www.tocca.com). The site currently is done with asp.net pages with flash movies in them so there is no smooth transition between pages, another issue there is are the amount of images needing to be used and they all need to remain as high quality as possible.

I just need some advise for starters on how best to go about this project since I have about a week to get it done! eek. And after reading some of the tutorials on this site i realise how little I know about flash!

This is what needs to happen...

- They wanted a flash intro where the background flowers grow out and all the gold border, logo and picture fade in etc. how is best to get smooth effect of the floral bits growing like there is on this site (www.dormoy.ca) when you click on a link or at the top and how to keep the file size to a minimum?

- once that has done it's job it needs to fade gracefully into the next page where the floral pattern needs to remain in the background (possibly could add movement to this but maybe I'm out my depth a bit as it is?) and we find the scrolling menu, in this menu is it possible to have it scroll like it does and still have the buttons on it if it was loaded externally?

and so I can go on but I guess it's pretty obvious what needs doing as it's pretty rough as it is at the moment especially in the english classics section when you select a product and the rest of them darken - any better ideas or suggestions for that please feel free.

Also how much of the site should be done in flash since I am guessing the main section needs to be done in flash so it can have smooth transition when a link is pressed... I'm assuming from the tutorials I have read so far it will be best to do this using as many external .swf's as possible so they can all take care loading themselves in but will then be a way to has a transition effect to a page from another if they are in different swf's? (don't know if that makes sense but it's pretty late so I apologise).


Hope some one can offer advise and help me out as I don't want to let my friend down and I would really like to learn flash properly as well.

View Replies !    View Related
Array Within For Loop But With Lagging Experience :[
hi all :]


i was testing all the ways i know .. (limited thinking)

to solve this


Code:
monGlo = 1;
motGlo = 3;
//
// useFull arrays
var plan_HL_reset: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];
// for plans and its types
var plan_1Array:Array = [0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0];
var plan_2Array:Array = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0];
var plan_3Array:Array = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
// for View and thus others
var plan_view1Array:Array = [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var plan_view4Array:Array = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var plan_view2Array:Array = [0, 1, 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];
var plan_view3Array:Array = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
//
flArray = plan_HL_reset;
// testing method
//
if ((monGlo>0) and (motGlo>0)) {
for (i=0; i<3; i++) {
for (j=0; j<4; j++) {
if (monGlo == i) {
if (motGlo == j) {
for (k=0; k<33; k++) {
array1= ["plan_view"+i+"Array"].value;
array2 = ("plan_"+j+"Array");
trace(array1[k]);
flArray[k] = array1[k]*array2[k];
}
}
}
}
}
}
trace(flArray);
trace("i= "+i+" j="+j);





the original thought is to see is the static one is working?
yes i did try this

Code:

for (k=0; k<33; k++) {
flArray[k] = plan_3Array[k]*plan_view1Array[k];
}


any .. ideas .. how to solve such thing?

View Replies !    View Related
Your Experience With The Integrated Tween Class
I started learning Flash when Flash MX came out.

I recently got back into it, using Flash 8 now. So the Tween class was fairly new and exciting to me, and I've been using it recently.

It's quick and easy, and what I like most about it is the onMotionFinished function. Very handy.

However, I've been using it for single items, and recently I wrote a little function where some words drop down, and when they arrive at their random destination they check each other for distance, 12 of them. If one's proximity is too close to another, it loads up the tween function again and finds another random destination, and does so until it finds a space far enough from it's siblings.

Now when using the built in Tween class, it gets absolutely overloaded and crashes my Core Duo if all the words don't find spaces soon, and have to do multiple checks.

I was very, very surprised, it didn't seem like anything that hardcore, that should crash my computer.

So I then used a basic, lightweight tween that I wrote, and voila - no problem at all. Didn't even come close to crashing, in fact the CPU usage was fairly low.

So im summary - it's pretty good and handy for tweening single objects, but if you have something more complex in mind it's absolutely useless.

My question is why though? I mean they write the program, sure they could have engineered the tween class better and made it more efficient and less of a CPU hog?

What are you experiences?

View Replies !    View Related
Sharing Experience: Multiple MovieClipLoader
Hi!

It's been a while since my last post...

I just want to share with you my experience with multiple movieClipLoader.

In one of the project that I'm currently working on, I wanted to make a website that would load external modules, made in Flash (of course).

Concept

The concept is the following :

- When a user load the main site, 8 modules are loaded.

- Each one of them are loaded with the function attachMovie by creating an instance of a movieClip and gives it the name of the module to load (in a parameter).

- Each instances load the right swf according to the name of the module passed in parameter using a movieClipLoader.

Problem

While working on my local computer, it seems that some random modules were unable to load on a free server (50free.com). Sometimes it was 1 module that was unable to load, sometimes it was more... However if I made a refresh, everything was fine.

I first suspected the server being slow to respond due to the poor quality of the bandwidth of a free hosting service, so I changed to a faster server that I buyed.

Almost the same problem...

More modules were loading but still not all of them. The problem happened also at random time...

I checked my website on different computer and speed connection and noticed that on a really high-speed (like a cable modem that could download at 500k/s) the problem was not happening. But since not everyone (even I) have this kind of connection...

The solution

I finally found the problem. It seems that there is a maximum number of connection that your modem/computer/Flash/component can handle at the same time. I fixed the problem by putting my loading sequence in a function that requires an index that indicate precisely which module I want to load. I put the function in a setInterval and voila.

Here is the pseudo code:


ActionScript Code:
var index = 0;function loadModule(value){   if(value == 0){      //load module 0   }   if(value == 1){      //load module 1   }   if(value == 2){      //load module 2   }   _root.index++;   if(value > [my maximum number of module]){      clearInterval(loading_sequence);      _root.index = 0;   }}loading_sequence = setInterval(loadModule, "100", index);


I'm not sure that my AS syntax is perfect since I wrote this example by heart... but you understand the principle.

I hope that this will help a few of you who are hardcore programmers who try to load a bunch of stuff at the same moment as I...

View Replies !    View Related
Question For People With Experience In Voice Over
Hi,
This is not actually a flash question, but for the flash people
Which software is good for recording voice over sounds (a human reading a text). Is 44100kb sample rate good for the quality?

Thanks,
mx-guest2004

View Replies !    View Related
Looking For A Site Designer, With Good Flash Experience
Hello!
Me and my friends have a group/clan for a pc game and we are looking for a person who will edit the site, and make it. We provide the pay ment of the site, and all we want is a good site designer that will help us out. We are very greatful to any response to help us. We have been looking all over. by the way, we will give you want we want on the site. We are doing this for we are doing a last resort request.

Thank You VERY MUCH
Navid

Contact me with Msn messenger at ride2nv@hotmail.com
or my icq 153534469
or respond to this

thanks again

View Replies !    View Related
Looking For A Site Designer, With Good Flash Experience
hey...

im looking for a good site flash guy..

i know there are tonnes of u..so please be prompt about responding me please/...

thanks..!!

my email is n4s_@hotmail.com
i only use msn

thnaks again!!!!

View Replies !    View Related
Is Anyone Using Flash 2004 - What Has Been Your Experience? Mine Has Been Horrible
Is anyone using Flash 2004 - what has been your experience?

Mine has been horrible thus far! It is slower than smoke off cold poop, I am experiencing many bugs from the new locking feature on objects for width and height, to problems copying frames and objects off the stage. Not to mention the horrible bugs I am experiencing using the new Swift3d Express plugin - like all objects on the stage in _root being deleted when I save seomthing created with the plugin to a Flash movie (note: this is a different bug than that listed in the readme where everything gets deleted on the stage if you cancel from the plugin and you already have information copied to the clipboard).

I am disappointed.

View Replies !    View Related
Anyone Had Experience With Forms And Flash? Simple Problem I Think
hello friends,
i've created a flash form that im using to send four variables to a php script.. I am having some trouble sending the
variables to the script.. In fact, i cant get it to work at all.
I have created the file
http://members.optushome.com.au/panus/flash.swf
The drop down buttons are set in the movie mode which i think is correct, along with the submit button.
I looked up what action script I should use but found many different ones. I tested a couple of them out but they don't
seem to submit anything at all, the submit button isn't functioning. It's like the submit button isnt attaching itself
to the values of the drop down buttons, and then not submitting..

I tried using

On (Release)
Load Variables ("mailto:form.php", 1, vars=POST)
End On

I'm pretty new to flash and was hoping for a little help.

the flash file is located here if you want to have a look
http://members.optushome.com.au/panus/flash.fla

regards

-n

View Replies !    View Related
Any One Experience Problems With Drag And Drop In Netscape?
I cant get it to work. I get a circle with a diagnol line though it when I try to drag something in netscape

View Replies !    View Related
Flash Work Experience Opportunity London...
I develop flash online games and have an opening for someone to work closely with me on a new exciting project. The position is very flexible but is to work on site (London).
If you have good actionscript skills and are enthusiastic please contact me.
nick@gccubed.com
Thanks.

View Replies !    View Related
Performance Experience With Bitmaps / Vector Graphics?
ahoi,

(if you dont wanna read the whole story, skip to the bold text)

i have a rather big project which uses quite a big amount of cpu (depending on the current state) due to masking/translating/scaling/blending mcs containing multiple mcs with images and/or vector graphics. it works fine on 2ghz+ machines (sure, i am implementing an option to switch off most of the animated parts to save cpu at slow machines), but as i am getting my fingers on flash9 soon, i think about migrating that project to f9/as3 - if that will make sense then.

so my question is: does anybody here have experiences with increasing/decreasing performance between f9/as3 and f8/as2 when it comes to blending/scaling/translating/masking (eventually also rotating) large bitmap/vector graphics? if so, please write some words about that. it would also be interesting to know if xml parsing is faster with as3...

thanks in advance,
self

View Replies !    View Related
Anyone Got Experience Of Macromedia's Flash Search Engine?
Does anyone have any views/thoughts/experience of Macromedia/Adobe's Flash search engine SDK?

Cheers.


PS I'm feeling kind of annoyed with myself for not realising that Flash websites are'nt easy for search engines to pick up.

View Replies !    View Related
No HTML Experience, But I Need A Browser Window That The User Cannot Scale
I want to publish a flash file that pops up in a new window that has a set size, and the user cannot scale or manipulate. ( and with no margins)

can anyone help?

View Replies !    View Related
Can Senior Or Experience MX User Help With This Preloader And Audio Volume Problem?
I'm try to use this preloader:

Creating an Advanced Preloader in Flash
http://www.flashkit.com/tutorials/Ac...-689/index.php


to load this volume and pan control:

Volume & Pan Slider Controls
http://www.flashkit.com/tutorials/Au...-727/index.php



the problem is that the proloaded doesn't show the get byts as it's loading. it's just wait's til the movie is loaded then shows the get bytes. Can some tell me what is the problem here and how to fix this up. I'm trying to get this up before thanksgiving. Thanks in advance guys

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved