all groups > flash actionscript > october 2005 > threads for tuesday october 11
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Set browser window size using getURL
Posted by dgrant at 10/11/2005 11:20:43 PM
How can you set the window size and other attibutes of a new blank window using
the getURL method?
I am using the following basic code:
on (release) {
getURL(http://www.myURL.com, "_blank");
}
Is there an ActionScript method that allows you to insert width and height
variables ... more >>
Program Flow / Variable Assignment Gone Crazy
Posted by cjreynolds at 10/11/2005 10:52:08 PM
I'm writing a game - a space ship dodging asteroids. The ship and asteroid are
movie clips. I randomly scale and then randomly move four instances of asteroid
across the screen toward the ship, and use a hit test in the asteroid clip to
detect collision with the ship.
I have a variable ca... more >>
Coding for Contact forms
Posted by eclipse_79 at 10/11/2005 10:26:04 PM
I'm looking for any help that could be provided.
I have currently set up a webpage for a new start up company. I created a
contact form with 3 fields for the user to insert text. The three fields are
their name, their email address, and their message. I have created two buttons
"reset" an... more >>
loadMovie() & Globals
Posted by bderber at 10/11/2005 9:46:58 PM
My loaded .swf (with loadMovie()) has action script that calls upon previously
creates _global.var. It appears not to se this. When I change the _global var
to a regularly declared var (so it is now on the _root or _level0 timeline - no
problem. The threads all say - global variables and a ... more >>
loading a database
Posted by steve_st at 10/11/2005 9:38:47 PM
hi there
i have been asked to create a flash file that loads a database of different
addresses into a text box when the user clicks on a map of the UK. If, for
instance, the user clicks on the south of england, the database only shows the
addresses in the south of england (i will be suppli... more >>
Radio buttons and IF statements
Posted by Name.12.2 at 10/11/2005 9:03:27 PM
Hi
I'm trying to create an IF statement that looks to see if a radio button is
selected, and if it is - move on. I want to do this using a button.
It's set up like a question e.g. what comes after A in alphabet?
possible answers - B, D, I, K (each answer presented as radio button)
... more >>
XML and keeping white space for writing out
Posted by apodkolinska at 10/11/2005 9:02:30 PM
Hello Everyone.
I am right now working on a project that reads in an XML file - alters it in
some way and then writes out the altered content. But i have run into the
problem that when i read in the file i set ignoreWhite = true and then write
that file out - my file comes out in one line.... more >>
LoadMovie Script Issue
Posted by Christopher Orbit at 10/11/2005 8:59:52 PM
loadMovie([videoList.getItemAt(videoList.selectedIndex).data], "this.jp");
Can anyone tell me why this script isn't working? If I trace
"(videoList.getItemAt(videoList.selectedIndex).data) it comes back with the
desired URL for the movie I want to load. The load location I know to be valid ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
New security in flash 8
Posted by Phookajoe at 10/11/2005 8:46:43 PM
How do you get a offline projector application to load content from the same
folder. That is how is it possible without publishing in flash mx 2004.
I am trying to simply load a FLV into one of the new video components. using
the swf it loads just fine. Using the exe (because not all users ... more >>
Fading a Movie Clip Using Code
Posted by BillG-Chicago at 10/11/2005 8:19:32 PM
What is the most efficient way to fade out a movie clip using code? In other
words, I want to use code to decrease the alpha setting of myMovieClip over 20
frames until it reaches zero. Any pointers would be much appreciated.
Bill
... more >>
contact form help
Posted by aesthetix at 10/11/2005 8:10:35 PM
hi guys, i'm trying to work out a contact form for flash
these are the fields in my 'contact' section:
Name:
Email:
Website(Optional):
Message:
i've been looking at a couple of tutorials on working with php, but i don't
really get them..
can anyone help?
... more >>
How to unload a created movie?
Posted by Chris Goodiel at 10/11/2005 8:06:07 PM
I have a script that creates a movie then loads a movie into it. I have a
button in that movie that I want to unload the created movie. My tries have
been failures any help woudl be greatly appreciated.
Here is the code I used to create the movies :
on (release) {
this.createEmptyMov... more >>
Popup Window
Posted by Rob_jones732000 at 10/11/2005 7:08:27 PM
Hi
What actionscript do i put on a button in flash to make a new window open up
in the browser? The button is in a window that is already a popup and i want
several different popups coming from this window.
Goto www.iso-land.com/interactive.html and press the play the game button,
that... more >>
Text string Problem
Posted by Christopher Orbit at 10/11/2005 6:58:45 PM
Is ther a way to evaluate the last character of a text feild?
I need to control the script to react differently to vairous file extensions
and reading the last letter of the linkage string and evaluating the value
seems to be a good way to do it, but I don't know if it can be done.
... more >>
Play once?
Posted by deboriole at 10/11/2005 6:15:37 PM
I am a total newb so please bear with me. I have a client who wants a flash
file to play upon entry to their site but not any other time. If someone clicks
to another page and then back to the homepage, they don't want it to play. Can
someone help me with the param I need? I tried <param n... more >>
Problem Formatting text
Posted by pjlumby at 10/11/2005 6:06:54 PM
I am trying to create a text ticker that will display different messages at
different stages of a movie. At the moment I am just testing fonts etc. so I
have created a new format, created a string, created a TextField, assigned the
string as the text of the text field and then apply the format... more >>
Movie loading with flash 6.o
Posted by cj911 at 10/11/2005 5:54:58 PM
Can anyone tell me why this code won't work publishing under flash 6.0 and
what the correct code might be. I'd like the video to open in a new window and
be the correct size.
on (Reslease) {
GetURL("npvideo.html", "_blank");
}
Much appreciated!
... more >>
For ... in Problems
Posted by sowiebinich at 10/11/2005 5:48:37 PM
In my .as file, I have:
function onPress()
{
for (element in this._parent)
{
if (this._parent[element] != this)
{
if (expanded)
{
this._parent[element]._visible = true;
}
else
{
this._parent[element]._visible = false;
}
... more >>
Loading a website after Intro
Posted by mkochan720 at 10/11/2005 5:47:38 PM
I have created a Flash animation as a short intro to my mini site. What script
do I put at the end of it to load a different page? I have it set up in HTML
but I want it to access another file in the same folder. I am working on a
Media Kit and I want it to run independantly from the web. All ... more >>
new browser opens when using loadvars and php
Posted by Rob Cruise at 10/11/2005 5:47:30 PM
Hi,
I have a little nagging problem when using loadVars to write data to a text
file using PHP. It seems (flashplayer?) is opening a new browser when the php
script runs. Is there any way to get rid of this? I've seen this problem in
other forums with no results that work for me.
... more >>
Handling Collision Detection
Posted by cjreynolds at 10/11/2005 5:42:04 PM
I'm writing a game - a space ship dodging asteroids. The ship and asteroid are
movie clips. I randomly scale and then randomly move four instances of asteroid
across the screen toward the ship, and use a hit test in the asteroid clip to
detect collision with the ship.
I'm trying to count ... more >>
onMouseWheel Controlling browser scroll?
Posted by Aware at 10/11/2005 1:02:06 PM
How can I set the browser to scroll if the flash movie has "focus" within the
browser. Meaning I have clicked within the flash movie now the scroll wheel
only interacts with the flash movie and not the actually browser scrollbar. My
RIA is of varing Stage Height based on which section of the a... more >>
vertical newsticker
Posted by Heinrich at 10/11/2005 12:38:34 PM
Hi,
I'm looking for a vertical newsticker with xml. Anyone some ?
thanks
... more >>
Audio Control
Posted by B Yates at 10/11/2005 12:01:56 PM
Hi Guys,
I am having some problems controlling the sound in my movie. The movie is a
presentation to be given to a group of children, with an introduction featuring
music.
The movie starts, and plays the opening scene for 140 frames with sound. Then
the movie stops, and requires the us... more >>
setFocus()
Posted by New Lingoist at 10/11/2005 10:17:39 AM
Has anyone ever managed to actually remove the focus from a text field?
var mListener = new Object();
mListener.onMouseUp = function(){
Selection.setFocus("null");
Selection.setFocus(null);
Selection.setFocus();
Selection.setFocus("another_txt");
}
Mouse.addListene... more >>
print problems
Posted by moskito_pt at 10/11/2005 9:45:04 AM
print problems or not?
Hi,
I have a movie with some MC and i want print all MC's at same time, i use this
code:
on (release) {
print("_rootMC1", "bframe");
print("_rootMC2", "bframe");
print("_rootMC3", "bframe");
}
and i dont have any problem work fine, but ... always a but... more >>
Top One
Posted by redhot23elmo at 10/11/2005 9:36:49 AM
Hi,
Im trying to load a movie into a movie and that works fine with me but when I
try to load a xml file to a textarea comp. in the second movie it doesn't show
the text,only the picture is loaded can anybody help me pls pls pls pls pls
thanks in advance for thoes who will help me!
... more >>
Automatic update of datagrid
Posted by phil ashby at 10/11/2005 9:28:59 AM
Hi all, got this code
_global.sr_array.sortOn("persname")
sr_dg.setDataProvider(_global.sr_array);
sr_dg.removeAllColumns();
sr_dg.columnNames=["persname"];
sr_dg.showHeaders = false
which populates a datagrid sr_dg. If I push new data into _global.sr_array I
want the datagrid to... more >>
Problem with Key & Mouse in AS 1.0
Posted by GrEnDeL_ccl at 10/11/2005 8:33:04 AM
I'm writing a program in Macromedia Flash MX Professional 2004, but I need the
code run with Actionscript 1.0, so I go to the main clip and click in
"Configuration..." in the property panel. Then I select Actionscript 1.0 and
Flash Player 6.
Problems come when I try to use some functions a... more >>
help me understand this please
Posted by fermer at 10/11/2005 8:20:50 AM
I wrote:
everytime I dynamically create a textField from the main timeline and fill it
with data from xml and then use html text to make it into a url it masks the
movieClip it's sitting on and keeps that clip from seeing my mouseOver. Have
tried several work arounds to no avail including cr... more >>
thumbnails for gallery
Posted by aesthetix at 10/11/2005 12:00:00 AM
hi guys,
i have 110 thumbnails which i wanna put them under my 'gallery' section, is there are shorter way of putting them up, instead of the 'manual' way by putting them up one by one?... more >>
Flash clock
Posted by AESS1981 at 10/11/2005 12:00:00 AM
I am using a flash clock movie clip which uses the Actionscipt:
time=new Date();
var seconds = time.getSeconds()
var minutes = time.getMinutes()
var hours = time.getHours()
if (hours<12) {
ampm = "am";
}
else{
ampm = "pm";
}
while(hours >12){
hours = hours - 12;
}
if(h... more >>
Actionscript for a submit button
Posted by dadofgage at 10/11/2005 12:00:00 AM
Here is what I have done:
- using flash mx 2004
- create submit button by clicking on 'Button' in Components panel and drag to
the stage
- on the components inspector, change the label to 'Submit'
- nothing has been changed on the 'Schema' tab on the component inspector
- making sure t... more >>
Valid but incomplete HTML tags in Flash
Posted by maulia at 10/11/2005 12:00:00 AM
an HTML text in Flash (or maybe in general) can have:
<FONT FACE="Arial" Size="27" COLOR="#000000"> This is 27 pixel size <FONT
SIZE="44"> but this is 44</FONT> and 27 again </FONT>
What I would like is something complete like:
<FONT FACE="Arial" Size="27" COLOR="#000000"> This is 27 pixel... more >>
Having a problem looping and checking a true/false statement
Posted by sampurtill at 10/11/2005 12:00:00 AM
This is killing me. I have a mc that I want to be moving around in the
background following the _xmouse, but when you mouseover a menu header, I want
that moving background to stop. This is the code so far that I've come up with
that works. I want to make it loop because I am going to build it... more >>
slow preloaders - please help
Posted by Westie at 10/11/2005 12:00:00 AM
Hi,
I have been having loads of problems with a simple pre-loader to load
(relatively) small flash movies - when viewed live the preloader is very slow
and takes a long time to even appear.
Here is the actionscript I am using, placed on an instance of a movie clip
with a dynamic text f... more >>
Need help toggling movie clips
Posted by doc383 at 10/11/2005 12:00:00 AM
Hi...I'm new to actionscripting and am having trouble controlling movie clips
from the main timeline.
I have a series of 47 movie clips in the main timeline with instance names of
"clip 1, clip2, clip3"...etc
I have a button instance which I've assigned the following script...
on(rel... more >>
how can I avoid the dynamci textField Blues
Posted by fermer at 10/11/2005 12:00:00 AM
everytime I dynamically create a textField from the main timeline and fill it
with data from xml and then use html text to make it into a url it masks the
movieClip it's sitting on and keeps that clip from seeing my mouseOver. Have
tried several work arounds to no avail including creating a ... more >>
MovieClip Action not behaving
Posted by thor-zilla-speilberg at 10/11/2005 12:00:00 AM
I've created a movie clip on frame 1 of my timeline. On frame 1 of the
timeline, I've attached stop so that the movieclip can play through. Now, at
the end of the movieclip (last frame) I am trying to attach an actionscript
that will direct Flash to go to frame 10 of the main timeline and play... more >>
loadClip buggy
Posted by kko_k at 10/11/2005 12:00:00 AM
Hey again guys.
I've recently changed my loadMovies to loadClips, and it works for half of my
external swfs and jpegs that i load into gallery, but for some reason it
doesn't like to load some of them...
I'm sure my path is correct, since if i change the loadClip to getURL, it
opens the ... more >>
TreeMenu Component Btn. Controll
Posted by mukraker at 10/11/2005 12:00:00 AM
hi,
i am using
var menu_tree:mx.controls.Tree;
to enable keyboard support for my TreeMenu.
All in all my Flash Movie is something similar to a Powerpoint Presentation. I
have some <slides> in different <directories>
I need button function to jump to the first | prev | next | ... more >>
Clock solution
Posted by AESS1981 at 10/11/2005 12:00:00 AM
I have a clock running on my site.
I require a movie to be called and loaded onto the stage every hour. For
example, when clock displays 17:00:00, '17.swf' will load on the stage, when
clock displays 18:00:00, '18.swf' will load onto stage etc...
I have been unsucessful in my previous atte... more >>
flv
Posted by jamilanait at 10/11/2005 12:00:00 AM
can anyone advise on streamming flvs into a fla im having problems when it come
to publishing the fla...it seems it cant find the flv....works ok in testing
when using the media component....much appreciated jamil
... more >>
Cant access this._x
Posted by bobbysojitra at 10/11/2005 12:00:00 AM
Hi guys..
This works :
trace (this._x);
function myFunction() {
do some stuff...
}
This DOESNT work (traces "undefined") :
function myFunction() {
trace (this._x);
do some stuff...
}
note, i am calling this function on an interval..
any ideas?! cheers ... more >>
Linking to a named frame in a movie clip from a button outside of the current movie clip.
Posted by Alexzander07 at 10/11/2005 12:00:00 AM
Okay, here is the situation:
I have this movie clip: Content_mc which contains a bunch of named frames for
me to link to them to change Content_mc from buttons. Well, when I proceeded
to make slideout buttons on the original buttons, I made the originals movie
clips and had the slideouts ... more >>
fill screen
Posted by howge at 10/11/2005 12:00:00 AM
Hi,
I'm looking for some help with flash.
The technique I am trying to work out can be found at www.alexandermcqueen.com
I cannot get the gradient to fill the screen and have my main movie to stay in
the center of the screen at the same time.
Any ideas?
... more >>
UIScrollBar sometimes works
Posted by kww5 at 10/11/2005 12:00:00 AM
Hello.
I have a dynamic text box that loads html text from a text file. This part
works okay. I'm using UIScrollBar with the text box. When I open the html
page, the swf loads but there is only an empty white scroll bar. If I go to
another named keyframe, and then back to the named keyfr... more >>
|