ActionScript 3.0 :: 2D Lighting Shader - Making Stuff Near Player Visible

Oct 25, 2011

How would I go about making a 2d lighting shader, that only made the things near the player visible?

View 3 Replies


Similar Posts:


Flash :: In An AGAL Vertex Shader, What Is The 'w' Component Used For In The Output Shader

Dec 29, 2011

I understand the 'xyz' components of a vertex's position, but what does 'w' do? Could it be left as the same constant value all the time?

Example:

mov op.xyz, va0.xyz
mov op.w vc0.w

View 1 Replies

ActionScript 1/2 :: Making Something Visible And Not Visible?

Mar 4, 2010

I want to make a little thing pop up when I put press a button... Would the best way to do this by doing a - movieclipname._visible = true/false

View 3 Replies

ActionScript 3.0 :: Begin Making Multiplayer-based Stuff In It?

Dec 3, 2010

I've done some research but I'm still quite unsure with what and how to begin making multiplayer-based stuff in as3.

I've seen quite alot of api's, like PlayerIO for instance, but I'm really not sure where to begin really. What are your thoughts on what tools to learn, if I were to make, for instance, a platform based mmo?

View 1 Replies

ActionScript 3.0 :: Adobe Flash And Making Some Stuff And That Export It To IPad?

May 30, 2011

Im trying to learn Adobe Flash and making some stuff and that export it to my iPad. It doesnt have to be Shared Object, just read on internet that it could be used. But i dont know.

I need a save and load function. Im gonna explain why and how. Im making a test game. When the player finish a level another level on the "Level select" screen should be unlock.

So, when player open my game first time. Level 2 is locked. When he finish Level 1 he can play Level 2.I got some help with this and got it to work like this:

[Code]...

That means if Player hits goal he get send back to frame 2 and "level2played" gets true and he can click and play level2. But this doesnt ofcourse get saved when the app get closed. So i kinda need it to be saved. So if Player hits goal in level 1, this "level2played=true;" gets saved.

View 2 Replies

