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




Easing Off The Edge



Using Voetsjoeba's golden formula, I've made some panels that ease into place. But why can't they start at 0,0? It seems I have to start the panels from the middle of the stage or else they drift off the edge, even with x and y specified in the code.



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-22-2004, 02:35 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Easing Off The Edge
Using Voetsjoeba's golden formula, I've made some panels that ease into place. But why can't they start at 0,0? It seems I have to start the panels from the middle of the stage or else they drift off the edge, even with x and y specified in the code.

Edge To Edge Collision Detection
hi
is there a way to do edge to edge collision detection of two movie clips? I am trying to detect when my first MC hits my second one but the clips might be on a diagonal angle and so i need to use the actual MC and not the bounding box. I tried using true but it doesn't work. Basically i have a MC you can drive around and another which is a shed. I want to park in the shed but only through the open door. If you hit the wall i want the first MC to stop. But the shed is on and angle and so the wall is angled. How do I get this to work?
thanks anyone

Edge Disconnect From Core Then Core Disconnected From Edge Then None Reconnection.
Hi all,

I've a problem with rtmpt protocol on latest release of FMS.

There's a huge traffic on our server and suddenly we receive:

Edge disconnected from Core (995)
Core disconnected from Edge
Core (8714) is no longer active.

Then Core and Edge entities can't restart.

Could you help us to understand this fact, because our server disconnect all clients then doesn't work anymore.

Jeho

Edge To Edge Positioning
Hi guys,
I'll try to explain my try here.
I have to 2 or more circles on the stage that ramdonly will be place somewhere on the stage and so far nothing complicate. Let's say I don't want them to overlap eachother and using hitTest and getBounds is not so difficult. But my question is this one: How can I set the hit edges of the circles instead of using the bounding boxes?I don't want them to overlap but I want them to be placed even edge to edge on the stage.
Clear? ...hope so.

Thanks

Glint On Edge?
I'm trying to figure out how to do this effect. Warning this is an adult sample site. Can anyone tell me how to do the glint around the edge of the girls?

http://209.216.96.233/screenshots/22...2swf.html:mad:

Table Edge
I really didn't know where to post it because this refers to Dreamweaver. Can you tell me if it's possible to make elipse-shape edge of table by means of CSS or something without creating an additional image? Thnx

Soft Edge Help
I'm hoping to find some help/advice with a problem I have

In that Im new to flash (new is 1 week!) and I need to mask something with a soft edge.
I have found a few examples of how to soft edge using a second, slightly transparent layer, but Im struggling to apply this method as I need the mask to wipe across the stage.

The .fla file can be found here: www.2dtechs.com/army.fla

I need the colour/black and white wipe to have a soft edge on it.

ANY help on this matter would be received with great appreciation.

If you live within a 2 mile radius of my house then a beer is guaranteed!!

Advance thanks!!

Soft Edge Help
I'm hoping to find some help/advice with a problem I have

In that Im new to flash (new is 1 week!) and I need to mask something with a soft edge.
I have found a few examples of how to soft edge using a second, slightly transparent layer, but Im struggling to apply this method as I need the mask to wipe across the stage.

The .fla file can be found here:

www.2dtechs.com/army.fla

I need the colour/black and white wipe to have a soft edge on it.

ANY help on this matter would be received with great appreciation.

If you live within a 2 mile radius of my house then a beer is guaranteed!!

Advance thanks!!

MC _width From 1 Edge Only?
I'm having a bit of trouble using actionscript to animate the width of a MC. I need its width to decrease/increase but only from 1 edge. Anyone know if there are parameters in actionscript for this? by default it scales from the center. I have tried setting the center point of the clip to 1 edge but it seems to ignore it??

This is what I have on the clip at the moment.


onClipEvent (load) {
target = 40
}

onClipEvent (enterFrame) {
this._width += (target - _width)/20;
}

Any thoughts would be appreciated.

Graphics To The Edge
i cant seem to get the graphics to the edge regardless of the size i set the fram to. there is always this invisable frame around the the page when i publish. its the same color as the background color i choose...ihope that makes sense.xxxjosh

