Search found 356 matches

by sritcp
Thu Jun 20, 2019 2:21 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 196

Re: More than one browser object on a card?

I have figured out the issue, I think. The group (with the browser) has to start out hidden in my program and is shown when a button is clicked. This seems to be the issue. If the card opens with the group showing, there is no problem, But when the group is hidden and is then shown, both browsers st...
by sritcp
Thu Jun 20, 2019 2:02 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 196

Re: More than one browser object on a card?

Tried it on 9.0.4 Same result. Didn't try with 9.0.5 etc. I generally like to keep away from release candidates and previews. Once the browsers vanish, I can get back one of them (the one within a group), by clicking the visibility button on the Project Browser (by hiding and showing). The other bro...
by sritcp
Thu Jun 20, 2019 1:11 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 196

Re: More than one browser object on a card?

Sorry, forgot to mention.
I am using LC 9.0.2 on Mac 10.14.5
by sritcp
Wed Jun 19, 2019 11:16 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 196

Re: More than one browser object on a card?

Ok, I got it! I needed to zip it. Open the stack; card 1 is a dummy with a button to go to card 2. Card 2 has two browsers - one on the card, the other inside a group on the card. They are set to sample .pdf files online. If the pdf files show on the first go-around, please navigate to the first car...
by sritcp
Wed Jun 19, 2019 11:07 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 196

Re: More than one browser object on a card?

Hi Richmond: I had not posted the stack to begin with because the answer might simply be that more than one browser widget is not allowed on a card - no need to investigate further. In any case, when I try to upload, it says "invalid file extension: .livecode". When I click "Add File" under "Attachm...
by sritcp
Wed Jun 19, 2019 9:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 196

More than one browser object on a card?

I understand that the browser displays above all other controls regardless of its layer number. Does that mean you cannot have more than one (non-overlapping) browser widgets on a card? I am having problems with two browser widgets on a card (one of them part of a group, which stays invisible and is...
by sritcp
Mon Jun 17, 2019 1:32 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 11
Views: 388

Re: Environment: which applies when?

That helps. (Although there is still a great deal of iOS fog in my mind!)
Thank you.

Sri.
by sritcp
Sat Jun 15, 2019 6:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 11
Views: 388

Re: Environment: which applies when?

... In particular, use specialFolderPath("resources") to find videos and keep the videos in the same folder, or a subfolder, of the mainstack. The dictionary says, "On iOS systems, only create files in the "documents", "cache" and "temporary" folders. Be careful not to change or add any files withi...
by sritcp
Sat Jun 15, 2019 4:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 11
Views: 388

Re: Environment: which applies when?

Klaus: It is not "development" and "mobile" at the same time! See, "play video" works only on mobile, where it plays a video fullscreen. "Player" object works only on desktop OS. So, while developing I put in "if the environment is ...." clause, so it works on both (while testing). If the simulator ...
by sritcp
Sat Jun 15, 2019 3:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Player won't load source file by button script
Replies: 5
Views: 204

Re: Player won't load source file by button script

The problem occurs if you set the layer AFTER you have set the filename.
Set the layer first, it works!
by sritcp
Sat Jun 15, 2019 3:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Player won't load source file by button script
Replies: 5
Views: 204

Re: Player won't load source file by button script

I think I have figured it out. The culprit is

Code: Select all

set the layer of player 1 to top
in my original code. If you delete it, it works. If you add it, it doesn't. Something about changing the layer of the player after setting the filename or before "showing" it, I don't know.

Regards,
Sri.
by sritcp
Sat Jun 15, 2019 2:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Player won't load source file by button script
Replies: 5
Views: 204

Re: Player won't load source file by button script

Hi Klaus: I am not getting the same result! By the way, to avoid the parenthesis issue, I tried set the filename of player 1 of this card to "/Users/Sri/Desktop/myVideo.mp4" I also tried to put the file path string into a temp variable first. None of these works. The player shows, but is an empty an...
by sritcp
Sat Jun 15, 2019 2:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 11
Views: 388

Re: Environment: which applies when?

May be I wasn't clear about my confusion! Suppose I want to play a video in an iOS app, being developed on a Mac. The code might be if the environment is "development" then show player 1 start player 1 else if the environment is "mobile" then play video tVideoURL end if Would it be appropriate to us...
by sritcp
Sat Jun 15, 2019 2:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Player won't load source file by button script
Replies: 5
Views: 204

Player won't load source file by button script

1. Drag a player object onto the card (hide it to begin with) 2. Create a button "PlayMovie" with the script: on mouseUp set the filename of player 1 of this card to the desktop folder & "/myVideo.mp4" set the currentTime of player 1 of this card to 0 set the layer of player 1 of this card to top sh...
by sritcp
Sat Jun 15, 2019 12:55 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 11
Views: 388

Environment: which applies when?

I’d like to understand when the different environments operate: e.g., consider “development”, “standalone application”, and “mobile”. Which one applies when: i) testing using the iOS simulator on Mac ii) testing with iOS device connected to the Mac iii) standalone installed on the iOS device Thanks,...

Go to advanced search