ActionScript 2.0 :: Make Link-driven Changes To SWFs?
Apr 24, 2008
since i'm on this text kick, i was wondering if anyone knew if there is a way to have an imported text field contain some code that can be injected into the SWF itself? for example: an HREF that passes code to the background image movieClip. click the different imported links and the BG changes.if there is no way to do that, cool. just wondering. because i know you can pass parameters to OTHER SWFs via the HREF... so i wonder if it's possible to do that to itself.
I have been trying to understand how to create a url link with the xml file that my menu is driven by. what I have is a menu with text amd images reading from an xml file, I have created a third text field which I would like to use as a button/link that when click it goes to a url.[code]but this doesn't seem to work, am I missing something within the flash movie.URL...
I've made a component based on a mx:TitleWindow that contains linkbuttons that I'm using as a context-menu. The TitleWindow component contains link buttons like this:
[Bindable] private var _showEmailThis:Boolean = false; [Bindable] private var _showApproveThis:Boolean = false; [Bindable] private var _showReviewThis:Boolean = false [Code] .....
This component contains a large number of links and is re-used by multiple modules in the same application. Within each module, this component is used when a user clicks on a row in a datagrid. The code looks like this:
In "Requests" module: private function dgRequests_click(event:MouseEvent):void { menu.showApproveThis = true; menu.showReviewThis = true; }
In "Performance" module: private function dgPerformance_click(event:MouseEvent):void { menu.showEmailThis = true; menu.showReviewThis = true; }
As you can see, the visibility of individual linkbuttons is controlled within each module by setting boolean properties. If I alter this component to use a renderer, how can I control the visibility of the linkbuttons from the code in each module (there are over a hundred links with different functionality - not every link will be used in each module)? Note: it is not known from the back-end which grid within which module uses which link. This is set in the front end within each module's actionscript file. E.g., if the XML looks like this: [Code] .....
And I set the Email link to show in the module like this: private function dgPerformance_click(event:MouseEvent):void { menu.showEmailThis = true; }
How do I make it take effect? Is there a way to control the visibility of a linkbutton within an item renderer in a component from the module that uses that component?
I bought a flash site template that loads xml driven swfs inside the main swf as different menu items are clicked. The modules that come with the template work fine, but I don't know how to add a third party xml driven swf, so that it shows up properly. While the third party swf works fine as a standalone, the embedded version loads just an empty movie.
I have been using AS3 for approximately 1 year now, and although I havent really done any major projects with it, I am fairly confident using it. However, There is 1 part that I am very curious about. At the moment, I am using the design section of flash cs5 to create my assets. I am trying to make database driven applications, and the problem I have run into with using the design section is that you must manually program each symbol.
For example, If I wanted to make a dropdown menu, and a php file was passing the variables such as "amountOfSections = 5", Then 5 sections would be displayed. This is fine to do using alpha to control what is visible etc, but if there where 5000 dropdown menu items, I would have to physically place 5000 dropdown items onto the stage. I know that it is possible to use as3 to create objects AS THEY ARE NEEDED, but I have no idea how to do it.
I have a "wrapper swf" that loads a remote flash player that in turn loads video preroll ads from various advertisers. So my wrapper is the parent and the remote swf is a child and the video ad is a grandchild. I am looking to capture the url that the grandchild will navigate to when clicked. I am trying to trace it in the parent (wrapper) mouseUP and mouseDOwn event.
Is there a way to traverse ALL children until I get to the "bottom/last loaded" swf and get the URL? I wish to save the url to a variable so I can launch the url in another player of my own as opposed to having it launch an external IE browser.
I have a website im working on and I have it load multiple swfs etc. But although the site will load in the beginning it takes time to load each swf. Although I grasp the logic behind that is there a way to make them just all load at once? Like an AS code to include in a preloader of sorts?
how to make secure SWF files, so that decompilers like sothink won't be able to decompile these swf files at all. i have been assigned some research work to find out the stuff to make swf files highly secured
Let's assume that I can't script the loaded swf, nor can the loaded one script the loader swf.
I was attempting to set frame rate to 0, and wait after all swfs are loaded, and set frame rate back. But I found when I set the frame rate to 0, I could not receive the complete event! And it's weird that i can still receive UI events...
Is there a way to load several swfs and start them together?
I'm kinda stuck on a project I'm working on and need some guidance. I've been making educational Flash Videos and all the lessons. Each lesson is it's own SWF. I know how to make each SWF into it's own AIR application, but don't know how to get all of them into one AIR application.
Basically I'd like to create an Interface like this:http://bit.ly/h9OKPH Where I have a menu screen where you have all the lessons. When you click on a lesson it will take you to another frame and load the SWF for that lesson. I know I can import all the SWFs into a new Flash File, and then publish an Air Application, but I was hoping for a less time consuming and more resource efficient way to do so (I want the app to be optimized for speed).
I am trying to make transitions between loaded swfs. Below is my code. I know I need to add to one of the functions to make it play the "out" transition before the new swf is loaded. Each swf has a timeline with a stop frame and a frame labeled "out". The below script allows me to press buttons and load the coresponding swf to the stage.
I am trying to make transitions between loaded swfs. Below is my code. I know I need to add to one of the functions to make it play the "out" transition before the new swf is loaded. Each swf has a timeline with a stop frame and a frame labeled "out". The below script allows me to press buttons and load the coresponding swf to the stage.[code]
This has quite a long background history, so I`ll first ask the question: how can I make a loaded SWF file activate a function inside another loaded SWF file - both in the same 'parent' movie, domain and directory - when the user clicks a 'link' on the first swf?I'm new to actionscript, been only working with it for 2 months and I've been learning on the go. So far, so good, flash cs3 help has been useful, as well as this forum and other sites. My project is a website, no innovations, just simple info and light animations.The site should have an intro page (I called it index), a preloader, then the actual site (home), with links to each specific area (pages). In home, a small slideshow movie clip should always be on the upper left corner looping images until the user clicks a link to a page, when the slideshow fades away. With this briefing, I made a file for the index, and a uiloader in it would get the home file and that 'should' be it.My stage resizing event listener was working perfectly on home - standing alone - moving the slideshow exactly as it should. But when home was loaded inside index, the slideshow moved way more than it should never getting in the right place. After various unsuccessful attempts, I decided to move the slideshow into its own swf and load it directly in the index, together with the home file. This way, I managed to make it relocate precisely, but got myself the problem I'm asking here. I need to get the slideshow to fade away when the user clicks a page link, but they are separate files.
I tried to use a Loader.content based function, located at the index, but figures Flash help was not exactly clear on how I had to use it properly, so I did not manage to get it to work. It always reported an unspecified property. I searched around here and over the net, found similar problems and their solutions but could not resolve my problem. I think this is a little too specific..
wonered if someone could help me wih this one. Currently making a facebook game all in flash, it uses multiple swfs to make up the game and its elements for optimisation.
My question really is down to flash cache issue so we can make updates to various swfs that are going to be, site wide for users so the game doesnt break. Currently some users get older versions which breaks things if other swfs have chnaged how they communicate as an example.
I am aware of adding a query string onto the end to force to get the latest version.....however doesnt this make the use of a cache redudant as its being simply overriden? Would jsut like it to work as it should:) If theres a new version of a swf use it..if not use current one.
I want to make a banner loader. Basically its a swf that must load other swfs continuously, looping. Ive tried 2 things this far, and none of them seemed to work. 1st try: on my banner1.swf I used the onComplete parameter of Caurina package. So, when the animation should end, I simply made a method stating something like this:
I think what I am looking for is a random action script. I want to make a swf (mainmovie.swf) that would call up random swfs. What would be ideal is that every time the person goes to the site a different file is called up out of the files I created. So what I have done is put my (mainmovie.swf) into a folder with all of the other swf files I want to be random. It does not need to load to any specific level or anything it could even just replace the original move (mainmovie.swf) what ever is the easiest.
I'm new to flash and just trying to make a url link. followed instructions and I keep getting an error" '{' expected " in line 5. It's there!!! It seems right to me. Am I missing something. it seems simple.
I've build a simple twitter feed flash application that uses php script to read the latest tweet from xml and returns the string to flash to be displayed in a text box.
How would I go about making diagonal link like this one.I drew a retangle so that my text would fit in, select both text and rectangle, F8 turn into button,then I turn them 45degree. When hover the text change color the way I want, but the problem is that the button enters the hover state way too soon when my mouse isnt over the rectangle yet.Seems like as long as my mouse falls within x and y coordinates of the text then it goes into hover state.For example my mouse is under the diagonal box, not in yet, but right under the text and it would go into hover state.
Trying to figure out how to add a link that will open up in a new window using Action Script for something at work. Have barely used Flash so I am totally lost. People at work gave me a file with a blue box that is in its own layer, but I don't understand where to put the link at. I know I have to use Action Script 2.0 and go to the Actions palette.