i have a comboBox that has a defined fontSize for the choices inside which is 10, (myComboBox.fontSize = 10. How can i change the initial value, label I'm guessing, to be a fontSize of 10 as well?
This is in AS2 and should really be quite simple. I have a populated list box control that may or may not have an item selected. When the user enters some data in one of the data fields on the screen and then moves to another field, a database access is performed which returns some data which is used to populate other fields on the screen.
As part of this the item in the list box is selected based upon a code returned from the database. All so well and good. However, I cannot get the list box to move it's 'display window' to the position of the selected item. Ie I want the selected item to become the first item displayed in the list box. (Note: NOT the first item of the list box...
I'm attempting to draw a text box on the screen. If I assign width and height to any value, as in the code below, I don't see anything drawn. Why is this? What is the use of width and height? Adobe's docs say it's the width/height of the sprite in pixels. Why would that occlude or prevent the drawing of a textbox or another box? I assumed the width/height would set the area that this sprite could be drawn upon, but based on this, I'm probably wrong.
I have two movieclips in the centre of my stage. One is on top of the other and fade's between them using left/right buttons.I want to change this so that they slide in like a jQuery slider does. I don't want to change the initial position of the movieclips (on top of each other) just change the fade effect to a slide in.
I have two movieclips on the stage mc1 and mc2,the navigation for mc2 and mc1 is in mc1 as as3 and MovieClips suddenly now that I've added some tabs into mc2 (new layer, no instance names yet) the navigation code in mc1 has stopped working,if I change the initial stop command to a later frame in mc1 I can navigate back to the first frame and then to one other place in the menu but after moving away from the first frame I can't seem to get any of the buttons to work, its only if the stop command is on a later page that those buttons will workon the main timeline i'm using;
I can't seem to find a way to get more than the initial set of 4 stage3Ds provided by flash. I have tried instantiating a new one using it's constructor and then adding it to the stage by simply pushing it to the list stage.stage3Ds.push(new Stage3D());
but this doesn't seem to be working as my eventListener for the Event.CONTEXT3D_CREATE is never called (it is if I use one of the default Stage3Ds. workaround or a way to accomplish this?
I have developed some code whereby the positions of objects on the screen are represented by two values and I store all this data in three arrays like so:
Code: objectName = new Array('flower','boxy','fleawhale','vampirefish','littlefishies'); initialXoffset = new Array('24','83','14','50','40'); initialYoffset = new Array('100,-170','10,50','20,100','50','-200');
I'm using FLVPlayback to display a flv in a swf embedded in html. Autoplay = false, wmode = transparent / windowless. I've got it working (not yet set up the way I'd like, but that's another issue), but the way the flv displays when the page loads is a problem. The controls skin is clearly visible, but the movie frame displays as a white box on a white page, barely visible except for a faint outline.
I guess the white screen simply represents the first frame of the flv. Ideally I'd like to see either a black box or the first frame with meaningful content. Is there any way (say with ActionScript) to advance and stop the flv to a particular frame? Or is there some other way to not see a white box here?
See attached screen grab detail. If it helps, here's my html.
I would like to add a code that would add an initial call to the function myFunction, but because it is listening for a MouseEvent, it has to wait until a MouseEvent happens (CLICK)
I thought that I could add a parameter to a function call like this:
Code: myFunction(e:Event, buttons[0]); but that did not work.
If I have a textfield instanciated from the document class with a base .string set as for example "4444" and BEFORE adding it to stage, I change the .string value to say "1234", when I test the swf, I can see the 4444 for a very short time changing for the 1234.I didn't change the value after adding to stage so I don't get why the display number is changed after being added to display.How to force it to add to stage (display itself) only once the initial changes to his properties are done?
I've set-up a menu using the actionscript below tracking bt up / down states (credit - thanx Barn:[URL]..
But I'd like to adapt the script to have the home button (mvcBtn0) initially set by default to the down state - and then revert to the up state as soon as another button is pressed.
I've tried various adaptions sending the clip to down state on load and then the up state once another button is clicked - but none are working.
...How do you do this? I'm gunning for <65 kb and need to figure out if my published swf will meet this goal. Is there a window or something (maybe a 3rd party tool) to let me know what the initial download size of my swf is?
I have a few inputFields on the stage and I would like to give them an initial value, I know I can put that value directly to the inputField the problem is that this value may change depending on some conditions. how to give an initial value to a inputTextField?
Okay maybe its because I've been working on this all day and can't think straight any longer but this seems like it should be really obvious and I'm getting frustrated that I can't think of how to do it.I have a movie clip sitting just off stage. When the file is first launched I want to record the x position of this movie clip in a variables, say startX. When a button is pressed (and there are several of these) I am using Voetsoejba's easing code (brilliant) twice, once to move an MC just in the x direction (easeX):(on the main timeline, whre movetxt and content are the two MCs)
I want to load an initial component to be displayed in my flex app, depending on whether a value in the SharedObject is set (first launch). How do I accomplish that?
I have created a simple audio player to play continuously even if the page is refresh it will play continuously.This is my code to store audio position in flash Temp memory
MyProblem,When the player starts the sndPosition is null, so it was not playing. If I set some value, when I am refreshing it will not continue from the last position. How can I set the initial position to play from the start?
I want to design an object for loading and showing customized data, for example, the object firstly loads all employees in database, then look up whether login user in the list, if so then show the login user, otherwise show dummy data "all employees"(means null). But another scenario is the component should "remember" last time user selected data and show in another page,
i am doing a photo album type site where all photos (which are movie clips) appear small and when clicked they enlarge. when the enlarged photos are clicked the movie clip continues and they go small again.
as you'll see from the code below i am doing this by basically saying if the photo is small, play the movie clip from frame 2 which enlarges it until a stop value at 30, and then change the variable value. if the photo is large and then it is clicked play the movie clip from 31 to a stop action at the end and then change the variable value.
everything is working fine except i am not receiving the initial value of the variable "picbtn_position" which is set on the main timeline to value "mainscreen". can anyone help me as to what is going wrong here? maybe i have to do something else to get a variable value from the main timeline to the mc.
here is the code on my movie clip:
on (release) { if (picbtn_position == "mainscreen") { trace(picbtn_position); gotoAndPlay(2);
[Code]....
and here is the code on my main timeline for the initial variable value:
I am using a preloader in my movie. Say when 60% of the movie gets loaded, Is it possible to play the initial 60% while downloading the remaining 40% of the movie in the background.
I have made a dynamic picture album with the following code:
[Code]...
mainPicContainer.loadMovie("portfolio/pic0.jpg"); The problem I have is that the preloader isn't working for the initial picture (code in red) because i'm calling it outside the function, but when I place it inside the function, it isn't loading at all. What should I change in my code to make the preloader also work for the initial picture?
My FM is embedded in the HTML-file startmovie.html?var1=bla&var2=nr .
How can I load these two variables var1 and var2 into variables in my Flash Movie?
I know how to send and load vars from PHP-scripts but the Movie is allready running at that time. Now I want to start the movie (through the HTML-page) and get the arguments from the URL that contains the FM.
My FM is embedded in the HTML-file startmovie.html?var1=bla&var2=nr .How can I load these two variables var1 and var2 into variables in my Flash Movie?I know how to send and load vars from PHP-scripts but the Movie is allready running at that time. Now I want to start the movie (through the HTML-page) and get the arguments from the URL that contains the FM.
I am wanting this to improve the initial download speed of the page. I have already added a Poster Frame to video's, however it still seems to be loading the video file and just autoplaying. Is there a way to NOT load the video file until the person hits play? This is the AS3 script I used...
import fl.video.VideoEvent; myPoster.addEventListener(MouseEvent.CLICK, playMovie); function showPosterFrame(event:Event):void { myPoster.visible = true;} function hidePosterFrame(event:Event):void { myPoster.visible = false;} function playMovie(event:MouseEvent):void { myVideo.play();}
I have a if statement that first checks to see if the enter key is pressed. Although i cant figure out how to to nest futher statements with in that initial statement. At the moment I'm checking for an enter keypress like so:if (Key.isDown(Key.ENTER))I suppose immediately after i want the script to see if a a textboxes variable is empty or not.IF its empty run x code.IF it has content run y code.Seems straight forward enough but i cant seem to figure out how to nest them under the first Enter key IF check.
When I use the play option under "control" menu every thing runs perfectly. When I try to test movie under control menu, play as exported .swf, or debug movie, etc. the animation is stuck at the initial screen.
I have a Flash animation that loads a quick animation and then on a button click loads and external swf while at the same time moves the playhead on the timeline to frame 2 so that it has a blank stage to play on. The external swf then loads and plays. At the end of the external swf's animation I would like it to unload and then return to frame one of the containing movie. I am assuming that on the last frame of the external swf I should be putting some actionscript that will unload the movie and then talk to the initial containing flash telling it to return to frame 1.
The main swf button that loads the external swf is using a code snippet from the AS3 CS5 library and looks like this...
[Code]....
It is also using gotoAndStop(2); for the same button.
So to unload the external swf and return would I use something like... this.unload(gotoAndStop(1));