ActionScript 2.0 :: Externaly Set Image's Visibility?
Dec 14, 2009I have made a banner in which i want to load an image but i want to control it's visibility via xml. want to be able to show or hide this image whenever i want to .
View 4 RepliesI have made a banner in which i want to load an image but i want to control it's visibility via xml. want to be able to show or hide this image whenever i want to .
View 4 RepliesI have created a timeline with visibility button against each column. The timeline.swf is loaded into two empty movieclips to create a two-screen operation. Everything works fine except, I cannot for the life of me get the visibility button on the first swf to affect the visibility for the column on the second swf.
[Code]...
I'm dragging a movieclip that has the visibility set to false. I can trace the x and y of the clip and it is definitely where the mouse is. However, when I toggle the visibility to true, occassionaly it flashes on at the last location it was visible, just for a brief instance, before teleporting to the mouse location.
View 2 RepliesI have swc library, which I use for skin assets, and I link this swc externaly (load on runtime before any usage of swc classes and put it into proper application domain).The problem occure when I use swc classes in my application as base classes and run app (compilation is ok). In this case I get #1014 Verify error - class not found. (the code which e.g. instantiate those base classes is never executed before swc is loaded, but seems Flash Player makes some verifying).[code]When I don't use swc classes as base classes, everything is ok.
View 3 Repliesif you are loading an external swf to a target or container or what have you, can point it to a particuar frame or scene in that swf?
View 5 Repliesi was curious, (cause this would help me a lot) > if you are loading an external swf to a target or container or what have you, can point it to a particuar frame or scene in that swf?
View 5 RepliesI have button to set the visability property to a movie symbol called spec2 to 1
which is outside of the movie on the main stage in its own layer.
on (release) {setProperty("spec2", _visible, "1");}
That part works. I am trying to nest a button inside the spec2 movie to set its own property
[Code]...
Can I set label visibility in Flex ?
[Code]...
Is there a better way to do use a use a boolean with visible? I'm setting up animations that have conditions for visibility, and I don't want to use something that performs poorly. This animation blinks 30 times and stops. It works without error, but takes a moment to load. I would like to learn other ways of using visibility with conditionals.
This is what I used 'waits before playing'
if(condition=5){
box.visible = !box.visible;
This works fine 'no pause'
if(condition<6){
box.visible = !box.visible;
[Code] .....
I'm using external XML to set flash vars. Alpha works, but not Visibility. How do I get my swf to respond to visibility?
XML
<?xml version="1.0" encoding="utf-8"?>
<SESSION>
<BGv TITLE="visible true">false</BGv>[code]...
I have recently started using AS3 and can't seem to get to grips with some basic syntax for parent/root navigation. My problem is, I have an intro movieclip on the stage that plays first, when that is done i want some code on the last frame that navigates to another movieclip on the main stage to set its visibility to true. i have tried mMovieclip(root).mOther.visible = true; and a lot of other variations. Do i need to set them up as children? or something else.
View 3 RepliesHow would I write a loop that cycled through all the movieclips within a container clip and did something to each one?
For example say i have 6 movielcips in holder_mc, and I want to change each one's visibility? I need it to be dynamic so it will still loop through all clips whether 2 are in there or 20.
I'm currently working on a site that is a mixture of Dreamweaver and Flash. I have some Flash movies that are in DIVs in DW. I need to have some links in those Flash movies that can control visibility of other DIVs. In other words I need a link in the Flash movie to work like DWs Show-Hide Elements feature. Is this even possible? I'm using DW CS3 but Flash MX 2004.
View 2 Repliesi have button which open specfic movie clips from my library and locate them on the stage.This all works well and good, but i would also now like a button to remove all of them except one when the user is finished playing around.i got the follwong code working, but it only works on movieclips that are already present on stage. when i export the file i get errors because the movie clip im trying to hide isnt currently on stage i think. i identify the hidden movieclips by their class name.
startover.addEventListener(MouseEvent.CLICK, removeallFunction);
function removeallFunction (event:MouseEvent):void
{
[code]....
so i have some thumbnails for a gallery and im trying to make them only appear if the user has loaded a thumbnail for it. i will let the code speak...
if (_root.mainarea.six.galleries[thumbnail].blank.myBytes <= 100) {
_root.mainarea.six.galleries[thumbnail]._visible = true;
} else {
[Code]....
i cant seem to get the operator or the measuring correct. is there some glaring error in the "<=" or something ?
I have 11 images i need to _x slide (left and right ) using 2 buttons. ( next and back )my goal is to show two images at a time ( contained inside img_MC..consisting of all 11) inside a 748 x 419 mask. I have accomplished this but the next button and the back button need to disapear when img_mc is at a certain _x position...so that if you are at the last frame you can only go back...and if you are at the first frame you can only go next.
so far going forward I can get next to show...and going back I can get back to show...but in the middle when I need them both to be there I only have one or the other.
[Code]..
I've got several layers in the timeline and I'd like to know the most effecient method to toggle the visibility of any one of the layers when a user clicks a button I have on the form.
The layers are all simply graphics that have been imported and the only functino they have on the time line is that they each come in at different times during the playback of the movie. I'd like to have the ability to toggle the individual layer when a user clicks the button.
I am working with visibility of handCursor on text-field instances(textfield instances are created using "TextField" class) using Flash and ActionScript 3.0. But, here, I am getting a small problem in my code, which is as follows:
[Code]...
I'm having trouble testing for an object's visibility on the stage without using an event listener. I know this is pretty basic, but I can't seem to find anything online and none of my flash friends are around eitherowing code, what is it that I need to do to activate the function? I thought you could write a function without having an event listener.
function test (e:Event) {
if (square_mc.visible==true) {
trace("square is visible");
[code].....
I have this website with a white fade in / fade out menu. I'm trying to get the menu to be a little more visible. Because the menu is in white font, and the images it pops over occasionally have a white background, this creates a bit of a problem.
I created a large movie clip that fits the stage width and height. I'm calling it 'bg'. The idea is when one rolls over the 'projects' menu, the bg movieclip fades in to dim the whole file except for the menu. I'm setting the alpha of bg to 0 intially, so that it can fade in using TweenLite when the projects mc is rolled over, and fade out when projects is rolled off. I would just do this all using alpha if I could, but here's the problem: in order for the screening to work over the entire file, it has to also work over my externally loaded swf and it's gallery buttons. When the bg mc fades in and tints everything, it gets infront of the buttons and you cannot access them. So... I need to combine the alpha fade thing with turning the bg visible on and off. Is there anyway to do this both at the same time? Right now I either get nice fades, and the visibility not doing anything, or nice fade ins of the bg, and then an abrupt change when visibilty goes to nothing on roll over. [code]...
I have a situation where my main SWF file loads many external SWF files. However, those external SWF files are just sitting in the public folder of the web server. Is it possible to restrict the SWF visibility to only my main SWF file (the one that loads the external SWFs). In the current state, any user who knows where to look can just type in the URL and get to the SWFs, not to mention rogue bots that don't follow robots.txt.The reason for this is very simple. Users user a username/password to log into the main Flash application and the main Flash application in turn loads the SWF files and ONLY then they are available to the user. Also, depending on who the logged in user is, some SWF files are restricted and not loaded.
View 2 RepliesI have and add button (last row) in one column of the AdvancedDataGrid. for the row having the add button the rest of fields are not visible. On click of the add button a new row is added to the grid for the user to add. After that this button becomes delete button (label becomes '-' and a new row is added at the bottom for adding another row). When i click on the delete button (label '-'), the last row gets the add button('+' label) but the fields of the row become visible.
[Code]...
I have main application which contains ModuleManager. Different modules are loaded by this application. Both main application and loaded modules use my custom RSL. I need to get Class object in my RSL, which is defined in one of the modules. I'm trying to use getDefinitionByName function, but since my class is not defined in RSL, I get an exception (though module with needed class is loaded). Is it possible to make module classes visible to RSL code and to get the instance of it at runtime without changing project structure?
View 2 RepliesI am working with displaying/visibility of handCursor on text-field instances using Flash and ActionScript 3.0. But, here, I am getting a problem to the following code:
HTML Code:
import fl.containers.ScrollPane;
var myClip:MovieClip=new MovieClip();
var sp:ScrollPane = new ScrollPane();[code]..........
Create a new Flash file and add the above AS3 code into the ActionsPanel of Layer-1 and execute it.The output consists of 3 hyperlinks one upon other(in line). When, we place the mouse-cursor on the hyperlinks, then the (arrow)cursor disappears and the "handCursor" appears.It works fine when we place our mouse cursor on the 3 hyperlinks.But the issue is: still it displays the HandCursor even if we place the mouse-cursor down these three hyper-links(i.e., in white space below these 3 hyperlinks)it displays handCursor to some extent down these text fields).
I am trying to change the visibility of an mc but it is nested within another mc... i am not sure how to reference the parent mc from the root...ex:AS on main timeline (_root):
Code:
function coolNess () {
myMC2._visible = true;
[code].....
I have 11 images i need to _x slide (left and right ) using 2 buttons. ( next and back ) my goal is to show two images at a time ( contained inside img_MC..consisting of all 11) inside a 748 x 419 mask. I have accomplished this but the next button and the back button need to disapear when img_mc is at a certain _x position...so that if you are at the last frame you can only go back...and if you are at the first frame you can only go next.
so far going forward I can get next to show...and going back I can get back to show...but in the middle when I need them both to be there I only have one or the other.
[Code]...
I've got some quick code here. Basically, i'm trying to control the visibility of a single movie clip at the click of one button. One Click makes it disappear, the other brings it back again. Nothing i've tried seems to work.
ActionScript Code:
/* logic
make 1 variable
[code].....
What I am trying to do is capture the name of the button which is clicked and add "hl" to it, which is the name of another movieclip already on stage. This part works. Then with that modified name I want to set the visibility of the second movieclip, ie "popUp0hl", to true. This is not working. None of these MCs are created dynamically by the way.
var highLight:String = evt.currentTarget.name + "hl"; //This traces out fine
this[highLight].visible = true;//Here is the problem area
I want to set the visibility of a movie clip (containerMC) how I can toggle visibility on clicking a button?
View 2 RepliesI'm developing an intro for a site, its 10 seconds long and has streaming sound in the background...I streamed it, because it has an image flash onto the screen in unison with a drumbeat.
I want to get the file size as low as possible, because they are not looking for a loader in the beginning. [URL].. I'm using Alpha's to fade the images in and out, and I know alpha %'s can kill file size.
I understand there is a _visibility function that can be applied, can you help me out on the syntax for calling it?