See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Acess Classes...
This is my DocumentClass:
ActionScript Code:
package {
import flash.display.*;
import flash.events.*;
import flash.utils.Timer;
import flash.text.TextField;
import flash.ui.Mouse;
import flash.utils.getTimer;
import flash.text.*;
import flash.display.Sprite;
import Circle
public class ClassTest extends MovieClip {
public var C:Circle
public function ClassTest() {
C = new Circle();
C.L = this;
C.IncreaseCircleSize()
trace(C.IncreaseCircleSize())
}
}
}
This is my Class for a MovieClip Circe:
ActionScript Code:
package {
import flash.display.*;
import flash.events.*;
import flash.utils.Timer;
import flash.text.TextField;
import flash.ui.Mouse;
import flash.utils.getTimer;
import flash.text.*;
import flash.display.Sprite;
public class Circle extends MovieClip {
public var L:ClassTest
public function Circle() {
//IncreaseCircleSize()
}
public function IncreaseCircleSize() {
this.scaleX = 10
this.scaleY = 10
}
}
}
But when I run this code, the Circle Size won't increase...I just get "undefined" in my output?
Some help please
thanks
Acess Frame Label?
I know I can type
Code:
_root.gotoAndPlay("myFrameLabel");
but how can I access the _currentframe's label name in action script code?
[HELP] Array Object Acess ..
Hi, is it possible to get from this arraypart:
code:
charParts[0]["scale"] = 100;
the objectname "scale" ? ..
Idont mean the number 100 .. i wnat to know if i can get the word "scale" back ..
thanx
Array Acess Problem
Hello, I have a sprite object which contains a textfield (t1).
I have saved that sprite into an array (cardArray).
How do I construct a trace statement to read the value of the textfield within the sprite, within the array.
I thought this would work, but alas:
trace(cardArray[0].t1)
thanks for any help.
Acess Of Undefined Property
I am getting this error, even though im not trying to give it a property.
Code:
/////////BODY COPY FOR FIRST LOAD
function loadHome(e:TweenEvent):void
{
var hometxt:HomeBodyText = new HomeBodyText();
addChild(hometxt);
hometxt.x = 410;
hometxt.y = 410
//hometxt.alpha = 0;
var homeTween:Tween = new Tween(hometxt, "alpha", Strong.easeOut, 0, 1, 15, false);
FirstHome = true;
}
//////////////////EVENT LISTENER FUNCTIONS
function goHome(e:MouseEvent):void
{
RemoveText();
addHome();
}
function goDirections(e:MouseEvent):void
{
trace("going Direcitons");
}
function goContact(e:MouseEvent):void
{
trace("going Contact");
}
//////REMOVE TEXT FROM PAGE
function RemoveText():void
{
if(FirstHome == true)
{
removeChild(hometxt);
}
if(IsHome == true)
{
//removeChild(hometxt2);
}
}
/////////ADD COPY FOR PAGES
function addHome():void
{
var hometxt2:HomeBodyText = new HomeBodyText();
addChild(hometxt2);
hometxt2.x = 410;
hometxt2.y = 410
//hometxt2.alpha = 0;
var homeTween2:Tween = new Tween(hometxt2, "alpha", Strong.easeOut, 0, 1, 15, false);
IsHome = true;
}
ok, here is whats happening. I have the first function "loadHome()" load the default text on the page when the SWF is first ran. Then, I have my button listeners. When i click a button, I want it to remove what ever text is on the page, and add the proper text. So I created functions that check to see what text is on, and to remove it. For some reason, When i compile the SWF, it highlights "removeChild(hometxt);" and "removeChild(hometxt2);" and gives me the error. Access of undefined property.
What property is it talking about???? Im trying to remove it, not access a property
LoadVariables From File And Acess Tehm In 1st Frame
Is there a way to load Variables from a file and then acess or manipulate their values still in the 1st (or at least second) Frame of the Movie? How is the syntax in the loaded file for defining all the variables?
2. LoadVariables From File And Acess Tehm In 1st Frame
Is there a way to load Variables from a file (AND MAKE SURE THAT THE FILE IS COMPLETELY LOADED) and then acess or manipulate their values still in the 1st (or at least second) Frame of the Movie? How is the syntax in the loaded file for defining all the variables?
Loaded Movie Acess Parent Variable
i have a main movie which loads 3 seperate swf movies
now i basically want to set some global variables like a url in a variable for example.
How do i set this up so that the loaded movie clips can access these variables too. so i dont have to rewrite these global variables in each swf that is loaded.
Anyhelp much appreciated
Acess A Timeline Frame In A External Loaded Dynamically SWF
Hi Guys.
Im having a problem and Ive beem searching and unfortunatelly havent found anything.
Im building a SWF loader to some others SWF inside a movie clip, dinamically.
I need to determine when the first swf has finished to load the second and so goes on but I couldnt find a way to even trace de current frame in the timeline of my external swf.
How can i determine the current frame in the timeline of a external swf?
Ive tried many ways like
evt.currentTarget.content.currentFrame
even with a enter frame event to check the current frame has not worked
Ive even build up a class to give the parameters to the main SWF but has not worked.
I need to compare the current frame with the total frame and when got the last frame, and the end of the animation, unload this first movie and load the second.
Sometimes i found error 1009, 1010 or even 1069.
I apreciate any help.
Tks
Q: Record Audio Via Flash?
Is it possible to somehow record audio from a microphone in Flash and then upload it to a folder? Any ideas on this? Thanks!
How To Record Sound In Flash?
I'm doing a game, there are three buttons, "play", "stop", and "record". I need to record sound first, then stop record and play the sound I just recorded at last. Please...please help me, how do I record sound in flash...
Thanks a lot.
[F8] Is There A Way To Record Sound Through Flash?
Hello Everyone
I have been working on a new feature for the message area of my website, and I want to create a voicemail feature. I have seen sites before that let users record audio through flash (youtube lets you do video and audio) - has anyone seen code that lets you do this?
I have been searching on Google, but "flash sound recorder" yields a ton of mp3 players and sound recorders.
Any guidance would be appreciated!
Mark
How To Record Sound Through Flash
Hellow every body
I am working on a project that needs record sound through flash media server. Allmost all the project work is completed leaving the sound work.
This project purely works on Media server .
Now I stuck at this points:
1.how to capture sound through our microphone by flash
2.how save it in server using flash media server.
If any body have any idea about the script please explain me how to work on this . Or tell me the links that anyone of you know because I searched but got nothing.
I have only 2days to work on it . Don't ignore me. reply any thing you know about this as fast as possible.
Video Record Using Flash ?
I'm try to record video using DScap.exe using flash interface...
Video Record using Handycam and Dscap.exe..
in DScap.exe, there is button to record and stop recording.
I try to make "record" and "stop record" in DSCap.exe can be access using flash, if possible record and stop record activate using keyboard,
example :
button 1 --> open dscap.exe and begin recording
button 2 --> stop recording
anybody can help me.
Thanks in Advance
Can I Record My Flash Movie Somehow?
Hi! I wonder if there are some plugin or some easy way to record a part of my flash movie and store it as an avi movie for example?
I want to make an trailer of my flash application and just show a part of it in a movie.
Is there an easy way to do it?
How To Record Sound In Flash?
I want to recode my voice and play it when I need.
Can I use the public class Microphone to get audio?
How to save the audio provisionally and play it?
Only use Flash without Media Server.
Just like this:
http://www.linese.com/model/Olympic/index.htm
It's a Chinese Language Study System.
我想用flash录音,用Microphone可以实现声音的获取,接下来怎样保存声音?可以直接存在FLASH里么?不使用服务器可以么?就像这个汉语教学网站一样:
http://www.linese.com/model/Olympic/index.htm
How To Record Flash Movie
Hi friends, I'm watching a clip which is in Flash. I'd like to record it or download it so i can turn it into .wmv or .mov or .avi - is there a way or program to do this? lets say i wanna record this http://abcnews.go.co..ayerIndex?id=1648336
its flash based...how do i do that?
Record Sounds From Flash?
Hi
I've been ordered a flash player and recorder. I won't have any problem with the player, but the recorder.... I've never done that before... so first of all, is it possible? anyone know how to do it? any ideas or tutorials to look at?
Thanks a lot
How To Record Sound With Flash
how to record sound when we run .swf. can send to me an example about how to record sound ini flash. can the answer send to my email herver8888@yahoo.ca. NOT .COM but .CA. Thks.
How To Record A Mp3 Sound In Flash
Hello ther,
I'm using Flash 8 and Flash media Server to save an audio from a mic to the server.
Actually the actionscript code is saving the recorded audio in flv format but i want it to be in mp3 format. Can some1 help me, part of the code is:
function doRecord(_file_name_loc:String) {
_file_name_loc = _file_name;
if (Record_btn.getLabel() == "Record") {
circle._xscale = circle._yscale = client_mic.activityLevel+20;
out_ns.attachAudio(client_mic);
out_ns.publish(_file_name_loc, "record");
Can You Record Movements With Flash
what i want to do is create explanations, when i move my mouse to for example start button, that there is a program who records this, it is easy to make manuals for clients
does anybody know such a program, is it possible to do it with flash or an other program
steven
Q: Record Audio Via Flash?
Is it possible to somehow record audio from a microphone in Flash and then upload it to a folder? Any ideas on this? Thanks!
Game Record In Flash
I'm developing a sudoku game in Flash, it'll be a time beating game, have to beat the sudoku within specific time limit, and I want to record all players time, I have a little concept on this but not quite sure where to start...please correct me if I'm wrong
1. when player hit sumit btn, Flash "sends" the record to PHP DB
2. (how?)then DB send records to Flash and show the most fast 10 player
well, I know it's not that simple...so please help me out...many thanks...
Php + Flash Mail LOG Record
Hi, I'm doing a project which requires send email through PHP and have those email record into a database...
I know how to send email through php part, but don't know how to record the log from it...please help, thanks~
MS Access Record Insertion Using Flash 5
I want to insert a record with the following 6 fields (all text) into an MS Access table:
- Username
- Password
- Email
- ICQ
- AOL_IM
- MSN_IM
For each field, I put a corresponding text field within my Flash stage. Also, each text field's Variable has the same name as the fields mentioned above (ie. The Variable for the Username text box is "Username" and so on).
I also have a create button with the following action code:
on (release) {
loadVariablesNum ("http://mybooks.no-ip.com/lammister/res_create_profile.asp", 0, "POST");
gotoAndPlay ("User Login", "Login1");
}
The script that it calls is the following:
res_create_profile.asp
-----
<!--#include file="Connections/DSN_LamMister.asp" -->
<%
Dim objConn
Set objConn = Server.CreateObject ("ADODB.Connection")
objConn.Open MM_DSN_LamMister_STRING
Dim strSQL
strSQL = "INSERT INTO Users (User_Name, Password, ICQ, AOL_IM, MSN_IM) VALUES ('" & Request.Form("User_Name") & "', '" & Request.Form("Password") & "', '" & Request.Form("ICQ") & "', '" & Request.Form("AOL_IM") & "', '" & Request.Form("MSN_IM") & "')"
objConn.Execute strSQL
objConn.Close
%>
-----
Essentially, the script takes the form variables sent by the create button and inserts it into the table. But when I click on the create button, it doesn't add to the table. Nothing shows up. Anyone know why?
Thanks
Record User Input With Flash Mx
I'm working on a project with a lot of buttons and i need to track all the action that the user made. Things like click on a button and it will send a variable to a text within my site. please pardon my english cuz its not my first language. Anything will be a big help. I know its gonna be very complex but please tell me how to go about and do it.
User To Record Sound With Flash
I am looking for some sort of solution where a web visitor can click a record button, record their own voice and then play it back to themselves again.
and it will save 2 server .... plz send me the solution ....
Flash Web Camera/microphone Record
Is there anyway to record a video or audio to a server , so that it can be selected from a list and payed back. The server has php and mysql if that helps. Has anyone got any ideas.
Record Music Compositing In Flash
Hello everyone,
I am doing a project on music. I plan to create a feature in the site to enable member to compose their music, record it and share with their friends online. I will have some graphics like musical instrument that when user click will have music rythm. For example there will be a guitar that will have guitar music looping when visitor press 'A' at the keyboard; drum press 'S' and so on. So, now I have no idea where to start as I am a beginner for flash. I want to create a actionscript that can record the music composed and save and than can send to friends. Could someone give an advice on this matter? I really really need help. Thank you in advance
cheers,
angeline
Record Audio Files From Flash
hi
Is there any chance to record voice from flash using microphone in run time and save this in a specified folder ?
Or i have to use any other tools with flash to get this ?
Plz help me
Thanks in advance
Program To Record Voice For Flash
Hey everyone,
Does anyone know about a program to use to record human speech onto a .wav or mp3 to use within a flash movie.
Im making a presentation for work and they would like to record speech on certain frames within the movie.
thanks in advance
Record Sound Throuh Flash
Hi,
I need to create some flash movie which will run as HTML. and movie will have a button called Record your Sound. by clicking that button it should open up the sound recorder which will record me through mick and play.
Can you guys help me. or some any other alternate way?
Large Record Sets And Flash
I was wondering if anyone has suggestions for how to handle big recordsets with flash remoting. First, would you suggest handling things client side or server side? I'm looking at doing recordset paging for a gallery, that I'd like to be scalable I guess the question is whether it is better to make one call and then parse it locally, or make a call to the server every time someone goes to a different page of the recordset. I'm looking to display 50 at a go.
And beyond that would anyone have a suggestion for handling the recordset extraction server side? I'm using ColdFusion, but I can't use the startrow attribute in the cfoutput element because the records are going to Flash. I can think of a way doing queries of queries, but it seems like that could get into even more calls to the database. My primary keys have gaps in their sequence so I can't just say get records with keys between 50-100 because that may not be 59 records.
Any thoughts?
Multiple Record Sets ASP To Flash
Hi guys!
I know how to display 1 record set from asp to flash but I get tuck when trying to display multiple record sets. Do i have to loop with action script? I really dont know. I am trying to make a news blog and pull news from the database into flash and organize it similar to this
Date -- Headline
Bla BLah BLah Blah
Posted by: Webmaster
---------------------------------------
Date -- Headline
Bla BLah BLah Blah
Posted by: Webmaster
---------------------------------------
And so on.....
Can anybody point me into the right direction or have any examples i can learn from?
Once again thanks for any input.
Jack
Record Music Composition In Flash
Hello everyone,
I am doing a project on music. I plan to create a feature in the site to enable member to compose their music, record it and share with their friends online. I will have some graphics like musical instrument that when user click will have music rythm. For example there will be a guitar that will have guitar music looping when visitor press 'A' at the keyboard; drum press 'S' and so on. So, now I have no idea where to start as I am a beginner for flash. I want to create a actionscript that can record the music composed and save and than can send to friends. Could someone give an advice on this matter? I really really need help. Thank you in advance
cheers,
angeline
Flash Remoting And Using The Record Sets
Hello everyone. I am new to the forums, but have been browsing Kirupa for a long time. I finally got to the point where I needed to ask a question since I could not locate a well formed answer to my dilemma.
Currently I am returning some data from Coldfusion using Flash Remoting.
Quote:
var proLines:Object = new Object;
var proColumnNames:Array = new Array();
var proNumbers:Number;
proLines = result.serverInfo.initialData;
proColumnNames = result.serverInfo.columnNames;
proNumbers = result.serverInfo.totalCount;
The idea is pretty simple. It is a Flash banner that dynamically pulls up promotional events for our company. All the data is being retrieved fine and I am working with it without a problem.
However I am calling the data in the format of proLines[currentPro][0]; where currentPro is used in a function as we cycle through the promotional entries. The [0] however is in reference to the data I have retrieved. It references the location of the promotional title.
The problem is that actually specifying the actual array location makes it so that if we end up changing the amount of records we return (perhaps we want to start displaying dates for certain promotions) these numbers change and will require the Flash to be re-edited to reflect the index changes.
I am wondering if there is a way I can take the result.serverInfo.columnNames and use it with the initialData that is also returned from AMF so that I can reference my columns with their names like "proTitle" or "proDescription" rather than hard-coding the array location.
Any help would be appreciated in any form. If you happen to have links to good examples or any insight into my problem it would wonderful.
-Dan
Multiple Record Sets ASP To Flash
Hi guys!
I know how to display 1 record set from asp to flash but I get tuck when trying to display multiple record sets. Do i have to loop with action script? I really dont know. I am trying to make a news blog and pull news from the database into flash and organize it similar to this
Date -- Headline
Bla BLah BLah Blah
Posted by: Webmaster
---------------------------------------
Date -- Headline
Bla BLah BLah Blah
Posted by: Webmaster
---------------------------------------
And so on.....
Can anybody point me into the right direction or have any examples i can learn from?
Once again thanks for any input.
Jack
Flash Remoting And Deleting SQL Record
I have built a Flash MX Remoting movie that accesses a MS SQL Database through CFMX. The movie shows a listbox of usernames, which when selected, then shows details of that user, i.e. username, password, and access level. I have been able to add and update users through the CFC file, but my delete function gets an error executing database query.
I have double-checked my actionscript and the Cold Fusion Component code, and verified the SQL User has permissions to delete from the table. I am completely out of ideas.
If you need to see the code, please e-mail me. This is for a corporate intranet and is high priority.
Thanks,
Jason Locashio
Plugin To Record Voiceovers For Flash?
I would like to record some voice overs for a flash site that I'm working on. Know of any good plug ins that are fairly intuitive and not too expensive?
How To Return A Database Record To Flash
I downloaded a flash login setup and have been trying to revise it to my specific needs.
I have the login function working in that when they enter a valid username and password, they are directed to the correct frame in flash.
What I want to do is for a specific field record from my Access database to be diplayed on that page. Let's say, I have a field called "PetName"
Right now, the coldfusion setup is set to give a thumbs up or down as far as access. Here is the code:
<cfsetting enablecfoutputonly="Yes">
<cfquery name="ClientLogin" datasource="DSN name setup here">
SELECT *
FROM Clients
WHERE Customer = '#form.usr#'
AND Secret = '#form.pw#'
</cfquery>
<cfoutput>
<cfif #ClientLogin.recordcount# is '1'>
&CFresponse1=ok&
<cfelseif #ClientLogin.recordcount# is '0'>
&CFresponse1=bad&
</cfif>
</cfoutput>
What would I need to add to this code for it to send the data from the field "PetName" along with the ok or bad response?
Also, from within flash, what code would I need to display that record? Something to this affect:
loadVariables("f22clientlogin.cfm", _root.form);
Name = _root.form.PetName;
This flash is setup so that on the root level, various movieclips are loaded throughout the process, hence the root level references.
Thanks,
Dave
Record Sound From Flash Webpage
Hi,
Not sure if I am in the right forum, if not please point me in the right direction.
I'm looking at developing a webpage using flash content and want my users to be able to click on a button and record their voices. The voice file would then be stored on my server for future playback.
What do I need to be able to do this?
I would like it to work on both Windows and Mac and do not want users to have to install any plugins/software if possible. Can it all be done on my server?
Thank you.
|