ActionScript 2.0 :: Load Url Into Main Swf -- Like Html Frames

Feb 19, 2003

I know this can be done in html but flash I don't know. I want to stay on the same url page and load another url in my flash movie. You can do this with SWF's, you have a main movie and then you can load a second swf into the main movie. Can this be done with a main swf and load in a url page into the swf?

View 8 Replies


Similar Posts:


ActionScript 2.0 :: MX-Load Html Txt File To Main Stage?

Dec 15, 2002

I have the ActionScript working fine on the main stage. Once I convert all layers into mc_clip, then put the mc_clip into the main stage, my html txt file no longer appear on the scroll area. Below is the ActionScript on the first frame in mc_clip. Also, the button 1 and button2 ActionScript to display the html.Questions:How to call the html to display on the main stage?

This is the ActionScript in mc_clip:
//load html txt file
loadVariablesNum("davehtml.txt", 0);

[code]....

View 4 Replies

ActionScript 3.0 :: Buttons On The Main Page Doesn't Goto And Stop At Other Frames In The Main Scene

Jun 14, 2010

I added a website preloader in a separate scene to the main frame of my website and scripted it to go to and Play the main scene or frame of the website when finished loading. I then put a command in the first frame of the main scene for the movie to stop (); at that point. The problem is that now the buttons on the main page don't respond to any behaviour commands to go to and stop at other frames in the main scene. I'm not sure if this is a conflict between the stop(); command in the main scene and the button behaviour command to go to and stop at another frame or an error with the way I'm identifying the scene and frame.

View 5 Replies

ActionScript 2.0 :: Load Main Swf File (main.swf) On Top Of Background

Sep 24, 2004

I have a background swf that has been coded so that it scales with the browser. I want to load the main swf file (main.swf) on top of this bg so that it is always centred on the page.

View 2 Replies

ActionScript 2.0 :: Put Action In The Main Frames?

Feb 24, 2008

How'd you make it so that you can give action script to everything, which has "enemy" in the instance name, (Such as enemy1, enemy2, enemy3 ect.)So you would put action in the main frames, that would give the actions to enemy1, enemy2, enemy3, and so on.

(Btw, Say that the action was:

[code]...

View 1 Replies

ActionScript 3.0 :: Frames On The Main Timeline Each With A Different Movieclip?

Nov 8, 2010

I have 6 frames on the main timeline each with a different movieclip. Is it possible that when one movie clips finishes running it will go to he next frame on the maintime line and run the next movieclip on the next frame with AS3?

View 1 Replies

Text Tweens Take Place On Frames In The Main Timeline?

Jun 30, 2009

I am fairly new to flash and I have been trying to make a product demo. Basically I want some text to fade in and then some pictures to show up one by one and then disappear and then some new text fades in etc. This is to talk about a product and show various parts of it as the text on the screen is discussing those parts of the product. My question is what the preferred way of doing this is. Here are the options I can think of.
 
Approach 1) Put all animation in the main timeline. All text tweens take place on frames in the main timeline. Approach 2) Put the text fade-in tweens in a movie clip and put that on the main timeline.
 
I have tried both these approaches but neither one has been working for me for the following reason.
 
Approach 1) Makes timeline very long and unwieldy. If one thing changes, it shifts everything over and messes up my whole timeline. Hard to manage. Approach 2) If I have a stop(); on the main timeline, my animation stops in mid fade. In cases where I don't have a stop, I can't figure out how to do a series of objects fading in one after another. Is there a way to check if a movieclip has finished and only go to the next frame if it has finished? How do I get a series of clips to play one after another when I am running them as seperate movieclips off the main timeline.

View 5 Replies

ActionScript 3.0 :: One Main Class - Error With Frames / Scenes

Feb 12, 2011

I am getting errors with flash cs5 classes I am using one main class and I've got to make a menu and normal game so two scenes (1 menu 2 main game). I keep getting this error when i play the movie. I am using CS5 IOS Packager

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at ButtonClass()[C:UsersMY NAME COMPDesktopIOS ContentButtonClass.as:68]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent() ......

View 1 Replies

ActionScript 2.0 :: Main MovieClip With Multiple Frames On Timeline