Edge Scrolling
Hey guys, my current setup is a circle in the middle of some landscape. You can move the circle around with arrow keys, now my question is how would I make it so the landscape would scroll once the circle got close to it? The area is sqaure and I was wondering is there anyway to setup a smaller invisible square within the big one so that when the circle hits a particular side of that smaller square, the landscape will scroll in that direction?

Faded Edge Help
Hello.

I am looking for help on how to construct this type of effect. It can be seen at best-trans.com

They are the fading pictures in and out. My concern is how to make the whole movie fade out around the edge so it seems into the background? Detailed help would be best please. Thank you in advance.

Glint On Edge?
Can anyone help with this effect? I'm trying to re-create this glint on the edge of these women. Warning this is a sample of an adult site. I think its a path on a different layer but i can't figure it out on MX.

http://209.216.96.233/screenshots/2200/2212swf.html

FMS Edge Dying...
So we've got like 15 Edge servers setup wtih 5 Origin servers. Things seem to generally work for streaming live video. There are problems though where some boxed won't always come up as if FMS has hung.

Currently I'm checking the number of fmscore processes with a script since I can't seem to get the HTTP admin interface to return anything other than NetConnection.Connect.Rejected: Admin user requires valid username and password. Which is odd since it has the correct username and password and the config files say it should work.

But sometimes the servers won't even start correctly. We have all of the logging turned on. But it starts up, says it loads the applications, no second fmscore process starts, and the remaining processes disappear after 5 to 10 minutes. No errors anywhere on the system.

This is CentOS 4 with FMS 2.0.4 and FMS 2.0.3.

Anyone else having similar problems or have suggestions to things that we could trouble shoot? I'm going to resort to straces soon.

What Is Origin Edge?
Could you please explain what Origin Edge technology is?
I am thinking of purchasing FMS3 but need to know how many servers per license I can use
Adobe claims 'unlimited scalability' so does this mean one license will allow me as many users as I like on as many servers as I like?

Origin <-> Edge
Hi to all!

I have the following configuration with FM (interactive) S (under win2003 r2 32bit):

origin1------edge1----client1
_|_
Live_stream_encoder1

Using the FMS 3.0.2 everything worked as expected:
a) Encoder1 encodes a live stream to origin1:
Client1 can see the stream connecting to either origin1 or edge1

b) Encoder1 encodes (sends) a live stream to edge1:
Edge1 does not accept the stream. (since it’s only edge that’s we are expecting)


Now same configuration using FMS 3.5
a) Encoder1 encodes a live stream to origin1:
Client1 can see the stream connecting to either origin1 or edge1

b) Encoder1 encodes (sends) a live stream to edge1: (now is the weird behaviour)
Edge1 accepts the stream. !!!!
Client1 can see the stream connecting to edge1 !! (but as long as the edge accepts the stream this is “ok”)
Client1 can see the stream connecting origin1 !!!!!!!!!

Have anyone has seeing this behaviour?? The conf files are the same.
How can I make edge behave as an edge like in 3.0.2 ver did?

Thanks in advance
Chris

Browser Edge
I know, I know.. its been asked before, but I couldn't find a clear explanation on it. I'm trying to figure out how http://www.burnkit.com 's flash movie lines up without any borders on the sides. I've seen publish settings at 100%, but how are the pixel fonts still clear. In flash, should the movie be larger than the actual stage? Should the movie be in a table? If someone has a clear answer it'd be niiiice.
Thanks

Browser Edge
I know, I know.. its been asked before, but I couldn't find a clear explanation on it. I'm trying to figure out how http://www.burnkit.com 's flash movie lines up without any borders on the sides. I've seen publish settings at 100%, but how are the pixel fonts still clear. In flash, should the movie be larger than the actual stage? Should the movie be in a table? If someone has a clear answer it'd be niiiice.
Thanks

Soft Edge
I want to have a soft edge effect as per http://www.evb.com/

Any ideas how to acheive this, thanks in advance.

Place MC On Edge
Hi, in my flash file which is scaled 100% x 100% i want to place a MC on the right edge of my screen. how can this be done?
i know of this;
fish1._x = 800; would place it 800 from the left. i was thinking of something with Stage.width to tell how much width there is and adding 800 to it and then setting it as a negative in the fish1._x = part.
thanks in advance!!

Following Mouse With Certain Edge
as title, I want a clip following mouse with 2 certain edge, I forgot how to set the edge...-___- plz help


