ActionScript 3.0 :: Deeplinking 2 Level?
May 26, 2010however he only used 1 level.how would it look like if i wanted to have 2 level navigation?
View 1 Replieshowever he only used 1 level.how would it look like if i wanted to have 2 level navigation?
View 1 RepliesWhy By default Flex does not come-up with Deeplinking. we need to write separate code to achieve this.
View 1 RepliesI've got a Flex 3 project.Does deep linking only work on viewStacks? (My project doesn't have any viewStacks). I'd like to use deeplinking based on what was selected in a comboBox. I'd like the user to be able to bookmark or use the back button based on what was selected in the comboBox.The comboBox selection determines which data is pulled from the database.Is this possible? I set-up deeplinking in another project, but it had viewStacks. And all of the deep linking examples that I've seen use viewStacks.
View 1 RepliesI have some problem when use deeplinking on my flash site project.and this not work. Above my code:
on my html file
<script type="text/javascript" src="javascript/swfaddress.js"></script>
and
[code].....
It works when the site is already loaded, but when I paste the deep link (not home) into an other browser, it shows the homepage instead of the page I want. I think it has something to do with SWFAddress.getValue(); being it cannot find the value /mypage/ because it has not been set by a mouse event.This is my code in the first frame:
PHP Code:
import com.asual.swfaddress.SWFAddress;
import com.asual.swfaddress.SWFAddressEvent;
var isLoaded:Boolean = false;
[code]....
When clicked on main menu button it sets this:
PHP Code:
SWFAddress.setValue(s);
SWFAddress.setStatus(s);
s is a variable passed through a function with the correct deep link./home/ or /about/ or /work/ etc
I have taken over a site that uses deeplinking. I am not very good with AS yet and can't figure out how to make the buttons simply change color on rollover. This is the script for each button. [code]I am a newb at this and am just trying to stay afloat and get this updated.
View 2 RepliesI'm trying to implement a dynamic flash site and would like to have multilevel deeplinking. how to use swfaddress with more than 3 levels of deeplink but found nothing.
View 9 Repliesim trying to create a level select screen so the buttons unlock as you complete a level, so far i have this on each button:
on(release){
if(this.number <= currentItem){
gotoAndPlay(3);
}
}
[Code]...
I have two layers in my FLA both with empty movie clips as follows:In mc_Empty1, I attach a faded background movieclip as I wait for mc_Empty2 to load a SWF. Once the SWF is loaded into mc_Empty2, I want to remove the faded background movieclip from mc_Empty1. When I load the SWF from the main timeline, the onLoad() function works and removes the faded background from mc_Empty1. However, when I load the SWF from mc_target, the SWF loads, but the onLoad() function does not. Here's my AS2 code:
//Loading SWF from main timeline
mc_Empty1.attachMovie("mcFadedBg", "mc_FadedBg", 1);
mc_Empty2.loadMovie("My.swf");mc_Empty2.onLoad = function():Void{ trace("loaded"); //This works removeMovieClip(mc_Empty1.mc_FadedBg); //This works}
[code]....
I know I'm targeting properly because the SWF loads as it should, but the onLoad() function does not.
This is making me a little kooky today. I thought I could defined a library path in PREFERENCES > ACTIONSCRIPT > ACTIONSCRIPT 3.0 SETTINGS then that library would be available to all AS3 FLA files, but that doesn't seem to work for me. If I use the PUBLISH SETTINGS and define the library path everything is fine.
Is there something that I could have done to disable the application level class path functionality? I guess I'm trying avoid having to set the library path for every new FLA I'm making.
I'm doing a bigger aplication in flash (as2).Image, there is a main "home" flash with several menu buttons.Clicking these buttons, I load external swf into an empty container in this "home" flash.[code]clicking buttons in this second level, will load external movies into an empty container in this SECOND LEVEL swf.This works fine, but now, coming to the THIRD LEVEL (don't think there will be more in the future) problems come up, some scripts won't work.Now (I'm a as2-beginner) I think, loading external swf ALLWAYS into containers in the first "Home" flash should solve the problem.But I don't know, how to load an swf from the third level into a container in the first "home" level.In the "home" level, I have a "close" button, that will unload the container content.I need to go to a certain scene "content_2" in the home swf, too.
View 7 Repliesi have game im doing, and i want it to jump to level 2 upon completing the first level, but the problem is, the level 2 is a seperate swf, i've tried to use
Code:
on (release) {
loadMovie("level2.swf",2)
}
I have called main.swf into a container in index.swf.
myMCL.loadClip("main.swf","container"); is an action on my Index.fla timeline.
I have my navigation on index. (i wanted it to go on main, but the nature of the animation meant it had to go on index)
I need to call "home.swf" into "main.swf" from the navigation button in Index.swf.
When I had the navigation on "main.swf" this was my code to call "home.swf" into the page.
on (release) {
Preloader_mc.gotoAndStop("home");
}
("home") is the label name where the preloader is for home.swf
how to call the preloader for home into main.swf from "INDEX.SWF INSTEAD OF MAIN.SWF"
I have a file1.swf which loads file2.swf into it. Within file2.swf i have a button that when clicked needs to remove file2.swf and load file3.swf into its place.
View 2 RepliesIs there a way to link to one level below the current level? Instead of saying _root.level1.level2.level3, something like: ../level3 ?
View 4 RepliesSituation:
- We have a Flash application located on a SAP EP (let's say ep.x.com)
- We have a SAP ABAP Application (Webservices) on a SAP WebAS
server (abap.x.com)
- Clarification: This is not about Flash islands / but a normal Flash application communicating with WebAS ABAP via WebServices
Problem: Due to the changed security policy in Flash 10 this scenario does no longer work.
- A crossdomain policy file on root level cannot be deployed on root level
- The WebServices http/s headers cannot be modified, since the WebServices are generated by the WebAS IDE.
Comment: Technically there is a way to patch a WebAS ABAP,but this is not a practical / acceptable way in a normal SAP WebAS infrastructure.
Conclusion:- The above scenario (Flash from EP content / WebAS ABAP as backend) is a quite normal scenario in the SAP world.
- SAP / Adobe always features the close relationship between their technologies.
Question:- What could we do?
- How does the Visual Composer works around that problem?
how to use SWFAddress within MCs? All the tutorials I find seem to use the maintimeline, but I need to know how to make it work within multilevel mc's, dynamicly loaded in. Ive got a working code but this one is static. Everything is working, even when i copy and paste the URL of Testpage 5 for example in the browser. how to create a dynamic way than using the switch statement.
[Code]...
I have a movie that's 500x400 px in level 0 and has lots of thumbnails with pictures that I want to open. the thumbnails open a 500x400 px movie above the other but on level 1. the problem is that when the new movie loads on level 1, the thumbnails on level 0 (that are now hidden by the new movie) are still active, and if i click anywere in the movie on level 1, it trigger an action from level 0. Is it possible to load a movie to level 1 that deactivates the movie in level 0 without unloading it?
View 1 Replieshow i can refer from a flash "A.swf" on level 0 to a "B.swf" on level 1 with an "gotoAndStop(5). I tried it with:
loadMovieNum("B.swf", 9), gotoAndStop(5);
and other variations. It didn´t work anytime.how it can work?
Is it possible to check the number of movieclips in a level?
View 1 RepliesI am working on a project and have a print function that basically does a screen grab and prints it out. I load a number of external swfs into levels of the main swf.I want the print button to stay on the top level. Is there a way to define what level a button is on?I want to define the button on level 20. I contemplated loading it in as another external movie clip, but the script won't work if I do that.
View 1 RepliesI have a two questions regarding XML and AS3. Even though I've been using flash for a few years now I would still consider myself to be at a nOOb level... Question One: Basically I have a website (all in flash) and there's a passworded section for clients to access their own information. Previously I've done this by adding the username and password info into the flash movie itself each and every time I have a new client - which works but is very time consuming (considering the number of clients I'm getting now). Is there a way that I can put all the names and passwords into an xml file, and flash checks it?
Question Two: Up until now, once a client has entered their username and password it takes them to a new .swf that has their info in it. And once again, I've been creating separate swfs for each clients (and again, time consuming). What I would love is after they've entered their username and password it takes them to a different scene or frame (still in the original swf) that has dynamic text fields that load the info from an xml file. I assume that these questions have relatively simple solutions, but I'm not sure how to do it.
My main loads an external swf. Then it creates a bunch of ball movie clips on the stage. I need to reference the content from labeled frames in the external swf. In AS2 all you had to do was use _level.
View 6 Repliesis there a way to add some code in the first frame of the main movie's timeline that sets certain MC's that i specify into level 1000?
i'm going to be using swap depths for a project but i need certain clips to always remain on top no matter what. the swap depth of the other movies will constantly be raising them by 2 levels, so i figure i'll put the ones i need on top on level 1000 as the others should never reach that high.
i was thinking i'd have to either add an array with the MC's i need moved to level 1000, or make them _global. and set a property to that somehow.
i have a menu, and a content area. when a selection is made on the menu, an external clip is loaded overtop of the content area and does an opening animation. the problem is, when another selection is made from the menu, the animation starts the opening sequence over again.
what i'm looking for, is something that says 'if level x is empty, load this clip and play it from frame y. if something is already loaded in level x, play it from frame z'.
loading var into different swf in different level.
I got the index.html to hold navigation.swf, navigation.swf loads login.swf in level 10 then I got an var coming from the database but login.swf cant receive it (it shows nothing). So I try to use index.html to hold the login.swf then it works, does anyone know why login.swf can't receive the var? If I load into different swf in different leve, does it mean I have to specify the level for the var?
i'm trying to disabled different mcs I have in the same level.
Code:
on (press) {
_parent.selectClip = "p2";
_parent.myFunc();
this.enabled = false
uc.enabled = false
}
when i press this mc with the instant name of "rc", i'll disabled with the code above and it works great.but i have another mc i would like to disable as well which is in the same level of "rc"this other mc has the instant name of "uc" so i tried to do what you see above but only "rc" gets disabled but not "uc" i think i'm getting confuse with _root maybe or _parent...
just wondering if it is possible to disable a level much like you can disable a button. If it is possible what would be the best way to do that with being able to toggle on and off with a button on another level.
View 6 RepliesI am trying to go to a certain frame within level 0. When you are in level 4, for example, and you click the button that takes you back to level 0, I would like to bypass the preloader and initial animation in level 0 and start at frame 3. I would like to think that it's as easy as:
loadmovieNum("main.swf", 0);
_level0.gotoAndPlay(3);
But somehow I'm thinking it's not that easy... Because it didn't work .
basically - using the kirupa xml photo gallery script[URL] - i am trying to simply load the next image on top of the current image and then unload the previous image - just for a smoother transition. instead of the current image unloading then loading the next image.
View 2 Replies