Mar 14, 2003

I'm designing a website which has one main MC in the timeline. This main MC totals about 650 frames with text and pictures for each page (65 pages). This when published into a .swf, was 172KB. However, the download time was huge, almost 45 seconds. The intro page works fine, which I then use a loadMovie to bring in the main .swf with navigation bar, etc. So, I took this large .swf and split it into 3 smaller .swf's, 50, 111 and 85KB, for each. Now when live online, this too, seems too large and almost 30 seconds to download. Can I optimize in any way or should I just again split the 3 movies into maybe, 5 movies? What is the 'best' size for each .swf that will be published online? You can see the link yourself at [URL].

View 3 Replies

ActionScript 2.0 :: Three Frames On Main Timeline - Fade Effect Not Work?

Feb 14, 2010

I've created three keyframes on the main timeline, the first is empty, and so is the third. In the second I have a movieclip that contains a classic tween. The movieclip has an alpha of 0 at frame 1, and 100 at frame 15, then at 45 it does the same in reverse until frame 60. On the last frame (60) of my movie clip I have the code:

ActionScript Code:
_root.gotoAndStop(3);
For some reason when I test the movie, the fade effect will not work, and the screen will just be blank. I have the
ActionScript Code:
stop();
Code on frame 2 but none on the other frames.

View 7 Replies

ActionScript 3.0 :: MovieClip Frames Skip Involuntarily On Main Stage

Apr 14, 2010

I have a movieclip in the main stage that has several frames. Then, I created a separate layer for the code that goes like this:
Code:
addEventListener(MouseEvent.CLICK, nextPage);
function nextPage(e:MouseEvent):void {
this.gotoAndStop(this.currentFrame+1);
}

Except for the last frame, which does not contain this code, seems to perform as expected. However, when I called up the same movieclip again by having it go back to a certain frame:
Code:
tutorial_MC.gotoAndPlay("2");
And the whole stuff seems to work fine, when I click and expecting the frame to go to the next, it seems to skip one frame and land on the other instead. For example, if I'm on frame 16 it'll jump to 18, then 20, and so forth. I tried other alternatives but they all seem to yield the same result.

View 4 Replies

ActionScript 2.0 :: Main Animations Slow Down A Huge Bit When Using Internal Movie (several Frames)

Jan 16, 2006

To try to avoid lag in the main animations (few ones, 5 I think), instead of having all the contents load as external movie clips in a movie clip called contentsMC (for instance), I used that contentsMC clip to contain them all, in several frames. There's no great problem in having all in one, since the contents are mainly text. The contentsMC shows up in a masked area inside the main movie clip.

I also have a transition effect, under that masked area.

When I press a button, it uses the command loadContent = #; And sets the transition effect movieclip play ( transitionMC.gotoAndPlay(1); ).

At the mid point of that transition effect (when it covers the actual content), it has the if conditions required to display what was asked.

