ActionScript 2.0 :: Setting Homepage Button In Flash
Jul 8, 2011How does one program in AS2/AS3 a "set as homepage" button?
View 1 RepliesHow does one program in AS2/AS3 a "set as homepage" button?
View 1 RepliesI'm creating my first website. I've managed to create a homepage. On the homepage is a enter site button, which once it is pressed starts thetimeline... I have an actions/labels layer which I am writing my code in. On frame number 'one' is my code below.
stop ();
enter_site_btn.addEventListener (MouseEvent.CLICK, buttonClicked)
function buttonClicked (event:MouseEvent): void
[code].....
I have 2 buttons in flash.. and i need one that allow me to set as homepage for that webpage when i click. and another one allow me to bookmake that webpage when i click.
View 0 Replieshow can make a button that makes the current page my homepage? im 99% sure there's Javascript involved and I've tried writing it my self P.S if its, I got one button to work (adding to favorites),
View 5 RepliesDoes anyone know how to make a button (code) that will set the internet page as the default homepage.
View 2 Repliesbeen looking around for a while for this, searched for it here at as.org, scanning every article and archive I could find from the last 10 years. It just seems like how to do it right is not currently out there. Assuming coding has improved, and all of us are much smarter and more experienced than we were last decade, I bring it up once more.
View 7 RepliesI am building a flash app that will asks the client to access their web camera. Users on Windows (Firefox, Safari, Chrome browsers) are able to click the allow button. However, users on Linux/Mac (Firefox, Safari, Chrome) either need to click several times until they can click allow, or they can't click at all. [URL]
View 1 RepliesI'm sorry if this is the oldest flash question in the book, but I created an intro in AS3 and I don't know how to get the movie to automatically go to home page after it plays through. I added a skip button and have that part working, but I don't get the other part.
View 1 RepliesI have recently created a flash site and I am trying to update my online portfolio. How do I take a snapshot of the homepage of the flash site for my portfolio?
View 2 Repliesi downloaded a free of use gallery from (this gallery) and i'm trying to load it in my flash site .. now, the gallery works if i open it directly (i open the swf file)when i try to load the external swf file into my siteloadMovie("image_gallery.swf", box);then the movie loads .. the gallery is displayed the message "loading xml file" displays and then when the xml is loaded the message "loading image 1/7" displays and only the first image loads.
once the first image is loaded it will not be displayed (it remains outside of my swf file .. i can see it when i resize the window) and no other images will be loaded.if i open the gallery.sfw file again everything works fine .. the problem is only if i try to load the gallery.swf in another swf ..something must be wrong ..i tryed to opern the gallery.fla file and copt everything directly in my site and the problem remains the same .. only 1 image loaded and not displayed in the gallery
We are revising our company website and I wondered if it considered bad practise to use flash on the home page.This would cause issues for those users who dont have flash installed (and maybe dont want flash)
View 3 Repliesrecently i needed to share data between different flash .swfs on a homepage.. so i tried to use Shared Objects to do so..
sofar its fine.. i tried it .. and as long as the data is stored on my harddisk.. the sharedObject "cookies" work fine.. but when i put the site online.. they simply dont work anymore..
could this have something to do with security settings of the browser used?. doesnt a web browser allow flash to access the harddisk to read and write shared objects..
is there another.. simpler and more reliable way to send data from one .swf file to another..?? (without using php -> my webserver doesnt support this sofar )
have only a little question .. :I'm actualy working on Adobe Flash CS5 but i don't really know how it works. Then i donwloaded a flash website on internet and i can modify the main part of it but i have a problem when i'm trying to add a Cbox in my homepage. It's a basic Cbox from Cbox.ws so it's totaly in HTML. I don't know how include it in a part of my pageIt means that i would like display my Cbox on my flash homepage from HTML code
View 4 RepliesI am trying to make a blog roll program that will put the titles of a client's blog on their homepage. i ran through a tutorial that got most of it working, but when i went to move from the tutorial to the client's program, i started running into some errors. since i have no idea what they mean, i can't even begin to figure out what is causing them.
[Code]...
Hi everyone. I am webmaster at www.mnfishing.org. I know nothing about flash at all. I really would like to get into it. Anyway, I am looking to add a "flash slider" or slideshow to my homepage.
I would put 5 or 6 featured news articles, etc on it.
I want to set (manually) the skinState (for example 'disabled') of a button (that I skinned) in ActionScript.
For example: I have a button skin with hostComponent: components.backend.btnMenuBakComp The button skin has the default button states (up, over, down, ...), but I want to set one of this skinStates in ActionScript.
For example:
subMenu.btnDashboard.currentState = "disabled";
This doesn't work because the state "disabled" is not known in the component (it is only known in the skinState of btnDashboard).
Is there another solution then load a new skinClass?
I put this code into my button:
ActionScript Code:
on (release) {
if (_quality="High") {
_quality = "Medium";
[Code].....
When I click it, it will only change it into Medium Quality.
I just built a carousel using Actionscript 2.0 in CS4 via an awesome tutorial on this site. I've added this carousel to an existing site and works beautifully on the home page but the problem is, when I click on a button to go to a new page, the carousel appears there as well obstructing the page content. Also, when I click back to home the carousel multiplies. My question is, how do I get the carousel to appear on the homepage ONLY and not multiply each time I click back to the home page? I'm a new Flash user.
View 1 RepliesI know how to set the style for a radio button in AS3, but is it possible to apply a text format style to a radio button group, rather than each individual button?
View 2 RepliesI have 4 buttons, all of them have the same width.
<s:Button id="btn1" width="{btnWidth}" />
<s:Button id="btn2" width="{btnWidth}" />
<s:Button id="btn3" width="{btnWidth}" />
<s:Button id="btn4" width="{btnWidth}" />
Is it possible to set their width with Style, something like this: I tried it, but auto-complete isn't working, which leads me to think that there's something wrong with the syntax. Basically my goal is to not have the width property set specifically for all 4.
I have a more than one container in a view. I am trying to set default button at the moment page is loaded so that when I press enter, function that handles keydown event called. If I simply set default button in preinit() function, it does not work.
View 2 RepliesI am adding some XML nodes clip_mc to my box0 movieClip and I am not able to figure out how to give them button property.[code]
View 0 RepliesI've got a question/request concerning my first flash website.If you look at my site you will see 4 .swf's loaded in from the sides. This effect is made possible by Jquery script. But because of lack of compatibility with Opera & Internetexplorer. I have to integrate this all in one swf. But I've got not a clue what kind of code I need to make this effect working.So to be clear what I want is Containing 4 swf's 25% height & 100% width. The slide in function is something I also would like to have (but maybe that's asking for just to much). If you want to see the code of the actionscript from the swf''s you can check it out at the included zip
View 11 RepliesI want to make a video background for my homepage as a welcome page. I found this code on the internet that seems to work more or less... problem is it just stretches out and fills out to much, it only stretches out to perfectly fill on the with of the swf, but goes way over the boundaries on the length... the video fills the page exactly but when the expands according to the size of the browser?
[Code]....
I am using AS3.0.I have created simple forward naviagtion from my homepage to my second screen using the code below and a simple button (click1)
//handle events for buttons...
click1.addEventListener(MouseEvent.CLICK, clickSection1);
function clickSection1(evtObj:MouseEvent){[code].......
Slightly modified code is used on consequent pages to navigate forward through my site.I have also created a home button that navigates me back to my first screen (called screen2) using the following code...
home_btn.addEventListener(MouseEvent.CLICK, clickhome1);
function clickhome1(e:MouseEvent):void
{gotoAndStop("screen2")
}
However, when I return to the homepage and click forward, instead of taking me to the next page and the next page, it jumps me forward directly to the 5th. screen.
is there a code or anyother way to make different homepage load on different connectionone homepage with flash 4 TI boardbandone homepage that is plain and simple 4 56k dialup
View 1 Repliesall this pages are in one movieclip called PAG with appropriate names to moviclip and frames. I am having problem with Home page i hv some icons which shld take user to links. but its not working . and same link works fine with training page.
_root.pag.training.gotoAndStop("t2");
}
now how to give links from homepage to icons .
I am placing several AS3 buttons (actual buttons not event-laden MCs)on a Flash stage and want my enlarged rollover images to always come to the front of all other dormant buttons.My script-fu is weak,but piecing together the advice from several helpful posts I have generally learned how to set the childindex on a rollover event to be high enough to go to the fore.I plugged in the appropriate language in my action frame and was psyched to see that the coding worked...but only briefly.After just a few clicks (it seems that whenever a button is hit for the second time), not only did the childindex trick stop working, but the buttons (which act to send the user to labeled frames later in the time-line) stopped working altogether.It seems that the issue is definitely related to the setting of the childindex, because when I remove those event listeners/commands,the buttons all work fine for an infinite number of clicks (but the enlarged rollover images are stacked in one static sequence, blocking each other out).Is there something inherently incorrect about this approach?Something simple that I am overlooking? Some way to reset the process on each click so it does not get gummed up (I tried re-setting childindex #s to 0 on rollout or on click, but it did not help)?
I have had it suggested that rearranging the order is destroying ability to recognize mouse events...but not sure if this is correct, what it would mean.The code that I am using for each button (for setting the depth and for redirecting on click) is below,
I attempted to build a Flex 4 skin for a Spark button, typical practice. I adjusted the colors and other styles to my liking, including using dot selectors to specify alternate colors and such during different states. However, these are all ignored when the button is disabled. Regardless of what I do, in the disabled state, my button always has the wrong color and is alpha'd to 0.5 (even if I specifically state that alpha.disabled="1"). All the other skin states work as expected. This is my custom skin. If it were working correctly, it would appear to have no shadow or highlight, and would be a gradient grey color. Instead, it appears as a 50% alpha version of the up state (shiny green).
<?xml version="1.0" encoding="utf-8"?>
<s:SparkButtonSkin xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="[URL]"
minWidth="21" minHeight="21" alpha.disabled="1">
[Code] .....
This is the code used to create and then disable the button:
_action1Button = new Action1Button();
view.actionGroup.addElement(_action1Button);
_action1Button.enabled = false;
The error was that _action1Button is not the actual button, rather, it's the container of the button. Doh! Switching it to _action1Button.actionButton.enabled = false; fixed the issue.
Is there a way to set the tab index on a button loaded (addChild method) from the library? Granted, you can easily add the tab index to the same button if it's on the stage, but I see no way to add it to the button if it's just chilling in the library..
View 5 Replies