all groups > flash actionscript > august 2007 > threads for thursday august 23
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
AS3: position external swf
Posted by CipiClaudiu at 8/23/2007 11:43:06 PM
this is the code I'm using
var request:URLRequest = new
URLRequest("http://www.[yourdomain].com/externalSwf.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);[b]Text[/b]
It works, but I don't know how to position the external swf in a specific place
I... more >>
Force movie to loop while dense code executes
Posted by adam NO[at]SPAM blueapplestudio at 8/23/2007 9:16:24 PM
Below is a simplified version of my problem.
Imagine a span of 42 frame. On frame 1, I have a button that plays the
timeline and a stop command. If the user clicks Play, the timeline advances.
On frame 2 there is an embedded Quicktime movie that spans 40 frames, and some
code that does ... more >>
Can I change the registration point of a movie clip?
Posted by amir.saad at 8/23/2007 9:12:45 PM
I'm loading a movie clip dynamically and its registration point defaults to top-left corner. I need to change it to the center, is this possible? if so, how?
Thank you... more >>
Get _txt name
Posted by sbryner at 8/23/2007 8:11:45 PM
Hey all,
How do I get the name of a _txt or _mc that I drag an MC over?
I can drag a_mc to b_txt and when it does I want to store b_txt's name into a
variable getMcName()
That way if i drag a_mc over c_txt it would store that name instead.
I think I have to use .hitTest but not sur... more >>
Preload External Jpgs
Posted by 805collective at 8/23/2007 7:37:38 PM
What is the easiest way to preload external jpgs? The client wants to update
these frequently so they should be external, but I want them to show up
instantly like the rest of the site once the preloading is done.
Any advice? I had thought about loading them into the preloader (at 0%
alp... more >>
Chnage Frame Rate Dynamically
Posted by shurleynova at 8/23/2007 7:32:36 PM
Want to know if this is even possible I cant seem to find anything on this. Is
it possible to have a button that increases or decreases the frame rate? Is
there an action that controls frame rate? Or once it is set in the movie
properties it is set?
... more >>
pop-up html window with standar dimentions
Posted by g_t_giannis at 8/23/2007 7:17:58 PM
Hi everybody,
i have this problem i know how i can open a deferent html page inside flash.
i create a button and the script looks like this:
on (release) {
getURL("test.html", "_blank");
}
my problem is if i want to open the html page like pop-up window with
lock dimantions for e... more >>
'MouseEvent' could not be loaded.
Posted by cielloboy at 8/23/2007 6:53:46 PM
I'm trying to get a flash movie to redirect on a click. I used the sample code
below:
inv_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.deseloper.com/gnome"));
trace("You cli... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
button not working on Mac but works on PC
Posted by dpaultaylor at 8/23/2007 5:02:33 PM
Hi
I have a movieclip on a timeline that acts as a button. It works fine on the
PC but doesnt on a Mac. In frame one of the timeline I have the following code
:-
reveal_mc.addEventListener(MouseEvent.CLICK,revealhandler);
function revealhandler(event:MouseEvent):void {
firstcar... more >>
startDrag Questions
Posted by greggyd at 8/23/2007 4:00:45 PM
Hey party people.
I'm working on a project that involves interactive maps. The idea is to have a
single flash file that opens with a map of a city. Within this city map there
are invisible buttons on certain areas that, when clicked on, show a more
detailed map of that specific area. Withi... more >>
Link Actionscript
Posted by jlyndseyking at 8/23/2007 3:27:33 PM
For example, right now my links (in Flash 5) have the following actionscript
(an example):
on(release){
getURL("http://www.google.com", "_blank");
}
I know the "_blank" part opens a separate window. I know that replacing this
with "_self" takes you from the current page to a new one ... more >>
JSFL
Posted by dzedward at 8/23/2007 2:35:14 PM
anyone know of something that will run through your document and tell you if
there are any onEnterFrame that haven't been deleted or setInterval that
haven't been cleared? and possibly where they are.?..
... more >>
onCuePoint Structure
Posted by yevri at 8/23/2007 2:22:52 PM
I'm confused with how onCuePoint works. I've read the help files but still am
not sure how to construct this. Here's what I want to do:
FLV file in FLV Playback Component. I have cuepoints in the FLV. I have a
movieClip instance called "slides" that is stopped on the first frame. When the
... more >>
Listener - Hyperlink Later
Posted by Toe Cutter at 8/23/2007 12:45:20 PM
Hi there,
I have an action script that listens for an FLV to finish
and then make a white square appear 100% visible.
The problem is, the movieclip white square is still clickable
when it is not visible on the layer above the FLV.
How do I reveal/activate a layer in this case?
Perhaps I ... more >>
SoundMixer.computeSpectrum () can't work
Posted by FandLR at 8/23/2007 5:56:49 AM
e.g,there are two independed and noninteract swf file in different domain,all
of them call the method SoundMixer.computeSpectrum () ,
1.if opening them in different brower instances, the method
SoundMixer.computeSpectrum () worked correctly.
2. if opening them in the same brower but differ... more >>
Will this work online?
Posted by J.Rocker at 8/23/2007 4:54:27 AM
var View14 = new Loader();
addChild(View14);
View14.load(new URLRequest("media/PortfolioPORT.swf"));
the SWF i'm loading is called PortfolioPORT and it's in a folder named media.
I'm trying to load it into a movieclip named View14, but i'm not sure what did
what so i named the variable v... more >>
Remove the keylistener
Posted by lokat at 8/23/2007 4:32:10 AM
I created a keyListener object and addListener for the object.onKeyDown in
frame 1 only. Also, a button is setFocus once press "Tab" key in frame 1. When
pressed "Enter" key, it will go to frame 2.
However, when press "Enter" or "Tab", there still have some actions like go to
next frame o... more >>
loadMovie/unloadMovie question
Posted by xenoyoke at 8/23/2007 4:21:53 AM
:confused;
I am loading two different media types on relase of two different buttons into
same flv_player. Loading the image I use loadMovie, and for loading the .flv I
am using a different method. Having unloadMovie in the button that is loading
the flv movie prevents that instance from... more >>
loading external jpegs
Posted by jonnybennett at 8/23/2007 3:23:27 AM
I have a page that loads external jpegs... however it seems totake longer to
retireve and display/load the images going through flash than it does if i were
to display them as html...why is this... or am I just wrong. thanks J.
... more >>
Using setInterval instead of onEnterFrame
Posted by fwitt at 8/23/2007 2:45:59 AM
How could I use setInterval instead of onEnterFrame in this case?
The original:
this.onEnterFrame = function() {
trace(titles[this._name]);
}
What I would like:
titleInterval = setInterval( function(){ trace(titles[this._name]); }, 100 );
Obviously the way I'm using the inte... more >>
AS 2:stopping blur after a few secs
Posted by Vee at 8/23/2007 2:25:21 AM
Whats the proper way to stop a filter (blur) after a couple of seconds. WHats
the syntax? do you use the continueTo method? I've attached my code so far.
import flash.filters.BlurFilter;
var myBlur:BlurFilter = new BlurFilter(10, 0, 3);
my_btn..onPress = function() {
tour_mc.filters = [... more >>
Loading Random .SWF for my site!!!!
Posted by amaurisstudio at 8/23/2007 12:46:33 AM
i'm on this since november last year... i thing that can't be done... so this
is the last post i'll write on any site... i need to load a random .swf, but
this is the dificult part... i whant to put the script at the last frame of
every banner... cuz... the banners will be differents... and i ... more >>
dynamic text color
Posted by Clukey at 8/23/2007 12:00:00 AM
I am trying to use an xml document to dynamically load the text color into my
movie, and i can get the color, but when I try to use that value to change the
text color, it doesn't do anything, how can I get this to work?
Thanks
This is my code:
var txtColor:Number = XPathAPI.sele... more >>
Any way to *cancel* a Mouse or Key event with ActionScript 2?
Posted by William0275 at 8/23/2007 12:00:00 AM
Hello,
I know it's possible with ActionScript 3, but was wondering if it were
possible with [b]ActionScript 2[/b]. I would like to be able to trap a Mouse or
Keyboard event so that the event is not propagated to the underlying control,
as if the actual mouse click or key stroke never happe... more >>
dynamic text
Posted by _name at 8/23/2007 12:00:00 AM
is it possible to import external text into a dynamic text box so that the text
box will expand vertically to accommodate the imported text? every time i
import text into a dynamic text box, text will appear "cut off" if the height
of the dynamic text box is too short to display all my text.
... more >>
movie clip over another movie clip
Posted by georgi_aba at 8/23/2007 12:00:00 AM
Hello
I have a problem. I have a movie clip with buttons, one of the buttons starts
a second movie clip over the first, but the second movie clip is transparent
(70%) so you can see the firs movie clip. Thats the effect I want to achieve,
but the problem is that the buttons from the firs m... more >>
Scrolling a Movie Clip?
Posted by Wissler at 8/23/2007 12:00:00 AM
I've created a scrolling Movie Clip using a mask and used a smooth scroll
method to move that Movie Clip up and down from the mask.
However my problem is that there is no height restriction for the scrolling.
Meaning when you click either the up arrow or down arrow the movie clip will
scro... more >>
|