if (loadContent == 1) {
_parent.contentsMC.gotoAndStop(1);
if (loadContent == 2) {
_parent.conteudos.gotoAndStop(2);

and so on.

However, when the transition effect is ocurring, all the animations in the main page become really slow, until it ends. Also, if I use anything inside the contentsMC, such as a scroll bar, the same lag occurs. That lag happens both with the always running animations (they are 5, I think) and with any other animation triggered during that, for instance by the onRollover effect of a movieclip.

To try to reduce that, I had set the framerate to higher values. First I set it to 50, then 60, and now it's currently at 90 (I only set it to 90 as it displays quite slower on the browser)

View 2 Replies

ActionScript 2.0 :: Movie Clip To Blur When The Main Scene Hits Certain Frames

Jan 22, 2009

Is there any code that basically says, if root frame = 2 then do this.. I basically need my movie clip to blur when the main scene hits certain frames. The movie clip pans around though with script thats why i cant just add a blurred image to a layer in the main scene.

View 6 Replies

ActionScript 3.0 :: Three FLV Movie Files That Are Places On Diffrent Frames On The Main Time Line?

Oct 5, 2009

I have three FLV movie files that are places on diffrent frames on the main time line. When the viewer clicks on diffrent buttons I send them to that specific frame by go to and stop action and the flv start playing, but if they click out of that frame by pressing another button the video still plays on the background and they can hear the audio.this doesn't hap stop the video from playing by pressing thepen if they stop button on the flv player.

View 2 Replies

ActionScript 2.0 :: CS3 Making A MovieClip Play It's Frames, Then Stop On A Main Timeline Frame?

May 12, 2010

I am currently in the middle of making a "sniping" flash game. In the first level there are a series of moving targets which are also movie clips. Inside the movie clip there is a 7 frame animation of the target exploding. Inside that is a tween of the target moving up and down. And inside that there is a plain old button.

What I want to happen is when you click on the moving target it explodes and brings you to a new frame of the main timeline. (ex. Main Timeline frame #27) But I'm pretty sure it thinks I was to play the seven frame animation of it exploding and then go to frame 27 inside the movie clip, rather then frame 27 on the main timeline.

Here's what my AS looks like on the target (ActionScript 2.0 is what I'm using.)

on (press) {
play();
}
on (release){
gotoAndStop(27)}

So how do I make it explode and then take me to frame 27 on the main timeline?

View 3 Replies

ActionScript 3.0 :: Flash Variables Between Frames - Put All Code From The Main Timelime To A Document Class?

Feb 6, 2011

I have a little problem in my game. I have a var coins:int = 0; on frame one, and I want to access it from frame 2. I'm not using a document class. Is it possible to make some kind of a global variable like in as2 without having to put all my code from the main timelime to a document class?

View 1 Replies

ActionScript 2.0 :: 2 Swf Files In Html Frames?

Apr 2, 2003

I have been desperate to find how to do this. I have found some answers to this, but nothing I can make work. The main place I have found is[URL].. and it wants to have the html docs as a template for flash. This is just confusing the issue and would rather find an example and don't mind editing and adding things by hand. I know this is difficult, at least from what I read and I don't know what I am missing. I assume the java in the html is what is messing me up.I don't have mx, so I cannot do the local thing, and need a flash 4 or 5 way of doing this. I have found some small ways of java, but I need to instruct the second movie to go to a label depending on what button is pressed in the first movie.

View 1 Replies

ActionScript 1/2 :: Load Movie - Randomly Load Other Swf's (individual Ads) Into Main Swf After

Apr 2, 2009

I am pulling double duty with this question as it serves two purposes. I am developing a total flash controlled ad system for myself, but also need to use the same theory for a project for work.

Concept: I have a main movie (ad rotator system) that I then want to randomly load other swf's (individual ads) into this main swf after a set period of time. The random load I got set no problem. The problem I am having is to get it to move to the new Frame label of the main movie which then loads the smaller swfs. I am using the LoadMovie with nInterval time delay command in flash to load the movies.

[Code]....

View 5 Replies

Flash Navigate Menu And Html Frames?

May 17, 2009

how to get my navige menu "made in flash" change my second frame to another page.

What i tried whas this

Code:
Drum.addEventListener(MouseEvent.MOUSE_UP, dofunction);
function doFunction(){
getURL("DRUM.html",_target="page");

[Code]....

View 1 Replies

ActionScript 2.0 :: CS3 Flash Directed HTML Frames?

Oct 10, 2009

I'm trying to create a website that is basically a flash toolbar that directs the user to different HTML pages at the bottom, much like this website here.Could anyone point me in the right direction? Do I build the bar in Flash and then the HTML portion in dreamweaver or do I build it all in Flash? Would an iFrame work for this sort of website?

View 1 Replies

ActionScript 2.0 :: Flash Navigation In HTML Frames

Apr 11, 2006

I want to place a Flash header in an HTML page with frames. I followed a tutorial from this site: [URL]

I could not figure out how to apply it to my own page though, because it didn't explain how to set up the HTML frames at all. I set up a frameset in Dreamweaver, so I have 3 frames, called "topframe", "mainframe", and "bottomframe". In Flash, I applied the following action script to a button as the tutorial instructed:

on (release) {
getURL("affiliates.html", "mainframe");
}

However, when I click on the button to go to "affiliates.html", it opens in a new browser window instead of the main frame.

View 1 Replies

ActionScript 2.0 :: Open Html Frames With Flash?

Mar 17, 2009

My webpage consist in two Frames, a TopFrame and a MainFrame. The TopFrame contains my menu wich is made in flash. By now you might have guessed the problem. Thats right, I'm trying to get flash to open/change html files in the MainFrame by clicking the a buton on the menu in my TopFrame. This is the code I'm using:

Code:
this.onRelease = function(){
getURL("http://jernberg.net/jonathan/about/about.html", "MainFrame");
}

But all it does is open a new window with the exact same contents. I've seen a tutorial here on Kirupa I've tried to follow, but it didn't help. You can check out the 1nt3rn3tZ most failed website here (my page, [URL]

View 7 Replies

ActionScript 2.0 :: Loading HTML Sites In Frames?

Apr 2, 2002

Is there any way od loading, with Flash Button in one Frame of the HTML page, a page (HTML or Flash) in the other Frame?

View 4 Replies

ActionScript 2.0 :: .load Six Separate External .swf's Into The Main Movie While The Main Movie Loads Too

Dec 23, 2004

I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.

View 2 Replies

ActionScript 2.0 :: Load An Html Or Html File In A Flash Movie Clip?

Feb 21, 2009

new using flash, is it possible to load an html or htm file in a flash movie clip?

View 1 Replies

ActionScript 3.0 :: Targeting Flash Links To Html Frames?

Apr 15, 2009

Using Flash CS3 and created a navbar with AS 3. All links work fine to open html pages, but I'm having trouble targeting the pages to a specific frame.

I've checked and re-checked code in my actions layer and in my html pages.

Code for AS 3 is "navigateToURL(galleries, "_content");" "Galleries" is the variable for the URLRequest and "content" is the name of the target frame in the Index page. All files are local on my computer and the paths are correct.

View 6 Replies

ActionScript 3.0 :: Opening A HTML From Multiple Frames In An Embedded Mc

Apr 1, 2011

I have a page (page1) with flash content that has an imbedded mc. The imbedded mc contains a group of thumbnail /buttons that bring up larger images (Thumb2 moves the playhead to frame 2 of the mc) there is also a unique button on each frame of the mc that should bring up a unique html page (a form) for that frame reference. When page 1 loads with the mc in it's default start position at frame 1 the form button works perfectly, however none of the other form buttons work and if I click on Thumb1 (which should be the start position mc frame 1) after clicking on any of the other form buttons, the form button for Thumb 1 no longer works. Everything else works as it should and I get no error codes.

I have the code for the form buttons located in the actions layer of the main timeline as follows;
 
TiaraFrames_mc.TSofaQAFrm_btn.addEventListener(MouseEvent.CLICK,TSofaQ AFrm);
function TSofaQAFrm(event:MouseEvent){
var TSofaQAFrmURL:String="CustomForms/Tiara/TSofaQA.html";

[Code].....

View 4 Replies

ActionScript 2.0 :: [FMX] Targeting HTML Frames With Flash Buttons?

Nov 26, 2002

I wanted to load .SWF files with flash buttons on a website into <iframes>

BUT the buttons are not separate (not separate .swf's) they are all in a sliding menu.

So how do i attribute those buttons on the sliding menu to open up files in a specific frame on a website?

View 3 Replies

ActionScript :: Html - Xml - Don't Load HTML Resources With HTMLLoader

Sep 11, 2011

I'm currently downloading website via an ActionScript HTMLLoader to later have access to the DOM to get some information out of the page. The problem is: each resource that is linked on the page (images, stylesheets, javascript) is also loaded which takes some additional time. I don't really need those resources, because only the plain HTML/DOM is interesting. Is there any way to disable loading of linked resources? At first I tried using an URLLoader and parse the result as XML, but when the website isn't valid this doesn't work. I also didn't find a library that validates/parses a given HTML-string into valid XML.

View 1 Replies

Html :: Load Html Page Into Flex Textarea?

Jun 2, 2009

I would like to show some textcontent from a website in a textarea box in flex.

<?xml version="1.0" encoding="utf-8"?>
import mx.managers.PopUpManager;
import mx.core.Application;

[code].....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved