Flexible Load
How do you get certain frames to load upon request?
i.e. frames 1-40, when someone clicks on one of the twenty available buttons, frame 24 appears with a loading bar and just frame 25 is loading and appears once completely loaded.
I can create a preloader for the whole movie, but can't work out how to get it load in non-linear fashion, unless I split it up into twenty or so different movies. Is there any way I can do that?
Tek-Tips > Adobe(Macromedia): Flash Forum
Posted on: 27 Aug 03 9:36
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flexible MC Sizing
Where is the source code for this technique of sizing MC's dynamiclly? such as:
http://www.braingiants.com/v5/welcome.html -- (how do they change the BG color also?)
http://www.evb.com/
Link? Source?
thnx
(where is the search archives feature on flashkit?) is it gone?
Flexible Variables
Hi there. I want to make a game where you can create a little tank or person in a base. I could figure out how to make it appear and all of that, but how do I give it an instance name to control it with? That way the player can make as many tanks or whatever he wants to and be able to move and keep track of them all. So I just need a variable to control each tank, but I cant make unlimited variables for it... Any idea? Thanks in advance!
Help With A Flexible Class
Hello all!
I usually don't post on here, preferring instead to search through others' posts for answers, but my searches haven't come up with the solution. Maybe I'm just searching for the wrong stuff? I'm not sure, but regardless I am posting to either get help on my problem or get some links as to where I can learn how to solve my problem.
I am creating a group of mini-games, each of which will involve some physics for objects on the stage, but the physics of the objects are different for each game. I have created a class called Actor. An Actor is any movieclip object on the stage that may or may not have it's properties (x, y, rotation, etc) altered each frame based on some formulas. The formulas and properties will be different for different Actors, but all Actors have a step() function that activates each frame, using velocity and/or acceleration (and possibly changing acceleration over time as well) to modify the property and move it along the stage. It could even be used for other numeric properties, such as alpha. Here are some examples:
EXAMPLE 1
Two objects move left and right at constant velocities based on user input, one on the top of the screen, on on the bottom. They cannot move closer than 100 pixels to either side of the stage. Their step function would be:
Code:
private function step():void
{
targetX = x + xVel;
if (targetX > stage.width - 100)
targetX = stage.width - 100;
if (targetX < 100)
targetX = 100;
x = targetX;
}
EXAMPLE 2
An object (circle-shaped) falls from the top of the screen and bounces up and down. It may also move left or right slightly but it does not accelerate in the x axis (only maintains a constant velocity). Friction does not affect it, but gravity does. If the object hits either side of the stage, it will begin bouncing in the opposite direction. Its step function would be:
Code:
// yAccel = -9.8 (gravity constant)
// xVel = 2 (random constant)
private function step():void
{
yVel += yAccel;
targetY = y + yVel;
targetX = x + xVel;
// switch xVel if it's at a boundary
if (targetX > stage.width - width * 0.5)
xVel = (xVel > 0) ? -xVel : xVel;
if (targetX < width * 0.5)
xVel = (xVel < 0) ? -xVel : xVel;
// reverse yVel
if (targetY < 0)
{
targetY = -targetY;
yVel = (yVel < 0) ? -yVel : yVel;
}
// move it
x = targetX;
y = targetY;
}
So my problem is, how do I create a flexible actor class that can register any number of "actions" and "conditions" to occur during its step() function and also contain any number of properties (xVel, xAccel, yVel, yAccel, etc)? That way I don't have to waste CPU cycles calculating acceleration AND velocity AND boundaries AND friction for every single property I might potentially need for every actor when most of them don't need it.
The final goal is to create and/or modify any number of variables for each Actor and perform a simple mathematical operation on them each frame.
I am guessing that I will use a Dictionary variable on the Actor to store all the properties for that particular Actor. I thought also of creating a separate class called Accelerator that would have a target variable on a target object and would increment that variable each frame. Or maybe a singleton, whereby the Actor passes all variables that need to be modified through one of its functions? Another potential solution might be using events, and just adding event listeners for an Actor to go through every frame, but I'm not sure how to pass references to the variables that would need to be changed and such. In fact, I've tried to code each of these but can't quite get my head around what is needed, so I wind up unable to complete the code since I'm not sure how to structure it.
Any help is greatly appreciated. Thanks ahead of time!!
Flexible Flash
My Question is in relation to the following site:
http://www.thanea.com/ars/
There is just one flash piece with this site. What I want to know is how do you keep the four elements in the corners of this layout (blinking eyes - topleft, icons + copyright - bottomleft, audio controls - top right, and date - bottom right) to stay in the corner regardless of the size of the browser viewing the page.
My guess is these elements are dynamically placed at run-time relative to each location using code. Is this correct ?
Same with the dark grey bar running along the bottom of this page, it is sized relative to the movies current size and not hard coded to begin with ?.
Any input greatly helpful ?
Also, I think this is only possible using MX and greater (not Flash 5). Agree/Disagree/Comment/Don't care ?
Thanks,
Stephen.
Flexible Ocjects...
hey i was just wondering if anyone here knew how to make a object flexible or something whatever you call it..
i wanted to make something like letters falling from above and hitting an imaginary ground then bouncing like gravity...
please help
Flexible Navigation
Hi!
I am designing this site to a friend and I need some help with the navigation of the portfolio page.
I have multiple thumbs and when clicked I want the present portfolio piece displayed on the scene make an outro off stage, and the thumbnail piece clicked would make that piece make an into into the scene.
I hope my vague explanation made some sense, but if you would like I have attached some files with the default page and portfolio page.
The thumbs are in the portfolio.swf and that file is placed onto the default page my importing it into a dynamic movie clip. well, you can check the files. The thumbs I am talking bout are the ones "flying" in off stage into place just below the "logo".
alrighty, I appreciate all the help!
Link: http://www.mydatabus.com/public/daniela/Testing.zip
.M
Flexible Line
sorry for my english....
I would want that to pulling of the thread it becomes flexible, like in the reality, and on release lathes to the original position .
example
download .fla
thanh
Help Me Make This Function Flexible..
hi,
i have the following code which determines the middle point of any triangle (or 3 points):
Code:
function getMiddleOfTriangle(p1:Array, p2:Array, p3:Array):Object {
var x:Number = (p1[0]+p2[0]+p3[0])/3;
var y:Number = (p1[1]+p2[1]+p3[1])/3;
return {_x:x, _y:y};
// usage getMiddleOfTriangle([50,0],[100,50],[0,50])
}
the way it works is by working out the average of the x-cords and the y-cords then returing it as an object,
now the code will for for any amount of points, but if you change the amount of points then you have to change the code and the amount of arguments.
so i tried to make a function which will determine the middle point of any amount of points, but i have been working on something for work all week and my brain is fried, this is what i tried:
Code:
function getMiddlePoint():Object {
args = arguments.length;
for (var z = 0; z<args; z++) {
var x = Number(arguments[z][0].toString().split(","))/args;
var y = Number(arguments[z][1].toString().split(","))/args;
}
return {_x:x, _y:y};
}
i have a feeling that i am going about this the wrong way,
can you make this work?
any help is much appreciated,
cheers,
zlatan
How Do I Create A Flexible Scroller
Hi
I was wondering if anyone can direct me as to how to create a scroller that can scroll any content, be it images or text.
I have looked at many examples, but the examples assume that I am well versed in actionscript, and dont explain step-by-step how to go about it for any movie size.
I would appreciate if anyone can give me simple step-by-step guidelines on how to create a scroller for any content.
Thanks
:-)
SetInterval...but With Flexible Timing?
Hi there,
My question is this: "Is it possible to have a setInterval fuction with a dynamic timing?"
F.e. the first time the interval calls the function, timing is set at 100 milliseconds, the second time it runs the timing is set at 110 milliseconds...and gradually the functioncalls go slower and slower.
In all setInterval questions I have read on this forum it is always a fixed amount of time that the function is called.
I put my code in below. Short explanation: I am combining the setInterval to a onEnterFrame function to avoid the effects of framerate. Something I got from one of these forums too I believe. I am not sure where an how I could 'refresh' the rate the setInterval is running...
Does this make sense to anybody?
Cheers
Merkske
Code:
function setHolder() {
this.createEmptyMovieClip("mcHolder", 0);
mcHolder.createEmptyMovieClip("myMC", this.getNextHighestDepth());
}
setHolder();
this.pArray = ["png.00", "png.01", "png.02", "png.03", "png.04", "png.05", "png.06", "png.07", "png.08", "png.09", "png.10", "png.11"];
var fps = 100;
pIndex = 0;
function setPic() {
mcHolder.myMC.removeMovieClip();
if (pIndex<=pArray.length-1) {
var mcWindow = this.attachMovie(pArray[pIndex], "mcHolder.myMC", 2);
pIndex++;
fps = fps*0.95;
} else {
pIndex = 0;
var mcWindow = this.attachMovie(pArray[pIndex], "mcHolder.myMC", 2);
pIndex++;
trace (timing(fps))
}
}
faster_btn.onRelease = function() {
fps += 10;
};
this.onEnterFrame = function() {
setPic();
updateAfterEvent();
};
id = setInterval(this, "onEnterFrame", 1000/fps);
stop();
Flexible Full Browser
i'd like the contents of my swf to re-position itself in relation to the resize of any browser window with easing
here's examples of what i.m aiming for only my swf is aligned top left }}}
http://www.gskinner.com/site2_5/
or
http://www.dunwoodie-architectureand...co.uk/main.php
any information would be appreciated!
Flexible Flash Layout
i.m attempting to reposition the contents of my swf on the resize of browser window with a tween class - the contents are situated around the perimeter of movie.
how would i go about writing this?
http://www.rigsbydesign.com
http://www.dunwoodie-architectureand...co.uk/main.php
anyone have a working example?
Flexible Progres Barr - Please Help
I'm learning flash on my own.
I use this code, and it working well. This is external .swf preloader for the "01.jpg" - width 600 pix.
but
the "01.pg" will be changed dynamic in future, so I need to make progerss bar which will fit to different size (width) of images.
//Frame 3 script
this.createEmptyMovieClip("MyExternallyLoadedSWFMo vieHolder",0);
var MyVariable = "01.jpg";
MyExternallyLoadedSWFMovieHolder._x = 0;
MyExternallyLoadedSWFMovieHolder._y = 0;
//Preloader script
total_bytes = (this._parent.MyExternallyLoadedSWFMovieHolder.get BytesTotal());
loaded_bytes = (this._parent.MyExternallyLoadedSWFMovieHolder.get BytesLoaded());
remaining_bytes = (total_bytes-loaded_bytes);
percent_done = (int((loaded_bytes/total_bytes)*600));
bar.ba.target = (percent_done);
DisplayProgress = (Math.round(bar.ba._width))+" % loaded.";
if (bar.ba._width>599) {
gotoAndPlay(4);
} else {
gotoAndPlay(2);
}
Any suggestions?
Thanx
[AS 2.0] A TRULY Flexible Accordion Menu
hey gang!
i've been looking for a decent accordion menu forever. a coded one, not that component crap that you can't customize worth a damn.
i couldn't find one that didn't make my head hurt or didn't require the menus, etc. to be created beforehand. so i finally knuckled down and made one. lazy me. and since i've seen a bunch of posts looking for them, i thought i'd put my efforts here for everyone to use and enjoy. nothing like bashing your head against a wall trying to do something simple.
the code is VERY flexible and quickly adaptable to XML implentation (which i'd actually originally did this for). and, best of all, everything is customizable. out the hoo-hoo. oh... and i commented the hell out of it for my staff, because it's often better to know WHY something works so you can learn from it and use the principles in your own stuff. there are a couple of finesse things with regard to the spacing that just need a tweak +- 1 pixel... but i thought i'd get this up before i move on to something else.
i'm working on making this into a class and when i do, i might throw it up if anyone is interested. and mad thanks to the 'lmc_tween.as' crew. i know Zigo is the new deal, but there's life in the old stuff yet!
WR!
Flexible Flash Layout
best way to explain is to check out this site.
http://daniel.websuit.nl/
resize the window and the flash content follows. any explanation or tutorial links would be greatly apreciated.
thanks
Flexible Interfaces And Blurring
I've seen a lot of flexible interfaces done in Flash on the web and I was wondering what's involved in creating something like that? If anyone can point me to an .fla or tutorial, that would be great.
Also, I've seen some photo-realistic motion blurring techniques out there that I know are not done in Flash. Can anyone point me in the right direction?
CreateTextField With Flexible Height
Is it possible to have a text field (either created manually or through AS) grow vertically to accommodate text rather than specify a fixed with for it?
When you drag one onto the stage and type into it, it grows vertically, i want this to happen when setting the text through actionscript so it has flexible height. Then i can find out the resulting height to make my special scroller component work.
Even though i create a dynamic text field and set it to "multiline" when i add a lot of text into it through actionscript it won't go onto multiple lines unless i drag out the height of the text field on the stage.
Has anybody else come accross this problem?
Many thanks in advance
Adjustable/flexible Swf Size
Does anybody know how to make a flash swf adjust in size depending on what's going on in the movie?
I've seen dynamic banner ads that use flash and adjust in size onmouseover, so it's looks like it's doable.
Basically, what I want to do is have a thin, narrow banner ad (maybe 1000 pixels in width and 35 pixels in height), and then when somebody mouses over the movie clip, it'll expand to 100 pixels in height. But here's the tough part, how do you make it "push down" the content on the page, rather than hover over it?
Thanks.
Is Dynamic Text Size Flexible?
hello
i have a slight problem with dynamic text area
basically its very important for what i am trying to do that only the text thats inputed in the dynamic field will act as a button and not the whole dynamic text box, which is obviously bigger
does anyone know what i have to do?
cheers
Java-style Flexible Layouts?
Anyone know of a way to do flexible layouts of symbols and components at run-time without writing a ton of AS, like java allows with its layout managers?
It seems the flash approach is to just scale everything as your movie size changes, or to let it be, but not move/resize it at all. Neither of these I find particularly bearable for somewhat more complicated form designs in dynamically resized movies, which I will be getting into pretty soon.
Flexible Event Handler Function
Is there a way to create a function that handle events (especially MouseEvents) and still call this function as a plain one without passing any arguments? All this time, I just create an extra function that handles the mouseEvent and call the needed function inside it.
Example:
function handler(e:MouseEvent):void{
realFunction();
}
function realFunction():void{
// I want this function to work as a handler and at the same time a plain function
}
Just thought that maybe there's a better way of doing it.
Thanks in advance.
[Tutorial : Advance] Flexible Magic Button
Have you ever stucked in a situation where you need to duplicate tons of button where it looks the same but only varies on the text? Let's say in a survey or trivia game, or probably a website which expands to a lot of different section. And you're in confusion and clogged with bunch of unnecessary repeated and hassling steps. Here's the help that might bring you out of the dark world. Welcome.
Difficulty : Basic / Advance
Topic : Flexible Magic Button
Download : [ Flexible Magic Button]
Starting Up
A canvas that measures up 200 px X 200 px would be sufficient for this tutorial.
And we'll create a new Symbol which we'll name it btn_template.
Yes, we'll have nothing but only this movie clip inside our library. Amazing isn't it?
Inside the movie clip (using it to act as a button)
Moving on, we'll have a very simple looking movieclip which will act as a button. Three layers.
* Actions - nothing complicated here, only stop(); will be placed here.
* txtbox - A dynamic textbox will be placed here, which where the magic comes from.
* design - Only functions visually, and doesn't affect your button.
We'll prepare as planned, one simple rectangular and dynamic textbox.
See? Nothing's complicated. Unless if you decide to implement advance interaction here.
Next, we'll proceed with giving this dynamic textbox a name, for this case, we'll name it txtName
Some tweaking which is up to your preference to make the Dynamic text appear. For this case, it's more appropriate to center the text and unselect the "Selectable" option on the Properties panel.
We're done setting up the movieclip. We'll go back to the main scene.
The Finishing
Remember the golden rule in doing any project, REMEMBER TO SAVE!
The Stage's empty now right? Drag one instance from the Library to the stage, and name it btn1
Be patience, we'll about to see some magic soon, and on the actions layer, write the script as shown on the screenshot. And we'll test the movie and see if it's working.
You can choose the option Test Movie or by using Ctrl+Enter (CMD+Enter for Mac user)
THE MAGIC! yes, the word appeared. And what's next, no, we're not done yet.
As usual, we'll use the super-power of function make everything here easy. If you notice correctly, you'll find the similarity with the Rollover Smooth Button scripts. Yes, the share the same format but in this tutorial, you can dynamically change the content inside the button, using dot syntax.
Using Functions to simplify everything
On the functions' layer, we'll have this. Because instead of repeating the same Rollover and Rollout code all over again and making everything looks crowded on the actions layer, we'll simplify and only call rOver() and rOut() only.
*Note *
You might ask if it would make a difference if you place the functions and actions layer different, let's say for this case, note the function layer are placed above actions layer? And on the actions layer i placed a stop() on the bottom of the actions layer? In this case, if I place the actions layer on top of function layer, you might notice that the magic won't work, not even the Rollover/Rollout effect, this is because you stopped the movie before Flash reads the function layer. So, it does takes some planning if you want to separate layer. But not a big problem though, just a reminder.
Possibilities
Yes, you might ask, can i reuse the button and name it differently? Yes you can! That is where the magic comes from. And if you're interested to expand the idea and how far this interaction could go, I'd say, your creativity is the limit, and you can learn more on how to integrate different thing, and I'd have the tutorial ready in case you want to refer, and YES, you can combine all of it!
* Rollover Smooth Button (Transitions when rollover a button)
* Adding Sound to your button (Creating the wow-effect)
Here's the FLA file, have fun Flashin'
Download : [ Flexible Magic Button ]
p.s. - i've removed the picture from this post because it appeared to be super extremely user-unfriendly for me to post pic here, but the full version of the article is available at http://myflashportal.blogspot.com/20...ic-button.html
[Tutorial : Advance] Flexible Magic Button
Have you ever stucked in a situation where you need to duplicate tons of button where it looks the same but only varies on the text? Let's say in a survey or trivia game, or probably a website which expands to a lot of different section. And you're in confusion and clogged with bunch of unnecessary repeated and hassling steps. Here's the help that might bring you out of the dark world. Welcome.
Difficulty : Basic / Advance
Topic : Flexible Magic Button
Download : [ Flexible Magic Button ]
Starting Up
A canvas that measures up 200 px X 200 px would be sufficient for this tutorial.
And we'll create a new Symbol which we'll name it btn_template.
Yes, we'll have nothing but only this movie clip inside our library. Amazing isn't it?
Inside the movie clip (using it to act as a button)
Moving on, we'll have a very simple looking movieclip which will act as a button. Three layers.Actions - nothing complicated here, only stop(); will be placed here.
txtbox - A dynamic textbox will be placed here, which where the magic comes from.
design - Only functions visually, and doesn't affect your button.
We'll prepare as planned, one simple rectangular and dynamic textbox.
See? Nothing's complicated. Unless if you decide to implement advance interaction here.
Next, we'll proceed with giving this dynamic textbox a name, for this case, we'll name it txtName
Some tweaking which is up to your preference to make the Dynamic text appear. For this case, it's more appropriate to center the text and unselect the "Selectable" option on the Properties panel.
We're done setting up the movieclip. We'll go back to the main scene.
The Finishing
Remember the golden rule in doing any project, REMEMBER TO SAVE!
The Stage's empty now right? Drag one instance from the Library to the stage, and name it btn1
Be patience, we'll about to see some magic soon, and on the actions layer, write the script as shown on the screenshot. And we'll test the movie and see if it's working.
You can choose the option Test Movie or by using Ctrl+Enter (CMD+Enter for Mac user)
THE MAGIC! yes, the word appeared. And what's next, no, we're not done yet.
As usual, we'll use the super-power of function make everything here easy. If you notice correctly, you'll find the similarity with the Rollover Smooth Button scripts. Yes, the share the same format but in this tutorial, you can dynamically change the content inside the button, using dot syntax.
Using Functions to simplify everything
On the functions' layer, we'll have this. Because instead of repeating the same Rollover and Rollout code all over again and making everything looks crowded on the actions layer, we'll simplify and only call rOver() and rOut() only.
*Note *
You might ask if it would make a difference if you place the functions and actions layer different, let's say for this case, note the function layer are placed above actions layer? And on the actions layer i placed a stop() on the bottom of the actions layer? In this case, if I place the actions layer on top of function layer, you might notice that the magic won't work, not even the Rollover/Rollout effect, this is because you stopped the movie before Flash reads the function layer. So, it does takes some planning if you want to separate layer. But not a big problem though, just a reminder.
Possibilities
Yes, you might ask, can i reuse the button and name it differently? Yes you can! That is where the magic comes from. And if you're interested to expand the idea and how far this interaction could go, I'd say, your creativity is the limit, and you can learn more on how to integrate different thing, and I'd have the tutorial ready in case you want to refer, and YES, you can combine all of it!Rollover Smooth Button (Transitions when rollover a button)
Adding Sound to your button (Creating the wow-effect)
Here's the FLA file, have fun Flashin'
Download : [ Flexible Magic Button ]
Can We Define The Flexible Width On The Dynamic Text Box
i face the problem with the dynamic text box, is it true that we could define the flexible width of the dynamic textbox. i mean to say text box automatically stretch when the variable data is long than define width.
hope for soon reply
How To Build A Flexible And Scalable Wizard In Flash
I've built a flash application that contains a wizard. I don't describe the details of the flow of the wizard here now as the wizard is just like the normal wizard that we see in other applications. To generalize, let me describe the elements in the simplest form:
Step1 contains the following:
Label 1
Graphic 1
Next Button
Step 2 contains the following
Label 2
Graphic 2
Next Button
Back Button
Step 3 contains the following
Label 3
Graphic 3
Back Button
Well, it's straight forward to write sth like that to build the wizard by starting like this:
var setpCount = 0;
label2._visible=false;
label3._visible=false;
backBtn._visible=false;
graphic2._visible=false;
graphic3._visible=false;
Then, when the next/back button is clicked, increase/decrease the stepCount respectively and control the visibility of the elements.
This approach is the most straight-forward and surely it works. But I wanna make the wizard to become CLEAN, and more maintainable and scalable. That is to say, is there any way to make the wizard more generic, so that I don't need to code xxx._visible=true, xxx._visible=false whenever any elements are changed? I'd be appreciated if any design pattern or methodology could be suggested!
Smart, Logical, Flexible Solution For Path Rotation
Hello All.
I've got 10 movie clip instances all along a circular path. After some painstaking "eye-ballin" I've gotten them to be equally spaced (couldn't make equally spacing heights to work correctly with the guide layer's path). Now I'm needing them to rotate around the sphere but staying correctly oriented. I thought I was fine w/ this. I drew my circle, cut a little piece out of the top and animated my first symbol using a tween. Worked fine...but now that I've got 9 objects and each starting at a different point I'd have to cut the circle in 9 places making it all kind of sticky. I could use 9 guide layers each assigned to a different clip (and cut accordingly) but that seems really ineffiecent and might cause issues if I try to expand on the idea later.
Anyone have a better fix for this?
Chromeless Windows That Open On Movie Load Or Load Of Html Page (Flash Ad Kit)
Hi guys,
I was wondering if someone could help me out in creating these flash ads that appear out of nowhere. I see them mostly on rediffmail, yahoo and about.com.
I know how to create a popup window on button click, but how you do that without a button.
There's another dimension of ads nowadays. They are the transparent ads. They really look cool. Could someone with this knowledge pleeeeeeeeese help me out. I urgently need to create these ads.
Regards,
designable
Chromeless Windows That Open On Movie Load Or Load Of Html Page (Flash Ad Kit)
Hi guys,
I was wondering if someone could help me out in creating these flash ads that appear out of nowhere. I see them mostly on rediffmail, yahoo and about.com.
I know how to create a popup window on button click, but how you do that without a button.
There's another dimension of ads nowadays. They are the transparent ads. They really look cool. Could someone with this knowledge pleeeeeeeeese help me out. I urgently need to create these ads.
Regards,
designable
Scrollpane - Load Swf - Load Movie Symbol Controled By Buttons And Variables?
Ok i have searched the board, and racked my brain and read hundreads of bit and pieces. So far 'not happy jan'. Anyhow I thought well I shall start a thread where first I ask a question of 'can it be done' then go away try and do it and if fail 'ask how to do it' or if suceed then say 'how i did it'. Of course all questions are going to relate back to this original post so no new threads need to be started. Anyhow onto my question!!
I have a website I want to make. so I started... called it 'site.swf'. now site.swf has a scrollpane in it called 'content'.
Now I have also created 'home.swf' which has 2 movie symbols in it. one called 'homein' the other 'homeout'.
'Homein' is located in frame1 of home.swf and 'homeout' is located in frame2.
When site.swf loads I want to load home.swf into 'content' and home.swf plays 'homein'.
When the user clicks on the first button (in site.swf) 'content' plays 'homeout' before loading 'button1.swf' into 'content' and playing 'button1in'
see the pattern forming. Now I am sure this has been asked thousands of times, but I haven't found it once. At least in a form that is easy to understand.
Now can this method be done, or do i need to go away and rethink it. (my main reason for loading external.swf's is because i wish to preload where needed).
If all this can be done tell me now... I am sure I need to use 2 variables.... 'loadedmovie' and 'tobeloaded' to communiticate with 'content' and to follow the users clicks of buttons.
Thanks for any help.
Trent
Load Asp Into Flash& Load Content From Hyperlink Into Same DYNAMIC TEXT BLOCK
i'm trying to load content from database into my flash SWF. asp scripts call the info from server to render pages as HTML FRAMES at the moment. there are also hyper links on the HTML rendered pages that i want to work still, and call the content into the same page...or in my case same SWF file. is there a way to do this, as i have gotten it to load the content into the SWF, and pressing the hyperlink it opens the content, but in another browser window......however i want it to load into the same DYNAMIC TEXT FIELD.
anyone with suggestions??????
please help
Load Asp Into Flash& Load Content From Hyperlink Into Same DYNAMIC TEXT BLOCK
i'm trying to load content from database into my flash SWF. asp scripts call the info from server to render pages as HTML FRAMES at the moment. there are also hyper links on the HTML rendered pages that i want to work still, and call the content into the same page...or in my case same SWF file. is there a way to do this, as i have gotten it to load the content into the SWF, and pressing the hyperlink it opens the content, but in another browser window......however i want it to load into the same DYNAMIC TEXT FIELD.
anyone with suggestions??????
please help
Movie Taking Long Time To Load, Needs To Load Faster
I am a loading several movies into level 2 of the main movie. The movie is taking up to 1.35secs to load. The issue is that the images are too big. Can I do something about the movie itself or do I need to compress the images more?
(mx) Transfering Actions Which Load With Movie To Load When Button Is Pressed
hi,
I have some code which draws a line when the mouse is pressed (to when it is released)
This code is within an object, loads when the movie starts and works fine:
Code:
// ***** Set some opening parameters
onClipEvent (load) {
// Make original line invisible
_root.line._visible = 0;
// Initiate some variables
number_lines = 0;
line_active = 0;
}
// ***** Every time the mouse button is released...
onClipEvent (mouseDown) {
// Get the position of the mouse
origin_x = _xmouse;
origin_y = _ymouse;
// Increase the number of lines by one
number_lines++;
// Generate a new line name
name = "line"+number_lines;
// Duplicate a new line
_root.line.duplicateMovieClip(name,number_lines);
// Position the line's end point at mouse position
_root[name]._x = origin_x;
_root[name]._y = origin_y;
// Update line length / orientation
_root[name]._xscale = _root._xmouse - origin_x;
_root[name]._yscale = _root._ymouse - origin_y;
// If this is the start of a new shape
if (!line_active) {
// Set the line tracking variable
line_active = 1;
// Set the start point of the new shape
start_x = origin_x;
start_y = origin_y;
}
}
onClipEvent (mouseUp) {
line_active = 0;
}
// ***** Every time the mouse is moved
onClipEvent (mouseMove) {
// If there's a line currently being drawn...
if (line_active) {
// Update line length / orientation
_root[name]._xscale = _root._xmouse - origin_x;
_root[name]._yscale = _root._ymouse - origin_y;
updateAfterEvent();
}
}
I want the user to press a button before this code is usable - just as with any drawing program.
How do i go about telling the code only to start when the button has been pressed?
thanks,
jeff
Load A Xml File That Contains Urls - Want 2 Load A Movie Instead Of Open URL Links
i'm just wondering how does one go about to load an xml / text file into a text box.. this text file - has url links.. or a href tags.. how do i change it such that the url links can call actionscripts instead of opening the window to a url..
does that make sense?? if it still doens't - go to www.praystation.com
if you click on the "news" section - his urls open/load movie clips how do i make something similar to that
thanks
Load Movie...Park/Play...Load A Button Into Level
Okay, I tried the Park/Play tutorial in order to load a movieclip and have a button on the stage that controls the main movie. Problem is that I have a background that covers up my button which is in level0. My movie clip is in level1. How do I bring that button out in front of the background? Do I load it into level2? If so, how do I do this?
Thanks alot,
Roger
URGENT Load Movie Doesnt Load Textfields
i mad a form in flash that send the variables to a php email script. The problem i am having is that the form loads into my main movie but when it loads it doesnt load the text fields. I have border.BG checked and everything seems to be in order. Please get back to me a.s.a.p. ANYONE I HAVE ONE DAY TO COMPLETE THIS!!!! blinero@email.com
Jagged Bitmaps: Not When Load In Level, Yes When Load In Target
I noticed that I get distorted bitmaps when I load a swf into a target movieclip. When I load them into levels the bitmaps look alright. Anybody knows of a bugfix for this. I prefer to load into targetmovies because then the swf's get cached in the browser.
thanks already.
Can I Load Movieclips From A Textfile? Or Load Other Text Files?
i am pulling in variables from a text file like so:
on (release){
textbox.loadVariables ("text1.txt");
}
now... my question is... is it possible to load another movie clip from that textfile???
i have a bunch of news headlines that are from a text file, and i want them to link and load another movie clip on another section of my page... i have figured out how to link URL's but i cannot get it to link a movieclip, or, another textfile...
i want the movieclip to load into a already running swf file... is it possible for flash to do this?
any help would be much appreciated.
Load Variable From Txt File To Load Movie From Server
my webserver has a dynamic ip adres
now i have a program that writes my ip adress to a static server.
my question:
load textfile and make the link for the swf complete
i think it should look something like this but i can't find it anywere
code:
loadVariablesNum("redirectphp/currentip.txt", 0);
this.gastenboek.loadMovie("http://"+ip+"/flash/Guestbook.swf");
the txt file is like:
&ip=90.128.82.20
the swf file is in flash 7
please help me
Load Movie Into Empty Clip On Page Load
I have a series buttons and two empty clips on the main page (one to hold the text and the other to hold the pictures / slide show) I have all the buttons working and loading the text etc correctly.
My problem is that when my page firsts loads all I have is the buttons. I want to have the empty clip that holds my text have my "welcome" load when the page loads (without clicking on any buttons).
I have tried using
onClipEvent(enterFrame) {
loadMovie("welcome.swf",this.mtTextClip);
}
but I get an error message that clip events are only allowed on movie clip instances and as I want this to happen when the page loads there isn't an instance name...
Clear as Mud??
Using Load Vars To Load A Dynamic URl Form .txt File AS2
OK I have looked all over the net and these forms for a solution and cant seem to figure out what is going on here. I have a flash header that has a button on it that will change form time to time and I need to pull a url from a txt doc. So here's my code.
PHP Code:
var urlLink = new LoadVars();
urlLink.load("feature_link.txt");
link_btn.onRelease = function() {
getURL("http://"+urlLink ,"_self")
};
In the text file I have
PHP Code:
url=mydomain
When I hit the button I get a web page saying that it cant find the url http://www.url=mydomain.com
I have also tried
PHP Code:
link_btn.onRelease = function() {
getURL("http://"+url ,"_self")
};
and I get http://www.undefined.com/
Why wont it see the url variable in the txt file.
Thax
Html Link To Load Swf Then Load Specific Xml File
Hi I'm still learning a lot to do with actionscript and not even sure if this can be done so this is a long shot!
I want to have a link in html to load an xml file in a swf - haha does that make sense??
Eg: The user to be able to click on the websites link on "http://crushdesign.co.uk/links.html"
Then that take them to "http://crushdesign.co.uk/portfolio.html" BUT in the Web section of the swf!
Thanks guys
Load Load External Swf Movies And Paly At Same Time?
Hi. I am new here and i am desperate to have my problem solved please. I have an html page with 2 swf movies that should be playing at the same time (one shows logo of a company and the other shows at the same time the company's products). the problem is althought they are synchronized when played on my pc, when loading via internet they doen't play at same time because one is much bigger than the other and takes more time to load and play. so i thought of making a dummy swf movie that loads both swf movies and make them play at same time. Can anyone help me with the script needed for this? or is there a script that can be used on one movie and make it play only when the other one is fully loaded? please help !! thanks in advance!
Load A Flash Movie To A Random Frame Each Load
I have created a flash file that fades from one picture to the next. However, I would like to find an actionscipt that will allow the flash movie to load to different each time the page is visited/refreshed. That way visitors don't have to see the same image each time the visit the my page, but can still sit and watch all of them if they want. Also I would want to be able to specify which frames are available for load. That way the page will always load at the begining of each image animation... not right in the middle of it switching to the next image.
Any help is greatly appreciated!
Load A Flash Movie To Specified Random Frames Each Load
Group:
I am trying to find a Actionscript where I can specify random frames and have the movie randomly load to the specified frames each time the page is viewed. The below scrip was given last time I posted this question, but it doesn't seem to load at the specified frames. Sometimes it does, sometimes it load right in the middle of an animation. You can see in the code below I would like the movie to load at frames 1, 116, 231, 346. Any suggestions?
_____________________________________________________
Array.prototype.shuffle = function() {
for (var ivar = this.length-1; ivar>=0; ivar--) {
var p = random(ivar+1);
var t = this[ivar];
this[ivar] = this[p];
this[p] = t;
}
};
ASSetPropFlags(Array.prototype, ["shuffle"], 1, 1);
var Array_ar:Array = new Array(1, 116, 231, 346);
Array_ar.shuffle();
index = 0;
function load_random() {
gotoAndPlay(Array_ar[index++]);
if (index == Array_ar.length) {
(index=0);
}
}
load_random();
Load Movie But Sound Doesnt Load.
i dont understand why this is. maybe im forgetting something
all i want is when the page loads it also loads an external movie clip that is the background music,
i can do this, but when i do, the sounds doesn't transfer over with it.
but if I make the bgmusic clip the main movie and load the others into it, it works [the sound that is]..but we dont want this
some help would be much appreciated. thanks bros..
|