ActionScript Code:
clip.onEnterFrame = function(){
   this._x += Math.round((_xmouse - this._x)*.3);
   if(this._x > 400){ //Stage is about 600 width
       this._x = 400;
    }
}


I don't think it's the right way, if the mouse went out of 600, the clip will slow down and hit the 400 edge...it's just when my mouse is over 400...the clip will pop to 400...plz help me, how do I make this clip slow down and hit the edge but not pop into 400...hope you know what I mean....thanks..

Motion And Edge Detection
I am building a simple 'pong' or 'tennis' game and am trying to do a simple if else statement to see if the ball is touching the bat.

How do I do this? I haven't done any programming before, and I've been at it for ages to no success.

Thanks,

Chris.

Trimming From Edge Of Canvas?
playing a movie on full screen often shows parts of objects which overhang outside the stage.

i want the edge of the canvas/screen to trim or not show anything that is over the edge because larger monitors will show these objects on fullscreen. is there anything i can do?

Cut Out The Edge Of The Fla And Resize The Stage...?
i already hav my project done... but now i need to resize everything on the canvas

i made my fla in 800x500 ...
now i need to change it to 800x430... and i want the top bit and the bottom bit being cut out...
but after i resize the stage... the whole thing is not centralize on the canvas... can i change the canvas by setting central point

how can i do that?

Drag And Snap To The Edge Of Another MC
Hello,

I have posted similar questions with no response so I am trying to clarify