ActionScript 2.0 :: Making A Mech Blow Stuff Up(side View Shooter?

Nov 16, 2006

this thread is about side view shooters any one working on a side view shooter who needs help or wants to help me i want in here posting ideas, theres no good thread on the subject so lets get one going

[code]...

View 14 Replies

Professional :: Making Things Visible One At A Time?

Jun 22, 2010

I have one button, that when clicked should display several images, one at a time. At the minute they are all just coming on together, how do i seperate the functions so they come on individually, for example like bullet points, e.g click once and image1 appears, click again and image2 appears etc... so eventually all of the images are on screen, but they don't all just appear together, if that makes sense!

View 4 Replies

ActionScript 3.0 :: Array Of Movieclips; Making Everyone Visible At Same?

Sep 18, 2010

Can I make an array of movieclips, and then make all of them visible? some-thing like:

ActionScript Code:
myArray[1] = new MovieClip();
myArray.visible = true;

[code].....

View 2 Replies

ActionScript 2.0 :: Making The Simple Player Using The Player Component Preinstalled In Flash?

Jun 3, 2010

I am trying to make the SIMPLEST POSSIBLE MP# player using the player component preinstalled in flash.It is very simple, the code is as follows:

Code:
on (release) {
player.contentPath ="Song.mp3"
player.play()
}
("player" is the mp3 component)

This works if I want a single track to be selected and played.Now, I need it to AUTOMATICALLY LOAD THE NEXT TRACK, which I will input in the code.I am thinking something like this:

Code:
player.onSoundComplete = function() {
player.contentPath ="Song.mp3"
player.play()
};

But this is not working.

PS: I know an XML file would be the best here, but I don't want to use it. I just want to enter the next track's code inside the swf.

View 2 Replies

ActionScript 2.0 :: [CS3] Involves For Loop Making MCs Hidden Then Visible?

Feb 20, 2009

On frame level, frame 1 populate the layout (to deal seven cards to a player as selected):

Code:

playerA_cards=["dealt_card_a1", "dealt_card_a2", "dealt_card_a3", "dealt_card_a4", "dealt_card_a5", "dealt_card_a6", "dealt_card_a7"];
playerB_cards=["dealt_card_b1", "dealt_card_b2", "dealt_card_b3", "dealt_card_b4", "dealt_card_b5", "dealt_card_b6", "dealt_card_b7"];
playerC_cards=["dealt_card_c1", "dealt_card_c2", "dealt_card_c3", "dealt_card_c4", "dealt_card_c5", "dealt_card_c6", "dealt_card_c7"];
playerD_cards=["dealt_card_d1", "dealt_card_d2", "dealt_card_d3", "dealt_card_d4", "dealt_card_d5", "dealt_card_d6", "dealt_card_d7"];
playerE_cards=["dealt_card_e1", "dealt_card_e2", "dealt_card_e3", "dealt_card_e4", "dealt_card_e5", "dealt_card_e6", "dealt_card_e7"];

[code]....

It should work. It doesn't. Similarly does not work on buttons which are also too numerous to mention, so making them visible one at a time would be an untold hassle. I would love these five arrays to be bunched in a subarray but right now getting it to work, period, is job one.

View 2 Replies

Flash :: Making Content Visible To Search Engines?

Feb 1, 2012

When I was using Flash CS4, it published a HTML file that showed the text content of the movie, which made it easy for search engines to index the site. However, in Flash CS5.5, I notice it doesn't appear to do that anymore.
 
What do I do (step-by-step) to make my movie content visible to search engines?

View 2 Replies

ActionScript 3.0 :: Making A Button Visible When Timeline Is Playing

Sep 12, 2010

Is there any way for AS3 to register when a timeline is playing?I want to make a button visible when the playhead is moving, (and invisible when it's not)

View 2 Replies

IDE :: Making A Global String Variable Visible To MovieClips?

Jun 4, 2009

I mostly use flash for the animation, so my action script tends to be mostly functional.

I am now however having an issue, i am using a variable called language which I am setting in frame one as "dutch", "english" , "german" etc... Im then using this to set dynamic text as appropriate in each frame as necessary.(and yes i may switch this to case statements )

if (language == "dutch")
{ tcMC.peasantBubble1.peasantSpeech.text= "Bescherm je een schat?"};

My problem is however that one Movieclip does not see the language variable.

Is there anway in CS4 i can direct it to where it is, or define the varibale instead to be global (perhaps id have to change it from a string though)?

View 2 Replies

ActionScript 3.0 :: Making Menu Visible When External SWF Loaded?

Jan 5, 2011

I have my main menu movieclip placed on the main stages and I use it to load some external swfs. However when I load them, the menu disappears because it is covered by the loaded swf. How can I set the depth of my top menu so that will always be visible when the external swfs are loaded? Should the depth be set on the main time line or inside the main manu movie clip? This is the code in my main menu that I am using to load the swfs but my main menu is a movie clip placed on the main timeline...

Code:
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/welcome.swf");
loader.load(defaultSWF);
stage.addChild(loader);
[Code] .....

View 10 Replies

Actionscript 3 :: Making Scroller Of Spark List Visible By Default?

Oct 6, 2010

I have a spark.components.List component on which I would like the vertival scroll to be visible by default.

View 1 Replies

ActionScript 3.0 :: Rotating Stuff Around Other Stuff?

Jun 29, 2011

So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:

ActionScript Code:
theArrow.x = theShip.x
theArrow.y = theShip.y

[code].....

View 4 Replies

ActionScript 1/2 :: Hi-lighting Drop Down Menu Options?

Sep 16, 2009

I'm having some trouble with drop down menus. I've got them set up with onrollover to display the menu options and use both rollout & dragout to deactivate (which prevents the menu from sticking by accidentally "dragging" off the area).The menu displays just fine, and I want the background of the options to highlight (by switching color) when the mouse moves over it or presses on it. Unfortunately, nothing happens.I used this as my base color switch

------------------------
function paint(mc, brush){    var fincolor = brush;myColor = new Color(mc);myColor.setRGB(fincolor);}[code]..........

View 2 Replies

Actionscript 3.0 :: Create A Dynamic Lighting Engine

Sep 24, 2009

i want to create a dynamic lighting engine and i'm not 100% sure about how to do it.i dont want the answer given to me on a silver platter i just want some tips and tricks and a few hints on how to go about it.[code]

View 1 Replies

ActionScript 3.0 :: Lines Visible In Flash Player, But Not In Flex?

Aug 12, 2009

I've made an animation showing the constellation Orion in 3D (see attached swf). As you can see, it's working properly, displaying stars and lines connecting those stars. The depth scaling is ok. The animation also responds to mouse movements as it should.The problems occur when I embed the swf in Flex using Flex Builder (I posted this question on the Flex forum as well, but I suspect the problem is more AS related than Flex 3 related): the stars of the constellation are visible, the animation responds to mouse movements, depth scaling is OK...but the lines connecting the stars aren't visible. Feel free to make the comparison for yourself.So any suggestions how I can make the lines visible? Can they be exported for Actionscript in the same way the movieclips are?Geography and sciences teacher (not a professional programmer alas)I used Flash CS4 professional version 10.0.2 , Flex Builder 3, IE8, Flash Player 10

import __AS3__.vec.Vector;var balls:Array = new Array();var marks:Array = new Array();var numBalls:uint = 10;var fl:Number = 400;var vpX = 300;var vpY = 300;var commands:Vector.<int> = new Vector.<int>(50,true);var data:Vector.<Number> = new Vector.<Number>(100,

[code].....

View 1 Replies

ActionScript 2.0 :: Video Player - Menu MC To Visible On RollOver

Oct 31, 2011

I am making a videoplayer for an embedded flv and I want the menu mc to appear when the mouse pointer is on the video. My problem, is that inside that mc I have 4 buttons (play, pause, stop, volume). When I make the rollOver, the menu is visible but the buttons are not clickable...

Code:
_root.menu_mc.play_btn._visible = false;
var silencio:Boolean = false;
var s:Sound = new Sound(root);
s.setVolume(100);
_root.menu_mc.onRollOver = function() {
[Code] .....

View 1 Replies

ActionScript 2.0 :: Achieve Lighting Effect That Passing Over Letters?

Jan 13, 2005

URL...after the stick figure walks past the words xiaoxiao in blue, how would I achieve the lighting effect that passing over the letters? I'm sure it's a mask but don't know how to achieve this effect?

View 12 Replies

ActionScript 2.0 :: Do A Lighting Mask To Have The Effect Of The Moving Gleam Across Logo

Jun 14, 2003

I have a logo I created for my webpage with FreeHand. I have finally learned how to do a lighting mask to have the effect of the moving gleam across my logo, but whenever I try to create the effect (using different methods even) it isnt' working correctly. Only part of my logo is being affected by the mask. I have tried all the things that I can think of to make this work. So far the only thing that has worked is changing the vector logo into a jpeg and plugging it into flash, but I really don't want to do that due to resolution and cleaness of the image. I am including links to the 2 files - the original logo as well as the masking .fla file that I have been trying to make work.

[Code]...

View 11 Replies

Actionscript 3 :: Detect When The Shader Is Done Mixing The Audio?

Jun 10, 2011

so this the code with it i am able to mix several trackswith a Shader done in pixel bender.the problem here i don't know when the mixing is finish or all the sound reache their endto be able to save the bytearray into a file any Event or something like that

package
{
import flash.display.*;

[code].....

View 1 Replies

Flash :: Morphing In MoleHill Using A Vertex Shader?

Feb 5, 2012

Using the Molehill with Flash I wish to create a vertiex shader, to have one mesh transform into another, I have seen that it is possible with Flare, However I am unsure if that was using Stage3D, Can anyone give me any pointers in the use of shaders in AGAL as to how this might be done.

View 2 Replies

Actionscript 3 :: Flex Shader Effects: Render One Object Into Another?

Nov 12, 2010

I want to make such effect: draggable semi-transparent object (let's call it 'plastic strip') over window with arbitrary objects. Plastic strip should be turbid, i.e. it blurs content under it (not blurred itself). What's the best way to do that with PixelBender shader on Flex?

View 1 Replies

ActionScript 3.0 :: Write A Phong Shader For Molehill Project?

May 2, 2011

I've been struggling to write a Phong shader for my Molehill project. The problem is that the light seems to shift or move when the camera rotates. So I've been investigating what could possibly be wrong, by basically comparing my shader with the Phong shader written in GLSL. There's one thing I found that is kind of weird. In GLSL the output position in the vertex shader is ModelViewProjectionMatrix * Vertex, ok that is just fine.

HOWEVER, in Molehill the ModelViewProjectionMatrix has to be transposed so that it will render the vertex correctly to the screen. In GLSL that is not necessary.

How did I find that out? I created the Matrix3D modelViewProjection, I applied the ModelView to that matrix and then the Projection matrix. I tried to give the vertex shader that matrix and it displayed nothing until I transposed the modelViewProjection.

In GLSL this is not necessary, I could just say output.position = projection * modelview * vertex and it would be displayed correctly, I don't need to do transpose(projection * modelview * vertex).

So.. I'm wondering if there's something that I am not seeing here or is this a special part of Molehill that we just have to follow? Or could it be a bug in Molehill? I will create a new post tonight with my Phong shader and hope that someone sees what I may be doing wrong. But this is confusing me a lot at the moment and would like to know why the matrix has to be transposed.

View 1 Replies

ActionScript 3.0 :: Offscreen DisplayObjects - How Does Flash Player Handle Objects When They Are No Longer On The Visible Stage

Dec 28, 2010

How does flash player handle objects when they are no longer on the visible stage? Is the graphical data still in memory? Does hittestobject/point consider them? Are enterframe and interval events still running?

In AS2 I would hold metaobjects (minimal x,y,width,height data) that would delete/create movieclips as the screen scrolled. Is this still a correct approach in AS3? If not, is there anything I can do to offstage display objects that improves efficiency, assuming around 400 are created initially?

View 4 Replies

Professional :: Publishing A Flash Video: Player Not Visible - Height And Width Referenced 3-times In Html?

Mar 5, 2010

When I publish my FLV video using Flash CS3 and the "SkinUnderAll" option...the player controls are not visible unless I change the height & width in the html file Flash created.But, Flash shows the height & width 3-times in the html.
 
Question-1: Why 3-times? What does each of the 3 Height & Width references do?
 
Question-2: How should I modify the code to be able to see the entire video and the player controls?

It seems if I change all 3 everything just gets bigger and bigger.
 
1 - I import it into Flash CS3 on a PC w/XP Pro using... File | Import | Video take all the defaults and choose "Skin Under All" as the player option.
 
2 - In "Properties" panel at bottom of screen Flash shows the video as 640x480
 
3 - I then click File | Publish to publish the video. Flash creates all my files for me.
 
MyVideo.fla
MyVideo.flv
MyVideo.html
MyVideo.swf
SkinUnderAll.swf
AC_RunActiveContent.js
 
4 - I then put the folder with the files on my website.
 
5 - The video plays but the player controls are not visible.
 
6 - I see the Height & Width referenced 3 times in the html file Flash created for me (and none are 640x480, they are 550x400 !)
 
7 - I try changing the 550x400 to 640x480 in all three places... no good. Even at 1000x1000 the entire player is not visible. Everything just gets larger.
 
What are each of the 3 references to Height and Width in the html file Flash Creates and which should I change to simply show all the player controls?

View 2 Replies

Actionscript 3 :: Get Pixel Bender Shader 'inputSize' Parameter Working In Flash?

Jun 20, 2011

Here's a snippet of a pixel bender shader that I'm using in Flash:

parameter float2 srcSize
<
parameterType: "inputSize";
inputSizeName: "src";
>;
input image4 src;

The width and height of the source image are filled in correctly in the Pixel Bender Toolkit, but when I run this shader as a filter in Flash Player 10, the srcSize value is not automatically filled in.

View 2 Replies

Actionscript 2.0 :: Seek Bar Making For FLV Player?

May 22, 2009

Now i am doing a FLV Player. But how to make a seek bar for that.?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved