ActionScript 3.0 :: Total Noob Having Difficulty Accessing Clip?

May 8, 2009

I am working on my first AS3 project, working on an upload routine for images. Simply, I upload an image and place it on the stage. Piece of cake. Now, what I can't figure out, is how to apply a filter to it. For some reason, I have a big ol brain fart about accessing my clip. I've positioned a clip on the timeline and can apply my filter to it, so it is definitely a reference issue.

Code:
/*
displayImage imports the uploaded image onto the stage,

[code]....

View 1 Replies


Similar Posts:


Actionscript 3.0 :: Total .noob() - Play A Movie Via An XML Generated List

Jul 19, 2009

you may quickly determine I am totally new to flash and actionscript. Tried learning it a while back but got distracted and just started over. Trying something that I thought would be real simple only to discover that nothing about AS is simple... So I wanted and play a movie via an XML generated list. Followed one of the tutorials here and tried to adapt it for video. The list works and the path for the video traces properly but for some reason the video never appears on the stage. I can take out the variable "vid" and put the path in manually without changing the structure and it works fine. Can someone point out my error. And if I am totally doing this wrong I am open to criticism as long as its constructive.

[Code]...

View 4 Replies

ActionScript 3.0 :: Difficulty Accessing JSON Values Of Elements

Aug 25, 2009

I am working on a information visualization project that involves visualizing json data from online forums. The problem that I'm having is that I'm not able to access all of the values of elements the json. Here is my Schema:

[{"course": "compsci 101",
"forums": {
"forum": {
"forum_title": "Week 11 - Cable and the Specialization of Television",
"forum_word_count": "1000",
[Code] .....

I tested and the json is valid but when I run it with this code it only is able to pull the last value (Week 2 Discussion 1 - Cable and Broadcast Television).
for (key in tuples) {
trace("forum title: "+ tuples[key].forums.forum.forum_title);
}
So, my question is, why isn't it tracing all of the values for the forum title? and what do I need to change to access those values?

View 2 Replies

ActionScript 3.0 :: Difficulty Accessing Class In Separate Package

May 4, 2010

When my document class attempts to instantiate a class in a separate package I get the error:1137: Incorrect number of arguments. Expected no more than 0.This is in reference to the following line:[code]As you can see, I have imported the package:[code]And here is the class that expects 0 arguments:[code]As you can see I properly labeled the Level1 class as part of the Levels package:[code]

View 4 Replies

ActionScript 2.0 :: Difficulty Accessing Dynamically Created Clips Properties?

Jan 29, 2008

the variables listHeight and maskHeight won't populate. they come up 'undefined'.

here's the code essence:

Code:
xml.onLoad = function(success:Boolean)
{
var stuff:Array = xml.firstChild.childNodes;
if (success)

[Code]....

View 4 Replies

ActionScript 2.0 :: Get The Total Frames In A Movie Clip?

Apr 23, 2006

i need a way to get flash to tell me the number of frames in the random clip that has been loaded. this is what i'm trying to use now to give me a random #, within the # of frames loadedCode:var rNum = Math.round(Math.random(emptymc1,_totalframes))the clips im using have 90-100 frames, but the number im getting is either 1 or 0

View 1 Replies

ActionScript 2.0 :: Looking For Total Frame Control On A Movie Clip?

Nov 25, 2006

I am looking for a total frame control on a movie clip.

for ex: if my mouth rollover my clip, my clip play frames 10 to 18 in loop. (i dont know how to loop)

and on rollout play frames 1 to 9 in loop.

View 1 Replies

ActionScript 3.0 :: Finding Total Max Width And Height Of Movie Clip?

Apr 6, 2011

How do I find the total maximum width and height of a movie clip with respect to every frame of that movie clip?

So for instance if the movie clip was circles of radius 5 registered at their center at various positions where:

frame 1:circle.x=-30
frame 2:circle.x=0
frame 3:circle.x=30

The total maximum width of movie clip would be 30--30+5+5=70.

View 1 Replies

ActionScript 2.0 :: Retrieving Total Bytes On Dynamically Loaded Clip?

Jun 23, 2004

I'm trying to create a script that will check different supplied filename paths, insert them into a movieclip, and retrieve the total bytes of the clip so I can determine whether or not the filename is valid. I'm having trouble with the bolded code below. Basically its checking to see if the loaded clip's bytes are more than 0. If its 0 then I know the path was wrong.I've tried using .onData and .onLoad as event handlers, and getBytesTotal and getBytesLoaded as my conditions for my following if statement. When I trace the result I get 0 even if the movie was successfully found and loaded... anyone know whats wrong?!?!

Code:
if (presType == "web") {
videoName1 = videoName + "_300k.swf";

[code].....

View 2 Replies

ActionScript 2.0 :: Retrieving Total Bytes On Dynamically Loaded Clip

Jun 23, 2004

I'm trying to create a script that will check different supplied filename paths, insert them into a movieclip, and retrieve the total bytes of the clip so I can determine whether or not the filename is valid. I'm having trouble with the bolded code below. Basically its checking to see if the loaded clip's bytes are more than 0. If its 0 then I know the path was wrong. I've tried using .onData and .onLoad as event handlers, and getBytesTotal and getBytesLoaded as my conditions for my following if statement. When I trace the result I get 0 even if the movie was successfully found and loaded.

[Code]...

View 2 Replies

Actionscript 3 :: Accessing A Clip Inside Another Clip In A Loaded SWF-File?

Mar 1, 2010

I'm writing a card game in AS3. The artist I'm working with has produced (in Flash CS4) a single swf-file containing all the card graphics and animations. The structure of the fla working file looks something like this:

- Scene
- CardGraphics (Movie Clip)
- CardFront
- CardBack
- CardValueImage (Movie Clip)

In the program I create 52 instances of my Card class, each having a MovieClip instance created from the loaded swf. The idea is to set the frame of the CardValueImage MovieClip to correspond to the Card instance's suit and rank member variables. However, I can't figure out how I access CardValueImage and call gotoAndStop (or whatever method I will need to call).

[Code]...

View 2 Replies

ActionScript 3.0 :: XML Still Consider To Be At A NOOb Level

Feb 4, 2010

I have a two questions regarding XML and AS3. Even though I've been using flash for a few years now I would still consider myself to be at a nOOb level... Question One: Basically I have a website (all in flash) and there's a passworded section for clients to access their own information. Previously I've done this by adding the username and password info into the flash movie itself each and every time I have a new client - which works but is very time consuming (considering the number of clients I'm getting now). Is there a way that I can put all the names and passwords into an xml file, and flash checks it?

Question Two: Up until now, once a client has entered their username and password it takes them to a new .swf that has their info in it. And once again, I've been creating separate swfs for each clients (and again, time consuming). What I would love is after they've entered their username and password it takes them to a different scene or frame (still in the original swf) that has dynamic text fields that load the info from an xml file. I assume that these questions have relatively simple solutions, but I'm not sure how to do it.

View 9 Replies

Professional :: Noob Regarding SWC Files?

Jun 26, 2010

I am relatively new to flash. I have made a DJ application that streams it's audio live across the internet.The audio format is OGG. I noticed that Adobe have released an Alchemised version of vorbis here [URL].. I am not expecting anyone to tell me exactly how to get a player working but could someone give me some pointers??

View 1 Replies

ActionScript 3.0 :: Button Problems From A Noob?

May 27, 2009

I'm trying to make an escape the room game.  I've set up four different views of the room, each separated by ten frames in the timeline.  I'm working on writing the Actionscripts to make the navigation buttons.  I've gotten the first one to work, but when I use the same actionscript for the second button and test the movie, the movie just keeps running from one view of the room to another, despite the fact that I have stop scripts set up for each frame.  I'm sure it's really obvious what the problem is, I just can't figure it out. 

[Code]...

View 5 Replies

ActionScript 3.0 :: Random Color With Certain Range Noob Style?

May 25, 2009

I am trying to exclude dark(er) colors, not sure this is the right way, but its the best with my level of knowledge

Code:
var color:uint = (Math.floor(Math.random() * 0xFFFFFF));
function randomColor(color:uint):uint {

[code].....

View 2 Replies

ActionScript 3.0 :: Definition In Namespace Internal- Noob In Distress?

Oct 25, 2009

I am fairly new to programming and i have gone through a few flash cs4 as3 tutorials and recently i have started to try and alter them. The one i need help with is a number guessing game where you guess a number between 1 and 10, and i am trying to change it to a color guessing game, where you guess either "red" or "blue".

I keep getting an error in line 5 "var red = true;". The error is 1151: A conflict exists with the definition red in namespace internal. There is also a "Warning:3596: Duplicate variable definition" for the same line. Here is the code:

[Code]...

View 3 Replies

ActionScript 3.0 :: Flash Noob Treated Roughly While Parsing XML?

Aug 24, 2010

I'm linking an XML document to a Flash file to control all sorts of things and it's going quite well until i tried to fill a dynamic text field with a paragraph of type from the XML document. I've done this a million times in AS2 and I've done it in AS3 using attributes, but this time I'm using childNodes. The dynamic text field is in a movieclip. When I tested it using this code:

var oneComments:String=xmlTestOne.firstChild.childNode s[num].childNodes[1];
oneClip.txtComment.text=oneComments;
...it sort of worked but I get the element tags along with the paragraph text.

[code].....

View 4 Replies

Text Scroll Area Difficulty

May 20, 2009

I just recently purchased this template: [URL] and I'm having difficulty with the scrolling text areas. The finished .swf file has different scroll areas for each of the pages, just like the online preview, but when I go into flash to try and edit them, I can only find the "Little About Us" scrollarea from the "About" page. There is a layer in the flash file called "page," the content of which changes on mouseclick, but that same "Little About Us" scrollarea stays constant in that layer, only moving location. I can't even find any of the other scrollareas in the Library. New to Flash, as I said, but even so this seems odd to me (aside from the fact that I need to edit those text areas).

View 7 Replies

ActionScript 2.0 :: On-screen Keypad Difficulty

Mar 16, 2010

I'm creating a onscreen keypad and so far Ive got this code which only outputs single values - Im looking to get it so each time you click the button ,it adds the value to the previous value like entereing a password.[code]I was thinking it might be easier creating a string variable and updating the string with every click of each value.

View 2 Replies

Professional :: Difficulty Displaying Different Screens/Forms?

Apr 18, 2010

I have a project which has 2 html, 2 swf and 2 fla files. I have a default form and I would like to call another form or screen form a button click.
 
Does each screen or scene have to have it's own html page. Or can you call up the scene change through flash code?
 
Currently I am using
 
btntest.onRelease = function () {getURL("http://www.website.com" , "_parent" );}

View 1 Replies

ActionScript 2.0 :: Flash/xml Vertical Menu Difficulty?

Apr 16, 2007

I am pretty new to Flash and XML and I am having a problem mapping to the correct nodes. I have built a vertical menu using one of Senoculors tutorials, which I have had to adapt a bit to make it fit in with my xml. The problem is I need to be able to map to a different set of nodes to the ones in the tutorial. I have posted my menu so that you can see what I mean.

View 2 Replies

ActionScript 3.0 :: Flash [CS5] Difficulty In Creating A Level?

Apr 2, 2011

I've perfected my collision detection by setting a square in the middle of the stage and circling around it, trying to penetrate its foresty interior until I could no more. [image below]

Obviously, I want more than one block to create my levels, but making one huge level in the same layer under the name "floor" (the name I gave the movie clip) will stop my player from moving because the boundries of the object "floor" surround my entire player, immobilizing it. [image below]Is there any way to fix this? I want to be able to move around and collide with the *blocks*, not the outline of the entire clip.

View 5 Replies

ActionScript 2.0 :: [FMX] Difficulty With Passing Variable From HTML To SWF

Mar 18, 2004

i've been trying - with absolutely no success - to pass a variable from an SWF on an index page to an SWF on the next page (in this case home.asp). i am using the following method: in the index page when a menu button is clicked i pass the value in the string

[Code]....

View 3 Replies

Professional :: Difficulty Using Hardcoded Swf File To Display Flv Files?

Feb 16, 2012

I have created a swf player using the flvplayback component to display flv files. The document in flash is 275 pixels wide by 130px pixels long. I also have my video component (flyPlayBack) set at 275px by 100px to display the playback controls. My flash code is my simple like the following

import fl.video.*;
var myflashvars:Object = new Object();
myflashvars = this.loaderInfo.parameters;

[code].....

View 7 Replies

Animation - Difficulty Creating Animated Skin In Flex 4?

Mar 29, 2011

[URL]..the animated glowing effect on the buttons. One, I can't get any mouse events to respond in the skin. I can't seem to find others with this problem. In the below code, startAnimation is never getting called when a mouse over occurs, but the event is apparently getting registered. To test this code, simply add skinClass="ButtonSkin" to a button declaration in your main application, the code below being the ButtonSkin.mxml file.

[Code]...

EDIT I found out why mouse events weren't firing. The button apparently has mouseChildren false by default, which specifically prevents events from firing lower than itself. Using parent.mouseChildren = true; in the constructor fixes this issue. On to the next part of the question: continuous animation.

View 1 Replies

ActionScript 2.0 :: Difficulty Loading Text From External Sources

Jul 27, 2004

I have been working on my first site which is my personal blog and I am having trouble getting my external text files to load in my dynamic text field. I would like to have my buttons when clicked to load my text files. This is the swf file that I have been working with: SWF FILE and these are my current dynamic text settings:

Code:
on (release) {
loadText.load("index.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
main.html = true;
main.htmlText = this.index;
}};}

View 2 Replies

Actionscript 3.0 :: Accessing A Nested Clip?

Sep 11, 2010

I'm trying to activate a nested movie clip with a button in the main timeline. I want the button to move the nested clip to the 2nd frame, thereby passing over the stop(); in the first frame. I'm not sure how to point the button at the correct timeline, though.

View 1 Replies

ActionScript 2.0 :: Accessing Variable From A Movie Clip

Aug 30, 2009

I've got a simple ActionScript 1 FLA. The SWF will take incoming variables from SWFObject. e.g. txtVar01, txtVar02, txtVar03 On the first keyframe on the main stage, I have a dynamic textfield, whose 'Variable' name is 'txtVar01'. When I view the SWF in a web page, via SWFObject, the value in the textfield matches that taken from the SWFObject variable. BUT - I have a MoveClip in the FLA, which has 2 other dynamic textfields, called txtVar02 and txtVar03.

When I view the SWF in the web page, these are empty, even though variables are being passed via SWFObject. I guess because the dynamic textfields are within an MC and not on the main stage, they can't access the variable names. I tried adding this to the first frame on the stage:

[Code]....

View 2 Replies

ActionScript 3.0 :: Accessing A Movie Clip In A Loaded Swf

Oct 22, 2009

I am loading a swf file(As2.0) into my As3.0 application. The loading rocess works fine. I want to know how i can acces a button in the loaded swf through my as3.0 program. For example: i have a movie clip in my loaded swf called submit. In my as3 program i want to be able to wrie functionality foe the submit button.
 
this is my AS3.0 code
  
//------------Load swf into the application-------------//var mLoader:Loader = new Loader();var mRequest:URLRequest = new URLRequest("test.swf");mLoader.load(mRequest);gameLoader.addChild(mLoader);
   
In test .swf i have a movie clip called pressBtn. I want to be able to access this movieclip in my AS3.0 code. gameLoader is a movieclip on the stge of my as3.0 fla.

View 2 Replies

ActionScript 2.0 :: Accessing Properties Of Movie Clip?

Apr 26, 2010

I have the following prob :

I created several instance of the same MC like this

[Code].....

View 1 Replies







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