First of all this one that I am working n is not the mr. potato head. It is
a program that will allow a user to create their own Trade show display (it
is a display made of flat panels in either square shape or rectangle
shape... Here is an example of the display we manufacture
http://www.flexidisplay.com/10disp.html

As you can see they are all made of flat panels but you can angle them in
different direction or change the panels around to create a different
display each time...

I have a Stage SWF www.flexidisplay.com/db/db.html (that is the actual user
interface) it contains a background and the buttons to generate
(loadmovieclip) the different size panels and different angle panels etc. I
have a bunch of SWF's that contain each MC in other words I have
2X2flat.swf, 2X2left45.swf, 2X2right45.swf etc, that contain one type of
panel in each MC all in all about 50 different MC's. when you click on one
of the panel buttons it generates that panel and you are then able to click
and drag it around the stage to place it where ever you want to place it.
This is working right now.but its not practical due to the movement of the
panels Its difficult to lign them up properly Edge to Edge, Corner to
Corner... It they were all the same size and shape I could make the object
drag around the stage in increments of defined pixels kinda like snap to a
grid. But we are not able to do thisdue to the panels being different
angles.

I would like these panels to snap to the panel next to it or above or below
etc and align with corner or edge.

This is in frame 1

to define a variable to load the movie to a different level for every panel

var levelCount=100



Here is the code I am using to generate the clips on stage

on (release) {

loadMovieNum("http://www.flexidisplay.com/db/01F.swf", levelcount, "GET");

levelcount++;

}

And a simple drag and drop script on each panel MC



Any help would be greatly appreciated

Alpha 0 When Near Edge Of Screen
Hi i basically have some objects which move depending on mouse position. They go off one side of the screen and on the other.

I would like to make them fade away as they got near the edge of the screen, please could someone explain how to do this

thanks

Sticking On Browser Edge
Need to create an element that sticks to the bottom edge of the browser to account for different window and screen sizes.
Here's an example of what I mean:

http://www.redcommunications.com/

Is this done by editing the html?
Can I achieve it with flash?

Seb

Soft Edge Mask
i have seen the various methods to create a soft edge mask, can anyone suggest a method to create a soft edge mask to wipe across an image, effectivly to cross fade between to images?

Soft Edge Mask
i have seen the various methods to create a soft edge mask, can anyone suggest a method to create a soft edge mask to wipe across an image, effectivly to cross fade between to images?

Soft Edge Mask?
is there a way to soften the edge of a mask?

example...

Invisible Edge On The Side?
aside from the posthere .. I have another small question....

after I've built my little grid, whenever I move my character mc to the left edge and the bottom edge, there's always seem to be an "invisible" edge there keeping me from reaching the real edge... can someone confirm that it's not just my eyes playing tricks on me? I think it might just be my monitor dying but then again I can't be sure..

Ball Following Border/Edge
Please help me so that when a ball hits another shape, it follows its border, instead of going through it. It should be very similar to the way the ball follows the slime's border in the game SoccerSlime below. [Edit: I realize this is a Java game, but any help relating to this would be greatly appreciated. Thank you!]

http://fractal.leet.net.au/page.php?page=wcss

Ball Following Edge/Border
Please help me so that when a ball hits another shape, it follows its border, instead of going through it. It should be very similar to the way the ball follows the slime's border in the game SoccerSlime below. I realize this is a Java game, but any help relating to this would be greatly appreciated. Thank you!

http://fractal.leet.net.au/page.php?page=wcss

Detect Edge Of Screen
Please take a look at this FLA..right now, i am using a hit test with a MC to determin if the car hits the edge of the stage.

What I want is make the movie 100% of the window size and have it determin the edge of the window (not necessarily with a hit test & a MC), so when it reaches the edge, it "crashes."

Thanks in advance...

[F8] Find Window Edge
How do you tell flash (mainly a single item or movieclip) to find the edge of the users window and stay with it when it is resized.

TIA

[MX04] Glowing Edge
Hi, I'm trying to make a glowing letter G (not a font), but using the soften edges technique i'm not very happy with the results - mainly due to the fact that each edge needs to glow - so resizing the image doesnt really work as its not possible to get all the glowing edges a nice even distance apart from the regular edges of the non glowing part. I thought the simple solution to this should be to merely "expand" the soft edges rather than inset them but i've yet to use this option without it producing some totally weird lines and dots.
Any help would be great...Thanks , Mark

Blurred Edge Mask
Is there a way to create a blurred edge mask? I have tried creating my mask layer, changing it into a movie clip and adding a blur filter to it. When I create a mask out of this, the edge is hard and not blurred. I have also tried creating a mask layer that has a linear gradient from 100% to 0% opacity. The same thing happens when I create a mask out of it.

Does anyone have a suggestion? Can this be achieved using actionscript?

Thanks.

Detect Stage Edge, Right?
I'm setting a full screen, non-scalable layout. All base layout will remain fixed in position and scale. Certain elements will enter stage right, essentially off-screen (out of browser view), regardless of the browser window size. I've read through how to full screen the movie and tile a background. What I haven't determined is how to position the hidden objects (movie clips) just off-screen when the user changes their browser window, thus altering the width dim of the movie.

Simulating An Edge Server
I have to coordinate event streams from multiple locations into a single super-event. we will have two, three, as many as six sites all recording and broadcasting video and audio streams, and we need to insure that clients at the various sites can subscribe to any available stream.

And we can't use edge servers - they're too expensive.

I'm thinking that if each FMS notifies each other FMS that a particular stream is available, we could use a shared object to transmit the stream server to server, then the local users could subscribe to the local copy. In the event of a breakdown, the client server could request an updated copy of the stream.

Am I on the right track, or am I all wet?

Neil in Washington

Simulating An Edge Server
I have to coordinate event streams from multiple locations into a single super-event. we will have two, three, as many as six sites all recording and broadcasting video and audio streams, and we need to insure that clients at the various sites can subscribe to any available stream.

And we can't use edge servers - they're too expensive.

I'm thinking that if each FMS notifies each other FMS that a particular stream is available, we could use a shared object to transmit the stream server to server, then the local users could subscribe to the local copy. In the event of a breakdown, the client server could request an updated copy of the stream.

Am I on the right track, or am I all wet?

Neil in Washington

Edge - Origin Separation
I'm reading Adobe docs and there is no world life configuration examples. This is annoying as they say what is possible but don't say how to do that.

My problem is that I have 1 FMS configured as local (origin according to docs) and second one remote (egde). They don't see each other and I can't find anything like origin IP address entry in any config files so edge will know who to talk to.

Maybe they have to be in the same network and will detect each other?

Nothing is clear in documentation.

VirtualKeys With Edge & Origin
We've got a 3 Edge & 1 clustered Origin FMS 2.0.4 windows setup behind load balancers. Virtual hosts enabled on edges & origin. On Edge it's mostly the default configuration albeit with some necessary vhost and edge customisations e.g. vhost.xml config files configured as remote transparent proxy with a RouteEntry back to Origin. Seems to be working fine for most applications and streams - with the exception of virtualKeys.

All content and apps hosted on the Origin as you'd expect. Each vhost transparently serves three different bitrates of content - high, medium & low. Within the application.onConnect method we perform a server<->client bandwidth check and set the client.virtualKey to high/medium/low as appropriate. Within the vhost.xml file we define:

<Streams key="high">clips;<path to high content></Streams>
<Streams key="medium">clips;<path to medium content></Streams>
<Streams key="low">clips;<path to low content></Streams>

This seems to work as expected when connecting directly to the Origin - server side trace statements show the key being set appriopriately during connection and then when playing a stream it shows up within the FMS console under the 'View Applications/Streams' tabs with Name 'low*flv:clips/<filename>'.

If I connect via the Edge however everything looks exactly the same, including bandwidth check/trace statements, but I get a 404 in the edge logs and 'Stream not found' on the client. It looks to me like the virtualKey is being dropped between Edge & Origin - I suspect this because if I add the following additional virtualKey on the origin vhost.xml config:
<Streams key="">clips;<path to low content></Streams>
it works (streams correctly) and shows in the FMS console as '*flv:clips/<filename>'.

To all intents and purposes the edge/origin arrangement seems to work perfectly otherwise.

Does anyone know if something special needs to be done on the Edges to recognise the virtualKeys (or indeed if there is anyting else wrong)?

I notice that the Edges do need to have the Vhost defined with Vhost.xml & Application.xml - do the Origin vhost directives override/supplement the Edge directives or is it only the Application-level configs/apps that are executed remotely? Of course I can't define the Streams directives on the Edges because the content directories themselves only exist on the origin...

Any help/advice welcomed whole-heartedly!

Info About Edge/origin
Hello everybody,

reading fms3 docs I found this:

Edge servers are a good solution for one-way video on demand (vod), one-way live events, and one-way live 24x7 streams. Edge servers enhance security, distribute the load of connection requests, and conserve bandwidth and system resources for high-volume one-way streaming.

Now, I'm developing a videoconf app where a teacher can see some students but each student can see just the teacher.

I would like to undestand why edge/origin solution is a good solution just for ONE WAY live events and not also for two way apps like a videoconf app.

Thanks a lot
A.

Why I Can't Connect Two Edge To Origin ?
Hi,
I have two edge server and I config Vhost.xml as same but I can request streaming one edge.
:::This my config
<RouteEntry>*:* ; 192.168.1.10:1935</RouteEntry>
-> Edge#1 = 192.168.1.11
-> Edge#2 = 192.168.1.12
-> Origin = 192.168.1.10
If I start edge#1 before edge#2 I can request stream from edge#1 but edge#2 it not work.
If I start edge#2 before edge#1 I can request stream from edge#2 but edge#1 it not work.

I try to check about max connection for edge server in vhost.xml at origin server but config is
<MaxEdgeConnections>-1</MaxEdgeConnections>

I don't know why about this ploblem.

Thanks.

Scrolling With Faded Edge
i was trying to modify this scrolling text to scroll it with faded image like in the plotdev.com i cant figure out how they did it? can anyone help me ill attach the file im working on
download it here: http://www.bongbox.com/bongbox.zip

Mask Edge Fade
Can anyone tell me how to create a mask that has smoothly faded edges?

Blurred Edge Mask
Hi

I read the artikle about the Blurred Edge Mask and I wanted to do it for my project as well.
It looks good in Flash MX 2004, but when I export it the the blur is gone. Well I do move the blur in the mask... could this be the problem?

Or can anybody send me the .fla file so that I can see how it is done propely?

ThanX

Help My Tooltip Goes Off Edge Of Screen
hi everyone

I have a tooltip that follows the mouse, but i need to to figure out where the edges of the screen are and always keep the tootip on the screen. Its something to do with screen width and height but i cant figure it out .

If anyone can help i`d be greatful

cheers

kippereye

Soft Edge Mask?
I am tired of making masks with no soft on it!


How to do it?
Do you need filters or AS?
Have no clue!

Thanks

Copyright 2005-08 www.BigResource.com, All rights reserved